/* Shared booking controls for the homepage and service pages. */
html {
  scroll-padding-top: 140px;
  scroll-padding-bottom: 100px;
}

header,
.site-header {
  position: sticky;
  top: 0;
}

.header-content,
.header-inner {
  gap: 24px;
}

.header-content nav ul {
  align-items: center;
}

.header-content nav > ul > li {
  margin-left: 20px;
}

.booking-header-link,
.booking-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 30px;
  background: #006644;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.booking-header-link:hover,
.booking-whatsapp-link:hover {
  background: #004d33;
}

.booking-header-link:focus-visible,
.mobile-booking-bar a:focus-visible,
.whatsapp-float:focus-visible,
.booking-help a:focus-visible,
.fare-calculator input:focus-visible {
  outline: 3px solid #d4af37;
  outline-offset: 4px;
}

#home.hero {
  height: auto;
  min-height: calc(100svh - 94px);
  padding: 64px 0;
  text-align: left;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .35)), url('hero.webp');
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: 56px;
  width: 100%;
}

.hero-layout .hero-content {
  align-self: center;
}

.hero-layout .hero-content h1 {
  font-size: clamp(2.4rem, 3.7vw, 3.2rem);
  line-height: 1.12;
}

.hero-layout .hero-content p {
  margin: 0 0 26px;
}

.hero-layout .hero-content .hero-booking-note {
  max-width: 370px;
  margin: 16px 0 0;
  color: #f3f3f3;
  font-size: .95rem;
}

.hero-layout .fare-calculator {
  min-width: 0;
  margin: 0;
  padding: 30px;
  border-radius: 16px;
  color: #26352e;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}

.fare-calculator h2 {
  margin-bottom: 6px;
  color: #006644;
  font-size: 1.65rem;
  line-height: 1.2;
}

.booking-intro {
  margin-bottom: 24px;
  color: #52605a;
  font-size: .95rem;
}

.hero-layout .calculator-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.hero-layout .form-group {
  min-width: 0;
  margin: 0;
}

.hero-layout .form-group input {
  min-height: 48px;
  border-color: #bdc9c2;
  border-radius: 8px;
}

.hero-layout #calculate-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}

.booking-help {
  color: #52605a;
  font-size: .9rem;
  text-align: center;
}

.booking-help a {
  color: #006644;
  font-weight: 700;
  text-underline-offset: 3px;
}

.hero-layout .calculator-results {
  padding: 18px;
}

.hero-layout .result-row {
  flex-wrap: wrap;
  gap: 4px 12px;
}

.hero-layout .trip-locations {
  padding: 0;
  background: transparent;
  overflow-wrap: anywhere;
}

.hero-layout #map {
  height: 260px;
}

.whatsapp-float {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  height: auto;
  padding: 10px 18px 10px 12px;
  border: 1px solid #d4e4dc;
  border-radius: 32px;
  background: #fff;
  color: #006644;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
}

.whatsapp-float img {
  width: 30px !important;
  height: 30px !important;
}

.mobile-booking-bar {
  display: none;
}

@media (max-width: 1000px) {
  .header-content,
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 16px;
    padding: 12px 0;
  }

  .header-content nav,
  .header-inner nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .booking-header-link {
    grid-column: 2;
    grid-row: 1;
  }

  .header-content nav > ul,
  .header-inner .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
  }

  .header-content nav > ul > li {
    margin-left: 0;
  }

  .hero-layout {
    gap: 30px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  #home.hero {
    min-height: 0;
    padding: 32px 0 40px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-layout .hero-content h1 {
    max-width: 550px;
    font-size: clamp(2rem, 6.5vw, 2.6rem);
  }

  .hero-layout .hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .hero-layout .fare-calculator {
    padding: 24px;
  }

  .booking-header-link {
    padding: 10px 16px;
    font-size: .85rem;
  }

  .header-content nav > ul,
  .header-inner .nav-list {
    gap: 6px 12px;
  }

  .whatsapp-float {
    display: none;
  }

  .mobile-booking-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #d4e4dc;
    background: #fff;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .08);
  }

  .mobile-booking-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
  }

  .booking-estimate-link {
    border: 1px solid #b7cfc1;
    background: #f3f8f5;
    color: #006644;
  }
}

@media (max-width: 380px) {
  .header-content,
  .header-inner {
    column-gap: 10px;
  }

  .booking-header-link {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
