/* ==========================================================================
   Agency Home Page Stylesheet — Professional OTA / B2B Standard
   Route: /agency/home
   ========================================================================== */

/* ── Hero Section ────────────────────────────────────────────────────────── */
.agency-hero {
    background: linear-gradient(180deg, rgba(8, 15, 30, 0.82) 0%, rgba(11, 24, 48, 0.94) 100%),
                url('../images/bg/13.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    /* Ample padding to clear transparent navbar (~90px height) without overlapping */
    padding-top: 145px;
    padding-bottom: 95px;
    color: #ffffff;
}

.agency-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.agency-hero-content {
    position: relative;
    z-index: 5;
}

.agency-hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #e0f2fe;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(12px);
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.agency-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.agency-hero-desc {
    color: rgba(226, 232, 240, 0.9);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.5;
}

/* ── Search Card Container ───────────────────────────────────────────────── */
.search-card-container {
    max-width: 1060px;
    margin: -60px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 20;
}

.search-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.18), 0 8px 24px -6px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.95);
    padding: 24px 28px 24px;
    position: relative;
    transition: box-shadow 0.3s ease;
}

/* Search Header Bar inside Card */
.search-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.search-pill-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 6px 14px;
    border-radius: 30px;
}

.search-helper-notice {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Route Segment Input Boxes (Professional OTA Layout) ─────────────────── */
.route-inputs-row {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.route-input-box {
    flex: 1;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 16px 8px;
    position: relative;
    transition: all 0.2s ease;
    cursor: text;
}

.route-input-box:focus-within {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.route-box-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.route-box-input-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.route-iata-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #0f172a;
    text-transform: uppercase;
    outline: none;
    line-height: 1.2;
}

.route-iata-input::placeholder {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
    color: #94a3b8;
}

.route-box-subtext {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
    font-weight: 500;
}

/* Route Swap Circle Button */
.btn-route-swap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: all 0.25s ease;
    flex-shrink: 0;
    font-size: 16px;
    z-index: 5;
}

.btn-route-swap:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: rotate(180deg) scale(1.08);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

/* Actions Box */
.route-actions-col {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-search-main {
    height: 60px;
    min-width: 145px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.38);
    transition: all 0.22s ease;
    cursor: pointer;
    padding: 0 24px;
}

.btn-search-main i {
    color: #ffffff !important;
    font-size: 16px;
}

.btn-search-main:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.48);
}

.btn-search-main:active {
    transform: translateY(0);
}

.btn-clear-main {
    height: 60px;
    padding: 0 18px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    border-radius: 14px;
    color: #64748b !important;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-clear-main:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a !important;
}

/* ── Departure Date Calendar Strip ───────────────────────────────────────── */
.date-filter-section {
    border-top: 1px solid #f1f5f9;
    margin-top: 20px;
    padding-top: 16px;
}

.date-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.date-filter-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #64748b;
    margin: 0;
}

.date-filter-reset {
    font-size: 11.5px;
    font-weight: 700;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 3px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.date-filter-reset:hover {
    background: #0284c7;
    color: #ffffff;
}

/* Date Strip Scroll Container */
.date-strip-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.date-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 10;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.date-nav-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: scale(1.08);
}

.date-nav-btn.prev {
    left: -14px;
}

.date-nav-btn.next {
    right: -14px;
}

.date-strip-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px;
    width: 100%;
    /* Completely hide native scrollbar on ALL browsers */
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.date-strip-scroll::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Date Pill Item */
.week-chip {
    flex: 0 0 auto;
    min-width: 86px;
    padding: 10px 10px 8px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    text-align: center;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
    position: relative;
}

.week-chip-day {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin-bottom: 2px;
}

.week-chip-date {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.week-chip:hover:not(.disabled) {
    border-color: #38bdf8;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.15);
}

.week-chip.active-chip {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4) !important;
    transform: translateY(-2px);
}

.week-chip.active-chip .week-chip-day {
    color: rgba(255, 255, 255, 0.85);
}

.week-chip.active-chip .week-chip-date {
    color: #ffffff;
}

.week-chip.disabled {
    opacity: 0.4;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed;
    pointer-events: none;
}

.week-chip.disabled .week-chip-day,
.week-chip.disabled .week-chip-date {
    color: #94a3b8;
}

/* ── Results Section ─────────────────────────────────────────────────────── */
.agency-results-section {
    padding-top: 3.5rem;
    padding-bottom: 4.5rem;
    background-color: #f8fafc;
}

.results-header-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
}

.count-badge {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* Destination Cards */
.dest-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dest-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 38px rgba(2, 132, 199, 0.18);
    border-color: #38bdf8;
}

.dest-card-media {
    position: relative;
    height: 180px;
    overflow: hidden;
    background-color: #0f172a;
}

.dest-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dest-card:hover .dest-card-media img {
    transform: scale(1.08);
}

.dest-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0) 45%, rgba(15, 23, 42, 0.75) 100%);
    pointer-events: none;
}

.route-badge {
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    border-radius: 30px;
    padding: 5px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.flights-count-badge {
    background: #0284c7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 30px;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.dest-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.route-codes {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.route-arrow {
    color: #0284c7;
    font-size: 15px;
}

.date-chips-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.date-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 6px;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.date-chip-more {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.card-footer-price {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.price-tag {
    font-size: 19px;
    font-weight: 800;
    color: #0284c7;
    letter-spacing: -0.4px;
}

/* ── Empty & No-Match States ─────────────────────────────────────────────── */
.empty-state-box {
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px dashed #cbd5e1;
    padding: 56px 24px;
    text-align: center;
}

.empty-state-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f0f9ff;
    color: #0284c7;
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

/* ── Dark Mode Compatibility ─────────────────────────────────────────────── */
[data-bs-theme="dark"] .search-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.55);
}

[data-bs-theme="dark"] .search-top-bar {
    border-color: #334155;
}

[data-bs-theme="dark"] .search-pill-label {
    background: rgba(2, 132, 199, 0.18);
    border-color: rgba(2, 132, 199, 0.4);
    color: #38bdf8;
}

[data-bs-theme="dark"] .search-helper-notice {
    color: #94a3b8;
}

[data-bs-theme="dark"] .route-input-box {
    background: #0f172a;
    border-color: #334155;
}

[data-bs-theme="dark"] .route-input-box:focus-within {
    background: #1e293b;
    border-color: #38bdf8;
}

[data-bs-theme="dark"] .route-box-label {
    color: #94a3b8;
}

[data-bs-theme="dark"] .route-iata-input {
    color: #f8fafc;
}

[data-bs-theme="dark"] .btn-route-swap {
    background: #0f172a;
    border-color: #334155;
    color: #38bdf8;
}

[data-bs-theme="dark"] .btn-route-swap:hover {
    background: #38bdf8;
    color: #0f172a;
}

[data-bs-theme="dark"] .btn-clear-main {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .btn-clear-main:hover {
    background: #1e293b;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .date-filter-section,
[data-bs-theme="dark"] .card-footer-price {
    border-color: #334155;
}

[data-bs-theme="dark"] .date-filter-title {
    color: #94a3b8;
}

[data-bs-theme="dark"] .date-nav-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

[data-bs-theme="dark"] .week-chip {
    background: #0f172a;
    border-color: #334155;
}

[data-bs-theme="dark"] .week-chip-day {
    color: #94a3b8;
}

[data-bs-theme="dark"] .week-chip-date {
    color: #f8fafc;
}

[data-bs-theme="dark"] .week-chip:hover:not(.disabled) {
    background: #1e293b;
    border-color: #38bdf8;
}

[data-bs-theme="dark"] .agency-results-section {
    background-color: #0b1120;
}

[data-bs-theme="dark"] .results-header-title {
    color: #f8fafc;
}

[data-bs-theme="dark"] .dest-card {
    background: #1e293b;
    border-color: #334155;
}

[data-bs-theme="dark"] .route-codes {
    color: #f8fafc;
}

[data-bs-theme="dark"] .date-chip {
    background: rgba(2, 132, 199, 0.15);
    border-color: rgba(2, 132, 199, 0.35);
    color: #38bdf8;
}

[data-bs-theme="dark"] .date-chip-more {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

[data-bs-theme="dark"] .empty-state-box {
    background: #1e293b;
    border-color: #334155;
}

/* ── Responsive Refinements ──────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .route-inputs-row {
        flex-wrap: wrap;
    }

    .route-input-box {
        flex: 1 1 calc(50% - 30px);
    }

    .route-actions-col {
        width: 100%;
        margin-top: 6px;
    }

    .btn-search-main {
        flex: 1;
    }

    .btn-clear-main {
        flex: 0 0 100px;
    }
}

@media (max-width: 767.98px) {
    .agency-hero {
        padding-top: 110px;
        padding-bottom: 75px;
    }

    .search-card-container {
        margin-top: -45px;
    }

    .search-card {
        padding: 18px 16px 16px;
        border-radius: 16px;
    }

    .route-inputs-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .route-input-box {
        width: 100%;
    }

    .btn-route-swap {
        margin: -4px auto;
        transform: rotate(90deg);
    }

    .btn-route-swap:hover {
        transform: rotate(270deg) scale(1.08);
    }

    .route-actions-col {
        flex-direction: column;
    }

    .btn-search-main,
    .btn-clear-main {
        width: 100%;
        height: 50px;
    }
}
