/* ============================================================
   KG TOURS – Custom Styles
   Brand: Teal + Gold + Sand
   ============================================================ */

:root {
  /* KG Tours – Bright Lift palette */
  --kg-teal:       #1F7A96;
  --kg-teal-rgb:   31, 122, 150;
  --kg-teal-dark:  #186580;
  --kg-teal-mid:   #2B9BB8;
  --kg-teal-light: #45A9C4;

  --kg-gold:       #C9A227;
  --kg-gold-rgb:   201, 162, 39;
  --kg-sand:       #E8D9A0;
  --kg-sand-hover: #F2E6B8;

  --kg-white:      #ffffff;
  --kg-ink:        #1A3344;
  --kg-text-muted: #5C7080;
  --kg-light-bg:   #FAFAF6;
  --kg-success:    #2E9E5A;

  --kg-card-shadow: 0 4px 18px rgba(var(--kg-teal-rgb), 0.12),
    0 2px 8px rgba(0, 0, 0, 0.06);
  --kg-card-shadow-hover: 0 12px 32px rgba(var(--kg-teal-rgb), 0.18),
    0 4px 12px rgba(0, 0, 0, 0.08);

  --kg-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --kg-font-script: "Great Vibes", "Segoe Script", cursive;
}

/* ── Global ── */
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--kg-ink);
  background-color: var(--kg-light-bg);
}

.text-muted {
  color: var(--kg-text-muted) !important;
}

small,
.small {
  color: inherit;
}

/* ── Colour utilities ── */
.text-navy { color: var(--kg-teal) !important; }
.bg-navy   { background-color: var(--kg-teal) !important; }

/* Bootstrap accents → Bright Lift teal */
.text-primary {
  color: var(--kg-teal) !important;
}

.btn-primary {
  --bs-btn-bg: var(--kg-teal);
  --bs-btn-border-color: var(--kg-teal);
  --bs-btn-hover-bg: var(--kg-teal-dark);
  --bs-btn-hover-border-color: var(--kg-teal-dark);
  --bs-btn-active-bg: var(--kg-teal-dark);
  --bs-btn-active-border-color: var(--kg-teal-dark);
  --bs-btn-disabled-bg: var(--kg-teal);
  --bs-btn-disabled-border-color: var(--kg-teal);
  color: var(--kg-white);
}

.alert-primary {
  --bs-alert-color: var(--kg-ink);
  --bs-alert-bg: rgba(var(--kg-teal-rgb), 0.1);
  --bs-alert-border-color: rgba(var(--kg-teal-rgb), 0.22);
}

.badge.text-bg-success,
.badge.bg-success {
  background-color: var(--kg-success) !important;
  color: var(--kg-white) !important;
}

.badge.bg-success.text-dark,
.badge.text-bg-success.text-dark {
  color: var(--kg-white) !important;
}

/* ── Brand typography (headings match phoenix / badge styling) ── */
h1, h2, h3, h4, h5, h6,
.kg-heading {
  font-family: var(--kg-font-display);
  font-weight: 700;
}

/* ── Circular brand logo (header, footer, login) ── */
.kg-brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  background: var(--kg-white);
  padding: 0;
}

.kg-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.2);
  border: 0;
  box-shadow: none;
  background: transparent;
}

.kg-brand-logo-wrap--footer {
  width: 68px;
  height: 68px;
}

.kg-brand-logo--login {
  transform: scale(1.18);
}

.kg-brand-logo-wrap--login {
  width: 96px;
  height: 96px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.75rem;
  padding: 0;
}

.kg-brand-logo-wrap--receipt {
  width: 80px;
  height: 80px;
  border-color: rgba(255, 255, 255, 0.45);
  background: var(--kg-white);
  padding: 0;
}

.kg-brand-logo-wrap--receipt .kg-brand-logo {
  transform: scale(1.18);
}

/* Navbar profile avatar */
.kg-nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.kg-nav-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kg-nav-avatar-initials {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

/* ── Navbar ── */
.kg-navbar {
  background-color: var(--kg-teal) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.kg-navbar .nav-link:hover,
.kg-navbar .nav-link:focus {
  color: var(--kg-sand-hover) !important;
  transition: color 0.2s ease;
}

/* ── Buttons ── */
.btn-navy {
  background-color: var(--kg-teal);
  color: var(--kg-white);
  border: 2px solid var(--kg-teal);
}

.btn-navy:hover,
.btn-navy:focus {
  background-color: var(--kg-teal-dark);
  border-color: var(--kg-teal-dark);
  color: var(--kg-white);
}

/* Brand CTA button – dust gold */
.btn-kg-gold {
  background-color: var(--kg-gold);
  border-color: var(--kg-gold);
  color: var(--kg-ink);
  font-weight: 600;
}

.btn-kg-gold:hover,
.btn-kg-gold:focus {
  background-color: var(--kg-sand);
  border-color: var(--kg-sand);
  color: var(--kg-ink);
}

.btn-outline-navy {
  color: var(--kg-teal);
  border: 2px solid var(--kg-teal);
  background: transparent;
  font-weight: 600;
}

.btn-outline-navy:hover {
  background: var(--kg-teal);
  color: var(--kg-white);
}
.btn-kg-sand-outline {
  background: transparent;
  color: var(--kg-sand);
  border: 2px solid var(--kg-sand);
  font-weight: 600;
}

.btn-kg-sand-outline:hover,
.btn-kg-sand-outline:focus {
  background: var(--kg-sand-hover);
  border-color: var(--kg-sand-hover);
  color: var(--kg-ink);
}

/* ── Hero Section ── */
/* Taller hero on desktop to fit cards */
@media (min-width: 769px) {
  .kg-hero {
    min-height: 580px;
  }
}
.kg-hero {
  position: relative;
  min-height: 540px;
  background-image: url("../img/kg-picture.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Fallback gradient when image is absent */
.kg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--kg-teal) 0%,
    var(--kg-teal-light) 60%,
    var(--kg-teal-light) 100%
  );
  opacity: 0.10;          /* reduced so the actual hero image shows through */
  z-index: 0;
}

/* Phoenix brand watermark layered behind the hero overlay */
.kg-hero-phoenix {
  position: absolute;
  inset: 0;
  background-image: url("../img/kg-picture.jpeg");
  background-size: contain;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}

.kg-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--kg-teal-rgb), 0.35);
  z-index: 1;
}
.kg-hero .container {
  z-index: 2;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ── Search / booking card (Emirates-inspired layout) ── */
.kg-search-section {
  background-color: var(--kg-light-bg);
  position: relative;
  z-index: 15;
  margin-top: -3.5rem;
  padding-top: 0;
  padding-bottom: 2.5rem;
}

.kg-search-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(var(--kg-teal-rgb), 0.08);
  background-color: var(--kg-white);
  border: 1px solid rgba(var(--kg-teal-rgb), 0.08);
}

.kg-search-card-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.kg-search-art-bus {
  position: absolute;
  left: -3%;
  bottom: -7%;
  width: min(400px, 46%);
  max-height: 72%;
  object-fit: contain;
  object-position: left bottom;
  z-index: 1;
}

/* Dedicated Zimbabwe map watermark (kg-zim-map-watermark.png) */
.kg-search-art-zim {
  position: absolute;
  left: 40%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, 52%);
  max-height: 95%;
  object-fit: contain;
  object-position: center;
  opacity: 0.78;
  z-index: 0;
}

/* KG Tours script branding from kg-brand-bg.png (right side only) */
.kg-search-art-brand {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(340px, 42%);
  height: 90%;
  object-fit: cover;
  object-position: 90% 40%;
  z-index: 0;
}

.kg-search-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.76) 0%,
    rgba(255, 255, 255, 0.38) 30%,
    rgba(255, 255, 255, 0.42) 52%,
    rgba(255, 255, 255, 0.68) 72%,
    rgba(255, 255, 255, 0.86) 88%,
    rgba(255, 255, 255, 0.92) 100%
  );
}

.kg-search-card-body {
  position: relative;
  z-index: 2;
}

/* Booking card — let map/bus watermark show through form fields */
.kg-search-card--booking::before {
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.58) 0%,
    rgba(255, 255, 255, 0.24) 32%,
    rgba(255, 255, 255, 0.16) 54%,
    rgba(255, 255, 255, 0.38) 74%,
    rgba(255, 255, 255, 0.62) 90%,
    rgba(255, 255, 255, 0.72) 100%
  );
}

.kg-search-card--booking .kg-field-box {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.kg-search-card--booking .kg-leg-row {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.kg-search-card--booking .kg-leg-row .form-select,
.kg-search-card--booking .kg-leg-row .form-control {
  background-color: rgba(255, 255, 255, 0.45);
}

.kg-booking-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid rgba(var(--kg-teal-rgb), 0.14);
  margin-bottom: 1.25rem;
}

.kg-booking-tabs .kg-trip-type-btn {
  flex: 0 1 auto;
  min-width: 0;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--kg-text-muted) !important;
  border-bottom: 3px solid transparent !important;
  padding: 0.65rem 1.1rem !important;
  margin-bottom: -1px;
  font-weight: 600;
  box-shadow: none !important;
}

.kg-booking-tabs .btn-check:checked + .kg-trip-type-btn {
  color: var(--kg-teal) !important;
  border-bottom-color: var(--kg-teal) !important;
  background: transparent !important;
}

.kg-booking-tabs .kg-trip-type-btn:hover {
  color: var(--kg-teal) !important;
  background: rgba(var(--kg-teal-rgb), 0.04) !important;
}

.kg-booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.kg-booking-grid--actions {
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .kg-booking-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  }

  .kg-booking-grid--actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }
}

.kg-field-box {
  position: relative;
  border: 1px solid rgba(var(--kg-teal-rgb), 0.22);
  border-radius: 0.35rem;
  padding: 1.35rem 0.85rem 0.55rem;
  background: #fff;
  min-height: 3.85rem;
}

.kg-field-label {
  position: absolute;
  top: 0.45rem;
  left: 0.85rem;
  font-size: 0.68rem;
  color: var(--kg-text-muted);
  font-weight: 600;
  pointer-events: none;
  line-height: 1.2;
}

.kg-field-box .form-select,
.kg-field-box .form-control {
  border: 0;
  padding: 0;
  box-shadow: none !important;
  background: transparent;
  font-weight: 600;
  color: var(--kg-ink);
  font-size: 0.95rem;
  min-height: 1.75rem;
}

.kg-field-box .form-select:focus,
.kg-field-box .form-control:focus {
  border: 0;
  box-shadow: none;
}

.kg-dates-combo {
  display: flex;
  gap: 0.65rem;
}

.kg-dates-combo .kg-date-field {
  flex: 1 1 0;
  min-width: 0;
}

.kg-dates-combo--one-way .kg-date-return-wrap {
  display: none;
}

.kg-field-box--passengers {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.kg-field-box--passengers .kg-passenger-row {
  padding: 0.15rem 0;
}

.kg-field-box--passengers .kg-passenger-row + .kg-passenger-row {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(var(--kg-teal-rgb), 0.12);
}

.kg-booking-search-col {
  display: flex;
  align-items: stretch;
}

.kg-booking-search-col .btn {
  width: 100%;
  min-height: 3.85rem;
  border-radius: 0.35rem;
  font-size: 1rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .kg-booking-search-col .btn {
    min-width: 12rem;
  }
}

@media (max-width: 991px) {
  .kg-search-art-bus {
    width: min(280px, 52%);
    opacity: 0.55;
    bottom: -4%;
  }

  .kg-search-art-zim {
    left: 42%;
    width: min(360px, 54%);
    max-height: 92%;
    opacity: 0.68;
  }

  .kg-search-art-brand {
    width: min(260px, 46%);
    right: -8%;
  }

  .kg-search-card::before {
    background: linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.62) 40%,
      rgba(255, 255, 255, 0.92) 100%
    );
  }
}

@media (max-width: 575px) {
  .kg-search-art-bus {
    display: none;
  }

  .kg-search-art-zim {
    left: 46%;
    top: 54%;
    width: min(300px, 68%);
    opacity: 0.58;
  }

  .kg-search-art-brand {
    width: min(220px, 58%);
    right: -12%;
  }
}

/* White cards — stronger elevation on light backgrounds */
.card,
.card.shadow-sm {
  border-color: rgba(var(--kg-teal-rgb), 0.1);
  box-shadow: var(--kg-card-shadow) !important;
}

.kg-passenger-picker {
  border: 1px solid rgba(var(--kg-teal-rgb), 0.12);
  border-radius: 0.75rem;
  background: rgba(var(--kg-teal-rgb), 0.03);
  padding: 0.85rem 1rem;
}

.kg-city-picker,
.kg-date-picker {
  border: 1px solid rgba(var(--kg-teal-rgb), 0.12);
  border-radius: 0.75rem;
  background: rgba(var(--kg-teal-rgb), 0.03);
  padding: 0.85rem 1rem;
}

.kg-city-picker .form-select,
.kg-date-picker .form-control {
  background-color: #fff;
}

.kg-passenger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.kg-stepper-controls {
  display: inline-flex;
  align-items: center;
}

.kg-stepper-controls .btn {
  min-width: 2rem;
  font-weight: 700;
}

/* ── Popular Routes cards ── */
.popular-route-card {
  border-radius: 0.75rem;
  box-shadow: var(--kg-card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.popular-route-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--kg-card-shadow-hover) !important;
}

/* ── Schedule result cards ── */
.schedule-card {
  border-radius: 0.75rem;
  box-shadow: var(--kg-card-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.schedule-card .card-body {
  padding: 0.85rem 1rem !important;
}

.schedule-card.mb-3,
.kg-return-leg-card.mb-3 {
  margin-bottom: 0.65rem !important;
}

.schedule-card .trip-time {
  font-size: 1.05rem;
}

.schedule-card .trip-arrow {
  font-size: 1.1rem;
}

.kg-return-leg-badge {
  font-size: 0.58rem;
  padding: 0.25rem 0.45rem;
}

.kg-trip-radio-hint {
  font-size: 0.62rem;
}

.kg-trip-radio-sub {
  font-size: 0.58rem;
}

.schedule-card:hover {
  box-shadow: var(--kg-card-shadow-hover) !important;
}

/* Return / multi-city trip radio picker */
.kg-trip-radio-col {
  min-width: 4.5rem;
}

.kg-trip-radio-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  border-radius: 0.5rem;
  transition: background 0.15s ease;
}

.kg-trip-radio-label:hover,
.kg-trip-radio-label:focus-within {
  background: rgba(31, 122, 150, 0.08);
}

.kg-trip-radio-hint {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--kg-navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kg-trip-radio-sub {
  font-size: 0.65rem;
  line-height: 1.2;
  color: var(--kg-teal);
}

.kg-trip-radio-label .form-check-input {
  float: none;
  margin: 0;
  cursor: pointer;
}

.kg-trip-radio-label:has(.form-check-input:checked) .kg-trip-radio-sub {
  color: var(--kg-navy);
  font-weight: 600;
}

.kg-trip-radio-label:has(.form-check-input:checked) .kg-trip-radio-sub::after {
  content: " ✓";
}

/* ── Why KG Tours icons ── */
.why-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(var(--kg-teal-rgb), 0.08);
}

/* ── Login section ── */
.kg-login-section {
  min-height: calc(100vh - 72px);
  background: linear-gradient(
    135deg,
    var(--kg-light-bg) 0%,
    rgba(var(--kg-teal-rgb), 0.06) 100%
  );
}

.kg-login-section .card {
  border-radius: 1rem;
  box-shadow: var(--kg-card-shadow);
}

/* ── Footer ── */
.kg-footer {
  background-color: var(--kg-teal-dark);
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--kg-sand-hover);
}

/* ── Letter-spacing for OTP input ── */
.letter-spacing-wide {
  letter-spacing: 0.25em;
}

/* ── Form inputs – teal focus ── */
.form-control:focus,
.form-select:focus {
  border-color: var(--kg-teal);
  box-shadow: 0 0 0 0.2rem rgba(var(--kg-teal-rgb), 0.18);
}

/* ── Responsive hero ── */
@media (max-width: 768px) {
  .kg-hero {
    min-height: 420px;
    background-attachment: scroll;
  }
  .kg-hero h1 {
    font-size: 2rem;
  }
}

/* ============================================================
   NEW SECTIONS
   ============================================================ */

/* ── Travel Gallery / Image strip ── */
.kg-gallery-section {
  background-color: var(--kg-light-bg);
}

.kg-gallery-img {
  border-radius: 0.75rem;
  object-fit: cover;
  width: 100%;
  height: 220px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.kg-gallery-img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(var(--kg-teal-rgb), 0.15) !important;
}

/* ── Announcements ── */
.kg-announcements-section {
  background-color: var(--kg-white);
}

.announcement-card {
  border-radius: 0.75rem;
  box-shadow: var(--kg-card-shadow);
  opacity: 0;
  transform: translateY(28px);
  animation: kgSlideUp 0.55s ease forwards;
}

.announcement-card:nth-child(1) { animation-delay: 0.05s; }
.announcement-card:nth-child(2) { animation-delay: 0.20s; }
.announcement-card:nth-child(3) { animation-delay: 0.35s; }
.announcement-card:nth-child(4) { animation-delay: 0.50s; }

@keyframes kgSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.announcement-card .card-body {
  border-top: 4px solid var(--kg-teal);
}

.announcement-card:hover {
  box-shadow: var(--kg-card-shadow-hover) !important;
  transform: translateY(-4px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ── KG Loyalty Club ── */
.kg-loyalty-section {
  background: linear-gradient(
    135deg,
    var(--kg-teal) 0%,
    var(--kg-teal-light) 60%,
    var(--kg-teal-light) 100%
  );
  position: relative;
  overflow: hidden;
}

.kg-loyalty-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://picsum.photos/seed/kgtoursloyalty/1600/600");
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}

.loyalty-benefit-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.loyalty-benefit-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.20);
}

.loyalty-benefit-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Testimonials (fixed left — sits below booking card when scrolling) ── */
.testimonials-widget {
  position: fixed;
  bottom: 80px;
  left: 16px;
  right: auto;
  width: 220px;
  z-index: 8;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.testimonials-widget.is-obscured {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

/* Toggle header button */
.testimonials-widget-toggle {
  background: var(--kg-white);
  border: none;
  border-left: 4px solid var(--kg-teal);
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 0.45rem 0.75rem;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--kg-teal);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.testimonials-widget-toggle:hover,
.testimonials-widget-toggle:focus {
  background: var(--kg-light-bg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  outline: 2px solid var(--kg-teal);
  outline-offset: 2px;
}

.testimonials-widget-toggle .bi-chat-quote-fill {
  flex-shrink: 0;
}

.testimonials-chevron {
  margin-left: auto;
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.testimonials-widget.is-expanded .testimonials-chevron {
  transform: rotate(180deg);
}

.testimonial-card {
  background: var(--kg-white);
  border-radius: 0 0 0.75rem 0.75rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--kg-teal);
  transform-origin: top center;
}

.testimonial-card[hidden] {
  display: none;
}

@keyframes kgFlipOut {
  from { transform: rotateX(0deg);    opacity: 1; }
  to   { transform: rotateX(-80deg);  opacity: 0; }
}

@keyframes kgFlipIn {
  from { transform: rotateX(80deg);   opacity: 0; }
  to   { transform: rotateX(0deg);    opacity: 1; }
}

.testimonial-card.flip-out {
  animation: kgFlipOut 0.38s ease forwards;
}

.testimonial-card.flip-in {
  animation: kgFlipIn 0.42s ease forwards;
}

.testimonial-card .t-quote {
  font-size: 2rem;
  line-height: 1;
  color: var(--kg-teal);
  opacity: 0.25;
}


/* ── Side widgets (loyalty + feedback tabs) ── */
.kg-side-widget {
  position: fixed;
  right: 0;
  z-index: 1040;
  display: flex;
  align-items: flex-end;
}

.kg-loyalty-widget {
  bottom: 310px;
}

.kg-feedback-widget {
  bottom: 200px;
}

.kg-side-tab {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: var(--kg-ink);
  border: none;
  border-radius: 0.5rem 0 0 0.5rem;
  padding: 0.75rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
  order: 2;
}

.kg-loyalty-tab {
  background: var(--kg-teal);
  color: var(--kg-white);
}

.kg-loyalty-tab:hover,
.kg-loyalty-tab:focus {
  background: var(--kg-teal-dark);
  color: var(--kg-white);
  outline: 2px solid var(--kg-gold);
  outline-offset: 2px;
}

.kg-feedback-tab {
  background: var(--kg-gold);
  color: var(--kg-ink);
}

.kg-feedback-tab:hover,
.kg-feedback-tab:focus {
  background: var(--kg-sand-hover);
  outline: 2px solid var(--kg-teal);
  outline-offset: 2px;
}

.kg-side-panel {
  background: var(--kg-white);
  border-radius: 0.75rem 0 0 0.75rem;
  box-shadow: -4px 4px 24px rgba(0, 0, 0, 0.14);
  padding: 1rem;
  width: 220px;
  border-top: 3px solid var(--kg-teal);
  order: 1;
}

.kg-side-panel[hidden] {
  display: none;
}

/* Legacy aliases (feedback widget on homepage) */
.kg-feedback-panel {
  background: var(--kg-white);
  border-radius: 0.75rem 0 0 0.75rem;
  box-shadow: -4px 4px 24px rgba(0, 0, 0, 0.14);
  padding: 1rem;
  width: 220px;
  border-top: 3px solid var(--kg-teal);
  order: 1;
}

.kg-feedback-panel[hidden] {
  display: none;
}

/* ── After-booking feedback modal (confirmation page) ── */
.kg-booking-feedback-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 35, 45, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.kg-booking-feedback-backdrop[hidden] {
  display: none !important;
}

.kg-booking-feedback-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
}

.kg-booking-feedback-dialog .btn-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
}

.kg-booking-feedback-question {
  font-family: var(--kg-font-serif, "Playfair Display", serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--kg-ink);
  margin: 0 1.5rem 1.25rem;
  line-height: 1.35;
}

.kg-booking-feedback-smiles {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.kg-booking-feedback-smile {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: #fff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.kg-booking-feedback-smile:hover,
.kg-booking-feedback-smile:focus {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  outline: none;
}

.kg-booking-feedback-smile:disabled {
  cursor: default;
  opacity: 0.65;
}

.kg-booking-feedback-smile svg {
  width: 1.85rem;
  height: 1.85rem;
  display: block;
}

.kg-booking-feedback-smile--1 { color: #1b7a3a; }
.kg-booking-feedback-smile--2 { color: #5cb85c; }
.kg-booking-feedback-smile--3 { color: #e8a317; }
.kg-booking-feedback-smile--4 { color: #d9534f; }
.kg-booking-feedback-smile--5 { color: #a71d2a; }

.kg-booking-feedback-smile.is-selected {
  background: currentColor;
}

.kg-booking-feedback-smile.is-selected svg path,
.kg-booking-feedback-smile.is-selected svg circle {
  stroke: #fff;
}

.kg-booking-feedback-smile--1.is-selected svg { fill: #1b7a3a; }
.kg-booking-feedback-smile--2.is-selected svg { fill: #5cb85c; }
.kg-booking-feedback-smile--3.is-selected svg { fill: #e8a317; }
.kg-booking-feedback-smile--4.is-selected svg { fill: #d9534f; }
.kg-booking-feedback-smile--5.is-selected svg { fill: #a71d2a; }

.kg-booking-feedback-thanks {
  font-size: 0.9rem;
  color: var(--kg-teal);
  margin-top: 0.75rem;
}

/* ── Register / Coming Soon page ── */
.kg-register-section {
  min-height: calc(100vh - 72px);
  background: linear-gradient(
    135deg,
    var(--kg-light-bg) 0%,
    rgba(var(--kg-teal-rgb), 0.06) 100%
  );
}

.kg-coming-soon-icon {
  width: 80px;
  height: 80px;
  background: rgba(var(--kg-teal-rgb), 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kg-coming-soon-card {
  border-radius: 1.25rem;
  box-shadow: var(--kg-card-shadow);
}

/* ── Toast ── */
.kg-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1090;
}

/* ── Responsive adjustments ── */
@media (max-width: 576px) {
  .kg-search-section {
    margin-top: -2rem;
  }

  .testimonials-widget {
    width: 200px;
    bottom: 16px;
    left: 10px;
  }

  .kg-loyalty-widget {
    bottom: 250px;
  }

  .kg-feedback-widget {
    bottom: 140px;
  }

  .kg-toast-container {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
  }
}

/* ── Hero typography helpers ── */
.kg-hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--kg-sand);
  font-weight: 600;
}

.kg-hero-headline {
  font-family: var(--kg-font-script);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.kg-hero-sub {
  font-size: 1.05rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Service Cards (hero grid) ── */
.kg-service-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.85rem;
  padding: 0.95rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background 0.3s ease, transform 0.25s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.kg-service-card:hover {
  background: rgba(255, 255, 255, 0.20);
  transform: translateY(-5px);
}

.kg-service-card--primary {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(var(--kg-gold-rgb), 0.85);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.kg-book-bus-cta {
  font-size: 1rem;
  font-weight: 700;
  padding: 0.7rem 1rem;
  letter-spacing: 0.01em;
  border-width: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kg-book-bus-cta:hover,
.kg-book-bus-cta:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(var(--kg-gold-rgb), 0.4);
}

.kg-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(var(--kg-gold-rgb), 0.3);
  border: 1px solid rgba(var(--kg-gold-rgb), 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--kg-sand);
  flex-shrink: 0;
}

.kg-service-title {
  font-family: var(--kg-font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}

.kg-service-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.4;
  margin-bottom: 0.55rem;
  flex-grow: 1;
}

/* Taller hero on desktop to fit cards */
@media (min-width: 769px) {
  .kg-hero {
    min-height: 580px;
  }
}

@media (max-width: 575px) {
  .kg-service-card {
    padding: 0.75rem 0.65rem 0.65rem;
  }

  .kg-service-title {
    font-size: 0.82rem;
  }

  .kg-service-desc {
    font-size: 0.68rem;
  }

  .kg-service-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .kg-book-bus-cta {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }
}

/* ── KG Group brochure (live Canva embed) ── */
.kg-brochure-section {
  background: linear-gradient(180deg, #eef4f6 0%, var(--kg-light-bg) 100%);
}

.kg-brochure-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--kg-teal);
  font-weight: 600;
}

.kg-brochure-lead {
  max-width: 520px;
}

.kg-brochure-card {
  max-width: 960px;
  border-radius: 1rem !important;
  overflow: hidden;
  position: relative;
}

.kg-canva-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 460px;
  background: #fff;
}

.kg-canva-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* inDrive-style toolbar: label left, circular arrows bottom-right */
.kg-brochure-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  background: var(--kg-light-bg);
  border-top: 1px solid rgba(var(--kg-teal-rgb), 0.1);
}

.kg-brochure-page {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--kg-ink);
}

.kg-brochure-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.kg-brochure-nav-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--kg-ink);
  box-shadow: 0 2px 10px rgba(var(--kg-teal-rgb), 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kg-brochure-nav-btn:hover,
.kg-brochure-nav-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(var(--kg-teal-rgb), 0.2);
  color: var(--kg-teal);
}

.kg-brochure-nav-btn:active {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .kg-canva-embed {
    aspect-ratio: 3 / 4;
    min-height: 380px;
  }

  .kg-brochure-toolbar {
    padding: 0.75rem 1rem;
  }

  .kg-brochure-nav-btn {
    width: 40px;
    height: 40px;
  }
}

/* ── Interior Carousel ── */
.kg-carousel-img {
  height: 420px;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(var(--kg-teal-rgb), 0.70);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

@media (max-width: 768px) {
  .kg-carousel-img { height: 260px; }
}
/* Branded background for login/enquiry pages */
.kg-page-bg {
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(var(--kg-teal-rgb), 0.45), rgba(var(--kg-teal-rgb), 0.45)),
    url("../img/kg-picture.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Frosted panel on top of branded background (login, register, thanks) */
.kg-on-bg-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
}

.kg-on-bg-card,
.kg-on-bg-card p,
.kg-on-bg-card label,
.kg-on-bg-card .form-label {
  color: #ffffff;
}

.kg-on-bg-card .text-muted {
  color: rgba(255, 255, 255, 0.70) !important;
}

/* Opaque readable variant for enquiry form */
.kg-on-bg-card--solid {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(11, 31, 42, 0.08);
}

.kg-on-bg-card--solid,
.kg-on-bg-card--solid p,
.kg-on-bg-card--solid label,
.kg-on-bg-card--solid .form-label,
.kg-on-bg-card--solid .form-check-label {
  color: #0b1f2a;
}

.kg-on-bg-card--solid .text-muted {
  color: rgba(11, 31, 42, 0.65) !important;
}

.kg-on-bg-card .form-control,
.kg-on-bg-card .form-select,
.kg-on-bg-card textarea {
  background: rgba(255,255,255,0.92);
  color: #0b1f2a;
  border: 1px solid rgba(0,0,0,0.10);
}

.kg-on-bg-card .form-control::placeholder,
.kg-on-bg-card textarea::placeholder {
  color: rgba(11,31,42,0.55);
}

.kg-on-bg-card .input-group-text {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.10);
  color: #0b1f2a;
}
/* Compact form spacing on branded enquiry/login pages */
.kg-on-bg-card.kg-compact-form .mb-3 { margin-bottom: .75rem !important; }
.kg-on-bg-card.kg-compact-form .mb-4 { margin-bottom: 1rem !important; }
.kg-on-bg-card.kg-compact-form .form-label { margin-bottom: .35rem; }
.kg-on-bg-card.kg-compact-form .form-control,
.kg-on-bg-card.kg-compact-form .form-select,
.kg-on-bg-card.kg-compact-form textarea {
  padding-top: .55rem;
  padding-bottom: .55rem;
}

/* ── Trip type selector ── */
.kg-trip-type-selector {
  flex-wrap: nowrap;
}

.kg-trip-type-selector .kg-trip-type-btn {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}

.kg-trip-type-selector .btn-check:checked + .btn-outline-navy {
  background-color: var(--kg-teal);
  color: var(--kg-white);
}

@media (max-width: 767.98px) {
  .kg-trip-type-selector {
    gap: 0.35rem !important;
  }

  .kg-trip-type-selector .kg-trip-type-btn {
    padding: 0.5rem 0.35rem;
    font-size: 0.78rem;
  }

  .kg-trip-type-selector .kg-trip-type-btn .bi {
    font-size: 0.95rem;
  }
}

@media (min-width: 768px) {
  .kg-trip-type-selector .kg-trip-type-btn {
    flex: 0 1 auto;
  }
}

/* ── Return trip card colour coding ── */
.kg-return-leg-card {
  border-radius: 0.75rem !important;
  border: 2px solid transparent !important;
  overflow: hidden;
}

.kg-return-leg-card .card-body {
  background: transparent;
}

.kg-return-leg-outbound {
  background-color: #b8e4ef !important;
  border-color: #1F7A96 !important;
  box-shadow: 0 4px 14px rgba(31, 122, 150, 0.22) !important;
}

.kg-return-leg-outbound.selected-return-leg {
  background-color: #9dd9e8 !important;
  box-shadow: 0 0 0 3px rgba(31, 122, 150, 0.45) !important;
}

.kg-return-leg-return {
  background-color: #ffd98a !important;
  border-color: #c27803 !important;
  box-shadow: 0 4px 14px rgba(194, 120, 3, 0.25) !important;
}

.kg-return-leg-return.selected-return-leg {
  background-color: #ffcc66 !important;
  box-shadow: 0 0 0 3px rgba(194, 120, 3, 0.45) !important;
}

.kg-return-leg-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
}

.kg-return-leg-badge-outbound {
  background-color: #1F7A96;
  color: #fff;
}

.kg-return-leg-badge-return {
  background-color: #c27803;
  color: #fff;
}

.kg-return-section-outbound {
  color: #1F7A96;
  background: rgba(31, 122, 150, 0.12);
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  display: inline-block;
}

.kg-return-section-return {
  color: #9a5b00;
  background: rgba(255, 204, 102, 0.45);
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  display: inline-block;
}

/* ── Multi-city leg rows ── */
.kg-leg-row {
  background: var(--kg-light-bg);
  border: 1px solid rgba(var(--kg-teal-rgb), 0.15);
  border-radius: 0.75rem;
  padding: 1rem;
  position: relative;
}

.kg-leg-number {
  position: absolute;
  top: -0.6rem;
  left: 1rem;
  background: var(--kg-teal);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 1rem;
}

.kg-leg-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

/* ── Proof of payment receipt (Bright Lift layout) ── */
.kg-receipt-wrap {
  background: var(--kg-light-bg);
}

.kg-receipt-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 1.25rem;
  box-shadow: var(--kg-card-shadow-hover);
  background: var(--kg-white);
}

.kg-receipt-watermark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.kg-receipt-head {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--kg-teal-mid) 0%, var(--kg-teal-light) 100%);
  padding: 1.25rem 1.25rem 1rem;
}

.kg-receipt-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.kg-receipt-brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.kg-receipt-brand-block .kg-brand-logo-wrap--receipt {
  flex-shrink: 0;
}

.kg-receipt-brand-name {
  font-family: var(--kg-font-script);
  font-size: 1.65rem;
  line-height: 1.1;
  color: var(--kg-gold);
  margin: 0;
}

.kg-receipt-brand-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0.15rem 0 0;
}

.kg-receipt-qr-wrap {
  flex-shrink: 0;
  text-align: center;
}

.kg-receipt-qr-img {
  width: 88px;
  height: 88px;
  display: block;
  margin: 0 auto;
  background: #fff;
  border-radius: 0.5rem;
  padding: 4px;
}

.kg-receipt-qr-caption {
  font-size: 0.62rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.3rem;
}

.kg-receipt-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 2rem;
  background: var(--kg-success);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.kg-receipt-body-inner {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.25rem 1.5rem;
}

.kg-receipt-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kg-text-muted);
  margin-bottom: 0.15rem;
}

.kg-receipt-value {
  color: var(--kg-teal);
  font-weight: 700;
}

.kg-receipt-ref-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(var(--kg-teal-rgb), 0.22);
}

.kg-receipt-ref-date {
  text-align: right;
  font-size: 0.82rem;
  color: var(--kg-text-muted);
  white-space: nowrap;
}

.kg-receipt-detail-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(var(--kg-teal-rgb), 0.1);
}

.kg-receipt-detail-row:last-of-type {
  border-bottom: none;
}

.kg-receipt-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--kg-teal-rgb), 0.1);
  color: var(--kg-teal);
  font-size: 1rem;
}

.kg-receipt-detail-main {
  flex: 1;
  min-width: 0;
}

.kg-receipt-detail-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--kg-text-muted);
  margin-bottom: 0.2rem;
}

.kg-receipt-detail-value {
  font-weight: 700;
  color: var(--kg-teal);
  margin-bottom: 0.15rem;
}

.kg-receipt-fare-lines {
  font-size: 0.88rem;
  color: var(--kg-ink);
}

.kg-receipt-fare-lines .kg-receipt-fare-total {
  font-weight: 700;
  color: var(--kg-teal);
  font-size: 1rem;
  margin-top: 0.35rem;
}

.kg-receipt-note {
  background: rgba(var(--kg-teal-rgb), 0.06);
  border-radius: 0.65rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
  color: var(--kg-ink);
  margin-top: 0.5rem;
}

.kg-receipt-expand {
  margin-top: 1rem;
}

.kg-receipt-expand summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--kg-teal);
  font-size: 0.9rem;
}

.kg-receipt-print-bar {
  margin-top: 1.25rem;
  padding-top: 0.25rem;
}

.kg-receipt-print-bar .btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-weight: 700;
  border-radius: 0.65rem;
}

.kg-receipt-actions-secondary {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.75rem;
}

@media print {
  .kg-receipt-wrap {
    background: #fff !important;
    padding: 0 !important;
  }

  .kg-receipt-card {
    box-shadow: none !important;
    border: 1px solid #d9e4ea !important;
  }

  .kg-receipt-head {
    background: linear-gradient(135deg, var(--kg-teal-mid) 0%, var(--kg-teal-light) 100%) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .kg-receipt-expand {
    display: block !important;
  }

  .kg-receipt-expand summary {
    display: none;
  }

  .kg-receipt-print-bar,
  .kg-receipt-actions-secondary,
  .kg-booking-feedback-backdrop,
  #shuttle-attach-mount {
    display: none !important;
  }

  .kg-receipt-watermark {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center !important;
    opacity: 0.09 !important;
    z-index: 0 !important;
  }
}

/* ── Seat selection booking page (mobile-first) ── */
.kg-seat-compact-header {
  line-height: 1.3;
}

.kg-seat-compact-line1 {
  font-size: 1rem;
}

.kg-seat-compact-line2 {
  font-size: 0.82rem;
}

.kg-seat-select-title {
  font-size: 0.95rem;
}

.kg-seat-legend {
  gap: 0.65rem !important;
}

.kg-seat-booking-page .kg-seat-trip-card .card-body {
  padding: 0.65rem 0.85rem;
}

.kg-seat-booking-page .kg-seat-trip-title {
  font-size: 0.95rem;
  line-height: 1.25;
}

.kg-seat-booking-page .kg-seat-trip-meta {
  font-size: 0.78rem;
  line-height: 1.35;
}

@media (max-width: 991.98px) {
  .kg-seat-booking-page {
    padding-top: 0.75rem !important;
    padding-bottom: 1rem !important;
  }

  .kg-seat-booking-page .kg-seat-trip-card {
    margin-bottom: 0.5rem !important;
  }

  .kg-seat-booking-layout #seat-selection-stage .card-body {
    padding: 0.75rem;
  }

  .kg-seat-booking-layout #party-size-banner {
    font-size: 0.75rem;
    margin-bottom: 0.5rem !important;
    padding: 0.4rem 0.55rem !important;
  }

  .kg-seat-booking-layout #seat-map {
    max-height: min(56vh, 360px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .kg-seat-booking-layout .seat-btn {
    min-width: 2.1rem;
    padding: 0.2rem 0.35rem;
    font-size: 0.72rem;
  }

  .kg-seat-booking-layout #passenger-details-panel .card-header {
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
  }

  .kg-seat-booking-layout #passenger-details-panel .card-body {
    padding: 0.75rem;
  }

  .kg-seat-booking--pax-ready #passenger-details-panel {
    scroll-margin-top: 72px;
  }
}

/* ── Schedules & Fares (home page, live from admin) ── */
.kg-timetable-section {
  background: linear-gradient(180deg, var(--kg-white) 0%, var(--kg-light-bg) 100%);
  scroll-margin-top: 80px;
}

.kg-timetable-card,
.kg-fare-card {
  border-radius: 14px;
  box-shadow: var(--kg-card-shadow) !important;
}

.kg-timetable-badge {
  background-color: var(--kg-sand);
  color: var(--kg-ink);
  font-weight: 600;
}

.kg-timetable-stops {
  position: relative;
  padding-left: 1.4rem;
}

.kg-timetable-stops::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 2px;
  background: rgba(var(--kg-teal-rgb), 0.25);
}

.kg-timetable-stop {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(var(--kg-teal-rgb), 0.15);
}

.kg-timetable-stop:last-child {
  border-bottom: 0;
}

.kg-timetable-stop::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--kg-white);
  border: 2px solid var(--kg-teal);
}

.kg-timetable-stop--end::before {
  background: var(--kg-gold);
  border-color: var(--kg-gold);
}

.kg-timetable-stop--end .kg-timetable-city {
  font-weight: 700;
}

.kg-timetable-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--kg-teal-dark);
}

.kg-fare-card {
  max-width: 820px;
}

.kg-fare-table {
  --bs-table-bg: transparent;
  font-variant-numeric: tabular-nums;
}

.kg-fare-table thead th {
  color: var(--kg-white);
  background-color: var(--kg-teal);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.kg-fare-table tbody th {
  color: var(--kg-teal-dark);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  position: sticky;
  left: 0;
  background-color: var(--kg-white);
}

.kg-fare-cell {
  font-weight: 700;
  color: var(--kg-ink);
  background-color: rgba(var(--kg-gold-rgb), 0.12) !important;
}

.kg-fare-empty {
  background-color: transparent;
}

.kg-fare-code,
.kg-fare-key {
  display: none;
}

.kg-fare-code {
  text-decoration: none;
  cursor: help;
}

@media (max-width: 419.98px) {
  .kg-fare-name {
    display: none;
  }
  .kg-fare-code {
    display: inline;
  }
  .kg-fare-key {
    display: inline;
  }
}

@media (max-width: 575.98px) {
  .kg-fare-table {
    font-size: 0.85rem;
  }
  .kg-fare-table thead th,
  .kg-fare-table tbody th {
    font-size: 0.6rem;
    letter-spacing: 0;
  }
  .kg-fare-table td,
  .kg-fare-table th {
    padding: 0.4rem 0.15rem;
  }
}
