/* ==============================================================================
   TRANSVER VIP — PREMIUM MOBILE CSS
   Mobile-First Responsive System
   Target: 320px → 430px → 768px
   Covers: Header, Drawer, Hero, Booking, Services, Fleet,
           Footer, Sticky CTA, Cookie Banner, Trust, FAQ
   ============================================================================== */

/* ── 1. GLOBAL MOBILE BASELINE ───────────────────────────────────────────── */
:root {
  --mobile-safe-top:    env(safe-area-inset-top, 0px);
  --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
  --mobile-safe-left:   env(safe-area-inset-left, 0px);
  --mobile-safe-right:  env(safe-area-inset-right, 0px);
  --sticky-cta-h:       64px;
}

/* Prevent horizontal overflow globally */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Desktop: Hide mobile-only elements */
.mobile-drawer-cta,
.mobile-drawer-cta-item,
.sticky-mobile-cta {
  display: none;
}

/* Utility: disable transitions during resize */
body.no-transition * {
  transition: none !important;
}

/* Reserve space for sticky CTA on mobile only (applied via class) */
body.has-sticky-cta {
  padding-bottom: calc(var(--sticky-cta-h) + var(--mobile-safe-bottom));
}

/* Remove heavy parallax / reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── 2. MOBILE HEADER ────────────────────────────────────────────────────── */
@media (max-width: 991px) {

  .navbar {
    padding: 0;
    padding-top: var(--mobile-safe-top);
  }

  .nav-container {
    padding: 10px 16px;
    min-height: 56px;
  }

  /* Logo compact */
  .brand-logo {
    gap: 10px;
  }

  .brand-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .brand-logo-text {
    font-size: 1.15rem;
    letter-spacing: 0.3px;
  }

  /* Nav actions: keep lang selector, show hamburger */
  .nav-actions {
    gap: 8px;
    align-items: center;
  }

  /* Language selector — compact for mobile */
  .lang-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
    min-height: 38px;
    border-radius: 20px;
  }

  .lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Mobile Toggle always visible on mobile */
  .mobile-toggle {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
    border-radius: 8px;
    z-index: 1060;
  }

  /* Desktop nav links hidden */
  .nav-actions .btn-gold {
    display: none !important;
  }

  body.nav-open .navbar {
    z-index: 1050;
  }

  .mobile-backdrop {
    z-index: 995 !important;
  }
}

/* ── 3. PREMIUM MOBILE DRAWER ────────────────────────────────────────────── */
@media (max-width: 991px) {

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 88vw);
    height: 100dvh;
    background: linear-gradient(180deg, #0d1220 0%, #080b11 100%);
    border-left: 1px solid rgba(212, 175, 55, 0.15);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1050;
    transition: right 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.9);
    display: flex;
  }

  .nav-links.active {
    right: 0;
  }

  /* Drawer header area */
  .nav-links::before {
    content: '';
    display: block;
    height: calc(62px + var(--mobile-safe-top));
    background: rgba(212, 175, 55, 0.04);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    flex-shrink: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 22px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    min-height: 52px;
  }

  .nav-link::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 0;
    border-radius: 2px;
    background: var(--gold-gradient);
    margin-right: 12px;
    flex-shrink: 0;
    transition: height 0.2s ease;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(212, 175, 55, 0.07);
    color: var(--gold-light);
    padding-left: 28px;
  }

  .nav-link:hover::before,
  .nav-link.active::before {
    height: 20px;
  }

  .nav-link::after {
    display: none;
  }

  /* Drawer CTA block at bottom of slide-out drawer */
  .mobile-drawer-cta-item {
    display: block !important;
    margin-top: auto;
    width: 100%;
    list-style: none;
  }

  .mobile-drawer-cta {
    padding: 20px 22px;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-drawer-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.95rem;
  }

  .mobile-drawer-cta .btn-wa-drawer {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-drawer-cta .btn-phone-drawer {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

/* ── 4. MOBILE HERO ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .hero {
    min-height: auto;
    padding-top: calc(62px + var(--mobile-safe-top) + 32px);
    padding-bottom: 40px;
  }

  .hero-glow {
    width: 100%;
    height: 200px;
    top: 0;
  }

  .hero-content {
    padding: 0;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7.5vw, 2.5rem);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    word-break: break-word;
    hyphens: auto;
  }

  .hero-desc {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    margin-bottom: 24px;
    padding: 0 4px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 1rem;
  }

  .section-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: calc(62px + var(--mobile-safe-top) + 24px);
    padding-bottom: 32px;
  }

  .hero-title {
    font-size: clamp(1.65rem, 8vw, 2rem);
  }
}

/* ── 5. BOOKING WIDGET MOBILE ────────────────────────────────────────────── */
@media (max-width: 768px) {

  .booking-widget-card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
    margin: 0 0 8px 0;
  }

  .widget-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Tab selector for transfer type */
  .transfer-type-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }

  /* Form inputs — large touch targets */
  .form-input,
  .form-select,
  .form-textarea {
    min-height: 52px;
    padding: 14px 14px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    -webkit-appearance: none;
    appearance: none;
  }

  .form-label {
    font-size: 0.82rem;
  }

  /* Date + Time on same row */
  .widget-datetime-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Passengers + Luggage on same row */
  .widget-pax-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .widget-form-grid .btn-gold {
    min-height: 54px;
    width: 100%;
    font-size: 1.05rem;
    margin-top: 4px;
  }
}

/* ── 6. SECTIONS MOBILE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: clamp(1.5rem, 6.5vw, 1.9rem);
    letter-spacing: -0.3px;
  }

  .section-subtitle {
    font-size: 0.93rem;
  }

  .container {
    padding: 0 18px;
  }

  /* Trust bar — 2 col grid */
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .trust-item {
    gap: 10px;
  }

  .trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .trust-item h4 {
    font-size: 0.85rem;
  }

  .trust-item p {
    font-size: 0.75rem;
  }

  /* Services — single column */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 24px 20px;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .service-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .service-card > .service-body {
    flex: 1;
    min-width: 0;
  }

  .service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .service-card p {
    font-size: 0.88rem;
    margin-bottom: 12px;
    line-height: 1.5;
  }

  /* Fleet — single column */
  .fleet-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vehicle-img-wrap {
    height: 220px;
  }

  .vehicle-content {
    padding: 20px;
  }

  .vehicle-content h3 {
    font-size: 1.25rem;
  }

  .vehicle-specs {
    gap: 12px;
    flex-wrap: wrap;
  }

  .vehicle-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .vehicle-bottom .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  /* How it works — single col */
  .how-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .how-card {
    padding: 24px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-direction: row;
  }

  .how-num {
    font-size: 2rem;
    margin-bottom: 0;
    flex-shrink: 0;
    line-height: 1.2;
    min-width: 40px;
  }

  .how-card h3 {
    font-size: 1rem;
  }

  .how-card p {
    font-size: 0.88rem;
  }

  /* Why grid — single col */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .why-card {
    padding: 18px;
    gap: 14px;
  }

  .why-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .why-card h4 {
    font-size: 0.98rem;
    margin-bottom: 4px;
  }

  .why-card p {
    font-size: 0.85rem;
  }

  /* Routes grid — single col */
  .routes-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .route-card {
    padding: 18px;
  }

  /* Testimonials — single col */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonial-card {
    padding: 20px;
  }

  /* Selectable vehicles — single col */
  .selectable-vehicles-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ── 7. BOOKING WIZARD MOBILE ────────────────────────────────────────────── */
@media (max-width: 768px) {

  .wizard-container {
    margin: 20px 0;
    padding: 24px 16px;
    border-radius: var(--radius-md);
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  /* Step indicators — compact */
  .wizard-steps {
    gap: 4px;
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .wizard-steps::before {
    top: 20px;
    left: 30px;
    right: 30px;
  }

  .step-circle {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .step-title {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  /* Selectable vehicle cards — horizontal layout */
  .selectable-vehicle {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
  }

  .selectable-vehicle img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
  }

  /* Wizard form inputs large touch targets */
  .wizard-step-content .form-input,
  .wizard-step-content .form-select {
    min-height: 52px;
    font-size: 1rem;
  }

  /* Nav buttons */
  .wizard-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .wizard-nav .btn {
    min-height: 52px;
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
  }
}

/* ── 8. FAQ MOBILE ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .faq-wrap {
    gap: 10px;
  }

  .faq-trigger {
    padding: 18px 18px;
    font-size: 0.95rem;
    min-height: 56px;
    line-height: 1.4;
    gap: 12px;
  }

  .faq-body {
    padding: 0 18px 18px 18px;
    font-size: 0.9rem;
  }
}

/* ── 9. FOOTER MOBILE ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .footer {
    padding: 40px 0 20px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  .footer-bio {
    padding-bottom: 28px;
    margin-bottom: 0;
  }

  /* Accordion footer columns */
  .footer-col {
    border-top: 1px solid var(--border-subtle);
  }

  .footer-col h4 {
    padding: 16px 0;
    margin-bottom: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
  }

  .footer-col h4::after {
    display: none;
  }

  .footer-col h4::before {
    display: none;
  }

  .footer-col-toggle-icon {
    color: var(--gold-light);
    flex-shrink: 0;
    transition: transform 0.25s ease;
  }

  .footer-col.open .footer-col-toggle-icon {
    transform: rotate(180deg);
  }

  .footer-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    gap: 0;
  }

  .footer-col.open .footer-links {
    max-height: 400px;
  }

  .footer-links li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }

  .footer-links a {
    font-size: 0.88rem;
    display: block;
    padding: 2px 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding-top: 20px;
    font-size: 0.8rem;
  }

  .footer-bottom div {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ── 10. STICKY MOBILE CTA BAR ───────────────────────────────────────────── */
.sticky-mobile-cta {
  display: none;
}

.mobile-drawer-cta {
  display: none;
}

.no-transition {
  transition: none !important;
}

@media (max-width: 768px) {

  /* Sticky CTA — shown only on mobile */
  .sticky-mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 990;
    background: rgba(8, 11, 17, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 10px 12px;
    padding-bottom: calc(10px + var(--mobile-safe-bottom));
    gap: 8px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
  }

  /* Drawer CTA — shown only inside drawer */
  .mobile-drawer-cta {
    padding: 20px 22px;
    margin-top: auto;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .sticky-cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.72rem;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    text-decoration: none;
    line-height: 1.2;
    padding: 8px 6px;
  }

  .sticky-cta-btn:active {
    transform: scale(0.96);
    opacity: 0.85;
  }

  .sticky-cta-btn svg {
    flex-shrink: 0;
  }

  .sticky-cta-wa {
    background: rgba(37, 211, 102, 0.12);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.25);
  }

  .sticky-cta-phone {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border-subtle);
  }

  .sticky-cta-book {
    background: var(--gold-gradient);
    color: #0b0f17;
    font-size: 0.78rem;
    font-weight: 700;
  }

  /* WhatsApp FAB — hidden on mobile to avoid conflict with sticky CTA */
  .whatsapp-fab {
    display: none;
  }
}

/* ── 11. COOKIE CONSENT BANNER (Luxury Floating Card) ────────────────────── */
.cookie-consent-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 860px;
  z-index: 10005;
  pointer-events: auto;
  box-sizing: border-box;
  animation: cookieSlideUpDesktop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieSlideUpDesktop {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.cookie-consent-card {
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
}

.cookie-consent-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.cookie-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light, #d4af37);
  flex-shrink: 0;
  margin-top: 1px;
}

.cookie-consent-content {
  flex: 1;
  min-width: 0;
}

.cookie-consent-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
  font-family: var(--font-heading, sans-serif);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
  line-height: 1.3;
}

.cookie-consent-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
  word-break: break-word;
}

.cookie-consent-desc a {
  color: var(--gold-light, #d4af37);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.cookie-consent-desc a:hover {
  color: #ffffff;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-body, sans-serif);
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1.25;
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 42px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.cookie-btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #f3e5ab 50%, #b8860b 100%);
  color: #080b11;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.cookie-btn-gold:hover {
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.cookie-btn-gold:active {
  transform: scale(0.98);
}

.cookie-btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.14);
}

.cookie-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(212, 175, 55, 0.35);
}

.cookie-btn-outline:active {
  transform: scale(0.98);
}

/* ── Mobile & Tablet Layout (<= 768px) ───────────────────────────────────── */
@media (max-width: 768px) {
  .cookie-consent-banner {
    bottom: calc(12px + var(--mobile-safe-bottom, 0px));
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    transform: none;
    animation: cookieSlideUpMobile 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes cookieSlideUpMobile {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .cookie-consent-card {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
    border-radius: 16px;
    background: rgba(11, 15, 25, 0.98);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(212, 175, 55, 0.25);
  }

  .cookie-consent-header {
    gap: 12px;
  }

  .cookie-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .cookie-consent-title {
    font-size: 0.88rem;
  }

  .cookie-consent-desc {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
    padding: 10px 8px;
    font-size: 0.8rem;
    min-height: 40px;
    white-space: normal;
    text-align: center;
    border-radius: 8px;
  }
}

/* ── Ultra Small Devices (<= 360px) ──────────────────────────────────────── */
@media (max-width: 360px) {
  .cookie-consent-banner {
    bottom: calc(8px + var(--mobile-safe-bottom, 0px));
    left: 8px;
    right: 8px;
  }

  .cookie-consent-card {
    padding: 12px 12px;
    gap: 10px;
  }

  .cookie-icon-badge {
    display: none;
  }

  .cookie-consent-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cookie-btn {
    min-height: 38px;
    font-size: 0.78rem;
    padding: 8px 6px;
}

/* ── RTL Support for Cookie Banner ───────────────────────────────────────── */
[dir="rtl"] .cookie-consent-card {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .cookie-consent-header {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .cookie-consent-actions {
  direction: rtl;
}

/* ── 12. BUTTONS MOBILE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .btn {
    min-height: 48px;
    padding: 13px 22px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  /* Tap feedback (no hover on touch) */
  .btn:active {
    transform: scale(0.97);
    opacity: 0.9;
  }

  /* Remove desktop hover transform on touch devices */
  @media (hover: none) {
    .btn:hover {
      transform: none;
    }
    .service-card:hover,
    .vehicle-card:hover,
    .how-card:hover,
    .why-card:hover,
    .route-card:hover {
      transform: none;
    }
  }
}

/* ── 13. TYPOGRAPHY MOBILE ───────────────────────────────────────────────── */
@media (max-width: 768px) {

  html {
    font-size: 15px;
  }

  body {
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  h1 { font-size: clamp(1.75rem, 7vw, 2.2rem); }
  h2 { font-size: clamp(1.4rem, 5.5vw, 1.75rem); }
  h3 { font-size: clamp(1.15rem, 4.5vw, 1.35rem); }
  h4 { font-size: clamp(1rem, 4vw, 1.1rem); }

  /* Prevent horizontal overflow from long words */
  p, li, td, th {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  /* Ensure images never overflow */
  img, video, iframe, canvas, svg {
    max-width: 100%;
  }

  /* Tables — horizontal scroll wrapper */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
  }

  table {
    min-width: max-content;
  }
}

/* ── 14. FORM UX MOBILE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Proper input types for mobile keyboards */
  input[type="tel"] {
    -webkit-appearance: none;
    appearance: none;
  }

  input[type="date"],
  input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 52px;
  }

  /* Error states */
  .form-error-msg {
    font-size: 0.82rem;
    color: #f87171;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  /* Floating error scroll target */
  .has-error .form-input,
  .has-error .form-select {
    border-color: #f87171;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.15);
  }

  /* Autocomplete styling */
  .form-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #151d2f inset;
    -webkit-text-fill-color: var(--text-white);
  }
}

/* ── 15. RTL MOBILE ──────────────────────────────────────────────────────── */
[dir="rtl"] .nav-links {
  right: auto;
  left: -100%;
  border-left: none;
  border-right: 1px solid rgba(212, 175, 55, 0.15);
}

[dir="rtl"] .nav-links.active {
  left: 0;
  right: auto;
}

[dir="rtl"] .nav-link {
  text-align: right;
}

[dir="rtl"] .nav-link::before {
  margin-right: 0;
  margin-left: 12px;
}

[dir="rtl"] .nav-link:hover {
  padding-left: 22px;
  padding-right: 28px;
}

[dir="rtl"] .sticky-mobile-cta {
  direction: rtl;
}

[dir="rtl"] .cookie-consent-inner {
  direction: rtl;
}

[dir="rtl"] .footer-links a:hover {
  transform: translateX(-4px);
}

/* ── 16. SPECIFIC SMALL DEVICES ──────────────────────────────────────────── */
@media (max-width: 360px) {

  .container {
    padding: 0 14px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-ctas .btn {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .sticky-cta-btn {
    font-size: 0.65rem;
  }

  .booking-widget-card {
    padding: 16px 12px;
  }

  .wizard-container {
    padding: 20px 12px;
  }
}

@media (max-width: 320px) {

  .brand-logo-text {
    font-size: 1.1rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .widget-datetime-row,
  .widget-pax-row {
    grid-template-columns: 1fr;
  }
}

/* ── 17. TABLET (768px) IMPROVEMENTS ────────────────────────────────────── */
@media (min-width: 601px) and (max-width: 768px) {

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .widget-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {

  .widget-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 18. PERFORMANCE: Image lazy load placeholders ───────────────────────── */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/* Eager-load hero images (no lazy) */
.hero-image {
  opacity: 1;
}

/* ── 19. MOBILE OVERFLOW GUARD ───────────────────────────────────────────── */
@media (max-width: 768px) {

  /* NOTE: Do NOT set overflow:hidden on header — clips language dropdown */
  main {
    overflow-x: clip; /* contain layout without blocking fixed descendants */
  }

  /* Prevent pre/code blocks from expanding layout */
  pre, code {
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
  }

  /* Admin tables on mobile */
  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── 20. WHATSAPP FAB DESKTOP ONLY ───────────────────────────────────────── */
@media (min-width: 769px) {
  .sticky-mobile-cta {
    display: none !important;
  }

  .whatsapp-fab {
    display: flex;
  }
}

/* ── 21. PRINT ───────────────────────────────────────────────────────────── */
@media print {
  .navbar,
  .whatsapp-fab,
  .sticky-mobile-cta,
  .cookie-consent-banner,
  .mobile-backdrop {
    display: none !important;
  }
}
