/* =============================================
   ADVANCED SEARCH - Estilos Profesionales
   ============================================= */

/* --- Contenedor Principal --- */
.advanced-search-section {
    margin: 0;
}

.advanced-content.hidden {
    display: none;
}

.advanced-content {
    animation: advancedSlideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes advancedSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Barra de Toggle --- */
.advanced-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    margin: 6px 0 2px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2f7 100%);
    border: 1px solid #e0e4ea;
    transition: all 0.3s ease;
    cursor: default;
}

.advanced-title:hover {
    background: linear-gradient(135deg, #eef2f7 0%, #e4eaf2 100%);
    border-color: #ccd3dc;
}

.advanced-title-text,
.advanced-title-text i,
.advanced-title-text h4,
.chevron {
    cursor: pointer;
}

.advanced-title-text:hover,
.chevron:hover {
    opacity: 0.7;
}

.advanced-title-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.advanced-title-text i {
    color: #0094d2;
    font-size: 0.85rem;
    pointer-events: none;
}

.advanced-title-text h4 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.2px;
    pointer-events: none;
}

.chevron {
    transition: transform 0.3s ease;
    font-size: 10px;
    color: #7f8c9b;
    pointer-events: none;
}

.advanced-title.collapsed .chevron {
    transform: rotate(-90deg);
}

/* --- Secciones Internas --- */
.advanced-section {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.advanced-section:hover {
    border-color: #d0d8e2;
    box-shadow: 0 1px 6px rgba(0, 148, 210, 0.06);
}

.advanced-section:last-child {
    margin-bottom: 0;
}

.advanced-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f2f5;
}

.advanced-section-header i {
    color: #0094d2;
    font-size: 0.75rem;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f4fc 0%, #d9eef8 100%);
    border-radius: 6px;
    flex-shrink: 0;
}

.advanced-section-header h6 {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #34495e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Grid 4 Columnas (Pricing & Language) --- */
.advanced-grid-3col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.advanced-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.advanced-field label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #5a6c7d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
}

/* --- Icon Grid (All Options) --- */
.advanced-icons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.advanced-icon-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f5f7fa;
    border: 1.5px solid #e4e8ee;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    white-space: nowrap;
}

.advanced-icon-item:hover {
    border-color: #b0c4de;
    background: #eef3f8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.advanced-icon-item.active {
    background: linear-gradient(135deg, #e8f4fc 0%, #d4ecf8 100%);
    border-color: #0094d2;
    box-shadow: 0 1px 6px rgba(0, 148, 210, 0.2);
}

.advanced-icon-item i {
    font-size: 0.75rem;
    color: #7f8c9b;
    transition: all 0.25s ease;
}

.advanced-icon-item:hover i {
    color: #0094d2;
}

.advanced-icon-item.active i {
    color: #0077b3;
}

.advanced-icon-item span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #7f8c9b;
    transition: all 0.25s ease;
    text-align: center;
}

.advanced-icon-item:hover span {
    color: #34495e;
}

.advanced-icon-item.active span {
    color: #0077b3;
}

/* --- Estrellas de Calificación (Hotel Rating) --- */
.advanced-rating {
    display: flex;
    gap: 1px;
    justify-content: center;
    width: 100%;
}

.advanced-rating .star {
    font-size: 1rem;
    color: #d0d5dc;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.advanced-rating .star:hover,
.advanced-rating .star.active {
    color: #ffcd22;
    transform: scale(1.1);
    text-shadow: 0 0 6px rgba(255, 205, 34, 0.3);
}

/* --- Saved Lists --- */
.saved-lists-container {
    padding: 0;
}

.saved-lists {
    list-style: none;
    margin: 0;
    padding: 0;
}

.saved-lists li {
    margin: 0;
}

.saved-lists li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #34495e;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: #f5f7fa;
    border: 1px solid #e4e8ee;
}

.saved-lists li a:hover {
    background: #eef3f8;
    border-color: #b0c4de;
    color: #0094d2;
    transform: translateX(3px);
}

.saved-lists li a i {
    color: #0094d2;
    font-size: 0.75rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
    .advanced-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .advanced-title {
        padding: 8px 12px;
    }

    .advanced-title-text h4 {
        font-size: 0.82rem;
    }

    .advanced-section {
        padding: 10px 12px;
        border-radius: 6px;
    }

    .advanced-grid-3col {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .advanced-icons-grid {
        gap: 5px;
    }

    .advanced-icon-item {
        padding: 4px 8px;
    }

    .advanced-section-header {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
}

@media (max-width: 576px) {
    .advanced-title {
        padding: 6px 10px;
        margin: 2px 0;
    }

    .advanced-title-text i {
        font-size: 0.8rem;
    }

    .advanced-title-text h4 {
        font-size: 0.78rem;
    }

    .advanced-section {
        padding: 8px 10px;
    }

    .advanced-section-header {
        margin-bottom: 6px;
    }

    .advanced-section-header i {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
        border-radius: 5px;
    }

    .advanced-section-header h6 {
        font-size: 0.7rem;
    }

    .advanced-icons-grid {
        gap: 4px;
    }

    .advanced-icon-item {
        padding: 4px 8px;
    }

    .advanced-icon-item i {
        font-size: 0.7rem;
    }

    .advanced-icon-item span {
        font-size: 0.65rem;
    }
}
