/* =========================================================================
   css/awesome-mobile.css — Awesome Design Mobile UX & Responsive System
   Archetypes: Sleek + Glassmorphism + Bento + Premium (WCAG 2.2 AA/AAA)
   Applies unified tokens, touch targets (>=44px), iOS 16px zoom prevention,
   safe-area support, and surgical mobile layouts across all pages.
   ========================================================================= */

:root {
  --aw-space-1: 4px;
  --aw-space-2: 8px;
  --aw-space-3: 12px;
  --aw-space-4: 16px;
  --aw-space-5: 20px;
  --aw-space-6: 24px;
  --aw-space-8: 32px;

  --aw-radius-sm: 12px;
  --aw-radius-md: 16px;
  --aw-radius-lg: 22px;
  --aw-radius-xl: 26px;
  --aw-radius-pill: 999px;

  --aw-touch-min: 44px;
  --aw-input-h: 50px;
  --aw-accent: #ff5722;
  --aw-accent-amber: #f59e0b;
  --aw-slate-950: #020617;
  --aw-slate-900: #0f172a;
  --aw-slate-700: #334155;
  --aw-slate-500: #64748b;

  --aw-safe-top: env(safe-area-inset-top, 0px);
  --aw-safe-bottom: env(safe-area-inset-bottom, 0px);
  --aw-safe-left: env(safe-area-inset-left, 0px);
  --aw-safe-right: env(safe-area-inset-right, 0px);
}

/* Global Touch & Tap Ergonomics (Zero 300ms delay, no gray tap flash) */
a,
button,
input,
select,
textarea,
label,
.btn,
.payment-card,
.qr-card,
.ta-tp-card,
.ta-tp-book-btn,
.ta-tp-pill,
.extra-label,
.ta-pill {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Global intl-tel-input width & mobile dropdown safety */
.iti {
  width: 100% !important;
}

/* Home Fixed TL Route Cards (Bento Sleek Upgrade) */
.ta-tl-route-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ta-tl-route-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 87, 34, 0.28);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.08);
}

.ta-tl-route-title {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #0f172a !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ta-tl-route-price {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #ff5722;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================================
   1. TABLET & MOBILE DRAWER NAVIGATION (<= 991px)
   ========================================================================= */
@media (max-width: 991px) {

  /* Tactile 44x44 Hamburger Toggle */
  nav.navbar.main-nav .navbar-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 10px 11px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
  }

  nav.navbar.main-nav .navbar-toggle .icon-bar {
    margin: 0 !important;
    width: 20px !important;
    height: 2px !important;
    border-radius: 2px !important;
  }

  /* Obsidian Glass Mobile Drawer Sheet */
  #main-navbar-collapse {
    max-height: calc(100dvh - 96px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 8px 12px calc(14px + var(--aw-safe-bottom)) !important;
    border-radius: 0 0 22px 22px !important;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.65) !important;
  }

  ul.navbar-nav.navbar-right {
    gap: 4px !important;
    padding: 6px 0 !important;
  }

  ul.navbar-nav.navbar-right>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  ul.navbar-nav.navbar-right>li>a {
    min-height: 46px !important;
    padding: 11px 16px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Language Flag Dock in Mobile Drawer */
  .navbar-nav>li.lang-switch-mobile.flags {
    margin-top: 6px !important;
    padding: 12px 8px 4px !important;
    gap: 10px !important;
    justify-content: center !important;
  }

  li.lang-switch-mobile.flags a {
    min-width: 46px !important;
    min-height: 38px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  li.lang-switch-mobile.flags a.active-flag {
    border-color: rgba(245, 158, 11, 0.65) !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.22) !important;
  }

  /* Search Results: Travel Info summary card should not stay sticky on mobile/tablet stack */
  .search-results-page .journey-info {
    position: static !important;
    top: auto !important;
    margin-bottom: 20px !important;
    padding: 20px 18px !important;
  }

  /* Booking Page: Logical mobile order (Compact Summary -> Customer Form -> Vehicle Card) */
  .booking-page section {
    padding: 16px 0 32px !important;
  }

  .booking-page .booking-summary {
    position: static !important;
    margin-top: 4px !important;
    margin-bottom: 16px !important;
  }
}

/* =========================================================================
   2. SMARTPHONE CORE BREAKPOINT (<= 767px)
   ========================================================================= */
@media (max-width: 767px) {

  /* Prevent iOS Safari & Android Chrome Auto-Zoom on Focus (16px minimum) */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  input[type="date"],
  input[type="time"],
  select,
  textarea,
  .form-control,
  .search-card-glass .field-pill input,
  .search-card-glass .field-pill select,
  .booking-page .form-control,
  .checkout-page .form-control {
    font-size: 16px !important;
  }

  /* Keep Date & Time split inputs legible without clipping */
  .search-card-glass .field-row-split .field-pill input[type="date"],
  .search-card-glass .field-row-split .field-pill input[type="time"] {
    font-size: 15px !important;
    font-variant-numeric: tabular-nums;
  }

  /* intl-tel-input country list mobile containment */
  .iti__country-list {
    max-width: calc(100vw - 32px) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.25) !important;
  }

  /* Floating WhatsApp button: safe-area aware, non-obstructive */
  .home-sticky-bar {
    right: max(14px, var(--aw-safe-right)) !important;
    bottom: max(14px, var(--aw-safe-bottom)) !important;
  }

  .home-sticky-bar .hsb-btn--icon {
    width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    box-shadow: 0 12px 26px rgba(18, 140, 126, 0.35) !important;
  }

  .home-sticky-bar .hsb-btn i {
    font-size: 26px !important;
  }

  /* Processing Overlay Mobile Proportion */
  html body #ta-processing-overlay .ta-processing-card {
    max-width: calc(100vw - 32px) !important;
    padding: 26px 20px !important;
    border-radius: 20px !important;
  }

  /* -----------------------------------------------------------------------
     2.1) HOME PAGE: Hero + Obsidian Glass Search Card + Map + Bento Grids
     ----------------------------------------------------------------------- */
  .home-page .hero.hero--home {
    min-height: 290px !important;
    height: auto !important;
    padding: 22px 0 64px !important;
    align-items: flex-start !important;
  }

  .home-page .hero-content {
    padding: 8px 0 6px !important;
    text-align: center;
  }

  body.home-page .hero-content h1 {
    font-size: clamp(26px, 7vw, 32px) !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
    text-wrap: balance;
  }

  body.home-page .hero-subtitle {
    font-size: 15px !important;
    line-height: 1.45 !important;
    margin-bottom: 12px !important;
    text-wrap: pretty;
  }

  /* Hide duplicate static badges when mobile badge slider is shown */
  .home-page .hero-content .hero-badges {
    display: none !important;
  }

  .home-page .hero-slider {
    margin-top: 4px !important;
  }

  /* Obsidian Glass Search Card Mobile Framing */
  .search-card-glass-container {
    width: 100% !important;
    max-width: 500px !important;
    margin: -46px auto 22px auto !important;
    padding-left: max(12px, var(--aw-safe-left)) !important;
    padding-right: max(12px, var(--aw-safe-right)) !important;
    box-sizing: border-box !important;
  }

  .search-card-glass {
    padding: 20px 16px !important;
    border-radius: 26px !important;
  }

  .search-card-glass .mode-selector {
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  .search-card-glass .btn-mode {
    height: 48px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    padding: 0 10px !important;
    white-space: nowrap !important;
  }

  .search-card-glass .field-pill {
    height: 56px !important;
    border-radius: 16px !important;
    padding: 0 12px !important;
  }

  /* Fix Swap Button & Clear Button Collision / Screen Edge Overflow */
  .search-card-glass #mainLocationRow .field-pill input {
    padding-right: 84px !important;
    padding-left: 10px !important;
  }

  .search-card-glass #mainLocationRow .field-pill .btn-clear {
    right: 54px !important;
    width: 30px !important;
    height: 30px !important;
  }

  .search-card-glass .swap-control {
    right: 6px !important;
    top: 62px !important;
    /* (56px + 12px + 56px) / 2 */
  }

  .search-card-glass .btn-swap {
    width: 42px !important;
    height: 42px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
  }

  /* Asymmetric Date (wider) + Time (compact) Split Row
     CRITICAL: NEVER set display with !important here because #returnSection
     shares .field-row-split and is toggled via inline style="display: none / flex". */
  .search-card-glass .field-row-split {
    gap: 10px !important;
  }

  .search-card-glass .field-row-split>.field-pill:first-child {
    flex: 1.28 1 0 !important;
    min-width: 0 !important;
  }

  .search-card-glass .field-row-split>.field-pill:last-child {
    flex: 0.92 1 0 !important;
    min-width: 0 !important;
  }

  .search-card-glass .field-row-split .field-pill {
    padding: 0 10px !important;
  }

  .search-card-glass .field-row-split .field-pill input {
    padding: 0 2px 0 6px !important;
  }

  .search-card-glass .toggle-pill {
    height: 52px !important;
    border-radius: 16px !important;
    padding: 0 16px !important;
    margin-bottom: 16px !important;
    font-size: 14px !important;
  }

  .search-card-glass .btn-search-glass {
    height: 56px !important;
    border-radius: 18px !important;
    font-size: 17px !important;
    gap: 10px !important;
    white-space: nowrap !important;
  }

  /* Google Maps Autocomplete Mobile Readability */
  .pac-container {
    width: calc(100vw - 24px) !important;
    left: 12px !important;
    border-radius: 18px !important;
  }

  .pac-item {
    padding: 12px 14px !important;
  }

  .pac-item-query {
    font-size: 14px !important;
  }

  .pac-item span:last-child {
    font-size: 12px !important;
  }

  /* Home Map Card Mobile Proportion */
  .home-page .home-map-section {
    padding-top: 4px !important;
    padding-bottom: 14px !important;
  }

  .home-page .home-map-card,
  .home-page #map {
    height: 250px !important;
    min-height: 250px !important;
    border-radius: 22px !important;
  }

  /* Home Quick Routes & Fixed TL Prices Bento Grid */
  .home-page .qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .home-page .qr-card {
    padding: 14px 12px !important;
    border-radius: 16px !important;
  }

  .home-page .qr-card-title {
    font-size: 14.5px !important;
    line-height: 1.3 !important;
    margin: 10px 0 6px !important;
  }

  .home-page .qr-card-features li {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    word-break: break-word;
  }

  .ta-tl-route-card {
    padding: 14px 12px !important;
    border-radius: 16px !important;
  }

  .ta-tl-route-title {
    font-size: 13.5px !important;
  }

  .ta-tl-route-price {
    font-size: 18px !important;
  }

  /* Home Marquee Cards (Fleet & Tours) Mobile Sizing */
  .fleet-marquee-container,
  .tours-marquee-container {
    padding: 16px 14px 28px !important;
  }

  .fleet-marquee-item {
    width: 285px !important;
    margin-right: 16px !important;
  }

  .tours-marquee-item {
    width: 285px !important;
  }

  /* Home Section Titles Mobile Scale */
  .highlights-main-title,
  .how-title-main,
  .fleet-marquee-title,
  .tours-title-main,
  .reviews-main-title,
  body.home-page h2,
  body.home-page .section-title {
    font-size: 24px !important;
    line-height: 1.25 !important;
    text-wrap: balance;
  }

  /* -----------------------------------------------------------------------
     2.2) SEARCH RESULTS PAGE (search-results.php)
     ----------------------------------------------------------------------- */
  .search-results-page section {
    padding: 16px 0 28px !important;
  }

  .search-results-page .vehicle-card {
    border-radius: 22px !important;
  }

  .search-results-page .vehicle-card-body {
    padding: 16px !important;
  }

  .search-results-page .vehicle-card-bottom {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px 16px 16px !important;
  }

  .search-results-page .vehicle-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .search-results-page .vehicle-price span:not(.price-secondary) {
    font-size: 22px !important;
  }

  .search-results-page .vehicle-card-bottom form,
  .search-results-page .btn-select-vehicle {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
    border-radius: 14px !important;
  }

  /* -----------------------------------------------------------------------
     2.3) BOOKING PAGE (booking.php)
     ----------------------------------------------------------------------- */
  .booking-page .glass-panel {
    padding: 20px 16px !important;
    border-radius: 22px !important;
    border-left-width: 5px !important;
    margin-bottom: 16px !important;
  }

  .booking-page h2 {
    font-size: 22px !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
  }

  .booking-page .form-control {
    height: 50px !important;
    border-radius: 14px !important;
  }

  .booking-page textarea.form-control {
    height: auto !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .booking-page .extras-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .booking-page .extra-label {
    padding: 10px 10px !important;
    border-radius: 14px !important;
    gap: 8px !important;
    min-height: 54px !important;
  }

  .booking-page .extra-icon {
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0;
  }

  .booking-page .extra-title {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
  }

  .booking-page .btn-confirm-booking {
    height: 54px !important;
    border-radius: 16px !important;
    font-size: 16px !important;
    letter-spacing: 1px !important;
    margin-top: 10px !important;
    white-space: nowrap !important;
  }

  .booking-page .vehicle-detail-card img {
    max-width: 140px !important;
  }

  .booking-page .vehicle-detail-card h3 {
    font-size: 22px !important;
  }

  /* -----------------------------------------------------------------------
     2.4) CHECKOUT & TAMI 3D SECURE PAYMENT PAGE (checkout.php)
     ----------------------------------------------------------------------- */
  .checkout-page section {
    padding: 16px 0 32px !important;
  }

  .checkout-page .glass-panel {
    padding: 20px 16px !important;
    border-radius: 22px !important;
  }

  /* Side-by-side Bento Payment Method Cards on Mobile */
  .checkout-page .options-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .checkout-page .options-wrapper::before,
  .checkout-page .options-wrapper::after {
    display: none !important;
  }

  .checkout-page .options-wrapper>[class*="col-"] {
    width: 100% !important;
    padding: 0 !important;
    float: none !important;
  }

  .checkout-page .payment-card {
    height: 100% !important;
    margin-bottom: 0 !important;
    padding: 14px 10px !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .checkout-page .payment-card strong {
    font-size: 14px !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
  }

  .checkout-page .payment-card small {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    display: block !important;
  }

  .checkout-page .tami-payment-container {
    padding: 16px 14px !important;
    border-radius: 18px !important;
  }

  .checkout-page .tami-card-header {
    padding-bottom: 12px !important;
    margin-bottom: 14px !important;
    gap: 8px !important;
  }

  .checkout-page .tami-sandbox-helper {
    padding: 12px !important;
  }

  .checkout-page .tami-test-fill-btn {
    width: 100% !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  .checkout-page #tami-test-card-select {
    height: 42px !important;
    font-size: 13px !important;
  }

  .checkout-page .btn-primary {
    height: 54px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    letter-spacing: 0.8px !important;
    white-space: nowrap !important;
  }

  /* Distance Sales Agreement Modal Mobile Sheet */
  .ta-modal-content {
    width: calc(100% - 24px) !important;
    margin: 20px auto !important;
    border-radius: 20px !important;
  }

  .ta-modal-header,
  .ta-modal-body,
  .ta-modal-footer {
    padding: 14px 16px !important;
  }

  .ta-modal-body {
    max-height: 68dvh !important;
  }

  /* -----------------------------------------------------------------------
     2.5) SUBPAGES: About, Tours, Vehicles, Services, FAQ, Contact, Check Booking
     ----------------------------------------------------------------------- */
  /* Subpage Hero Action Buttons: Clean 2x2 Bento Grid */
  .ta-about-actions,
  .services-hero-actions,
  .ta-contact-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .ta-about-actions .btn,
  .services-hero-actions .btn,
  .ta-contact-actions .btn {
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    font-size: 13.5px !important;
    border-radius: 14px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  /* Horizontal Pill Scrollers (About anchor nav & FAQ category filters) */
  .ta-about-nav-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
    justify-content: flex-start !important;
  }

  .ta-about-nav-inner::-webkit-scrollbar {
    display: none !important;
  }

  .ta-about-nav-inner .ta-pill {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  /* Check Booking Page Mobile Form & Details */
  .check-booking-container {
    padding: 24px 0 40px !important;
  }

  .check-form-group {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .check-input,
  .check-btn {
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 14px !important;
  }

  .detail-row {
    flex-wrap: wrap !important;
    gap: 4px 12px !important;
  }

  .detail-value {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  /* Tour Detail Page (tur.php) Counter & Form Ergonomics */
  .participants .participant-item .counter button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Footer Mobile Polish */
  footer,
  .footer-section {
    padding: 36px 0 calc(28px + var(--aw-safe-bottom)) !important;
  }

  .footer .newsletter-input,
  .footer .btn-subscribe {
    min-height: 48px !important;
    border-radius: 14px !important;
    width: 100% !important;
  }
}

/* =========================================================================
   3. COMPACT SMARTPHONE BREAKPOINT (<= 390px)
   ========================================================================= */
@media (max-width: 390px) {
  .home-page .qr-grid {
    grid-template-columns: 1fr !important;
  }

  .booking-page .extras-grid {
    grid-template-columns: 1fr !important;
  }

  .checkout-page .options-wrapper {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================================
   5. WEB DESIGN GUIDELINES + TRANSFER PRICES DESIGN SYSTEM
   ========================================================================= */
[id] {
  scroll-margin-top: 112px;
}

#main-navbar-collapse,
.ta-modal-body {
  overscroll-behavior: contain;
}

/* Skip to main content link (accessible keyboard navigation) */
.ta-skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 2147483500;
  padding: 12px 18px;
  border-radius: 12px;
  background: #f59e0b;
  color: #0f172a;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.35);
  transition: top 0.18s ease;
}

.ta-skip-link:focus,
.ta-skip-link:focus-visible {
  top: 14px;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  color: #0f172a;
}

/* Floating Back-to-Top Action Button */
.ta-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 94px;
  z-index: 9998;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, background-color 0.2s ease, visibility 0.22s ease;
}

.ta-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ta-back-to-top:hover {
  background: #ff5722;
}

@media (max-width: 767px) {
  .ta-back-to-top {
    right: max(14px, var(--aw-safe-right));
    bottom: calc(76px + var(--aw-safe-bottom));
    width: 44px;
    height: 44px;
  }
}

/* Upgraded Transfer Prices Bento Section */
.ta-tp-section {
  padding: 36px 0 !important;
}

.ta-tp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.ta-tp-title-wrap {
  max-width: 680px;
}

.ta-tp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ta-tp-title {
  margin: 0 0 6px 0 !important;
  font-family: "Playfair Display", Inter, serif !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-wrap: balance;
}

.ta-tp-subtitle {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #475569 !important;
  text-wrap: pretty;
}

.ta-tp-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ta-tp-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.ta-tp-pill {
  min-height: 36px;
  padding: 6px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ta-tp-pill.is-active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.ta-tp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ta-tp-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.ta-tp-card[hidden] {
  display: none !important;
}

.ta-tp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 87, 34, 0.35);
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.09);
}

.ta-tp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ta-tp-airport-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 87, 34, 0.1);
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ta-tp-fixed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 12px;
  font-weight: 700;
}

.ta-tp-route .ta-tl-route-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 6px !important;
}

.ta-tp-arrow {
  color: #ff5722;
  font-size: 14px;
}

.ta-tp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.ta-tp-meta i {
  color: #ff5722;
  margin-right: 4px;
}

.ta-tp-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.ta-tp-perks span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.ta-tp-perks i {
  color: #f59e0b;
}

.ta-tp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ta-tp-price-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ta-tp-price-main {
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #c2410c !important;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.ta-tp-price-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.ta-tp-book-btn {
  min-height: 44px;
  padding: 10px 18px;
  border: none;
  border-radius: 14px;
  background: #0f172a;
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ta-tp-book-btn:hover {
  background: #ff5722;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 87, 34, 0.28);
}

.search-card-glass.home-search-flash {
  animation: taSearchFlash 1.2s ease;
}

@keyframes taSearchFlash {
  0% { box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35), 0 0 0 0 rgba(255, 87, 34, 0); }
  25% { box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35), 0 0 0 6px rgba(255, 87, 34, 0.32); }
  65% { box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35), 0 0 0 10px rgba(255, 87, 34, 0.14); }
  100% { box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35), 0 0 0 0 rgba(255, 87, 34, 0); }
}

@media (max-width: 767px) {
  .ta-tp-section {
    padding: 24px 0 !important;
  }

  .ta-tp-title {
    font-size: 24px !important;
  }

  .ta-tp-controls {
    width: 100%;
    justify-content: space-between;
  }

  .ta-tp-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ta-tp-card {
    padding: 16px;
    border-radius: 18px;
  }

  .ta-tp-footer {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .ta-tp-price-main {
    font-size: 21px !important;
  }

  .ta-tp-book-btn {
    width: auto;
    flex-shrink: 0;
    min-height: 44px;
    padding: 10px 15px;
    font-size: 13.5px;
  }
}

.ta-tp-guides-bar {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ta-tp-guides-label {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ta-tp-guides-label i {
  color: #c2410c;
}

.ta-tp-guide-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.ta-tp-guide-link:hover,
.ta-tp-guide-link:focus-visible {
  border-color: #ff5722;
  color: #c2410c;
  background: rgba(255, 87, 34, 0.06);
  text-decoration: none;
}

/* =========================================================================
   5. SEO ROUTE GUIDES PAGE (routes.php - Midnight Boutique & Bento)
   ========================================================================= */
.ta-route-hero {
  background: radial-gradient(circle at top right, rgba(255, 87, 34, 0.16), transparent 48%),
              linear-gradient(135deg, #020617 0%, #0f172a 100%);
  color: #f8fafc;
  padding: 112px 0 44px;
}

.ta-route-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 18px;
}

.ta-route-crumb a {
  color: #f8fafc;
  text-decoration: none;
}

.ta-route-crumb a:hover,
.ta-route-crumb a:focus-visible {
  color: #fb923c;
  text-decoration: underline;
}

.ta-route-hero-flex {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.ta-route-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 87, 34, 0.18);
  border: 1px solid rgba(255, 87, 34, 0.38);
  color: #fed7aa;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ta-route-hero h1 {
  color: #ffffff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

.ta-route-sub {
  color: #e2e8f0;
  font-size: 16px;
  line-height: 1.6;
  max-width: 68ch;
  margin: 0 0 18px;
}

.ta-route-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ta-route-specs span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
}

.ta-route-specs i {
  color: #fb923c;
}

.ta-route-price-panel {
  background: #ffffff;
  color: #0f172a;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.42);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ta-route-price-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ta-route-price-main {
  font-size: 32px;
  font-weight: 900;
  color: #c2410c;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.ta-route-price-sub {
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.ta-route-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ta-route-cta-primary,
.ta-route-cta-wa {
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ta-route-cta-primary {
  background: #c2410c;
  color: #ffffff;
}

.ta-route-cta-primary:hover,
.ta-route-cta-primary:focus-visible {
  background: #9a3412;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.ta-route-cta-wa {
  background: #065f46;
  color: #ffffff;
}

.ta-route-cta-wa:hover,
.ta-route-cta-wa:focus-visible {
  background: #064e3b;
  color: #ffffff;
  text-decoration: none;
}

.ta-route-body {
  background: #f8fafc;
  padding: 36px 0 56px;
}

.ta-route-grid,
.ta-route-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ta-route-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.04);
}

.ta-route-card h2,
.ta-route-faq h2,
.ta-route-others h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
}

.ta-route-summary-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 10px 0 8px;
}

.ta-route-summary-card p,
.ta-route-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

.ta-route-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ta-route-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  color: #1e293b;
}

.ta-route-list i {
  color: #047857;
  margin-top: 3px;
}

.ta-route-faq,
.ta-route-others {
  margin-top: 32px;
}

.ta-route-faq-grid {
  display: grid;
  gap: 12px;
}

.ta-route-faq-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
}

.ta-route-faq-item summary {
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}

.ta-route-faq-item p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #334155;
}

.ta-route-card-foot {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ta-route-notice {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 87, 34, 0.16);
  border: 1px solid rgba(255, 87, 34, 0.4);
  color: #fff7ed;
}

@media (max-width: 767px) {
  .ta-route-hero {
    padding: 96px 0 32px;
  }

  .ta-route-hero h1 {
    font-size: 28px;
  }

  .ta-route-hero-flex,
  .ta-route-grid,
  .ta-route-cards-grid {
    grid-template-columns: 1fr;
  }

  .ta-tp-guides-bar {
    padding: 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ta-skip-link,
  .ta-back-to-top,
  .ta-tp-card,
  .ta-tp-pill,
  .ta-tp-book-btn,
  .ta-tp-guide-link,
  .ta-route-cta-primary,
  .ta-route-cta-wa {
    transition: none !important;
  }

  .search-card-glass.home-search-flash {
    animation: none !important;
  }
}

/* =========================================================================
   4. ULTRA-NARROW SMARTPHONE BREAKPOINT (<= 350px)
   ========================================================================= */
@media (max-width: 350px) {
  .search-card-glass .field-row-split {
    flex-direction: column !important;
  }

  .search-card-glass .field-row-split>.field-pill:first-child,
  .search-card-glass .field-row-split>.field-pill:last-child {
    flex: 1 1 auto !important;
    width: 100% !important;
  }

  .ta-tp-footer {
    flex-wrap: wrap;
  }

  .ta-tp-book-btn {
    width: 100%;
  }

  .ta-about-actions,
  .services-hero-actions,
  .ta-contact-actions {
    grid-template-columns: 1fr !important;
  }
}