/* ============================================
   SEARCH RESULTS — LUXETRAVEL THEME
   ============================================ */

:root {
    --gold: #C9A96E;
    --gold-light: #E8D5A3;
    --gold-dark: #A0824A;
    --gold-glow: rgba(201, 169, 110, 0.15);
    --cream: #FAFAF8;
    --cream-dark: #F5F0E8;
    --white: #FFFFFF;
    --gray: #64748B;
    --gray-light: #94A3B8;
    --gray-soft: #CBD5E1;
    --dark: #1E293B;
    --dark-soft: #334155;
    --navy: #0F172A;
    --success: #22C55E;
    --danger: #EF4444;
    --shadow-gold: 0 4px 15px rgba(201, 169, 110, 0.3);
    --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.06);
    --radius-card: 16px;
}

/* ========== SEARCH SUMMARY BAR ========== */
.search-summary {
    background: linear-gradient(135deg, var(--cream), var(--white));
    border-bottom: 1px solid var(--gray-soft);
    padding: 1.2rem 0;
}

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--gray-soft);
    color: var(--dark-soft);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-card);
}

.search-chip i {
    color: var(--gold);
}

/* ========== FILTER SIDEBAR ========== */
.filter-sidebar {
    background: var(--white);
    border: 1px solid var(--gray-soft);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-shadow: var(--shadow-card);
}

.filter-title {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-soft);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-label {
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: block;
}

/* ========== RANGE SLIDER ========== */
.range-slider {
    position: relative;
    margin: 1rem 0;
}

.range-track {
    height: 6px;
    background: var(--gray-soft);
    border-radius: 3px;
    position: relative;
}

.range-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: width 0.3s ease;
}

.range-input {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    cursor: pointer;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(201, 169, 110, 0.3);
    border: 3px solid var(--white);
    transition: transform 0.2s ease;
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.range-current {
    color: var(--gold);
    font-weight: 700;
    font-size: 1rem;
}

/* ========== CUSTOM CHECKBOX ========== */
.lux-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.4rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lux-checkbox:hover {
    color: var(--gold);
}

.lux-checkbox input {
    display: none;
}

.check-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-soft);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: var(--white);
}

.lux-checkbox input:checked + .check-box {
    background: var(--gold);
    border-color: var(--gold);
}

.lux-checkbox input:checked + .check-box::after {
    content: '\F26B';
    font-family: 'bootstrap-icons';
    color: var(--white);
    font-size: 0.8rem;
    font-weight: bold;
}

.check-label {
    font-size: 0.9rem;
    color: var(--gray);
    flex: 1;
}

.lux-checkbox input:checked ~ .check-label {
    color: var(--dark);
    font-weight: 500;
}

.star-display {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

/* ========== CUSTOM SELECT ========== */
.lux-select {
    background: var(--white);
    border: 1px solid var(--gray-soft);
    color: var(--dark);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    width: 100%;
    font-size: 0.9rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394A3B8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lux-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

/* ========== RESULTS HEADER ========== */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-soft);
}

.results-count {
    color: var(--gray);
    font-size: 0.9rem;
}

.results-count span {
    color: var(--gold);
    font-weight: 700;
}

/* ========== HOTEL CARD ========== */
.hotel-card {
    background: var(--white);
    border: 1px solid var(--gray-soft);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all 0.4s ease;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
}

.hotel-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.hotel-image-wrap {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: var(--cream-dark);
}

.hotel-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hotel-card:hover .hotel-image-wrap img {
    transform: scale(1.05);
}

.hotel-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(15, 23, 42, 0.6) 100%);
}

.hotel-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gold);
    color: var(--white);
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hotel-fav {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.hotel-fav:hover,
.hotel-fav.active {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.hotel-content {
    padding: 1.5rem;
}

.hotel-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.hotel-location {
    color: var(--gray);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0.6rem;
}

.hotel-location i {
    color: var(--gold);
}

.hotel-stars {
    color: var(--gold);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

.hotel-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.highlight-tag {
    background: var(--cream);
    border: 1px solid var(--gray-soft);
    color: var(--dark-soft);
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.7rem;
}

.hotel-desc {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.hotel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid var(--gray-soft);
}

.hotel-price {
    text-align: left;
}

.price-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--gold);
    font-weight: 700;
    line-height: 1;
}

.price-unit {
    color: var(--gray);
    font-size: 0.75rem;
}

.hotel-actions {
    display: flex;
    gap: 0.6rem;
}

/* ========== FLIGHT CARD ========== */
.flight-card {
    background: var(--white);
    border: 1px solid var(--gray-soft);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-card);
}

.flight-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.flight-airline {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.airline-logo {
    width: 40px;
    height: 40px;
    background: var(--cream);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
}

.airline-name {
    font-weight: 600;
    color: var(--dark);
}

.airline-number {
    color: var(--gray);
    font-size: 0.8rem;
}

.flight-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-top: 1px solid var(--gray-soft);
    border-bottom: 1px solid var(--gray-soft);
}

.route-point {
    text-align: center;
}

.route-time {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.route-code {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
}

.route-name {
    color: var(--gray);
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.route-line {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

.route-line::before {
    content: '';
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.route-plane {
    color: var(--gold);
    font-size: 1.1rem;
    background: var(--white);
    padding: 0 0.5rem;
    z-index: 1;
    position: relative;
}

.route-duration {
    color: var(--gray);
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.flight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.flight-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-scheduled {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.status-delayed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ========== LOADING STATE ========== */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.lux-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-soft);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.2rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--gray);
    font-size: 1rem;
}

.loading-sub {
    color: var(--gray-light);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    width: 70px;
    height: 70px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
    color: var(--gold);
}

.empty-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.empty-desc {
    color: var(--gray);
    max-width: 400px;
    margin: 0 auto;
}

/* ========== IMAGE FALLBACK ========== */
.img-fallback {
    background: linear-gradient(135deg, var(--cream), var(--cream-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 2rem;
    height: 100%;
    width: 100%;
    gap: 0.5rem;
}

.img-fallback span {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

/* ========== MOBILE FILTER TOGGLE ========== */
.filter-toggle {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    box-shadow: 0 10px 30px rgba(201, 169, 110, 0.4);
    z-index: 999;
    border: none;
    cursor: pointer;
}

.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.filter-overlay.active {
    display: block;
}

/* ========== ANIMATIONS ========== */
.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        z-index: 1001;
        border-radius: 0;
        transition: left 0.4s ease;
        margin-top: 0;
        padding: 1.5rem;
    }
    .filter-sidebar.active {
        left: 0;
    }
    .filter-toggle {
        display: flex;
    }
    .search-chip {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .hotel-card .row {
        flex-direction: column;
    }
    .hotel-image-wrap {
        height: 180px;
    }
    .hotel-content {
        padding: 1rem;
    }
    .flight-route {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem 0;
    }
    .route-line {
        padding: 0;
        width: 100%;
    }
    .route-line::before {
        display: none;
    }
    .flight-footer {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    .price-value {
        font-size: 1.3rem;
    }
}