/* Agra Taxi Service - Dedicated Custom UI Stylesheet */
:root {
  --primary-blue: #002B49;
  --secondary-blue: #004080;
  --accent-red: #DC2626;
  --accent-red-hover: #B91C1C;
  --accent-yellow: #DC2626;
  --soft-gray: #F8FAFC;
  --deep-gold: #DC2626;
  --taxi-yellow: #DC2626;
  --taxi-dark: #002B49;
  --taxi-black: #1E293B;
  --taxi-bg-light: #F8FAFC;
  --taxi-border: #E2E8F0;
}

/* Hero Section Styling */
.taxi-hero {
  background: linear-gradient(135deg, #0A192F 0%, #172A45 50%, #0F172A 100%);
  color: #ffffff;
  padding: 85px 0 60px;
  position: relative;
  overflow: hidden;
}
.taxi-hero::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 40px;
  background: #ffffff;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.taxi-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

/* Hero Action Buttons */
.btn-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none !important;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.btn-hero-call {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #ffffff !important;
}
.btn-hero-call:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(220, 38, 38, 0.4);
}
.btn-hero-whatsapp {
  background: #25D366;
  color: #ffffff !important;
}
.btn-hero-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* Pro Route Strip Card Styles */
.pro-route-strip {
  transition: all 0.3s ease;
  border: 1.5px solid #e2e8f0;
  padding: 30px 30px;
  border-radius: 20px;
}
.pro-route-strip:hover {
  transform: translateY(-4px);
  border-color: #DC2626;
  box-shadow: 0 20px 40px rgba(10, 25, 47, 0.1) !important;
}
@media (min-width: 768px) {
  .border-left-md {
    border-left: 1.5px solid #e2e8f0;
    padding-left: 30px;
  }
}

/* Interactive Taxi Booking Widget */
.taxi-booking-card {
  background: #ffffff;
  color: var(--taxi-black);
  border-radius: 20px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.28);
  padding: 20px 22px;
  border: 1px solid var(--taxi-border);
}
.taxi-tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 10px;
  border: none;
  background: var(--taxi-bg-light);
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.taxi-tab-btn.active, .taxi-tab-btn:hover {
  background: var(--taxi-dark);
  color: #ffffff;
}
.taxi-input-group {
  position: relative;
  margin-bottom: 9px;
}
.taxi-input-group i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 13px;
  pointer-events: none;
  z-index: 2;
}
.taxi-input-control {
  width: 100%;
  padding: 7px 8px 7px 30px;
  border: 1.5px solid var(--taxi-border);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  background: #ffffff;
  color: var(--taxi-black);
  transition: border-color 0.2s ease;
  height: 38px;
}
.taxi-input-control:focus {
  outline: none;
  border-color: var(--taxi-dark);
}
.btn-taxi-submit {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.3);
}
.btn-taxi-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(220, 38, 38, 0.4);
}

.fare-preview-box {
  padding: 10px 14px !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px !important;
}
.fare-preview-box .text-28 {
  font-size: 22px !important;
  line-height: 1.2 !important;
  margin: 3px 0 !important;
}
.fare-preview-box .text-12 {
  font-size: 11.5px !important;
  line-height: 1.35 !important;
}

/* Fare Rate Card UI (Spacious Luxury Cards) */
.rate-card-box {
  background: #ffffff;
  border-radius: 24px;
  border: none !important;
  padding: 40px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 31, 63, 0.06) !important;
  transition: all 0.3s ease;
  position: relative;
}
.rate-card-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 31, 63, 0.12) !important;
}
.rate-card-dark {
  background: linear-gradient(135deg, #0A192F 0%, #172A45 100%) !important;
  border: none !important;
  color: #ffffff !important;
}
.fare-price-badge {
  font-size: 32px;
  font-weight: 800;
  color: var(--taxi-dark);
}
.fare-price-sub {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}
.fare-feature-list {
  list-style: none;
  padding: 0; 
  margin: 28px 0;
}
.fare-feature-list li {
  font-size: 15px;
  color: #334155;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.rate-card-dark .fare-feature-list li {
  color: #ffffff !important;
}
.fare-feature-list i {
  color: #DC2626;
  font-size: 16px;
}

/* Route Card UI */
.route-card {
  background: #ffffff;
  border-radius: 20px;
  border: none !important;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(0, 31, 63, 0.05);
  transition: all 0.3s ease;
}
.route-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 31, 63, 0.1);
}
.route-tag {
  background: rgba(241, 196, 15, 0.15);
  color: #b45309;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
}

/* Interactive Estimator UI */
.estimator-box {
  background: linear-gradient(135deg, #0A192F 0%, #020726 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.18);
}

/* Safety Trust Cards (Explicit 40px Padding & Glow Icons) */
.safety-card-box {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 24px !important;
  padding: 40px 24px !important;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
}
.safety-card-box:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.13) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}
.safety-icon-wrap {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.safety-card-box:hover .safety-icon-wrap {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.6);
}

/* Stats Strip & Cards */
.taxi-stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.taxi-stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}
.taxi-stat-card .stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 15px;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.45);
  transition: transform 0.3s ease;
}
.taxi-stat-card:hover .stat-icon-wrap {
  transform: scale(1.1);
}
.taxi-stat-card .stat-number {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.taxi-stat-card .stat-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Distributed Feature Grid Cards */
.feature-card-box {
  background: #ffffff !important;
  border: none !important;
  border-radius: 24px !important;
  padding: 35px 30px !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 31, 63, 0.06) !important;
  transition: all 0.3s ease;
}
.feature-card-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 31, 63, 0.12) !important;
}

/* Fleet Vehicle Cards */
.fleet-card-box {
  background: #ffffff !important;
  border: none !important;
  border-radius: 24px !important;
  padding: 35px 30px !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 31, 63, 0.06) !important;
  transition: all 0.3s ease;
}
.fleet-card-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 31, 63, 0.12) !important;
}

/* Travel Class Cards */
.class-card-box {
  background: #ffffff !important;
  border: none !important;
  border-radius: 24px !important;
  padding: 35px 30px !important;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 31, 63, 0.06) !important;
  transition: all 0.3s ease;
}

/* Sightseeing Cards - Ultra Premium Box UI */
.sightseeing-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(0, 31, 63, 0.06) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.sightseeing-box:hover {
  transform: translateY(-8px);
  border-color: rgba(220, 38, 38, 0.3) !important;
  box-shadow: 0 22px 45px rgba(0, 31, 63, 0.14) !important;
}
.sightseeing-box .sightseeing-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #001F3F;
}
.sightseeing-box .sightseeing-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.sightseeing-box:hover .sightseeing-img-wrap img {
  transform: scale(1.1);
}
.sightseeing-box .sightseeing-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 31, 63, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.sightseeing-box .sightseeing-duration {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(220, 38, 38, 0.9);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}
.sightseeing-box .sightseeing-content {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}
.sightseeing-box .sightseeing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}
.sightseeing-box .sightseeing-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #001F3F;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.3s ease;
}
.sightseeing-box .sightseeing-btn:hover {
  background: #DC2626;
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}
.class-card-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 31, 63, 0.12) !important;
}

/* Floating Call/WhatsApp Bar for Mobile */
.mobile-taxi-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #0A192F;
  padding: 10px 15px;
  z-index: 9999;
  display: none;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
  .mobile-taxi-bar { display: flex; gap: 10px; }
}
.mobile-taxi-btn {
  flex: 1;
  padding: 12px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}


/* ===================================================
   3D Flip Card UI for Car Fleet Section
   =================================================== */
.flip-card-3d {
  background-color: transparent;
  perspective: 1600px;
  margin-bottom: 30px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  min-height: 290px;
  text-align: left;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  border-radius: 24px;
}

.flip-card-3d:hover .flip-card-inner,
.flip-card-3d.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 24px;
  overflow: hidden;
  top: 0;
  left: 0;
}

/* FRONT FACE */
.flip-card-front {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 31, 63, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
}
.flip-card-3d:hover .flip-card-front {
  border-color: #DC2626;
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.12);
}

.flip-card-img-wrap {
  position: relative;
  height: 100%;
  min-height: 290px;
  overflow: hidden;
  background: #0f172a;
}
.flip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.flip-card-3d:hover .flip-img {
  transform: scale(1.06);
}

.flip-badge-top {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid rgba(255,255,255,0.2);
  z-index: 2;
}

.flip-hint-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.92) 0%, rgba(185, 28, 28, 0.92) 100%);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.flip-card-body {
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.car-spec-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #334155;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}
.spec-pill i {
  color: #DC2626;
}

.btn-flip-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  color: #002B49;
  border: 1.5px solid #cbd5e1;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-flip-trigger:hover {
  background: #002B49;
  color: #ffffff;
  border-color: #002B49;
}

.btn-quick-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  transition: all 0.2s ease;
}
.btn-quick-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

/* BACK FACE */
.flip-card-back {
  background: linear-gradient(135deg, #0A192F 0%, #172A45 50%, #0F172A 100%);
  color: #ffffff;
  transform: rotateY(180deg);
  border: 2px solid #DC2626;
  box-shadow: 0 20px 40px rgba(0, 31, 63, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 30px;
}

.back-badge {
  display: inline-block;
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(220, 38, 38, 0.6);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.back-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.back-feature-list li {
  margin-bottom: 8px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.92);
}

.btn-flip-back {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-flip-back:hover {
  background: rgba(255,255,255,0.3);
}

@media (max-width: 991px) {
  .flip-card-inner {
    min-height: 540px;
  }
  .flip-card-img-wrap {
    min-height: 200px;
    max-height: 200px;
  }
  .flip-card-front {
    display: block;
  }
}


/* ===================================================
   3D FLIP BOOK STYLE UI - LUXURY TOUR BROCHURE (NO CLIPPING)
   =================================================== */
.flipbook-card {
  perspective: 2200px;
  margin-bottom: 35px;
  cursor: pointer;
}

.flipbook-container {
  position: relative;
  width: 100%;
  min-height: 290px;
  border-radius: 8px 24px 24px 8px;
  background: #ffffff;
  /* Stacked paper edge effect on the right */
  box-shadow: 
    -8px 0 20px rgba(0, 20, 40, 0.25),
    4px 4px 0 #f1f5f9,
    7px 7px 0 #e2e8f0,
    10px 10px 0 #cbd5e1,
    0 25px 50px rgba(0, 31, 63, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.flipbook-card:hover .flipbook-container {
  transform: translateY(-4px);
  box-shadow: 
    -10px 0 25px rgba(220, 38, 38, 0.25),
    4px 4px 0 #f1f5f9,
    7px 7px 0 #e2e8f0,
    10px 10px 0 #cbd5e1,
    0 30px 60px rgba(0, 31, 63, 0.18);
}

/* Realistic Book Spine on Left */
.flipbook-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 22px;
  background: linear-gradient(90deg, #051329 0%, #002B49 45%, #0A192F 80%, #00182b 100%);
  border-radius: 8px 0 0 8px;
  z-index: 20;
  box-shadow: inset -2px 0 5px rgba(0,0,0,0.5), 2px 0 4px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 15px 0;
}
.flipbook-spine::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255,255,255,0.15);
}
.spine-stitch {
  width: 4px;
  height: 12px;
  background: #DC2626;
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(220,38,38,0.8);
}

/* INSIDE RIGHT PAGE (Base layer revealed when book turns) */
.flipbook-inside-right {
  padding: 16px 22px 14px 38px;
  min-height: 290px;
  height: 100%;
  background: linear-gradient(135deg, #0A192F 0%, #172A45 50%, #0F172A 100%);
  color: #ffffff;
  border-radius: 0 24px 24px 0;
  border: 2px solid #DC2626;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.flipbook-inside-right::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 40%, transparent 100%);
  pointer-events: none;
}

/* FLIP COVER (Turns around the left spine like a real book) */
.flipbook-cover {
  position: absolute;
  top: 0;
  left: 22px; /* starts right after the spine */
  right: 0;
  bottom: 0;
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.645, 0.045, 0.355, 1);
  transform-style: preserve-3d;
  z-index: 10;
  border-radius: 0 24px 24px 0;
}

/* Trigger Book Flip on hover & on click toggle */
.flipbook-card:hover .flipbook-cover,
.flipbook-card.is-open .flipbook-cover {
  transform: rotateY(-180deg);
}

/* FRONT COVER FACE */
.flipbook-cover-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 0 24px 24px 0;
  border: 1.5px solid #e2e8f0;
  border-left: none;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  box-shadow: inset 15px 0 25px rgba(0,0,0,0.04);
  box-sizing: border-box;
}
.flipbook-cover-front::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(to right, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.03) 50%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

/* Bookmark Ribbon on Cover */
.flipbook-ribbon {
  position: absolute;
  top: 0;
  right: 25px;
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: #ffffff;
  padding: 6px 14px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 10px rgba(220,38,38,0.4);
  z-index: 5;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}

.flipbook-img-box {
  position: relative;
  height: 100%;
  min-height: 290px;
  overflow: hidden;
  background: #0f172a;
}
.flipbook-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.flipbook-card:hover .flipbook-img {
  transform: scale(1.05);
}

.flipbook-turn-hint {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.95) 0%, rgba(185, 28, 28, 0.95) 100%);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  z-index: 4;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.flipbook-body {
  padding: 14px 20px 12px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.flipbook-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  margin-top: auto;
  border-top: 1.5px solid #f1f5f9;
  flex-shrink: 0;
}

.flipbook-price-val {
  font-size: 24px;
  font-weight: 800;
  color: #002B49;
  line-height: 1.1;
  white-space: nowrap;
}

/* INSIDE LEFT COVER (When page turns 180 deg) */
.flipbook-cover-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8fafc;
  border-radius: 24px 0 0 24px;
  border: 1.5px solid #cbd5e1;
  border-right: none;
  transform: rotateY(180deg);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset -15px 0 25px rgba(0,0,0,0.06);
}
.flipbook-cover-back::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(to left, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.03) 50%, transparent 100%);
  pointer-events: none;
}

.btn-book-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #002B49;
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}
.btn-book-open:hover {
  background: #DC2626;
}

.btn-book-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-book-close:hover {
  background: rgba(255,255,255,0.3);
}

@media (max-width: 991px) {
  .flipbook-card {
    margin-bottom: 24px;
    perspective: none;
  }
  .flipbook-container {
    min-height: auto;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 31, 63, 0.08);
  }
  .flipbook-spine {
    display: none;
  }
  .flipbook-cover {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    transform: none !important;
    border-radius: 20px;
    z-index: 2;
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .flipbook-cover-front {
    position: relative;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    height: auto;
    min-height: auto;
    display: block;
    box-shadow: none;
  }
  .flipbook-cover-front::before {
    display: none;
  }
  .flipbook-img-box {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    width: 100%;
    border-radius: 18px 18px 0 0;
  }
  .flipbook-body {
    padding: 18px 16px 16px;
    height: auto;
  }
  .flipbook-inside-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 20px;
    padding: 22px 18px 20px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    overflow-y: auto;
    box-sizing: border-box;
  }
  .flipbook-inside-right::before {
    display: none;
  }

  /* Open State on Mobile/Tablet */
  .flipbook-card.is-open .flipbook-cover {
    display: none;
  }
  .flipbook-card.is-open .flipbook-inside-right {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    height: auto;
    min-height: 490px;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  .taxi-hero {
    padding: 50px 0 35px !important;
  }
  .taxi-hero h1 {
    font-size: 25px !important;
    line-height: 1.28 !important;
    margin-bottom: 14px !important;
  }
  .taxi-hero p {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    margin-bottom: 22px !important;
  }
  .taxi-badge {
    font-size: 11.5px !important;
    padding: 6px 14px !important;
    margin-bottom: 14px !important;
    white-space: normal !important;
    text-align: center;
    line-height: 1.4;
  }
  .taxi-booking-card {
    padding: 22px 18px !important;
    border-radius: 20px !important;
    margin-top: 15px;
  }
  .taxi-booking-card h3 {
    font-size: 18px !important;
    margin-bottom: 14px !important;
  }
  .fare-preview-box {
    padding: 12px 10px !important;
    border-radius: 12px !important;
  }
  .fare-preview-box .text-28, .fare-preview-box .text-22 {
    font-size: 20px !important;
  }
  .btn-hero-action {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
  }
  .flipbook-ribbon {
    right: 12px;
    padding: 4px 10px 8px;
    font-size: 10px;
  }
  .flipbook-img-box {
    height: 185px;
    min-height: 185px;
    max-height: 185px;
  }
  .flipbook-body h2 {
    font-size: 17px !important;
    line-height: 1.3 !important;
  }
  .flipbook-body h2 span {
    display: block;
    margin-top: 2px;
    font-size: 13px !important;
  }
  .flipbook-body p {
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin-bottom: 8px !important;
  }
  .car-spec-grid {
    gap: 5px !important;
    margin-bottom: 10px !important;
  }
  .spec-pill {
    padding: 3px 8px !important;
    font-size: 11px !important;
  }
  .flipbook-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    padding-top: 8px;
  }
  .flipbook-price-val {
    font-size: 19px !important;
  }
  .btn-book-open {
    padding: 7px 10px !important;
    font-size: 11.5px !important;
    gap: 4px !important;
  }
  .btn-quick-call {
    padding: 7px 11px !important;
    font-size: 11.5px !important;
  }
  .back-badge {
    font-size: 11px !important;
    padding: 3px 10px !important;
  }
  .flipbook-inside-right h2 {
    font-size: 17px !important;
    line-height: 1.3 !important;
  }
  .back-feature-list li {
    font-size: 12.5px !important;
    margin-bottom: 7px !important;
    gap: 7px !important;
  }
  .btn-book-close {
    padding: 5px 10px !important;
    font-size: 11px !important;
  }
  .pro-route-strip {
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }
  .rate-card-box {
    padding: 24px 18px !important;
    border-radius: 20px !important;
  }
  .pro-seo-card {
    padding: 26px 18px !important;
    border-radius: 20px !important;
  }
  .faq-accordion .faq-header {
    font-size: 14.5px !important;
    padding: 14px 14px !important;
    line-height: 1.4 !important;
  }
  .faq-accordion .faq-content {
    padding: 12px 14px !important;
    font-size: 13.5px !important;
  }
}

.faq-header h4 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
  color: inherit;
  line-height: inherit;
  display: inline-block;
}

@media (max-width: 480px) {
  .flipbook-footer-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .flipbook-footer-row > div:last-child {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
  }
  .btn-book-open, .btn-quick-call {
    flex: 1;
    justify-content: center;
    text-align: center;
  }
}

/* Booking Step Cards */
.booking-step-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 30px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 31, 63, 0.05);
  transition: all 0.35s ease;
  position: relative;
}
.booking-step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 20px 40px rgba(0, 31, 63, 0.12);
}
.booking-step-num {
  font-size: 11px;
  font-weight: 800;
  color: #DC2626;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(220, 38, 38, 0.08);
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-block;
}
.booking-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.booking-step-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.06) 0%, rgba(0, 31, 63, 0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #001F3F;
  margin-bottom: 0;
  transition: all 0.3s ease;
}
.booking-step-card:hover .booking-step-icon {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}
.booking-step-card h3,
.booking-step-card h4 {
  font-size: 18px;
  font-weight: 800;
  color: #001F3F;
  margin: 0;
  line-height: 1.35;
}
.booking-step-pill {
  font-size: 12.5px;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Hub Transfer Cards */
.hub-transfer-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 35px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 31, 63, 0.05);
  transition: all 0.35s ease;
}
.hub-transfer-card:hover {
  transform: translateY(-6px);
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 20px 40px rgba(0, 31, 63, 0.12);
}
.hub-transfer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.hub-transfer-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 14px;
  background: rgba(0, 31, 63, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #001F3F;
  transition: all 0.3s ease;
}
.hub-transfer-card:hover .hub-transfer-icon {
  background: #001F3F;
  color: #ffffff;
}
.hub-transfer-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #DC2626;
  background: rgba(220, 38, 38, 0.08);
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
}
.hub-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}
.hub-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #475569;
  margin-bottom: 8px;
  line-height: 1.5;
}
.hub-feature-list li i {
  color: #DC2626;
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Hub Price & Action Button Styling */
.hub-price-tag .hub-price-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  display: block;
  line-height: 1.2;
}
.hub-price-tag .hub-price-val {
  font-size: 20px;
  font-weight: 800;
  color: #001F3F;
  line-height: 1.2;
}
.hub-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #001F3F;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 31, 63, 0.15);
}
.hub-action-btn:hover {
  background: #DC2626;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
}
.hub-action-btn.hub-btn-whatsapp {
  background: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.hub-action-btn.hub-btn-whatsapp:hover {
  background: #128C7E;
  box-shadow: 0 6px 18px rgba(18, 140, 126, 0.4);
}
