/* Contenedor principal de las rutas */
.rrfc-rutas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}



/* Tarjeta de cada ruta */
.rrfc-ruta-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.rrfc-ruta-card:hover {
    transform: translateY(-5px);
}

/* Imagen de la ruta */
.rrfc-ruta-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Información de la ruta */
.rrfc-ruta-info {
    padding: 15px;
}

.rrfc-ruta-info h3 {
    font-size: 1.2rem;
    margin: 0 0 10px;
}

.rrfc-ruta-info p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Fechas disponibles */
.rrfc-ruta-fechas {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.rrfc-fecha-item {
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin: 0 auto;
}

/* Botón reservar */
.rrfc-btn-reservar {
    display: inline-block;
    background: #d94d4e;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.rrfc-btn-reservar:hover {
    background: #b43f3f;
}


/* editar ruta */

/* Contenedor principal */
.rrfc-edit-ruta form {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 900px;
    margin-top: 20px;
}

/* Títulos y subtítulos */
.rrfc-edit-ruta h1, 
.rrfc-edit-ruta h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Formulario */
.rrfc-edit-ruta .form-table th {
    width: 150px;
    padding: 15px 10px;
    vertical-align: middle;
    font-weight: 500;
    color: #444;
}

.rrfc-edit-ruta .form-table td {
    padding: 10px;
}

.rrfc-edit-ruta .form-table input[type="text"],
.rrfc-edit-ruta .form-table input[type="number"],
.rrfc-edit-ruta .form-table input[type="date"],
.rrfc-edit-ruta .form-table textarea,
.rrfc-edit-ruta .form-table select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

.rrfc-edit-ruta .form-table input:focus,
.rrfc-edit-ruta .form-table textarea:focus,
.rrfc-edit-ruta .form-table select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
    outline: none;
}

/* Botones */
.rrfc-edit-ruta .button,
.rrfc-edit-ruta .button-primary {
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rrfc-edit-ruta .button:hover,
.rrfc-edit-ruta .button-primary:hover {
    background-color: #005177;
}

/* Contenedor de fechas */
.rrfc-edit-ruta #rrfc-fechas-container .rrfc-fecha {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
}

/* Inputs dentro de fechas */
.rrfc-edit-ruta #rrfc-fechas-container input[type="date"],
.rrfc-edit-ruta #rrfc-fechas-container input[type="number"] {
    width: auto;
    flex: 1;
}

/* Botón de añadir fecha */
.rrfc-edit-ruta #rrfc-add-fecha {
    margin-top: 10px;
}

/* Input de imagen + botón */
.rrfc-edit-ruta #rrfc-imagen {
    display: inline-block;
    width: 70%;
    margin-right: 10px;
}

.rrfc-edit-ruta #rrfc-subir-imagen {
    display: inline-block;
}

/* Mensajes de aviso */
.rrfc-edit-ruta .notice-success, 
.rrfc-edit-ruta .notice-error {
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 20px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .rrfc-edit-ruta #rrfc-fechas-container .rrfc-fecha {
        flex-direction: column;
        gap: 8px;
    }

    .rrfc-edit-ruta #rrfc-imagen, 
    .rrfc-edit-ruta #rrfc-subir-imagen {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .rrfc-rutas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
}