/* DotcomCab - Main Stylesheet */
/* Brand-first green-white theme for DotcomCab */

:root {
    --primary-color: #16a34a; /* Brand green */
    --secondary-color: #15803d; /* Darker shade for hover */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --muted-text: #6c757d;
}

/* Locations row: FROM + all TO fields on a single horizontal strip */
.bf-locations-row { display: block; }

/* Date/Time row: separate grid under locations */
.bf-datetime-row { display: block; }

/* When overlay is active, hide all suggestion lists by default */
body.overlay-active .pac-container { display: none !important; }
/* But show the overlay-linked suggestion list */
body.overlay-active .pac-container.overlay-active-show { display: block !important; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
}

.hero-content {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s;
    letter-spacing: -0.02em;
}

.hero-content p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: fadeInUp 1s;
}

.hero-content .lead {
    opacity: 0.92;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(22, 163, 74, 0.22);
    border: 1px solid rgba(22, 163, 74, 0.42);
    color: #ffffff;
    font-weight: 600;
}

/* Booking card glass effect (keeps bootstrap card layout) */
#booking-form {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92) !important;
    border-radius: 24px;
    animation: fadeInUp 0.9s;
}

.bf-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(22, 163, 74, 0.14);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(22, 163, 74, 0.12);
    overflow: hidden;
    padding: 20px;
}

/* generous spacing inside booking form */
#booking-form .card-body { padding: 24px !important; }

.bf-submit {
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.25);
}

.bf-submit:hover {
    box-shadow: 0 14px 28px rgba(22, 163, 74, 0.30);
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--primary-color);
}

.navbar-brand .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--dark-text);
    padding: 8px 16px;
    transition: color 0.3s;
}

.navbar .nav-link:hover {
    color: var(--primary-color);
}

.contact-number {
    background: var(--light-bg);
    padding: 8px 16px;
    border-radius: 25px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-number:hover {
    background: var(--primary-color);
    color: white;
}

.book-now-btn {
    padding: 8px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

/* Auth buttons in navbar (Login/My Profile/Logout) */
.nav-auth-btn {
    padding: 8px 24px; /* match Book Now */
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    margin-left: 12px; /* 10–15px spacing from Book Now */
}

@media (max-width: 991.98px) {
  .nav-auth-btn { margin-left: 0; } /* inside hamburger stack */

  /* Mobile nav: tighter link spacing and full-width CTAs */
  .navbar .navbar-nav .nav-link {
      padding-top: 6px;
      padding-bottom: 6px;
  }

  .navbar .navbar-nav.ms-auto {
      align-items: flex-start !important;
  }

  .navbar .contact-number {
      display: inline-flex;
      width: 100%;
      justify-content: center;
      margin-top: 8px;
      margin-bottom: 4px;
  }

  .navbar .book-now-btn {
      display: block;
      width: 100%;
      text-align: center;
      margin-top: 4px;
  }
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.30);
}

/* Make the navbar "Book Now" button use theme primary (green) */
.book-now-btn {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.book-now-btn:hover,
.book-now-btn:focus {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.30);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0;
}

.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s;
}

.hero-content p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: fadeInUp 1s;
}

/* Booking Form - Premium Clean Card */
#booking-form {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92) !important;
    border-radius: 24px;
    animation: fadeInUp 0.9s;
}

.bf-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(22, 163, 74, 0.14);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(22, 163, 74, 0.12);
    overflow: hidden;
    padding: 20px;
}

/* generous spacing inside booking form */
#booking-form .card-body { padding: 24px !important; }

/* Tabs - pill style */
.bf-tabs {
    display: flex;
    gap: 14px; /* slightly more space between tabs */
    justify-content: center; /* keep group compact and centered */
    align-items: center;
    margin-bottom: 16px;
}

.bf-tab {
    padding: 12px 22px; /* slightly larger for better tap target */
    border: 1px solid rgba(22, 163, 74, 0.18);
    background: #f7f9fc;
    border-radius: 999px;
    color: #1f2d3d;
    font-weight: 600;
    font-size: 15px; /* a bit larger label text */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    transition: all .25s ease;
}

.bf-tab:hover { box-shadow: 0 6px 18px rgba(22, 163, 74, 0.08); }

.bf-tab.active {
    color: #fff;
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.bf-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.bf-span-full {
    grid-column: 1 / -1;
}

.bf-field {
    position: relative;
}

.bf-label {
    font-size: 14px; /* slightly larger for better readability on desktop & mobile */
    letter-spacing: .02em;
    color: #111827; /* darker for better contrast */
    font-weight: 700; /* stronger bold for labels */
    margin-bottom: 6px;
}

/* Underline input style */
.bf-input,
.bf-select,
.bf-date,
.bf-time {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(22, 163, 74, 0.15);
    border-radius: 0;
    padding: 10px 6px 10px 36px; /* left space for icon */
    line-height: 1.35;
    font-size: 15px;
    height: 50px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.bf-input::placeholder { color: #98a2b3; }

.bf-input:focus,
.bf-select:focus,
.bf-date:focus,
.bf-time:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
    box-shadow: 0 3px 0 -2px var(--primary-color);
}

.bf-icon {
    position: absolute;
    left: 10px;
    top: calc(50% + 2px);
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
}

.bf-action { text-align: center; margin-top: 14px; }

/* Multi-stop add/remove buttons (small circular + / - ) */
.bf-stop-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(22, 163, 74, 0.25);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.15);
    cursor: pointer;
}

.bf-stop-btn:hover {
    background: #f3f4f6;
}

.bf-stop-remove {
    border-color: rgba(220, 38, 38, 0.3);
    color: #b91c1c;
}

.bf-submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    height: 52px;
    font-weight: 700;
    letter-spacing: .02em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    min-width: 240px;
    transition: transform .15s ease, box-shadow .2s ease;
}

.bf-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.30);
}

/* Responsiveness */
@media (max-width: 992px) {
    .bf-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

@media (max-width: 576px) {
    .bf-grid { grid-template-columns: 1fr; gap: 12px; }
    .bf-tabs { flex-wrap: wrap; }
}

/* Swap button between FROM/TO */
.bf-swap {
    position: absolute;
    left: 50%;
    top: -18px;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.12);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    z-index: 2;
}

.bf-swap:hover { transform: translate(-50%, -50%) translateY(-2px); box-shadow: 0 14px 30px rgba(22, 163, 74, 0.16); }

.bf-swap svg { pointer-events: none; }

/* Local trip duration buttons (4hrs/40km etc.) */
#local_package_buttons .btn-outline-primary {
    background: #ffffff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 999px;
    font-weight: 600;
    padding: 8px 18px;
}

#local_package_buttons .btn-outline-primary:hover {
    background: rgba(22, 163, 74, 0.06);
    color: var(--primary-color);
}

#local_package_buttons .btn-outline-primary.active,
#local_package_buttons .btn-outline-primary:focus {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.25);
}

.nav-pills .nav-link {
    border-radius: 10px;
    font-weight: 600;
    color: var(--dark-text);
    transition: all 0.3s;
}

.nav-pills .nav-link.active {
    background: var(--primary-color);
}

.nav-pills .nav-link:hover {
    background: rgba(22, 163, 74, 0.10);
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(22, 163, 74, 0.15);
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    border: 2px solid #e9ecef;
    border-right: none;
    background: white;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 10px;
    transition: all 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon i {
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
}

/* Service Area Cards */
.service-area-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 300px;
}

.service-area-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-area-card:hover img {
    transform: scale(1.1);
}

.service-area-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 30px;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.service-area-card:hover .overlay {
    transform: translateY(0);
}

/* Cab Cards */
.cab-card {
    border-radius: 12px;
    transition: all 0.3s;
}

.cab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cab-card img {
    border-radius: 8px;
}

.rate-info {
    background: rgba(22, 163, 74, 0.10);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* Cab card meta: rating, discount, old price, offer badge */
.cab-meta-row {
    font-size: 0.85rem;
}

/* Image wrapper to allow overlay badges (discount + old price) */
.cab-image-wrapper {
    position: relative;
    display: inline-block;
    padding-top: 6px; /* create a bit of empty space above image for badges */
}

.cab-image-offer {
    position: absolute;
    top: 2px;
    right: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

/* Rating badge overlay on image (top-left) */
.cab-image-rating {
    position: absolute;
    top: 4px;
    left: 6px;
}

.cab-image-rating .cab-rating-badge {
    background-color: rgba(22, 163, 74, 0.9);
    color: #ffffff;
}

.cab-image-rating .cab-rating-badge .fa-star {
    color: #ffd966;
}

.cab-rating-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background-color: #fffbeb; /* soft yellow */
    color: #b45309;
    font-weight: 600;
}

.cab-rating-badge .fa-star {
    color: #fbbf24; /* yellow star */
}

.cab-discount-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background-color: rgba(40, 167, 69, 0.12); /* soft green background */
    color: #198754; /* Bootstrap success green */
    font-weight: 700;
    font-size: 0.8rem;
}

.cab-old-price {
    font-size: 1rem;
    color: #dc3545; /* Bootstrap danger red */
    text-decoration: line-through;
    font-weight: 600;
    margin-left: 6px;
}

.cab-offer-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Results: Feature Strip */
.results-feature-strip {
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.results-feature-strip .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
.results-feature-strip .feature-item .icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
}
.results-feature-strip .feature-item .text { font-weight: 600; }

@media (max-width: 768px) {
    .results-feature-strip { grid-template-columns: 1fr; }

    /* Hide top strip on mobile, show bottom strip under SELECT CAR */
    .results-feature-strip-top { display: none; }
    .results-feature-strip-bottom { display: block; }
}

/* Desktop/tablet: show only top strip, hide bottom copy */
@media (min-width: 769px) {
    .results-feature-strip-bottom { display: none; }
}

/* Results: list card layout */
.cab-list-card { border-radius: 12px; }
.cab-list-card .badge.bg-success-soft {
    background: rgba(40, 167, 69, 0.12);
    color: #198754;
}

/* Cab name under big image */
.cab-list-card h5 {
    font-weight: 700;
}

/* Cab Facilities row inside list card */
.cab-facilities {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
}

.cab-facilities .facility-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-size: 11px;
    color: var(--muted-text);
}

.cab-facilities .facility.bf-label {
    font-size: 0.85rem;
    color: #555;
    font-weight: 600;
}

.cab-facilities .facility-icon {
    font-size: 14px;
    color: #555;
    margin-bottom: 2px;
}

.cab-facilities .facility-text {
    line-height: 1.2;
    white-space: nowrap;
}

/* Highlight key numeric values on cab cards */
.cab-rate-number,
.distance-value {
    font-weight: 700;
    color: var(--primary-color);
}

/* Per-km rate styling: currency + number blue & bold, unit black, icon green */
.cab-rate-text {
    font-weight: 700;
}

.cab-rate-currency,
.cab-rate-number {
    color: var(--primary-color);
}

.cab-rate-unit {
    color: #000000;
}

.cab-rate-icon {
    color: #198754; /* green icon for tag */
}

.distance-unit {
    font-weight: 700;
    color: #000000;
}

@media (max-width: 768px) {
    .cab-facilities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 6px;
    }
}

/* Right side price pill */
.price-pill {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}
.price-pill .price-amount {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 20px;
    line-height: 1;
}
.price-pill .price-amount .currency { margin-right: 2px; }
.price-pill .price-note { line-height: 1.2; color: var(--primary-color); }

@media (max-width: 576px) {
    .price-pill { margin-bottom: 8px; }
}

/* Footer */
.footer {
    margin-top: 80px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white !important;
}

.contact-info i {
    color: var(--primary-color);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
    z-index: 1000;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
    color: white;
}

/* Page Header */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Service Cards */
.service-card {
    transition: all 0.3s;
    border-radius: 12px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-card img {
    border-radius: 12px 0 0 12px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Compact feature box for mobile */
@media (max-width: 600px) {

    .benefit-box {
        padding: 6px 10px !important; /* tighter top/bottom */
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
        justify-content: space-between;
        align-items: center;
    }

    .benefit-item {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 1 1 calc(50% - 10px); /* 2 items per row */
        font-size: 14px !important;
        margin: 0 !important;
        white-space: nowrap;
    }

    .benefit-item i,
    .benefit-item img {
        width: 20px !important;
        height: 20px !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Distance Display */
#distance_display {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto !important;
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .service-area-card {
        height: 250px;
        margin-bottom: 20px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .contact-number {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(22, 163, 74, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Google Places dropdown should appear above other elements */
.pac-container {
    z-index: 3000 !important;
}

/* Mobile: keep suggestions visible above virtual keyboard */
@media (max-width: 600px) {
  .pac-container {
    max-height: 45vh !important;
    overflow-y: auto !important;
  }

  body.keyboard-open {
    padding-bottom: 320px; /* space so list isn't hidden behind keyboard */
  }
}

/* ===== Mobile Search Overlay (full-width top bar) ===== */
.mobile-search-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 4000;
  background: var(--primary-color);
  padding: 8px 10px;
  display: none; /* hidden by default */
}

/* Full-screen backdrop to hide background while searching */
.mobile-search-backdrop {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background: #ffffff; /* solid white */
  z-index: 2000; /* below pac-container (3000) and overlay bar (4000) */
  display: none;
}

.mobile-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ms-back,
.ms-close {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ms-input {
  flex: 1;
  height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
}

/* When overlay is open, prevent background scroll */
body.overlay-open {
  overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    font-weight: 500;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s;
}

.shadow-sm:hover {
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.15) !important;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-lg {
    padding: 12px 32px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Manage Booking button: slightly smaller and bold */
.manage-booking-btn {
    font-weight: 700;
    font-size: 0.8rem;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 2px solid #f8f9fa;
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(22, 163, 74, 0.05);
}

/* Image Lazy Loading */
img {
    transition: opacity 0.3s;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* --------------------------------------------------
   Global mobile responsiveness helpers
   (Desktop look is preserved; these only affect
   small viewports via media queries.)
   -------------------------------------------------- */

/* Ensure images never overflow their containers */
img {
    max-width: 100%;
    height: auto;
}

/* Base container tweaks to avoid horizontal scroll on very small screens */
@media (max-width: 992px) {
    .container,
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Booking form, cards, and sections stack more comfortably on tablets */
@media (max-width: 768px) {
    .bf-card {
        padding: 16px;
    }
    #booking-form .card-body {
        padding: 18px !important;
    }
    .hero-section {
        padding: 40px 0;
    }
}

/* Phone layouts: ensure full‑width form controls and no overflow */
@media (max-width: 600px) {
    .bf-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .bf-tabs {
        flex-wrap: wrap;
    }
    /* Balanced spacing around mobile benefits strip and footer */
    .results-feature-strip-bottom {
        margin-top: 18px !important;
        margin-bottom: 18px !important;
    }

    .footer {
        margin-top: 0;
    }

    /* Reduce section bottom padding so gap below strip matches gap above */
    section.py-5.bg-light {
        padding-bottom: 1.5rem !important;
    }
    .card,
    .bf-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    .hero-content h1 {
        font-size: 1.7rem;
    }
    .bf-submit {
        width: 100%;
        min-width: 0;
    }
}

/* MOBILE BOOKING FORM – compact, no scroll, full fit in screen */
@media (max-width: 480px) {

    /* Booking Box size reduce */
    .booking-form,
    #bookingBox,
    .booking-section {
        padding: 12px !important;
        margin: 0 10px !important;
        border-radius: 15px !important;
    }

    /* Upper buttons compact */
    .trip-type-btn,
    .trip-type-btn.active,
    .transfer-type-btn,
    .transfer-type-btn.active {
        padding: 6px 10px !important;
        font-size: 13px !important;
        height: 36px !important;
    }

    /* Local / Airport filter tabs */
    .transfer-type-row button {
        padding: 6px 12px !important;
        font-size: 13px !important;
        height: 36px !important;
    }

    /* Input field compact */
    .form-group {
        margin-bottom: 8px !important;
    }

    input.form-control {
        height: 40px !important;
        font-size: 14px !important;
        padding: 6px 10px !important;
    }

    /* Icons close to text */
    .form-group i {
        font-size: 14px !important;
        margin-right: 6px !important;
    }

    /* Date-time row tighter */
    .date-time-row {
        margin-top: 6px !important;
    }

    /* Reduce big heading margins */
    .booking-heading,
    .section-title {
        margin-bottom: 8px !important;
        font-size: 18px !important;
    }

    /* Reduce overall top spacing */
    .hero-section {
        padding-top: 20px !important;
    }

    /* WhatsApp button reposition */
    .whatsapp-float {
        bottom: 60px !important;
        right: 12px !important;
        transform: scale(0.85) !important;
    }
}

@media (max-width: 360px) {
    .bf-tabs {
        gap: 6px;
    }
    .bf-tab {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 12px;
    }
}

/* Booking confirmation: make assignment images and columns mobile friendly */
@media (max-width: 600px) {
    #assignmentBlock .card-body .row > div {
        margin-bottom: 8px; /* reduced vertical spacing */
    }
    #assignmentBlock img {
        max-width: 40px; /* smaller icons */
        max-height: 40px;
        max-width: 80px;
        max-height: 80px;
    }
}

/* --------------------------------------------------
   Cab results - mobile layout for small phones
   Only affects screens <= 600px wide
   -------------------------------------------------- */
@media (max-width: 600px) {
    /* Sticky horizontal cab selector bar */
    #mobileCabTabsWrapper {
        position: sticky;
        top: 0;
        z-index: 20;
        background-color: #f8f9fa;
        padding: 6px 0;
        margin-bottom: 10px;
    }

    .mobile-cab-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px; /* smaller gap between circles */
        overflow-x: auto;
        padding: 2px 6px 4px; /* slight horizontal padding only */
        -webkit-overflow-scrolling: touch;
    }

    .mobile-cab-tab {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        outline: none;
    }

    .mobile-cab-tab-icon {
        width: 60px;   /* circular 60x60 icons as requested */
        height: 60px;
        border-radius: 50%;
        border: 2px solid rgba(22, 163, 74, 0.25);
        background-color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0,0,0,0.06);
        transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .mobile-cab-tab-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .mobile-cab-tab-label {
        max-width: 64px;
        font-size: 0.8rem; /* slightly bigger for cab name */
        font-weight: 700;
        color: #1f2d3d;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-cab-tab-fare {
        font-size: 0.75rem;
        font-weight: 700;
        color: #2e7d32; /* green for fare text */
    }

    .mobile-cab-tab.active .mobile-cab-tab-icon {
        border-color: var(--primary-color);
        background-color: rgba(22, 163, 74, 0.10);
        box-shadow: 0 3px 10px rgba(22, 163, 74, 0.25);
        transform: translateY(-1px);
    }

    /* Compact cab cards    /* Compact single-card layout */
    .cab-list-card,
    .cab-card {
        padding: 10px; /* slightly increased for readability but still compact */
        border-radius: 14px;
        margin-bottom: 6px;
        border: 1px solid rgba(0,0,0,0.03);
        /* Let the card grow to fit all content so SELECT CAR button is always visible */
    }

    .cab-list-card .card-body {
        padding: 6px 6px;
    }

    /* Stack content vertically: image → details → price & button */
    .cab-list-card .card-body .row.align-items-center {
        display: flex;
        flex-direction: column;
    }

    .cab-list-card .col-md-2.col-4,
    .cab-list-card .col-md-7.col-8,
    .cab-list-card .col-md-3.col-12 {
        width: 100%;
        max-width: 100%;
    }

    /* Order: image at top, details in middle, price/button at bottom */
    .cab-list-card .col-md-2.col-4 {
        order: 1;
        margin-bottom: 8px;
    }

    .cab-list-card .col-md-7.col-8 {
        order: 2;
    }

    .cab-list-card .col-md-3.col-12 {
        order: 3;
        margin-top: 12px;
        text-align: left;
    }

    /* Large but even more compact cab image on mobile so that details + SELECT CAR fit on screen */
    .cab-list-card img,
    .cab-card img {
        width: 100%;
        max-height: 20vh; /* slightly smaller so SELECT CAR fits without much scroll */
        height: auto;
        border-radius: 12px;
        object-fit: contain;
        background-color: #ffffff;
    }

    /* Cab title + small subtitle/tagline */
    .cab-list-card h5 {
        font-size: 0.9rem;
        margin-bottom: 0;
        font-weight: 700;
    }

    .cab-list-card .text-muted.small {
        font-size: 0.78rem;
        margin-bottom: 0;
    }

    /* Category badge as pill above price */
    .cab-category-badge,
    .cab-list-card .badge.bg-success-soft {
        display: inline-block;
        background: #eef3f7;
        padding: 4px 10px;
        font-size: 12px;
        border-radius: 18px;
        margin-bottom: 8px;
    }

    /* Prominent price but slightly smaller for compact view */
    .cab-price,
    .price-pill .price-amount {
        font-size: 18px;
        font-weight: 700;
        margin-top: 4px;
    }

    .price-pill {
        width: 100%;
        margin-bottom: 4px;
    }

    .price-pill .price-note {
        font-size: 0.7rem; /* slightly smaller, less vertical space */
    }

    /* Make big fare text slightly smaller on phones to save vertical space */
    .fare-amount.display-6 {
        font-size: 1.6rem;
    }

    /* Details line (distance, per km, etc.) */
    .cab-list-card .fare-calculation .text-muted.small {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    /* Select Car button on mobile: full-width, clearly visible */
    .cab-list-card .book-cab-btn {
        width: 100%;
        display: block;
        margin-top: 8px;
        border-radius: 999px;
        font-weight: 600;
    }

    /* Place button in its own row below price and ensure this column is visible */
    .cab-list-card .col-md-3.col-12 {
        display: block !important; /* override any inline display:none that may hide the button column */
        width: 100%;
        max-width: 100%;
        margin-top: 8px;
        text-align: center;
    }

    /* Hide facilities row entirely on phones; keep it only for desktop */
    .cab-facilities {
        display: none;
    }

    /* Prevent horizontal scroll from inner spacing and hide all cards by default.
       JS (initMobileCabTabs + showCabDetails) will selectively show one card
       at a time by toggling inline display styles and the cab-mobile-active
       class. */
    #cabsList .col-12 {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 4px;
        display: none;
    }

    /* Fade-in transition for selected cab card */
    .cab-mobile-active {
        animation: cabMobileFadeIn 0.25s ease-in-out;
    }
}

@keyframes cabMobileFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}