.mobile-bottom-nav, .mobile-service-highlights, .mobile-fleet-action, .mobile-profile-heading, .mobile-booking-filters, .mobile-luggage-capacity { display: none; }

@media (max-width: 767px) {
    :root {
        --mobile-nav-height: calc(72px + env(safe-area-inset-bottom, 0px));
    }
    html { scroll-padding-bottom: calc(var(--mobile-nav-height) + 24px); }
    body.compact-home:has(.mobile-bottom-nav) { padding-bottom: var(--mobile-nav-height); }
    body:not(.compact-home):has(.mobile-bottom-nav) {
        --bg: #080d14;
        --bg-2: #111827;
        --navy: #080d14;
        --navy-2: #111827;
        --gold: #d4af67;
        --gold-soft: #ecd5a6;
        padding-bottom: var(--mobile-nav-height);
        background: #080d14;
    }
    body:not(.compact-home):has(.mobile-bottom-nav) :is(input, select, textarea) { font-size: 16px; min-width: 0; max-width: 100%; }
    body:not(.compact-home):has(.mobile-bottom-nav) :is(button, a, input, select, textarea) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
    body:not(.compact-home):has(.mobile-bottom-nav) :is(a, button, input, select, textarea):focus-visible { outline: 2px solid #d4af67; outline-offset: 4px; }
    body:not(.compact-home):has(.mobile-bottom-nav) :is(img, svg) { max-width: 100%; }
    body:not(.compact-home):has(.mobile-bottom-nav) :is(.form-wrap, .form-panel, .history-card, .tracking-details, .booking-step-panel) { min-width: 0; overflow-wrap: anywhere; }
    .mobile-bottom-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 800;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        min-height: var(--mobile-nav-height);
        padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left));
        border-top: 1px solid #d4af672e;
        background: #080d14f5;
        box-shadow: 0 -8px 30px #0003;
        backdrop-filter: blur(18px);
        font-family: 'DM Sans', Arial, sans-serif;
    }
    .mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 56px; border-radius: 14px; color: #9ca3af; text-decoration: none; font-size: clamp(8px, 2.35vw, 11px); font-weight: 600; line-height: 1.2; }
    .mobile-bottom-nav svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
    .mobile-bottom-nav a[aria-current="page"] { color: #d4af67; background: #d4af6710; }
    .mobile-bottom-nav a:active { background: #d4af6726; }

    /* Homepage */
    body:not(.compact-home):has(.mobile-bottom-nav) .container { width: calc(100% - 36px); }
    body:not(.compact-home):has(.mobile-bottom-nav) .topbar { background: #080d14f5; border-bottom-color: #d4af6726; }
    body:not(.compact-home):has(.mobile-bottom-nav) .nav { min-height: 68px; padding: 10px 0; }
    body:not(.compact-home):has(.mobile-bottom-nav) .nav:has(.mobile-menu-panel) { position: relative; }
    body:not(.compact-home):has(.mobile-bottom-nav) .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-left: auto; padding: 0 14px; border: 1px solid #ffffff26; border-radius: 10px; background: transparent; color: #fffaf1; }
    body:not(.compact-home):has(.mobile-bottom-nav) .mobile-menu-panel { display: none; position: absolute; top: calc(100% + 6px); right: 0; width: min(300px, calc(100vw - 36px)); max-height: calc(100dvh - var(--mobile-nav-height) - 90px); overflow-y: auto; padding: 12px; border: 1px solid #d4af6733; border-radius: 16px; background: #111827; box-shadow: 0 14px 36px #0005; }
    body:not(.compact-home):has(.mobile-bottom-nav) .nav.is-open .mobile-menu-panel { display: flex; flex-direction: column; gap: 12px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .mobile-menu-panel :is(.nav-links, .nav-actions) { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 0; padding: 0; }
    body:not(.compact-home):has(.mobile-bottom-nav) .mobile-menu-panel .nav-links > a { display: flex; align-items: center; justify-content: center; min-height: 44px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .brand img { width: 138px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .hero { background-position: center, 62% center; border-radius: 0 0 28px 28px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .hero-inner { padding: 34px 0 30px; min-height: 390px; align-items: end; }
    body:not(.compact-home):has(.mobile-bottom-nav) .hero-title { max-width: 330px; font-size: clamp(30px, 8.3vw, 39px); line-height: 1.13; letter-spacing: -.035em; }
    body:not(.compact-home):has(.mobile-bottom-nav) .hero-title .gold { display: block; margin-top: 10px; font-size: 16px; line-height: 1.5; letter-spacing: 0; }
    body:not(.compact-home):has(.mobile-bottom-nav) .hero-copy { max-width: 340px; font-size: 14px; line-height: 1.7; margin: 14px 0 20px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .hero .eyebrow { font-size: 10px; letter-spacing: .16em; }
    body:not(.compact-home):has(.mobile-bottom-nav) .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .btn { min-height: 48px; border-radius: 12px; padding: 12px 14px; font-size: 13px; }
    .mobile-service-highlights { display: flex; flex-wrap: wrap; gap: 8px; }
    .mobile-luggage-capacity { display: inline; }
    .mobile-service-highlights span { padding: 7px 10px; border: 1px solid #d4af6740; border-radius: 999px; background: #080d1480; color: #ecd5a6; font-size: 10px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-bar { position: relative; top: auto; width: calc(100% - 36px); margin: 20px auto 0; border-radius: 22px; background: #fffaf1; box-shadow: 0 12px 32px #0003; }
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-bar .booking-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding: 20px; border-radius: 22px; background: #fffaf1; }
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-bar .booking-field { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 0; border: 0; }
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-bar .booking-field:nth-child(-n+2) { grid-column: 1 / -1; }
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-bar .booking-field label { color: #536071; font-size: 11px; min-height: 16px; white-space: normal; }
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-bar .booking-field input,
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-bar .booking-field select { width: 100%; min-height: 48px; height: auto; padding: 12px 10px; border: 1px solid #dedbd3; border-radius: 11px; background: #fff; color: #111827; color-scheme: light; font: 400 16px 'DM Sans', sans-serif; }
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-bar .booking-field input::-webkit-calendar-picker-indicator { width: 18px; height: 18px; padding: 0; margin: 0; }
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-bar .booking-field input::placeholder { color: #6b7280; opacity: 1; }
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-bar .booking-grid > .btn { grid-column: 1 / -1; min-height: 50px; font-size: 14px; background: #d4af67; color: #080d14; }
    body:not(.compact-home):has(.mobile-bottom-nav) .section { padding: 36px 0; }
    body:not(.compact-home):has(.mobile-bottom-nav) :is(#services, #destinations, #process) { min-height: auto; padding-top: 36px; scroll-margin-top: 76px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .section-header h2,
    body:not(.compact-home):has(.mobile-bottom-nav) .fleet-copy h2 { font-size: 27px; line-height: 1.2; letter-spacing: -.025em; }
    body:not(.compact-home):has(.mobile-bottom-nav) .transfer-grid { grid-template-columns: 1fr; gap: 14px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .transfer-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); border-radius: 18px; background: #111827; border-color: #ffffff12; }
    body:not(.compact-home):has(.mobile-bottom-nav) .transfer-card > img { height: 100%; min-height: 150px; width: 112px; object-fit: cover; }
    body:not(.compact-home):has(.mobile-bottom-nav) .transfer-card-copy { position: static; padding: 16px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .transfer-card h3 { min-height: 0; font-size: 16px; line-height: 1.35; }
    body:not(.compact-home):has(.mobile-bottom-nav) .transfer-card p { font-size: 12px; line-height: 1.65; color: #c3c8d2; }
    body:not(.compact-home):has(.mobile-bottom-nav) .transfer-card-copy .transfer-icon { width: 22px; height: 22px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .fleet-grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86%; overflow-x: auto; gap: 14px; padding: 4px 0 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #d4af67 transparent; }
    body:not(.compact-home):has(.mobile-bottom-nav) .vehicle-card { min-width: 0; border: 1px solid #e4ddd0; border-radius: 20px; background: #fffaf1; color: #111827; scroll-snap-align: start; }
    body:not(.compact-home):has(.mobile-bottom-nav) .vehicle-card > img { width: 100%; height: 180px; object-fit: cover; }
    body:not(.compact-home):has(.mobile-bottom-nav) .vehicle-card-body { padding: 18px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .vehicle-card-body h3 { font-size: 18px; color: #111827; }
    body:not(.compact-home):has(.mobile-bottom-nav) .vehicle-card-body p { font-size: 13px; color: #596473; }
    body:not(.compact-home):has(.mobile-bottom-nav) .vehicle-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: #596473; }
    .mobile-fleet-action { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 16px; padding: 10px; border: 1px solid #d4af67; border-radius: 12px; color: #111827; text-decoration: none; font-size: 13px; font-weight: 700; }
    body:not(.compact-home):has(.mobile-bottom-nav) .rate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body:not(.compact-home):has(.mobile-bottom-nav) .rate-card { min-width: 0; border-radius: 16px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .rate-amount { font-size: 26px; }

    /* Customer forms and authentication */
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell { grid-template-columns: minmax(0, 1fr); min-height: calc(100dvh - var(--mobile-nav-height)); }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell > .brand-panel { display: none; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell > .form-panel { min-width: 0; padding: 24px 18px 32px; background: #080d14; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell > .form-panel > .form-wrap { width: 100%; max-width: 520px; margin: 0 auto; }
    body:not(.compact-home):has(.mobile-bottom-nav) :is(.field input, .field textarea, .flight-field input, .flight-field select) { width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid #ffffff26; border-radius: 12px; background: #111827; color: #fffaf1; font: 400 16px 'DM Sans', sans-serif; }
    body:not(.compact-home):has(.mobile-bottom-nav) :is(.primary-button, .history-link) { min-height: 50px; border-radius: 12px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .primary-button { background: #d4af67; color: #080d14; }
    body:not(.compact-home):has(.mobile-bottom-nav) .text-button { min-height: 44px; border-radius: 10px; color: #ecd5a6; border-color: #d4af6750; }
    body:not(.compact-home):has(.mobile-bottom-nav) .field-error { padding: 10px 12px; border-radius: 10px; color: #ffc4b9; background: #ef444413; font-size: 13px; line-height: 1.6; }
    body:not(.compact-home):has(.mobile-bottom-nav) .mobile-wordmark { display: inline-flex; margin-bottom: 24px; }
    body:not(.compact-home):has(.mobile-bottom-nav) :is(.login-shell, .register-shell) .mobile-wordmark { display: none; }
    body:not(.compact-home):has(.mobile-bottom-nav) :is(.login-shell, .register-shell) .form-wrap { padding: 22px 18px; border: 1px solid #d4af6726; border-radius: 24px; background: #111827; }
    body:not(.compact-home):has(.mobile-bottom-nav) :is(.login-shell, .register-shell) .field input { background: #080d14; }
    body:not(.compact-home):has(.mobile-bottom-nav) .password-toggle { min-width: 48px; min-height: 48px; }
    body:not(.compact-home):has(.mobile-bottom-nav) :is(input[type="checkbox"], input[type="radio"]) { width: 20px; height: 20px; accent-color: #d4af67; }
    body:not(.compact-home):has(.mobile-bottom-nav) .remember { min-height: 44px; gap: 10px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .mobile-profile-heading { display: block; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #d4af6733; }
    .mobile-profile-heading .eyebrow { margin-bottom: 10px; }
    .mobile-profile-heading h1 { margin: 0 0 8px; color: #fffaf1; font: 700 28px/1.2 'Manrope', sans-serif; }
    .mobile-profile-heading p:last-child { margin: 0; color: #aeb7c7; font-size: 14px; overflow-wrap: anywhere; }
    body:not(.compact-home):has(.mobile-bottom-nav) .identity-panel { padding: 18px; border-radius: 20px; background: #111827; border-color: #d4af6733; }
    body:not(.compact-home):has(.mobile-bottom-nav) .identity-heading { flex-wrap: wrap; gap: 12px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .identity-panel .primary-button { white-space: normal; }
    body:not(.compact-home):has(.mobile-bottom-nav) .identity-consent { align-items: flex-start; line-height: 1.6; }
    body:not(.compact-home):has(.mobile-bottom-nav) .identity-consent input { flex-shrink: 0; width: 20px; height: 20px; }

    /* Booking steps retain their existing form and validation. */
    html:has(.mobile-bottom-nav):has(.booking-dashboard), body:not(.compact-home):has(.mobile-bottom-nav):has(.booking-dashboard) { height: auto; overflow: visible; }
    .auth-shell.auth-shell:has(.mobile-bottom-nav) { height: auto; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell:has(.booking-dashboard),
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell:has(.booking-dashboard) :is(.form-panel, .form-wrap),
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell .booking-dashboard { height: auto; min-height: 0; overflow: visible; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell:has(.booking-dashboard) .form-panel { padding: 0; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell:has(.booking-dashboard) .form-wrap { max-width: none; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell .booking-dashboard .booking-site-nav { min-height: 68px; flex-wrap: nowrap; padding: 10px 18px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell .booking-dashboard .booking-site-links { display: none; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell .booking-dashboard .booking-site-brand img { width: 134px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-site-actions { margin-left: auto; min-width: 0; }
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-site-actions .user-menu summary { max-width: 145px; font-size: 12px; min-height: 44px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-site-actions .user-menu summary > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell .booking-dashboard .dashboard-body { height: auto; overflow: visible; padding: 16px 14px 24px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell .booking-dashboard .ride-card { height: auto; overflow: visible; display: flex; flex-direction: column; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell .booking-dashboard .ride-sheet { height: auto; max-height: none; overflow: visible; padding: 22px 18px; border-radius: 22px; background: #fffaf1; box-shadow: 0 10px 32px #0002; color-scheme: light; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell .booking-dashboard .ride-sheet input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell .booking-dashboard .ride-sheet select { min-height: 52px; height: auto; border-radius: 12px; font-size: 16px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell .booking-dashboard .ride-sheet input[type="date"],
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell .booking-dashboard .ride-sheet input[type="time"] { width: 100%; min-width: 0; max-width: 100%; padding: 12px; box-sizing: border-box; }
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-dashboard .ride-options label { flex: 1; min-height: 48px; border-radius: 12px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-dashboard .booking-step-actions button { min-height: 52px; border-radius: 12px; font-size: 14px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-dashboard .booking-progress button { font-size: 11px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell .booking-dashboard .ride-map-picker { order: 2; min-height: 0; height: auto; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell .booking-dashboard.map-expanded .ride-map-stage { height: 330px; border-radius: 20px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell .booking-dashboard .booking-site-footer { padding: 18px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-site-footer-links { flex-wrap: wrap; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell:has(.booking-dashboard) .mobile-wordmark { display: none; }

    /* Bookings and ride details */
    body:not(.compact-home):has(.mobile-bottom-nav) .history-header { margin-top: 20px; }
    .mobile-booking-filters { display: flex; gap: 8px; overflow-x: auto; margin-top: 22px; padding-bottom: 8px; scrollbar-width: none; }
    .mobile-booking-filters a { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid #ffffff24; border-radius: 999px; color: #b7bfcd; font-size: 12px; text-decoration: none; }
    .mobile-booking-filters a[aria-current="page"] { background: #d4af67; color: #080d14; border-color: #d4af67; font-weight: 700; }
    body:not(.compact-home):has(.mobile-bottom-nav) .history-card { grid-template-columns: minmax(0, 1fr); padding: 20px; border: 1px solid #ffffff12; border-radius: 22px; background: #111827; }
    body:not(.compact-home):has(.mobile-bottom-nav) .history-card h3 { margin-top: 14px; font-size: 18px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .history-meta { min-width: 0; padding: 16px 0 0; border-left: 0; border-top: 1px solid #ffffff15; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .history-route { padding-left: 14px; border-left: 2px solid #d4af674d; gap: 18px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .history-status { background: #d4af671a; color: #ecd5a6; padding: 8px 12px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .history-actions { gap: 18px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .history-pagination { flex-wrap: wrap; }
    body:not(.compact-home):has(.mobile-bottom-nav) .history-page .booking-user { font-size: 12px; color: #aeb7c7; }
    body:not(.compact-home):has(.mobile-bottom-nav) .history-page .eyebrow { color: #ecd5a6; }
    body:not(.compact-home):has(.mobile-bottom-nav) .tracking-page { display: flex; flex-direction: column; min-height: 0; }
    body:not(.compact-home):has(.mobile-bottom-nav) .tracking-map-panel { order: -1; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell:has(.tracking-page) .mobile-wordmark { display: none; }
    body:not(.compact-home):has(.mobile-bottom-nav) .tracking-details { padding: 24px 18px; background: #080d14; }
    body:not(.compact-home):has(.mobile-bottom-nav) .tracking-vehicle { border-radius: 18px; background: #111827; }
    body:not(.compact-home):has(.mobile-bottom-nav) .tracking-contact a { min-height: 48px; border-radius: 12px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .payment-layout .panel { border-radius: 20px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .flight-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 359px) {
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-bar .booking-grid { padding: 16px; gap: 12px 8px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .transfer-card { grid-template-columns: 92px minmax(0, 1fr); }
    body:not(.compact-home):has(.mobile-bottom-nav) .transfer-card > img { width: 92px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .transfer-card-copy { padding: 12px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .auth-shell.auth-shell .booking-dashboard .ride-sheet { padding: 18px 14px; }
    body:not(.compact-home):has(.mobile-bottom-nav) .booking-dashboard .booking-progress button { font-size: 10px; }
}
