/* ══════════════════════════════════════════════════════════════════════
   TOURSAPP B2C PUBLIC PORTAL & BOOKING ENGINE STYLESHEET
   Global Typography Standards, Design Tokens, Forms & Components
══════════════════════════════════════════════════════════════════════ */

/* ── Global Design Tokens ───────────────────────────────────────────── */
:root {
    --radius-input: 12px;
    --radius-btn: 12px;
    --radius-card: 16px;
    --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Typography Standards (Unified Plus Jakarta Sans) ───────────────── */
body, html, h1, h2, h3, h4, h5, h6, button, input, select, textarea, .font-sans, .font-display {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.015em;
}

.font-display {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif !important;
}

.font-mono {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif !important;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}
.text-2xs { font-size: 0.6875rem !important; line-height: 1rem !important; }
.text-3xs { font-size: 0.625rem !important; line-height: 0.875rem !important; }
.font-700 { font-weight: 700 !important; }
.font-800, .font-900, .font-extrabold, .font-black { font-weight: 700 !important; }
.tabular-nums { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ── Material Symbols & Icons ───────────────────────────────────────── */
.ms,
.material-symbols-outlined,
.material-symbols-rounded,
.material-icons {
    font-family: 'Material Symbols Rounded', 'Material Symbols Outlined', sans-serif !important;
    font-weight: 400;
    font-style: normal;
    font-size: inherit;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

/* ── Global Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── Form Inputs & Elements Baseline ────────────────────────────────── */
[type='text'], input:where(:not([type])), [type='email'], [type='url'], [type='password'],
[type='number'], [type='date'], [type='datetime-local'], [type='month'], [type='search'],
[type='tel'], [type='time'], [type='week'], [multiple], textarea, select, .input-field {
    -webkit-appearance: none;
    appearance: none;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-input);
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem; /* 13px */
    font-weight: 500;
    line-height: 1.25rem;
    color: #1e293b;
    outline: none;
    transition: var(--transition-smooth);
}

[type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus,
[type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus,
[type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus,
[type='week']:focus, [multiple]:focus, textarea:focus, select:focus, .input-field:focus {
    background-color: #ffffff;
    border-color: var(--brand-500, #1d6ae5);
    box-shadow: 0 0 0 3px var(--brand-100, rgba(29, 106, 229, 0.14));
}

/* ── Refined Form Label Standard ────────────────────────────────────── */
.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem; /* 12px */
    font-weight: 600;
    color: #334155; /* slate-700 */
    margin-bottom: 0.375rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.form-label-tag {
    font-size: 0.6875rem; /* 11px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.input-field {
    height: 46px;
}

/* ── Corporate Select Element with Custom Chevron Arrow ──────────────── */
select, select.input-field {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.2' stroke='%234e4f52'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
    padding-right: 38px !important;
    cursor: pointer;
}
select:focus, select.input-field:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.5' stroke='%231D6AE5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") !important;
}
select option {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
}

/* ── Textarea Styling ───────────────────────────────────────────────── */
textarea, textarea.input-field {
    height: auto !important;
    min-height: 100px !important;
    padding: 10px 12px !important;
    line-height: 1.5 !important;
    resize: vertical !important;
}

/* ── Input Group with Integrated Icon ───────────────────────────────── */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.input-group .input-icon {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 2;
}
.input-group:focus-within .input-icon {
    color: #1D6AE5;
}
.input-group input, .input-group .input-field {
    padding-left: 42px !important;
}
.input-group select, .input-group select.input-field {
    padding-left: 42px !important;
    padding-right: 38px !important;
}

/* ── OpenStreetMap (Nominatim) Suggestions Dropdown ──────────────────── */
.osm-suggestions-box {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 5000;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    max-height: 280px;
    overflow-y: auto;
    display: none;
}

.osm-suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

.osm-suggestion-item:last-child {
    border-bottom: none;
}

.osm-suggestion-item:hover, .osm-suggestion-item.active {
    background-color: #fff7ed; /* orange-50 */
}

.osm-sugg-icon {
    font-size: 1.125rem;
    color: #ea580c;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.osm-sugg-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.osm-sugg-sub {
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 0.125rem;
    line-height: 1.2;
}

/* ── Stepper Controls (+/-) ─────────────────────────────────────────── */
.stepper-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    color: #0F172A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.stepper-btn:hover {
    background: #1D6AE5;
    color: #FFFFFF;
    border-color: #1D6AE5;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1D6AE5;
    color: #fff;
    border-radius: var(--radius-btn);
    padding: 10px 20px;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(29,106,229,0.20);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.btn-primary:hover {
    background: #1558CC;
    box-shadow: 0 8px 24px rgba(29,106,229,0.32);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #0F172A;
    border: 1.5px solid #E2E8F0;
    border-radius: var(--radius-btn);
    padding: 9px 18px;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
}
.btn-secondary:hover {
    background: #F5F7FA;
    border-color: #CBD5E1;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #475569;
    border-radius: var(--radius-btn);
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    border: none;
}
.btn-ghost:hover {
    background: #F5F7FA;
    color: #0F172A;
}

/* ── Cards & Containers ─────────────────────────────────────────────── */
.card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-card);
    box-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 6px 20px rgba(15,23,42,0.04);
    transition: var(--transition-smooth);
}
.card:hover {
    box-shadow: 0 2px 8px rgba(15,23,42,0.08), 0 16px 40px rgba(15,23,42,0.08);
}
.card-lg {
    border-radius: 20px;
}

/* ── Badge / Pill ───────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
}
.badge-brand { background: #EEF4FF; color: #1D6AE5; border: 1px solid #BCD0FD; }
.badge-success { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.badge-warning { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.badge-muted { background: #F1F5F9; color: #64748B; border: 1px solid #E2E8F0; }

/* ── Section Heading ────────────────────────────────────────────────── */
.section-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #1D6AE5; }
.section-title { font-size: 1.75rem; font-weight: 800; color: #0F172A; font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.2; }
.section-subtitle { font-size: 0.875rem; color: #64748B; font-weight: 400; line-height: 1.6; }

/* ── Dropdown animation & hover bridge ──────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
    opacity: 0; pointer-events: none; transform: translateY(6px);
    transition: opacity 0.2s cubic-bezier(0.4,0,0.2,1), transform 0.2s cubic-bezier(0.4,0,0.2,1);
}
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
    z-index: 10;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu {
    opacity: 1; pointer-events: auto; transform: translateY(0);
}

/* ── Mobile Menu & Accordion ────────────────────────────────────────── */
#mobile-menu.open { display: block !important; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-content { max-height: 300px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.25s ease; display: inline-block; }
.step-line { flex: 1; height: 2px; background: #E2E8F0; }
.step-line.done { background: #1D6AE5; }

/* ── Ultra-Smooth Luxury Page Transitions ───────────────────────────── */
#b2c-top-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 99999;
    pointer-events: none;
}

#b2c-top-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f59e0b 0%, #e06d44 50%, #f97316 100%);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
    transition: width 0.35s cubic-bezier(0.1, 0.8, 0.2, 1), opacity 0.25s ease;
}

.page-transition-active {
    opacity: 0.85;
    /* transform removed to preserve position:fixed inside main */
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-fade-in {
    animation: luxuryPageFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1023px) {
    #transfers-filter-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        width: 86vw !important;
        max-width: 340px !important;
        z-index: 2147483640 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
    }
    #transfers-filter-sidebar > div:first-child {
        margin-top: 0 !important;
        padding-top: 1rem !important;
    }
    body.overflow-hidden #ta-wab-launcher {
        display: none !important;
    }
    #mobile-filter-backdrop {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        z-index: 2147483630 !important;
    }
    #transfers-filter-sidebar > div:first-child {
        margin-top: 0 !important;
        padding-top: 1rem !important;
    }
    body.overflow-hidden #ta-wab-launcher {
        display: none !important;
    }
}

@keyframes luxuryPageFadeIn {
    0% {
        opacity: 0.85;
        /* transform removed */
    }
    100% {
        opacity: 1;
        /* transform: none ensures fixed children stay viewport-fixed */
    }
}
html, body {
    overflow-x: clip;
    max-width: 100vw;
}
#b2c-main-content main {
    min-width: 0 !important;
    max-width: 100% !important;
}
#b2c-main-content main {
    min-width: 0;
}

/* Compact Popular Location Cards (SEO Size Optimization) */
.pop-r-card {
    border-radius: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #f1f5f9;
    padding: 0.875rem 1.25rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pop-r-card:hover {
    background-color: var(--brand-500, #1d6ae5);
    border-color: var(--brand-500, #1d6ae5);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
.pop-r-info { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; flex: 1 1 0%; }
.pop-r-row { display: flex; align-items: flex-start; gap: 0.5rem; min-width: 0; }
.pop-r-ic1 { font-size: 15px; color: var(--brand-500, #1d6ae5); flex-shrink: 0; margin-top: 2px; }
.pop-r-ic2 { font-size: 15px; color: #94a3b8; flex-shrink: 0; margin-top: 2px; }
.pop-r-from { font-size: 13px; font-weight: 700; color: #1e293b; line-height: 1.35; overflow-wrap: break-word; }
.pop-r-to { font-size: 11.5px; font-weight: 500; color: #64748b; line-height: 1.35; overflow-wrap: break-word; }
.pop-r-right { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; padding-left: 0.5rem; border-left: 1px solid rgba(226, 232, 240, 0.7); }
.pop-r-price-val { font-size: 14px; font-weight: 800; color: #0f172a; line-height: 1.2; text-align: right; }
.pop-r-price-sub { font-size: 10px; color: #64748b; text-align: right; }
.pop-r-arrow { font-size: 18px; color: var(--brand-500, #1d6ae5); }
.pop-r-card:hover .pop-r-from,
.pop-r-card:hover .pop-r-price-val,
.pop-r-card:hover .pop-r-ic1,
.pop-r-card:hover .pop-r-arrow { color: #ffffff !important; }
.pop-r-card:hover .pop-r-to,
.pop-r-card:hover .pop-r-price-sub,
.pop-r-card:hover .pop-r-ic2 { color: rgba(255, 255, 255, 0.9) !important; }
.pop-r-card:hover .pop-r-right { border-left-color: rgba(255, 255, 255, 0.25); }

.ist-seo-card {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background-color: rgba(248, 250, 252, 0.65);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    transition: all 0.2s ease;
}
.ist-seo-card:hover {
    background-color: #ffffff;
    border-color: var(--brand-400, #60a5fa);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.ist-seo-btn {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    background-color: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ist-seo-btn:hover {
    background-color: var(--brand-600, #1d6ae5);
    border-color: var(--brand-600, #1d6ae5);
    color: #ffffff;
}

