/* ============================================================
   DOST PAKISTAN TRAVEL — Main Stylesheet
   Structure:
     1. Variables & Reset
     2. Typography
     3. Layout Containers
     4. Ad Strip
     5. Header (Grid-based)
     6. Language Switcher
     7. Hamburger
     8. Mobile Menu Drawer
     9. Autocomplete Dropdown
    10. Homepage Content
    11. Buttons
    12. Footer
    13. Responsive Breakpoints
    14. RTL Overrides
   ============================================================ */

/* ============================================================
   1. VARIABLES & RESET
   ============================================================ */
:root {
    --green: #0a7c3f;
    --green-dark: #086431;
    --green-light: #eef7f0;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f4f7fb;
    --white: #ffffff;
    --amber: #ffb300;
    --amber-bg: #fff8e1;
    --amber-border: #ffe082;
    --amber-text: #7a4b00;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 2px 12px rgba(15, 23, 42, .06);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12);
    --header-h: 72px;
    --container: 1240px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */
a {
    color: var(--green);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    color: var(--ink);
    margin: 0 0 12px;
    line-height: 1.25;
    font-weight: 700;
}
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 15px; }

p { margin: 0 0 12px; }

/* Per-language font stacks */
body.lang-ur,
body.lang-pa,
body.lang-sd,
body.lang-ps {
    font-family: 'Noto Nastaliq Urdu', 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 2;
}
body.lang-zh {
    font-family: 'Noto Sans SC', 'Inter', system-ui, sans-serif;
}

/* ============================================================
   3. LAYOUT CONTAINERS
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

main.page {
    padding: 32px 0 60px;
    min-height: 50vh;
}

/* ============================================================
   4. AD STRIP (top of every page)
   ============================================================ */
.ad-strip {
    background: var(--amber-bg);
    border-bottom: 1px solid var(--amber-border);
    font-size: 13px;
    padding: 7px 0;
}
.ad-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ad-label {
    background: var(--amber);
    color: #4a3000;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    line-height: 1.6;
}
.ad-slot a {
    color: var(--amber-text);
    font-weight: 500;
}

/* ============================================================
   5. HEADER — GRID-BASED LAYOUT
   Desktop: [Logo] [Ad] [Search (flexible)] [WhatsApp + Lang + Burger]
   ============================================================ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.header-inner {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: var(--header-h);
    padding-top: 10px;
    padding-bottom: 10px;
}

/* --- Logo (column 1) --- */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    grid-column: 1;
    min-width: 0;
}
.brand:hover { text-decoration: none; }

.brand .logo {
    height: 44px;
    width: auto;
    flex-shrink: 0;
}
.brand-text {
    line-height: 1.15;
    min-width: 0;
    white-space: nowrap;
}
.brand-text strong {
    display: block;
    font-size: 15px;
    color: var(--ink);
    font-weight: 700;
}
.brand-text small {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .3px;
}

/* --- Ad beside logo (column 2) --- */
.header-ad {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--amber-bg);
    border: 1px dashed var(--amber-border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    grid-column: 2;
}
.header-ad a {
    color: var(--amber-text);
    font-weight: 500;
}

/* ============================================================
   HEADER SEARCH — Google CSE trigger box
   ============================================================ */
.header-search {
    grid-column: 3;
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 4px 4px 16px;
    min-width: 0;
    transition: border-color .2s, box-shadow .2s;
}
.header-search:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(10, 124, 63, .08);
}
.header-search input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 9px 6px;
    font-size: 14px;
    outline: none;
    min-width: 0;
    color: var(--ink);
}
.header-search input::placeholder {
    color: #94a3b8;
}
.header-search button {
    border: 0;
    background: var(--green);
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
}
.header-search button:hover {
    background: var(--green-dark);
}
.header-search button svg {
    display: block;
}

/* Mobile menu search (updated styles) */
.mobile-search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 8px;
}
.mobile-search input {
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: border-color .2s;
}
.mobile-search input:focus {
    border-color: var(--green);
}
.mobile-search button {
    background: var(--green);
    color: #fff;
    border: 0;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
}
.mobile-search button:hover {
    background: var(--green-dark);
}

/* --- Right actions (column 4) --- */
.header-actions {
    grid-column: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* --- WhatsApp button --- */
.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff !important;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background .2s;
    line-height: 1;
}
.wa-btn:hover { background: #1eb457; }
.wa-btn svg { flex-shrink: 0; }

.wa-btn-large {
    padding: 14px 20px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
    margin: 16px 0;
}

/* ============================================================
   6. LANGUAGE SWITCHER
   ============================================================ */
.lang-switch {
    position: relative;
    flex-shrink: 0;
}
.lang-btn {
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    line-height: 1.2;
    transition: background .2s, border-color .2s;
}
.lang-btn:hover {
    background: var(--green-light);
    border-color: var(--green);
}
.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 6px;
    margin: 0;
    min-width: 190px;
    display: none;
    z-index: 200;
}
.lang-menu.open { display: block; }
.lang-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 7px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    transition: background .15s;
    white-space: nowrap;
}
.lang-menu a:hover {
    background: var(--green-light);
    color: var(--green);
    text-decoration: none;
}
.lang-menu a.active {
    background: var(--green);
    color: #fff;
}

/* ============================================================
   7. HAMBURGER — turns into X when active
   ============================================================ */
.hamburger {
    background: none;
    border: 0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
    flex-shrink: 0;
    border-radius: 8px;
    transition: background .2s;
}
.hamburger:hover {
    background: var(--bg);
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   8. MOBILE MENU DRAWER
   ============================================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    z-index: 200;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(15, 23, 42, .15);
    padding-bottom: 40px;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    font-size: 16px;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 2;
}
.close-menu {
    background: none;
    border: 0;
    font-size: 22px;
    cursor: pointer;
    color: var(--muted);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-menu:hover {
    background: var(--bg);
    color: var(--ink);
}

.mobile-search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 8px;
}
.mobile-search .ac-wrap {
    position: relative;
}
.mobile-search input {
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: border-color .2s;
}
.mobile-search input:focus {
    border-color: var(--green);
}
.mobile-search button {
    background: var(--green);
    color: #fff;
    border: 0;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
}
.mobile-search button:hover {
    background: var(--green-dark);
}

/* Menu list */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu-list > li {
    border-bottom: 1px solid var(--line);
}
.menu-list a,
.sub-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 15px;
    color: var(--ink);
    text-decoration: none;
    width: 100%;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: background .15s;
}
.menu-list a:hover,
.sub-toggle:hover {
    background: var(--bg);
    text-decoration: none;
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: #fafbfd;
}
.has-sub.open .submenu {
    max-height: 600px;
}
.submenu a {
    padding: 11px 20px 11px 40px;
    font-size: 14px;
    color: var(--ink-soft);
    font-weight: 400;
}
.chev {
    transition: transform .25s ease;
    font-weight: 700;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
}
.has-sub.open .chev {
    transform: rotate(90deg);
    color: var(--green);
}

/* Language section in menu */
.menu-lang {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}
.menu-lang strong {
    font-size: 13px;
    color: var(--muted);
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.menu-lang-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.menu-lang-list a {
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--bg);
    font-size: 13px;
    color: var(--ink);
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.menu-lang-list a:hover {
    background: var(--green-light);
    color: var(--green);
    text-decoration: none;
}
.menu-lang-list a.active {
    background: var(--green);
    color: #fff;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
    z-index: 150;
}
.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   9. AUTOCOMPLETE DROPDOWN
   ============================================================ */
.ac-wrap {
    position: relative;
}
.ac-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 300;
    max-height: 320px;
    overflow-y: auto;
    min-width: 250px;
}
.ac-item {
    padding: 11px 14px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background .12s;
}
.ac-item:hover {
    background: var(--green-light);
}
.ac-item strong {
    font-weight: 500;
    color: var(--ink);
}
.ac-item span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ============================================================
   10. HOMEPAGE CONTENT
   ============================================================ */
.hero-search {
    margin-bottom: 40px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}

/* Trip type tabs */
.trip-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.trip-tabs input {
    display: none;
}
.trip-tabs label {
    padding: 10px 20px;
    border-radius: 999px;
    background: #eef2f7;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
    user-select: none;
}
.trip-tabs label:hover {
    background: #e0e7ef;
}
.trip-tabs input:checked + label {
    background: var(--green);
    color: #fff;
    box-shadow: 0 4px 12px rgba(10, 124, 63, .25);
}

/* Form rows */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.row label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}
.row input,
.row select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    color: var(--ink);
}
.row input:focus,
.row select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(10, 124, 63, .08);
}
.row input::placeholder {
    color: #94a3b8;
}

/* Primary CTA */
button.primary {
    background: var(--green);
    color: #fff;
    border: 0;
    padding: 15px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s, transform .05s;
    margin-top: 6px;
}
button.primary:hover {
    background: var(--green-dark);
}
button.primary:active {
    transform: scale(.99);
}


.btn-wa {
    background: #25d366 !important;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}
.btn-wa:hover {
    background: #1eb457 !important;
    text-decoration: none;
}

/* Stack price and buttons nicely on mobile */
.flight-price .btn {
    white-space: nowrap;
}


/* Popular routes */
.popular h2 {
    font-size: 20px;
    margin: 0 0 18px;
}
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}
.pop-card {
    background: #fff;
    padding: 18px;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--line);
    transition: all .2s;
    display: block;
}
.pop-card:hover {
    border-color: var(--green);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    text-decoration: none;
}
.pop-card .route {
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
}
.pop-card .price {
    color: var(--green);
    font-weight: 700;
    margin-top: 6px;
    font-size: 16px;
}
.pop-card .meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

/* ============================================================
   11. FLIGHT RESULTS (used in search.php)
   ============================================================ */
.notice {
    background: #fff5e5;
    border: 1px solid #ffd699;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    color: #7a4b00;
    font-size: 14px;
}

.flight {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 18px;
    align-items: center;
    box-shadow: var(--shadow);
    transition: box-shadow .2s;
}
.flight:hover {
    box-shadow: var(--shadow-lg);
}
.flight img {
    max-width: 48px;
    height: auto;
}
.flight .airline {
    font-weight: 600;
    font-size: 15px;
}
.flight .times {
    font-size: 15px;
    margin: 6px 0;
    font-weight: 500;
}
.flight .meta {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}
.flight .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--green);
    text-align: right;
    line-height: 1.2;
}
.flight .price small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
    margin-top: 2px;
}
.flight .btn {
    display: inline-block;
    margin-top: 8px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s;
}
.flight .btn:hover {
    background: var(--green-dark);
    text-decoration: none;
}
.flight .freshness {
    grid-column: 1 / -1;
    font-size: 13px;
    color: var(--muted);
    text-align: left;
}
.empty {
    background: #fff;
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--muted);
    font-size: 15px;
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 60px;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding: 52px 0 32px;
}
.footer-col h4 {
    color: #fff;
    font-size: 13px;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.footer-brand img {
    height: 40px;
    width: auto;
}
.footer-brand strong {
    color: #fff;
    font-size: 16px;
}
.footer-col p {
    line-height: 1.7;
    color: #94a3b8;
    font-size: 13px;
    margin: 0 0 14px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li {
    padding: 5px 0;
}
.footer-col a {
    color: #cbd5e1;
    font-size: 13px;
    transition: color .15s;
}
.footer-col a:hover {
    color: #fff;
    text-decoration: none;
}

.license-badge {
    background: rgba(10, 124, 63, .18);
    border: 1px solid rgba(110, 231, 168, .3);
    color: #6ee7a8;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin: 14px 0;
    display: inline-block;
    font-weight: 500;
}

.footer-contact {
    font-size: 13px;
    line-height: 2;
    color: #94a3b8;
}
.footer-contact a {
    color: #cbd5e1;
}

.footer-langs a.active {
    color: #6ee7a8;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 18px 0;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}




/* ============================================================
   MULTI-CITY ROWS + ADD-ROW BUTTON
   ============================================================ */
#panelMulti {
    margin-bottom: 6px;
}

.multi-row {
    position: relative;
    align-items: end;
    animation: fadeSlideIn .25s ease;
}

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

.multi-row-end {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

.remove-row-btn {
    background: #fee2e2;
    color: #991b1b;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1px;
    transition: background .2s;
    flex-shrink: 0;
}
.remove-row-btn:hover {
    background: #fecaca;
}

.add-row-btn {
    background: transparent;
    color: var(--green);
    border: 1.5px dashed var(--green);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 16px;
    transition: all .2s;
    width: 100%;
    justify-content: center;
}
.add-row-btn:hover {
    background: var(--green-light);
}
.add-row-btn span {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

/* Mobile adjustments */
@media (max-width: 720px) {
    .multi-row-end {
        grid-template-columns: 1fr auto;
    }
}

/* ============================================================
   13. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet — hide ad beside logo, tighten header */
@media (max-width: 1100px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
    }
    .header-ad {
        display: none;
    }
    .brand { grid-column: 1; }
    .header-search { grid-column: 2; }
    .header-actions { grid-column: 3; }
}

/* Small tablet — hide header search, use drawer search */
@media (max-width: 900px) {
    .header-inner {
        grid-template-columns: auto 1fr;
    }
    .header-search {
        display: none;
    }
    .brand {
        grid-column: 1;
        margin-right: auto;
    }
    .header-actions {
        grid-column: 2;
        justify-self: end;
    }
    .wa-btn span {
        display: none;
    }
    .wa-btn {
        padding: 10px 12px;
    }
}

/* Mobile — stack footer, single column form */
@media (max-width: 720px) {
    :root { --header-h: 64px; }

    .container { padding: 0 16px; }

    .card { padding: 20px; }

    .row {
        grid-template-columns: 1fr;
    }

    .brand-text {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 36px 0 20px;
    }

    .flight {
        grid-template-columns: 48px 1fr;
        padding: 14px 16px;
    }
    .flight .price {
        grid-column: 1 / -1;
        text-align: left;
        margin-top: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    .flight .price small {
        display: inline;
        margin-left: 6px;
    }

    .lang-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    h1 { font-size: 22px; }
    h2 { font-size: 18px; }
    .trip-tabs label {
        padding: 9px 16px;
        font-size: 13px;
    }
    .pop-card { padding: 16px; }
}

/* ============================================================
   14. RTL OVERRIDES (Urdu, Punjabi, Sindhi, Pashto)
   ============================================================ */
body[dir="rtl"] .mobile-menu {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(15, 23, 42, .15);
}
body[dir="rtl"] .mobile-menu.open {
    transform: translateX(0);
}

body[dir="rtl"] .submenu a {
    padding: 11px 40px 11px 20px;
}

body[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

body[dir="rtl"] .hamburger {
    /* No change needed — hamburger works LTR visually */
}

body[dir="rtl"] .flight {
    /* Grid flows naturally RTL */
}

body[dir="rtl"] .flight .price {
    text-align: left;
}

body[dir="rtl"] .flight .btn {
    /* stays same */
}

body[dir="rtl"] .menu-list a,
body[dir="rtl"] .sub-toggle {
    text-align: right;
}









/* ============================================================
   RESULTS PAGE HEADER
   ============================================================ */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.results-header h1 {
    margin: 0 0 6px;
    font-size: 24px;
}
.freshness {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}
.freshness a { color: var(--green); }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.back-link:hover {
    border-color: var(--green);
    color: var(--green);
    text-decoration: none;
}

/* Flight card — refined structure */
.flight-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}
.flight-info {
    min-width: 0;
}
.flight-price {
    text-align: right;
    white-space: nowrap;
}
.flight .arrow {
    color: var(--muted);
    margin: 0 4px;
    font-weight: 400;
}

/* Multi-city leg grouping */
.leg-block {
    margin-bottom: 36px;
}
.leg-heading {
    font-size: 18px;
    color: var(--ink);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--green);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    font-weight: 700;
}
.leg-date {
    color: var(--muted);
    font-weight: 400;
    font-size: 14px;
}

/* ============================================================
   BOOKING PAGE
   ============================================================ */
.container-narrow {
    max-width: 720px;
}

.booking-header {
    margin-bottom: 24px;
}
.booking-header h1 {
    margin: 0 0 6px;
    font-size: 26px;
}
.booking-header .muted {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.booking-summary {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.summary-row:last-child {
    border-bottom: 0;
}
.summary-row span {
    color: var(--muted);
}
.summary-row strong {
    color: var(--ink);
    font-weight: 600;
    text-align: right;
}
.summary-row.total {
    padding-top: 14px;
    margin-top: 6px;
    border-top: 2px solid var(--line);
    border-bottom: 0;
}
.summary-row.total .total-price {
    color: var(--green);
    font-size: 20px;
    font-weight: 700;
}

.booking-card {
    padding: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-field.full {
    grid-column: 1 / -1;
}
.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}
.form-field input,
.form-field textarea {
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    color: var(--ink);
    font-family: inherit;
    resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(10, 124, 63, .08);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #94a3b8;
}

.form-note {
    font-size: 13px;
    color: var(--muted);
    margin: 14px 0 0;
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .booking-card {
        padding: 20px;
    }
    .booking-summary {
        padding: 16px 18px;
    }
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    .flight-price {
        text-align: left;
    }
}





/* ============================================================
   STATIC PAGES (About, Contact, Privacy, Terms, FAQ)
   ============================================================ */
.container-narrow {
    max-width: 800px;
}

.card.prose {
    padding: 36px 40px;
    line-height: 1.75;
    font-size: 15px;
    color: var(--ink-soft);
}
.card.prose h1,
.card.prose h2 {
    color: var(--ink);
    margin-top: 28px;
}
.card.prose h1:first-child,
.card.prose h2:first-child {
    margin-top: 0;
}
.card.prose h2 {
    font-size: 19px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.card.prose p {
    margin: 0 0 14px;
}
.card.prose ul {
    padding-inline-start: 22px;
    margin: 0 0 18px;
}
.card.prose li {
    padding: 4px 0;
}
.card.prose em {
    color: var(--muted);
    font-size: 13px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 20px;
    margin-top: 20px;
}
.contact-grid .card h2 {
    margin-top: 0;
}
.contact-form .form-field {
    margin-bottom: 14px;
}

.notice.success {
    background: var(--green-light);
    border-color: var(--green);
    color: var(--green-dark);
}

/* FAQ items */
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 4px 4px;
    margin-bottom: 10px;
    transition: border-color .2s;
}
.faq-item[open] {
    border-color: var(--green);
}
.faq-item summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 20px;
    font-weight: 700;
    color: var(--green);
    transition: transform .2s;
    line-height: 1;
}
.faq-item[open] summary::after {
    content: "−";
}
.faq-item p {
    padding: 0 18px 16px;
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 14px;
}

/* ============================================================
   ROUTE PAGE (SEO landing pages)
   ============================================================ */
.route-hero {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-lg);
}
.route-hero-inner {
    max-width: 640px;
}
.route-hero h1 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 28px;
}
.route-hero .arrow {
    opacity: .7;
    margin: 0 6px;
}
.route-sub {
    color: rgba(255,255,255,.85);
    margin: 0 0 6px;
    font-size: 15px;
}
.route-price {
    font-size: 40px;
    font-weight: 800;
    color: #6ee7a8;
    line-height: 1.1;
    margin: 6px 0;
}
.route-meta {
    color: rgba(255,255,255,.7);
    font-size: 13px;
    margin: 0 0 20px;
}
.route-cta {
    display: inline-block;
    background: #fff;
    color: var(--green);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform .15s;
}
.route-cta:hover {
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--green-dark);
}

.route-facts, .route-recent, .nearby-routes, .route-faq {
    margin-bottom: 32px;
}
.route-facts h2,
.route-recent h2,
.nearby-routes h2,
.route-faq h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}
.fact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
}
.fact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 6px;
}
.fact-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.table-wrap {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th,
.data-table td {
    padding: 13px 18px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
}
.data-table th {
    background: #f8fafc;
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.data-table tr:last-child td {
    border-bottom: 0;
}
.data-table .ta-right {
    text-align: right;
}
.data-table strong {
    color: var(--green);
}

/* RTL fixes */
body[dir="rtl"] .data-table th,
body[dir="rtl"] .data-table td {
    text-align: right;
}
body[dir="rtl"] .data-table .ta-right {
    text-align: left;
}

@media (max-width: 720px) {
    .card.prose {
        padding: 22px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .route-hero {
        padding: 28px 22px;
    }
    .route-hero h1 {
        font-size: 22px;
    }
    .route-price {
        font-size: 32px;
    }
    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}