/* ===== ROOT ===== */
:root {
    --sky-navy: #0a2540;
    --sky-navy-2: #0d2b4e;
    --sky-blue: #0770e3;
    --sky-blue-hover: #0662c9;
    --sky-border: rgba(255, 255, 255, 0.35);
    --sky-text-muted: rgba(255, 255, 255, 0.7);
    --field-border: #dde3ea;
    --field-radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #1a1a2e;
    background: #f8fafc;
}

a {
    text-decoration: none;
}

/* ===== HEADER / HERO ===== */
.hero-section {
    background: linear-gradient(180deg, var(--sky-navy) 0%, var(--sky-navy-2) 100%);
    padding-bottom: 2.5rem;
}

.navbar-brand-custom {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar-brand-custom i {
    color: #ffb347;
}

.top-nav-link {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.top-nav-link:hover {
    color: #cfe3ff;
}

.icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: transparent;
}
.icon-circle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.service-pill {
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: transparent;
    transition: background 0.15s;
}
.service-pill.active {
    background: var(--sky-blue);
}
.service-pill:not(.active) {
    background: rgba(255, 255, 255, 0.08);
}
.service-pill:not(.active):hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-heading {
    color: #fff;
    font-weight: 700;
    font-size: 2.75rem;
    letter-spacing: -0.5px;
}

.trip-type-btn {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    padding: 8px 14px;
    font-size: 0.95rem;
}
.trip-type-btn:hover,
.trip-type-btn:focus {
    color: #fff;
}
.trip-type-btn .trip-label {
    color: #fff;
}

/* ===== SEARCH CARD (fields as separate cards with gaps, like reference) ===== */
.search-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.search-card-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    overflow: visible;
    position: relative;
}

/* --- From + To combined card (single box with internal divider) --- */
.fromto-group {
    flex: 2.1 1 0;
    min-width: 0;
    display: flex;
    background: #fff;
    border-radius: var(--field-radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: visible;
}
.fromto-group .search-field {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
.fromto-group .search-field.flex-from {
    border-right: 1px solid var(--field-border);
}
.fromto-group .search-field.active {
    border-radius: var(--field-radius);
    background: #fff;
    margin: -2px;
}

/* --- Each field is its own white rounded box with a gap around it --- */
.search-field {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 16px;
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
    background: #fff;
    border-radius: var(--field-radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s, background 0.15s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.search-field.active {
    border: 2px solid var(--sky-blue);
    border-radius: var(--field-radius);
    z-index: 20;
    background: #fff;
}
.search-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #4c5b6b;
    text-transform: none;
    margin-bottom: 2px;
    letter-spacing: 0.02em;
}
.search-field .field-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    background: transparent;
    padding: 0;
    padding-right: 22px;
    min-height: 28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-field .field-input::placeholder {
    color: #97a3b0;
    font-weight: 500;
}
.search-field .field-input[type="date"] {
    color: #1a1a2e;
    min-height: 28px;
}

/* Sizing to roughly match reference proportions */
.flex-from,
.flex-to {
    flex: 1 1 0;
}
.flex-depart,
.flex-return {
    flex: 0.85 1 0;
}
.flex-travellers {
    flex: 1.2 1 0;
}

/* Hide the return field entirely for one-way trips */
.search-field.hidden-return {
    display: none;
}

.field-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eef1f5;
    border: none;
    color: #4c5b6b;
    font-size: 0.65rem;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}
.field-clear-btn.show {
    display: flex;
}
.field-clear-btn:hover {
    background: #d5dce4;
}

/* --- Swap button --- */
.swap-btn {
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--field-border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #0a2540;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.15s, transform 0.15s;
    cursor: pointer;
    font-size: 0.8rem;
}
.swap-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.04);
}

/* --- Search button --- */
.search-btn-wrap {
    flex: 0 0 120px;
    min-width: 100px;
}
.search-btn {
    background: var(--sky-blue);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    border-radius: var(--field-radius);
    height: 100%;
    min-height: 62px;
    width: 100%;
    transition: background-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.search-btn:hover {
    background: var(--sky-blue-hover);
    color: #fff;
}
.search-btn.loading {
    opacity: 0.8;
    pointer-events: none;
}
.search-btn .spinner {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.search-btn.loading .spinner {
    display: inline-block;
}
.search-btn.loading .btn-text {
    display: none;
}
.search-btn.loading i {
    display: none;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Airport dropdown --- */
.airport-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: -2px;
    width: 420px;
    max-width: 90vw;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    z-index: 50;
    max-height: 340px;
    overflow-y: auto;
    padding: 8px 0;
    display: none;
}
.airport-dropdown.show {
    display: block;
}
.airport-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: background 0.1s;
}
.airport-option:hover,
.airport-option.highlighted {
    background: #f2f6fb;
}
.airport-option i {
    color: #55606c;
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.airport-option .airport-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1a1a2e;
}
.airport-option .airport-country {
    font-size: 0.8rem;
    color: #6b7684;
}
.airport-option mark {
    background: #d9e9fc;
    color: inherit;
    padding: 0 2px;
}

/* --- Travellers dropdown --- */
.travellers-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: -2px;
    width: 340px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    z-index: 50;
    padding: 20px;
    display: none;
    cursor: default;
}
.travellers-dropdown.show {
    display: block;
}
.travellers-dropdown.align-left {
    left: -2px;
    right: auto;
}
.travellers-dropdown .tv-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.travellers-dropdown .tv-sublabel {
    font-size: 0.8rem;
    color: #6b7684;
}
.tv-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c7cfd8;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    color: #1a1a2e;
    background: #fff;
}
.tv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
}
.tv-counter-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #eef1f5;
    color: #1a1a2e;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.tv-counter-btn:hover:not(:disabled) {
    background: #d5dce4;
}
.tv-counter-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.tv-count-value {
    font-weight: 700;
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}
.tv-apply-btn {
    width: 100%;
    background: var(--sky-blue);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 12px;
    margin-top: 22px;
    transition: background 0.15s;
}
.tv-apply-btn:hover {
    background: var(--sky-blue-hover);
    color: #fff;
}

/* --- Checkboxes --- */
.form-check-white .form-check-input {
    background-color: transparent;
    border-color: var(--sky-border);
}
.form-check-white .form-check-input:checked {
    background-color: var(--sky-blue);
    border-color: var(--sky-blue);
}
.form-check-white label {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Quick tiles --- */
.quick-tile {
    background: var(--sky-navy);
    color: #fff;
    border-radius: 10px;
    padding: 22px 20px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.15s, transform 0.15s;
}
.quick-tile:hover {
    background: #123a63;
    color: #fff;
    transform: translateY(-2px);
}
.quick-tile i {
    font-size: 1.3rem;
}

/* --- Explore banner --- */
.explore-banner {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 440px;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.05) 100%),
        url('https://images.unsplash.com/photo-1500534623283-312aade485b7?q=80&w=1887&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.explore-banner .eyebrow {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}
.explore-banner h2 {
    color: #fff;
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.05;
}
.btn-explore {
    background: #fff;
    color: #0a2540;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 22px;
    display: inline-block;
    margin-top: 20px;
    transition: background 0.15s;
}
.btn-explore:hover {
    background: #eef1f5;
    color: #0a2540;
}

/* --- FAQ --- */
.faq-heading {
    font-weight: 800;
    font-size: 2rem;
    color: #1a1a2e;
}
.faq-item {
    border-bottom: 1px solid #e4e8ed;
    padding: 18px 0;
}
.faq-item button {
    background: none;
    border: none;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a2e;
    padding: 0;
}
.faq-item button:hover {
    color: var(--sky-blue);
}
.faq-item .chevron {
    transition: transform 0.2s ease;
}
.faq-item button[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}
.faq-item .faq-body {
    font-size: 0.92rem;
    color: #55606c;
    padding-top: 12px;
}
.intl-sites-row {
    border-bottom: 1px solid #e4e8ed;
    padding: 18px 0;
}

/* --- Footer --- */
.site-footer {
    background: var(--sky-navy);
    color: #fff;
    padding-top: 50px;
}
.region-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    display: inline-block;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.region-pill:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
}
.footer-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    display: block;
    padding: 6px 0;
    font-weight: 500;
}
.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 40px;
    padding: 24px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== MOBILE SEARCH CARD ===== */
.mobile-search-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    position: relative;
}
.mobile-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e4e8ed;
    position: relative;
    cursor: pointer;
}
.mobile-search-card > .mobile-field:first-child {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}
.mobile-field.active,
.mobile-split-field.active {
    box-shadow: inset 0 0 0 2px var(--sky-blue);
    border-radius: 8px;
    background: #fff;
    z-index: 20;
}
.mobile-field-icon {
    color: #4c5b6b;
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.mobile-field-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    background: transparent;
}
.mobile-field-input::placeholder {
    color: #97a3b0;
    font-weight: 500;
}
.mobile-swap-btn {
    position: absolute;
    right: 16px;
    bottom: -19px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--field-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a2540;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    z-index: 25;
    cursor: pointer;
}
.mobile-split-row {
    display: flex;
    align-items: stretch;
}
.mobile-split-field {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    position: relative;
    cursor: pointer;
}
.mobile-split-row > .mobile-split-field:first-child {
    border-bottom-left-radius: 14px;
}
.mobile-split-row > .mobile-split-field:last-child {
    border-bottom-right-radius: 14px;
}
.mobile-split-divider {
    width: 1px;
    background: #e4e8ed;
    flex-shrink: 0;
}
.mobile-field-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-field-text.placeholder {
    color: #97a3b0;
    font-weight: 500;
}
.mobile-search-btn {
    background: var(--sky-blue);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    border-radius: 30px;
    padding: 14px;
    display: block;
    text-align: center;
}
.mobile-search-btn:hover {
    background: var(--sky-blue-hover);
    color: #fff;
}
.mobile-search-btn.loading {
    opacity: 0.8;
    pointer-events: none;
}

/* ===== REGIONAL SETTINGS MODAL ===== */
.region-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 35, 0.55);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.region-modal-backdrop.show {
    display: flex;
}
.region-modal {
    background: #fff;
    width: 380px;
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 22px 22px 24px;
    font-family: 'Poppins', sans-serif;
}
.region-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.region-modal-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}
.region-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    color: #1a1a2e;
    cursor: pointer;
    padding: 4px;
}
.region-field {
    margin-bottom: 18px;
}
.region-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.region-field-label i {
    color: #1a1a2e;
    width: 16px;
    text-align: center;
}
.region-hint {
    font-size: 0.82rem;
    color: #6b7684;
    margin: -2px 0 8px;
    line-height: 1.35;
}
.region-select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d5dce4;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    color: #1a1a2e;
    background: #fff;
    appearance: auto;
}
.region-select:focus {
    outline: none;
    border-color: var(--sky-blue);
}
.region-select.focus-active {
    border-color: var(--sky-blue);
}
.region-save-btn {
    width: 100%;
    background: var(--sky-navy);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 13px;
    margin-top: 4px;
    transition: background 0.15s;
}
.region-save-btn:hover {
    background: #123a63;
    color: #fff;
}
.region-cancel-btn {
    width: 100%;
    background: #e9edf1;
    color: #1a1a2e;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 13px;
    margin-top: 10px;
    transition: background 0.15s;
}
.region-cancel-btn:hover {
    background: #dbe1e8;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .mobile-only { display: none !important; }
}
@media (max-width: 767.98px) {
    .desktop-only { display: none !important; }
    .hero-heading {
        font-size: 1.75rem;
    }
    .trip-type-btn {
        border: 1.5px solid rgba(255, 255, 255, 0.5);
        border-radius: 8px;
        padding: 8px 14px;
    }
    .airport-dropdown {
        width: 100%;
        max-width: 100%;
        left: 0;
    }
    .travellers-dropdown {
        width: calc(100vw - 56px);
        max-width: 320px;
    }
    .travellers-dropdown.align-left {
        left: -2px;
    }
    #travellersDropdownM {
        right: -2px;
        left: auto;
    }
    .explore-banner h2 {
        font-size: 1.9rem;
    }
    .explore-banner {
        min-height: 300px;
    }
    .service-pill {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .search-field label {
        font-size: 0.65rem;
    }
}

/* ===== TABLET (search bar stays on one line, scales down) ===== */
@media (max-width: 1199.98px) and (min-width: 768px) {
    .search-card-row {
        gap: 6px;
    }
    .search-field {
        padding: 8px 10px;
    }
    .search-field label {
        font-size: 0.62rem;
        margin-bottom: 1px;
    }
    .search-field .field-input {
        font-size: 0.8rem;
        padding-right: 16px;
    }
    .field-clear-btn {
        right: 8px;
        width: 16px;
        height: 16px;
        font-size: 0.55rem;
    }
    .swap-btn {
        width: 26px;
        height: 26px;
        right: -13px;
        font-size: 0.7rem;
    }
    .search-btn-wrap {
        flex: 0 0 84px;
        min-width: 72px;
    }
    .search-btn {
        font-size: 0.85rem;
        min-height: 56px;
        gap: 4px;
    }
    .search-btn i {
        font-size: 0.85rem;
    }
    .hero-heading {
        font-size: 2.1rem;
    }
}

@media (max-width: 900px) and (min-width: 768px) {
    .search-card-row {
        gap: 4px;
    }
    .search-field {
        padding: 6px 8px;
    }
    .search-field label {
        font-size: 0.56rem;
    }
    .search-field .field-input {
        font-size: 0.7rem;
        padding-right: 12px;
    }
    .search-btn-wrap {
        flex: 0 0 64px;
        min-width: 56px;
    }
    .search-btn .btn-text {
        display: none;
    }
    .search-btn i {
        display: inline-block;
    }
    .swap-btn {
        width: 22px;
        height: 22px;
        right: -11px;
    }
}
