@import url('/estaticos/css/base.css');

.titulo-tarifario h2 {
    text-align: center;
    color: var(--ocre-700);
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.texto-condiciones {
font-size: 0.875rem;
color: #444444;
}
.texto-condiciones strong {
    font-size: 0.8125rem;
font-weight: 600;
color: #555555;
}

/* Contenedor principal */
.tarifario-container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
}

.tarifario-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--texto);
    line-height: 1.6;
}

/* --- NUEVO: Filtro --- */
.filtro-container {
    margin-bottom: 2rem;
}

#filtroTarifario {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-family: 'Lato', Arial, sans-serif;
    border: 2px solid var(--ocre-300);
    border-radius: 0.5rem;
    box-sizing: border-box; 
}

#filtroTarifario:focus {
    outline: none;
    border-color: var(--verde-400);
    box-shadow: 0 0 5px rgba(48, 115, 90, 0.3);
}

/* Tarjetas de ciudad (Se mantiene la mayoría) */
.ciudad-group {
    margin-bottom: 1.5rem;
    border: 1px solid var(--ocre-300);
    border-radius: .5rem;
    overflow: hidden;
    background-color: white;
}

.ciudad-header {
    background-color: var(--ocre-400);
    color: white;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.ciudad-header:hover {
    background-color: var(--ocre-500);
}

.ciudad-nombre {
    font-size: 1.3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ciudad-count {
    background-color: var(--verde-400);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: bold;
}

.expand-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.ciudad-group.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Contenedor de items (ex-tabla) */
.ciudad-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    background-color: #fdfdfd;
}

.ciudad-group.expanded .ciudad-content {
    max-height: 5000px; /* Suficientemente grande */
    padding: 1rem;
}

/* --- NUEVO: Estilos de Ficha (Item) --- */

.item-tarifario {
    border: 1px solid var(--ocre-200);
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.item-tarifario:last-child {
    margin-bottom: 0;
}

/* Línea 1: Nombre y Categoría */
.item-linea-1 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.item-nombre {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--verde-400);
    font-family: 'Playfair Display', serif;
}

/* --- NUEVO: Estilos para el enlace del hotel --- */
a.item-nombre.item-enlace {
    text-decoration: none;
    color: var(--verde-400);
    transition: color 0.2s, text-decoration 0.2s;
}
a.item-nombre.item-enlace:hover {
    text-decoration: underline;
    color: var(--verde-300); /* Un verde más oscuro al pasar el cursor */
}
/* --- Fin estilos enlace --- */


.item-categoria {
    font-size: 0.9rem;
    color: var(--ocre-600);
    flex-shrink: 0;
    text-align: right;
}
.item-categoria .estrellas {
    color: var(--ocre-500);
    font-size: 1.1rem;
}

/* Línea 2: Régimen y Precios */
.item-linea-2 {
    display: flex;
    flex-wrap: wrap; /* Para móvil */
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.item-regimen {
    font-size: 0.95rem;
    color: var(--atenuado);
    background-color: var(--ocre-100);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}
.item-regimen strong {
    color: var(--texto);
    font-weight: 600;
}
/* Ocultar régimen si es un servicio */
.servicio-item .item-regimen {
    display: none;
}
/* Alinear precios a la derecha si es servicio */
.servicio-item .item-linea-2 {
    justify-content: flex-end;
}
.hotel-item .item-linea-2 {
    padding-bottom: 0.75rem;
}

.item-precios {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, auto));
    gap: 0.75rem;
    text-align: center;
}

.precio-item {
    font-size: 1rem;
    font-weight: bold;
    color: var(--ocre-700);
    white-space: nowrap;
    background-color: var(--verde-100);
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
}

.precio-label {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--atenuado);
    margin-right: 0;
    display: block;
    margin-bottom: 0.15rem;
}

/* Línea 3: Descripción/Condiciones */
.item-linea-3.detalles-contenido {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px dashed var(--ocre-200);
}

.detalle-texto {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 48rem) {
    .tarifario-container {
        padding: 1rem;
    }
    .ciudad-group.expanded .ciudad-content {
        padding: 0.75rem;
    }
    .item-tarifario {
        padding: 1rem;
    }

    /* Apilar líneas 1 y 2 */
    .item-linea-1,
    .item-linea-2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .item-categoria {
        text-align: left;
    }

    .item-precios {
        width: 100%;
        grid-template-columns: 1fr 1fr 1fr; /* 3 columnas siempre */
    }
    .precio-item {
        font-size: 0.95rem;
        padding: 0.5rem;
    }

    .servicio-item .item-linea-2 {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 30rem) {
    /* Si la pantalla es muy chica, apilar precios */
    .item-precios {
        grid-template-columns: 1fr;
    }
}