/* ================================================================
   CarBhade Mobile App-Like Responsive Styles
   ================================================================ */

:root {
   --mb-primary: #E63946;
   --mb-primary-dark: #c62f3a;
   --mb-dark: #111827;
   --mb-gray: #f5f5f7;
   --mb-gray-2: #e5e5ea;
   --mb-text: #1c1c1e;
   --mb-text-secondary: #8e8e93;
   --mb-green: #25D366;
   --mb-amber: #F59E0B;
   --mb-radius: 16px;
   --mb-radius-sm: 12px;
   --mb-radius-xs: 8px;
   --mb-shadow: 0 2px 12px rgba(0,0,0,.08);
   --mb-shadow-lg: 0 8px 30px rgba(0,0,0,.12);
   --mb-safe-bottom: env(safe-area-inset-bottom, 0px);
   --mb-safe-top: env(safe-area-inset-top, 0px);
   --mb-bottom-nav-height: 64px;
}

/* ================================================================
   GLOBAL MOBILE BASE
   ================================================================ */
@media (max-width: 768px) {
   * { -webkit-tap-highlight-color: transparent; }
   html { -webkit-text-size-adjust: 100%; }
   body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
   }
   body.drawer-open {
      overflow: hidden !important;
      position: fixed;
      width: 100%;
   }
   .footer {
      padding-bottom: calc(var(--mb-bottom-nav-height) + var(--mb-safe-bottom) + 20px) !important;
   }
   .floating-btn.whatsapp-float {
      bottom: calc(var(--mb-bottom-nav-height) + var(--mb-safe-bottom) + 16px) !important;
      right: 16px !important;
      width: 50px !important;
      height: 50px !important;
      font-size: 24px !important;
   }
   .floating-btn.call-float {
      bottom: calc(var(--mb-bottom-nav-height) + var(--mb-safe-bottom) + 76px) !important;
      right: 16px !important;
      width: 46px !important;
      height: 46px !important;
      font-size: 18px !important;
   }
   #backToTop {
      bottom: calc(var(--mb-bottom-nav-height) + var(--mb-safe-bottom) + 132px) !important;
      right: 16px !important;
      width: 42px !important;
      height: 42px !important;
      font-size: 14px !important;
   }
}

/* ================================================================
   TOP HEADER BAR
   ================================================================ */
@media (max-width: 768px) {
   .top-header-bar {
      padding: 12px 0;
      background: linear-gradient(135deg, #1a1a2e, #16213e);
   }
   .top-header-bar .columns.is-mobile {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 0;
   }
   .top-header-bar .column {
      width: 100% !important;
      max-width: 100% !important;
      flex: 0 0 100% !important;
      padding: 2px 0 !important;
      text-align: center !important;
   }
   /* Hide the entire ticker column */
   .top-header-bar .column:first-child {
      display: none !important;
   }
   /* Contact row - single line centered */
   .top-header-bar .contact-item {
      display: inline !important;
      text-align: center !important;
      font-size: 14px;
      padding: 0 8px;
      margin: 0 !important;
   }
   .top-header-bar .contact-item a {
      color: rgba(255,255,255,.95) !important;
      font-size: 14px !important;
      font-weight: 600;
      white-space: nowrap;
   }
   .top-header-bar .ml-4 {
      margin-left: 4px !important;
   }
}

/* ================================================================
   SLIDE-IN DRAWER MENU
   ================================================================ */
.mobile-drawer-overlay {
   display: none;
   position: fixed;
   inset: 0;
   background: rgba(0,0,0,.5);
   z-index: 10000;
   opacity: 0;
   transition: opacity .3s ease;
   -webkit-backdrop-filter: blur(4px);
   backdrop-filter: blur(4px);
}
.mobile-drawer-overlay.active { display: block; opacity: 1; }

.mobile-drawer {
   position: fixed;
   top: 0;
   left: -300px;
   width: 300px;
   max-width: 85vw;
   height: 100%;
   background: #fff;
   z-index: 10001;
   transition: left .3s cubic-bezier(.4,0,.2,1);
   overflow-y: auto;
   overflow-x: hidden;
   -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open {
   left: 0;
   box-shadow: 10px 0 40px rgba(0,0,0,.2);
}
.mobile-drawer-header {
   background: linear-gradient(135deg, #1a1a2e, #16213e);
   padding: 30px 20px 22px;
   position: relative;
   overflow: hidden;
}
.mobile-drawer-header::after {
   content: '';
   position: absolute;
   bottom: -30px;
   right: -30px;
   width: 120px;
   height: 120px;
   background: rgba(255,255,255,.08);
   border-radius: 50%;
}
.mobile-drawer-header .drawer-logo { height: 42px; margin-bottom: 10px; }
.mobile-drawer-header .drawer-tagline { color: rgba(255,255,255,.85); font-size: 12px; font-weight: 500; }

.mobile-drawer-nav { padding: 8px 0; }
.mobile-drawer-nav a {
   display: flex;
   align-items: center;
   gap: 14px;
   padding: 13px 20px;
   color: var(--mb-text);
   text-decoration: none;
   font-size: 15px;
   font-weight: 500;
   transition: all .15s ease;
   position: relative;
   min-height: 48px;
}
.mobile-drawer-nav a i { width: 22px; text-align: center; font-size: 16px; color: var(--mb-primary); flex-shrink: 0; }
.mobile-drawer-nav a:active { background: rgba(230,57,70,.06); }
.mobile-drawer-nav a.active { background: rgba(230,57,70,.08); color: var(--mb-primary); font-weight: 600; }
.mobile-drawer-nav a.active::before {
   content: '';
   position: absolute;
   left: 0; top: 8px; bottom: 8px;
   width: 3px;
   background: var(--mb-primary);
   border-radius: 0 3px 3px 0;
}
.mobile-drawer-divider { height: 1px; background: var(--mb-gray-2); margin: 6px 20px; }

.mobile-drawer-cta { margin: 12px 16px 20px; }
.mobile-drawer-cta a {
   display: flex; align-items: center; justify-content: center; gap: 10px;
   width: 100%; padding: 14px 20px;
   background: var(--mb-primary); color: #fff;
   border-radius: var(--mb-radius-sm); font-size: 15px; font-weight: 700;
   text-decoration: none; min-height: 50px;
   box-shadow: 0 4px 15px rgba(230,57,70,.3);
}
.mobile-drawer-cta a:active { transform: scale(.97); }

.mobile-drawer-contact { padding: 14px 20px 20px; border-top: 1px solid var(--mb-gray-2); }
.mobile-drawer-contact a {
   display: flex; align-items: center; gap: 10px;
   padding: 8px 0; color: var(--mb-text-secondary);
   text-decoration: none; font-size: 13px; min-height: 36px;
}
.mobile-drawer-contact a i { color: var(--mb-primary); width: 18px; text-align: center; }

.mobile-drawer-close {
   position: absolute; top: 16px; right: 16px;
   width: 34px; height: 34px;
   display: flex; align-items: center; justify-content: center;
   background: rgba(255,255,255,.2); color: #fff;
   border: none; border-radius: 50%; font-size: 16px; cursor: pointer; z-index: 2;
}
.mobile-drawer-close:active { background: rgba(255,255,255,.35); }

@media (max-width: 768px) {
   .navbar-burger { display: none !important; }
   .navbar-menu { display: none !important; }
}

/* ================================================================
   BOTTOM NAVIGATION BAR
   ================================================================ */
.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
   .mobile-bottom-nav {
      display: flex;
      position: fixed;
      bottom: 0; left: 0; right: 0;
      height: calc(var(--mb-bottom-nav-height) + var(--mb-safe-bottom));
      padding-bottom: var(--mb-safe-bottom);
      background: rgba(255,255,255,.95);
      border-top: 1px solid rgba(0,0,0,.08);
      z-index: 9990;
      align-items: stretch;
      justify-content: space-around;
      box-shadow: 0 -2px 16px rgba(0,0,0,.06);
      -webkit-backdrop-filter: blur(20px);
      backdrop-filter: blur(20px);
   }
   .bottom-nav-item {
      flex: 1;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 2px; text-decoration: none;
      color: var(--mb-text-secondary); font-size: 10px; font-weight: 500;
      padding: 4px 0; transition: color .2s ease;
      position: relative; min-height: 48px;
   }
   .bottom-nav-item i { font-size: 20px; transition: transform .2s ease; }
   .bottom-nav-item span { line-height: 1; }
   .bottom-nav-item.active { color: var(--mb-primary); }
   .bottom-nav-item.active i { transform: scale(1.1); }
   .bottom-nav-item.active::before {
      content: ''; position: absolute; top: 0;
      left: 20%; right: 20%; height: 2.5px;
      background: var(--mb-primary); border-radius: 0 0 3px 3px;
   }
   .bottom-nav-item.bottom-nav-center { color: #fff; font-weight: 700; font-size: 10px; }
   .bottom-nav-item.bottom-nav-center .bottom-nav-icon-wrap {
      width: 50px; height: 50px;
      background: linear-gradient(135deg, var(--mb-primary), #b91c2e);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      margin-top: -24px;
      box-shadow: 0 4px 16px rgba(230,57,70,.35);
   }
   .bottom-nav-item.bottom-nav-center:active .bottom-nav-icon-wrap { transform: scale(.92); }
   .bottom-nav-item.bottom-nav-center .bottom-nav-icon-wrap i { color: #fff; font-size: 20px; }
   .bottom-nav-item.bottom-nav-center.active .bottom-nav-icon-wrap { box-shadow: 0 4px 24px rgba(230,57,70,.5); }
   .bottom-nav-item.bottom-nav-center.active::before { display: none; }
   body.drawer-open .mobile-bottom-nav { display: none !important; }
}

/* ================================================================
   MOBILE NAVBAR - Center logo
   ================================================================ */
@media (max-width: 768px) {
   .navigation { padding: 0; min-height: 68px; }
   .navbar-brand {
      min-height: 68px;
      flex-grow: 1;
      justify-content: center;
   }
   .navbar-brand .navbar-item {
      padding: 4px 10px;
      justify-content: center;
      position: relative;
      flex-direction: column;
   }
   .navbar-brand .navbar-item img {
      height: 54px !important;
      width: auto !important;
   }
   .navbar-brand .navbar-item::after {
      content: 'Your Trusted Travel Partner';
      display: block;
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 1.5px;
      color: #F59E0B;
      text-transform: uppercase;
      margin-top: -2px;
   }
   .navbar-end .navbar-item { display: none !important; }
}

/* ================================================================
   MOBILE HERO SECTION
   ================================================================ */
@media (max-width: 768px) {
   .hero-slider .hero-slide { min-height: auto !important; padding: 10px 0 16px !important; overflow: visible !important; }
   .hero-slider {
      background: url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?w=1920&q=80') center 40% / cover no-repeat;
      margin-top: 0;
   }
   .hero-slider::before {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(10,14,39,0.5);
      z-index: 1;
   }
   .hero-title { font-size: 24px !important; line-height: 1.25 !important; margin-bottom: 10px !important; }
   .hero-subtitle { font-size: 13px !important; line-height: 1.5 !important; margin-bottom: 12px !important; padding: 0 16px; }
   .hero-feature-items { gap: 6px !important; flex-wrap: wrap; justify-content: center; }
   .hero-feature-item { font-size: 11px !important; padding: 4px 10px !important; background: rgba(255,255,255,.12) !important; border-radius: 20px; }
   .hero-cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
   .hero-cta .btn { width: 100%; justify-content: center; padding: 13px 20px !important; font-size: 15px !important; border-radius: var(--mb-radius-sm) !important; min-height: 48px; }
   .taxi-markers, .map-pins, .taxi-trail { display: none !important; }

   /* Hide booking form on mobile (bottom nav Book Now serves same purpose) */
   .hero-slider .column.is-5-desktop,
   .hero-slider .booking-card { display: none !important; }
   .hero-slider .columns > .column:first-child {
      flex: 0 0 100% !important;
      max-width: 100% !important;
      text-align: center !important;
   }
   .hero-slider .columns > .column:first-child .hero-badge { justify-content: center; }
   .hero-slider .columns > .column:first-child .hero-features { justify-content: center; }
   .hero-slider .columns > .column:first-child .hero-cta { align-items: center; }

   /* About hero - full-width centered content, hide card */
   .about-hero .columns > .column.is-5 { display: none !important; }
   .about-hero .columns > .column.is-7 {
      flex: 0 0 100% !important;
      max-width: 100% !important;
      text-align: center !important;
   }
   .about-hero .about-hero-features { justify-content: center; }
   .about-hero .about-hero-cta { justify-content: center; }

   /* Fare-chart hero - full-width centered content, hide card */
   .ai-fare-hero .column.is-5-desktop { display: none !important; }
   .ai-fare-hero .columns > .column.is-7 {
      flex: 0 0 100% !important;
      max-width: 100% !important;
      text-align: center !important;
   }
   .ai-fare-hero .ai-badge { justify-content: center; }
   .ai-fare-hero .ai-stats-row { justify-content: center; }
   .ai-fare-hero .ai-hero-cta { justify-content: center; }

   /* Contact hero - full-width centered content, hide card */
   .ct-hero .column.is-5 { display: none !important; }
   .ct-hero .columns > .column.is-7 {
      flex: 0 0 100% !important;
      max-width: 100% !important;
      text-align: center !important;
   }
   .ct-hero .ct-hero-features { justify-content: center; }
   .ct-hero .ct-hero-cta { justify-content: center; }

   /* Privacy policy hero - full-width centered content, hide AI card */
   .pp-hero .column.is-6-desktop:last-child { display: none !important; }
   .pp-hero .columns > .column.is-6-desktop:first-child {
      flex: 0 0 100% !important;
      max-width: 100% !important;
      text-align: center !important;
   }

   /* Terms & conditions hero - full-width centered content, hide AI card */
   .tc-hero .column.is-6-desktop:last-child { display: none !important; }
   .tc-hero .columns > .column.is-6-desktop:first-child {
      flex: 0 0 100% !important;
      max-width: 100% !important;
      text-align: center !important;
   }

   /* Refund policy hero - full-width centered content, hide AI card */
   .rc-hero .column.is-6-desktop:last-child { display: none !important; }
   .rc-hero .columns > .column.is-6-desktop:first-child {
      flex: 0 0 100% !important;
      max-width: 100% !important;
      text-align: center !important;
   }

   /* Booking hero - full-width centered content, hide card */
   .bk-hero .column.is-5 { display: none !important; }
   .bk-hero .columns > .column.is-7 {
      flex: 0 0 100% !important;
      max-width: 100% !important;
      text-align: center !important;
   }
   .bk-hero .bk-hero-features { justify-content: center; }
}

/* ================================================================
   TRUST BAR - HIDE ON MOBILE
   ================================================================ */
@media (max-width: 768px) {
   .trust-bar, #trustBar { display: none !important; }
}

/* ================================================================
   MOBILE CARDS
   ================================================================ */
@media (max-width: 768px) {
   .stat-card, .feature-card, .vehicle-card, .route-card,
   .service-card, .testimonial-card, .faq-item {
      border-radius: var(--mb-radius) !important;
      box-shadow: var(--mb-shadow) !important;
   }
   section { padding-top: 32px !important; padding-bottom: 32px !important; }
   .section-title { font-size: 21px !important; line-height: 1.3 !important; margin-bottom: 6px !important; }
   .section-subtitle { font-size: 13px !important; line-height: 1.5; }
   .columns.is-mobile.is-multiline .column.is-6-mobile { padding: 6px; }

   /* Route cards - prevent overflow */
   .route-card {
      padding: 12px !important;
      margin-bottom: 8px;
      overflow: hidden;
   }
   .route-from-to {
      font-size: 12px !important;
      gap: 4px !important;
      flex-wrap: wrap;
      justify-content: center;
   }
   .route-from-to span {
      font-size: 12px !important;
      font-weight: 700;
      white-space: nowrap;
      max-width: 100px;
      overflow: hidden;
      text-overflow: ellipsis;
   }
   .route-from-to .route-arrow,
   .route-from-to .fa-long-arrow-alt-right { font-size: 10px !important; }
   .route-from-to .fa-circle { font-size: 5px !important; }
   .route-details { font-size: 11px !important; gap: 8px !important; }
   .route-bottom {
      flex-direction: column;
      gap: 8px;
      align-items: stretch;
   }
   .route-price { text-align: center; font-size: 13px !important; }
   .route-bottom .btn { width: 100%; justify-content: center; min-height: 36px; font-size: 12px; }

   .trust-item { padding: 6px 4px !important; }
   .trust-number { font-size: 20px !important; }
   .trust-label { font-size: 10px !important; }
   .trust-divider { height: 28px; }

   .stat-number { font-size: 26px !important; }
   .stat-label { font-size: 10px !important; }

   .faq-item { margin-bottom: 8px !important; }
   .faq-question { padding: 12px 14px !important; font-size: 14px !important; min-height: 48px; }
   .faq-answer { padding: 0 14px 12px !important; font-size: 13px !important; }
   .gallery-grid { gap: 5px !important; }
   .gallery-item { min-height: 110px !important; }
}

/* ================================================================
   VEHICLE CARDS - Fix price/button alignment
   ================================================================ */
@media (max-width: 768px) {
   .vehicle-card {
      border-radius: var(--mb-radius) !important;
      box-shadow: var(--mb-shadow) !important;
      overflow: hidden;
   }
   .vehicle-card .vehicle-body { padding: 14px !important; }
   .vehicle-card h3 { font-size: 16px !important; margin-bottom: 4px !important; }
   .vehicle-card .vehicle-models { font-size: 12px !important; margin-bottom: 8px !important; }
   .vehicle-card .vehicle-specs { gap: 6px !important; }
   .vehicle-card .vehicle-specs span { font-size: 11px !important; }
   .vehicle-card .vehicle-best { font-size: 11px !important; margin-bottom: 10px !important; }
   .vehicle-price-row {
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
      border-top: 1px solid #f0f0f0;
      padding-top: 12px !important;
      gap: 8px;
   }
   .vehicle-price {
      font-size: 20px !important;
      font-weight: 800;
      white-space: nowrap;
   }
   .vehicle-price span { font-size: 11px !important; }
   .btn-book-vehicle {
      padding: 8px 14px !important;
      font-size: 12px !important;
      border-radius: var(--mb-radius-xs) !important;
      white-space: nowrap;
      min-height: 36px;
   }
}

/* ================================================================
   TESTIMONIALS - Fix swiper stretch
   ================================================================ */
@media (max-width: 768px) {
   .section-testimonials { overflow: hidden; }
   .testimonialsSwiper { padding: 0 0 40px 0 !important; overflow: visible; }
   .testimonialsSwiper .swiper-wrapper { padding: 0; }
   .testimonialsSwiper .swiper-slide {
      width: 100% !important;
      opacity: 1 !important;
      height: auto !important;
   }
   .testimonial-card {
      border-radius: var(--mb-radius) !important;
      box-shadow: var(--mb-shadow) !important;
      padding: 18px 14px !important;
      margin: 0 4px;
   }
   .testimonial-text { font-size: 13px !important; line-height: 1.6 !important; }
   .testimonial-author strong { font-size: 13px !important; }
   .testimonial-author small { font-size: 11px !important; }
   .testimonials-pagination { bottom: 8px !important; }
}

/* ================================================================
   MOBILE BOOKING FORM
   ================================================================ */
@media (max-width: 768px) {
   .booking-form-card, .bk-booking-card {
      border-radius: var(--mb-radius) !important;
      padding: 18px 14px !important;
      box-shadow: var(--mb-shadow-lg) !important;
   }
   .booking-form-card .field, .bk-booking-card .field { margin-bottom: 12px !important; }
   .booking-form-card input, .booking-form-card select,
   .bk-booking-card input, .bk-booking-card select {
      min-height: 46px !important;
      border-radius: var(--mb-radius-xs) !important;
      font-size: 15px !important;
      padding: 10px 12px !important;
   }
   .booking-form-card .btn, .bk-booking-card .btn {
      width: 100%; min-height: 48px; font-size: 16px !important;
      font-weight: 700; border-radius: var(--mb-radius-sm) !important; justify-content: center;
   }
}

/* ================================================================
   MOBILE FARE TABLE
   ================================================================ */
@media (max-width: 768px) {
   .route-fare-table {
      font-size: 11px !important; display: block;
      overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap;
   }
   .route-fare-table thead th { padding: 10px 8px !important; font-size: 10px !important; position: sticky; top: 0; background: var(--mb-primary); z-index: 2; }
   .route-fare-table tbody td { padding: 8px 6px !important; font-size: 11px !important; }
   .ai-fare-card { margin-bottom: 10px; }
   .trip-toggle-btn { min-height: 42px; font-size: 13px !important; }
}

/* ================================================================
   MOBILE CTA SECTIONS
   ================================================================ */
@media (max-width: 768px) {
   .cta-box { padding: 24px 16px !important; border-radius: var(--mb-radius) !important; margin: 0 12px; }
   .cta-box h2 { font-size: 19px !important; }
   .cta-box p { font-size: 13px !important; }
   .cta-box .btn { width: 100%; max-width: 100%; justify-content: center; min-height: 46px; }
}

/* ================================================================
   MOBILE FOOTER
   ================================================================ */
@media (max-width: 768px) {
   .footer { padding: 24px 14px calc(var(--mb-bottom-nav-height) + var(--mb-safe-bottom) + 20px) !important; }
   .footer-widget { margin-bottom: 16px; text-align: center; }
   .title-footer { font-size: 13px !important; margin-bottom: 8px !important; }
   .footer-widget ul { list-style: none; padding: 0; margin: 0; }
   .footer-widget ul li { margin-bottom: 4px; }
   .footer-widget ul li a { font-size: 12px !important; min-height: 32px; display: inline-flex; align-items: center; }
   .footer-widget .desc { font-size: 11px !important; line-height: 1.6; text-align: center; }
   .footer-contact { list-style: none; padding: 0; margin: 0; text-align: center; }
   .footer-contact li { font-size: 12px !important; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
   .footer-contact li i { color: var(--mb-primary); width: 16px; text-align: center; }
   .footer-contact li a { color: rgba(255,255,255,.8); text-decoration: none; }
   .footer .logo { text-align: center; }
   .footer .logo img { margin: 0 auto; }
   .social-icons { justify-content: center !important; }
   .border-top { margin-top: 12px !important; padding-top: 12px !important; text-align: center; }
   .footer .has-text-centered { text-align: center !important; }

   /* Hide Quick Links and Our Services on mobile */
   .footer .footer-col-links,
   .footer .footer-col-services {
      display: none !important;
   }
   /* Full width for remaining columns */
   .footer .footer-col-contact {
      flex: 0 0 100% !important;
      max-width: 100% !important;
   }
}

/* ================================================================
   MOBILE UTILITY
   ================================================================ */
@media (max-width: 768px) {
   .btn-mobile-full { width: 100%; justify-content: center; min-height: 48px; }
   .section { animation: fadeInUp .35s ease; }
   @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
   }
}

/* ================================================================
   SMALL MOBILE
   ================================================================ */
@media (max-width: 380px) {
   .hero-title { font-size: 20px !important; }
   .section-title { font-size: 19px !important; }
   .trust-number { font-size: 18px !important; }
   .stat-number { font-size: 22px !important; }
   .topbar-ticker-content span { font-size: 9px; }
}

/* ================================================================
   TABLET - hide mobile-only elements
   ================================================================ */
@media (min-width: 769px) {
   .mobile-bottom-nav { display: none !important; }
   .mobile-drawer, .mobile-drawer-overlay { display: none !important; }
}
