:root {
  --ink: #16211d;
  --muted: #617067;
  --paper: #fffdf8;
  --surface: #f3f7f1;
  --surface-strong: #e8f1ec;
  --teal: #006d68;
  --teal-light: #dff4f0;
  --leaf: #4f8748;
  --sun: #f1b84b;
  --coral: #df6b4f;
  --line: #d9e2dc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(18, 31, 26, 0.14);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid rgba(217, 226, 220, 0.72);
  backdrop-filter: blur(14px);
}

.site-header .brand,
.site-footer .brand {
  min-width: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 42px;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal), var(--leaf));
  border-radius: var(--radius);
}

.brand-mark.logo-mark {
  width: 60px;
  height: 60px;
  overflow: hidden;
  border: 1px solid rgba(217, 226, 220, 0.74);
  background: var(--white);
}

.brand-mark.logo-mark img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  color: #324039;
  font-size: 0.96rem;
}

.main-nav a,
.text-link {
  position: relative;
  font-weight: 700;
}

.main-nav a::after,
.text-link::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-action,
.small-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.nav-action {
  padding: 0 16px;
  font-weight: 800;
}

.small-button {
  padding: 0 12px;
  font-weight: 800;
}

.icon-button {
  width: 42px;
  padding: 0;
  font-size: 1.5rem;
}

.nav-action:hover,
.small-button:hover,
.icon-button:hover {
  border-color: rgba(0, 109, 104, 0.38);
  box-shadow: 0 8px 22px rgba(0, 109, 104, 0.12);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(82svh, 740px);
  padding: clamp(72px, 10vw, 130px) clamp(18px, 4vw, 56px);
  overflow: hidden;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(12, 31, 28, 0.9), rgba(12, 31, 28, 0.42), rgba(12, 31, 28, 0.08)),
    url("/public/assets/hero-bus-v2.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 120px;
  content: "";
  background: linear-gradient(180deg, rgba(255, 253, 248, 0), var(--paper));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(710px, 100%);
  align-self: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sun);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 20px;
  font-size: clamp(3.25rem, 9vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  width: min(590px, 100%);
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions,
.filters,
.payment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button.primary,
.button.checkout-button {
  color: #0f201b;
  background: var(--sun);
  box-shadow: 0 15px 35px rgba(241, 184, 75, 0.25);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.button:hover {
  transform: translateY(-2px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(620px, 100%);
  margin: 34px 0 0;
}

.hero-metrics div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-metrics dt {
  font-size: 1.8rem;
  font-weight: 950;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.search-band,
.booking-band,
.info-band,
.faq-band {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 4vw, 56px);
}

.search-band {
  background: var(--paper);
}

.booking-band {
  background: linear-gradient(180deg, var(--surface), #edf4ee);
}

.info-band {
  background: var(--paper);
}

.faq-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 72px);
  background: #f8f1e6;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto 28px;
}

.section-head.compact {
  align-items: center;
}

.filters {
  width: min(1180px, 100%);
  margin: 0 auto 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(20, 38, 31, 0.08);
}

label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

label span,
legend {
  display: block;
  margin-bottom: 7px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 109, 104, 0.14);
}

textarea {
  min-height: 92px;
  padding-top: 10px;
  resize: vertical;
  line-height: 1.45;
}

.filters label {
  flex: 1 1 220px;
}

.trip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.trip-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(20, 38, 31, 0.07);
}

.trip-card.active {
  border-color: rgba(0, 109, 104, 0.58);
  box-shadow: 0 18px 42px rgba(0, 109, 104, 0.12);
}

.trip-media {
  position: relative;
  min-height: 110px;
  margin: -2px -2px 16px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 24% 35%, rgba(255, 255, 255, 0.55), transparent 30%),
    linear-gradient(135deg, var(--teal), var(--leaf) 58%, var(--sun));
}

.trip-media::after {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 92px;
  height: 44px;
  content: "";
  border-radius: 22px 22px 8px 8px;
  background:
    linear-gradient(90deg, transparent 14px, rgba(255, 255, 255, 0.66) 14px 18px, transparent 18px),
    linear-gradient(180deg, #f8f5ec 0 48%, #d5dedb 48% 100%);
  box-shadow:
    -52px 12px 0 -16px #23342e,
    -8px 12px 0 -16px #23342e;
}

.trip-tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 9px;
  border-radius: 999px;
  color: #284135;
  background: var(--teal-light);
  font-size: 0.76rem;
  font-weight: 900;
}

.trip-card h3 {
  min-height: 58px;
  margin-bottom: 8px;
}

.trip-meta {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.trip-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.trip-price strong {
  font-size: 1.6rem;
}

.trip-fare-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.trip-media img[src*="recanto-das-cachoeiras"] {
  object-fit: contain;
  background: #0a6c92;
}

.selected-fare-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.trip-card button {
  min-width: 118px;
}

.availability-pill {
  padding: 10px 14px;
  border: 1px solid rgba(0, 109, 104, 0.24);
  border-radius: 999px;
  color: var(--teal);
  background: var(--teal-light);
  font-weight: 900;
  white-space: nowrap;
}

.availability-pill[hidden] {
  display: none !important;
}

.booking-shell {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(320px, 1.05fr) minmax(280px, 0.9fr);
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: start;
}

.booking-stepper {
  display: flex;
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  border-bottom: 1px solid rgba(4, 111, 169, 0.2);
}

.booking-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
}

.booking-step span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #9cb5bb;
  font-size: 0.72rem;
}

.booking-step.is-active {
  border-bottom-color: var(--sun);
  color: var(--ink);
}

.booking-step.is-active span {
  color: #15352e;
  background: var(--sun);
}

.booking-step:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.booking-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.booking-back span {
  font-size: 1rem;
  line-height: 1;
}

.booking-shell.is-details {
  grid-template-columns: minmax(0, 660px);
  justify-content: center;
}

.booking-shell.is-details .trip-panel,
.booking-shell.is-details .seat-panel {
  display: none;
}

.booking-shell.is-details .booking-selection-stage,
.booking-shell:not(.is-details) .reservation-form {
  display: none !important;
}

.trip-panel,
.seat-panel,
.checkout-panel,
.reservation-modal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(20, 38, 31, 0.08);
}

.trip-panel,
.seat-panel,
.checkout-panel {
  padding: 18px;
}

.stacked-control {
  display: block;
  margin-bottom: 18px;
}

.selected-trip {
  display: grid;
  gap: 12px;
}

.selected-trip .route {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
}

.selected-trip .route strong {
  font-size: 1.24rem;
}

.selected-trip dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.selected-trip dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-trip dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.selected-fare-list {
  display: grid;
  gap: 4px;
}

.selected-fare-list span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.selected-fare-list strong {
  white-space: nowrap;
}

.selected-fares {
  grid-column: 1 / -1;
}

.legend {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.seat-key {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border-radius: 4px;
}

.seat-key.available {
  background: var(--surface-strong);
}

.seat-key.selected {
  background: var(--sun);
}

.seat-key.checked-in {
  background: #16835d;
}

.seat-key.reserved {
  background: #b9c2bc;
}

.bus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.bus-frame {
  padding: 16px;
  border-radius: 28px 28px 12px 12px;
  background: linear-gradient(180deg, #f6f8f5, #dfe8e2);
  border: 1px solid #cedbd2;
}

.driver-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seat-map {
  display: grid;
  gap: 8px;
}

.seat-map-empty {
  display: grid;
  min-height: 320px;
  place-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px dashed rgba(0, 109, 104, 0.28);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.seat-map-empty strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.seat-row {
  display: grid;
  grid-template-columns: 38px 38px 22px 38px 38px;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
}

.seat {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #cad8cf;
  border-radius: 8px 8px 12px 12px;
  color: #20342c;
  background: var(--surface-strong);
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.seat:hover:not(:disabled) {
  border-color: var(--teal);
  background: #eef8f4;
}

.seat.is-selected {
  border-color: #c48916;
  background: var(--sun);
}

.seat.is-reserved {
  color: #6c7770;
  background: #cbd2cd;
  cursor: not-allowed;
  text-decoration: line-through;
}

.aisle {
  display: block;
}

.summary-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.summary-top strong {
  max-width: 170px;
  text-align: right;
}

.summary-lines {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
}

.fare-selection {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(243, 184, 51, 0.48);
  border-top: 3px solid var(--sun);
  border-radius: var(--radius);
  background: #fff8e9;
}

.fare-selection legend {
  padding: 0 5px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.fare-selection-intro {
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.fare-seat-list {
  display: grid;
  gap: 8px;
}

.fare-seat-row,
.fare-lap-row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(190px, 1.3fr);
  align-items: center;
  gap: 10px;
}

.fare-seat-row strong,
.fare-lap-row strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.fare-lap-row {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(114, 83, 23, 0.18);
}

.fare-lap-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.fare-selection select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.summary-line strong {
  color: var(--ink);
  white-space: nowrap;
}

.summary-line.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
}

.option-group {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

legend {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
}

.check-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  color: var(--ink);
}

.check-row input,
.terms-row input {
  width: 18px;
  min-height: 18px;
}

.check-row strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.payment-tabs label {
  flex: 1 1 92px;
  min-width: 0;
}

.payment-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-tabs span {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--white);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.payment-tabs input:checked + span {
  color: #0f201b;
  border-color: rgba(241, 184, 75, 0.8);
  background: #fff0cf;
}

.reservation-form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.booking-selection-stage[hidden],
.reservation-form[hidden] {
  display: none !important;
}

.reservation-form-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 2px;
}

.reservation-form-head h3 {
  margin: 4px 0 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.terms-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  line-height: 1.35;
}

.checkout-button {
  width: 100%;
  border: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.info-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.info-grid span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-weight: 950;
}

.info-grid p,
.faq-list p,
.trip-card p {
  color: var(--muted);
  line-height: 1.55;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid #dfd2bd;
  border-radius: var(--radius);
  background: var(--white);
}

summary {
  padding: 18px;
  font-weight: 950;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
}

.reservation-modal {
  width: min(760px, calc(100vw - 28px));
  max-height: min(780px, calc(100svh - 28px));
  padding: 0;
}

.admin-modal {
  width: min(1180px, calc(100vw - 28px));
  max-height: min(880px, calc(100svh - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.reservation-modal::backdrop,
.admin-modal::backdrop {
  background: rgba(18, 31, 26, 0.58);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.reservation-list {
  display: grid;
  gap: 12px;
  padding: 18px;
  overflow: auto;
}

.admin-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: min(720px, calc(100svh - 120px));
}

.admin-tabs {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.admin-tab {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.admin-tab.is-active,
.admin-tab:hover {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.admin-content {
  padding: 18px;
  overflow: auto;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-kpi,
.admin-panel,
.admin-reservation {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(20, 38, 31, 0.06);
}

.admin-kpi {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.admin-kpi span,
.admin-kpi small {
  color: var(--muted);
  font-weight: 800;
}

.admin-kpi strong {
  font-size: 1.55rem;
  line-height: 1;
}

.admin-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 14px;
}

.admin-panel {
  padding: 16px;
}

.admin-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-panel-head p,
.admin-summary span,
.audit-list span,
.admin-reservation p,
.operation-summary p,
.admin-panel p,
.admin-list {
  color: var(--muted);
  line-height: 1.45;
}

.admin-trip-list {
  display: grid;
}

.admin-trip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.admin-trip-row:first-child {
  padding-top: 2px;
}

.admin-trip-row:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.admin-trip-row h3 {
  margin: 3px 0 5px;
  color: var(--ink);
  font-size: 1.04rem;
}

.admin-trip-row p {
  margin: 0;
}

.admin-trip-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: right;
}

.admin-trip-meta strong {
  color: var(--teal);
  font-size: 0.94rem;
}

.admin-banner-preview {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #e9f7f8;
}

.admin-banner-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-picker {
  position: relative;
  cursor: pointer;
}

.banner-picker-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.banner-picker-action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 7px;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px dashed rgba(4, 111, 169, 0.4);
  border-radius: 6px;
  background: #f1fbfd;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.banner-picker-action b {
  flex: none;
  padding: 8px 11px;
  border-radius: 4px;
  color: #ffffff;
  background: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.banner-picker-action small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner-picker-spec {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.banner-picker:hover .banner-picker-action,
.banner-picker:focus-within .banner-picker-action {
  border-color: var(--teal);
  background: #e7f7f8;
  box-shadow: 0 0 0 3px rgba(0, 174, 202, 0.12);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  color: #20342c;
  background: var(--surface-strong);
  font-size: 0.76rem;
  font-weight: 950;
}

.status-badge.paid,
.status-badge.open {
  color: #0a4b34;
  background: #dff5df;
}

.status-badge.pending_payment,
.status-badge.draft {
  color: #765014;
  background: #fff0cf;
}

.status-badge.cancelled,
.status-badge.expired,
.status-badge.closed {
  color: #7b3328;
  background: #ffe0db;
}

.admin-summary,
.audit-list {
  display: grid;
  gap: 8px;
}

.admin-followup-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-followup-list h3,
.audit-list h3 {
  margin-bottom: 2px;
}

.admin-followup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d5ebf0;
  border-radius: 7px;
  background: #f5fbfd;
}

.admin-followup-item div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-followup-item strong,
.admin-followup-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-followup-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.audit-list {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.audit-list p {
  margin-bottom: 0;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-form-grid .full {
  grid-column: 1 / -1;
}

.fare-editor {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid #c8e7ed;
  border-radius: 6px;
  background: #f4fcfd;
}

.fare-editor legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.fare-editor > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.fare-editor-list {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}

.fare-editor-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(120px, 0.48fr) minmax(130px, 0.48fr) 38px;
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d7ebee;
  border-radius: 6px;
  background: #ffffff;
}

.fare-seat-toggle {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
}

.fare-seat-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.fare-remove {
  width: 38px;
  min-width: 38px;
  height: 42px;
  color: #b44a18;
  font-size: 1.2rem;
}

.admin-filters {
  width: 100%;
  margin: 0 0 14px;
  box-shadow: none;
}

.admin-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.admin-filter-summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d5ebf0;
  border-radius: 999px;
  color: var(--muted);
  background: #eefafd;
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-filter-summary strong {
  color: var(--ink);
}

.reservation-admin-list {
  display: grid;
  gap: 10px;
}

.admin-reservation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
  padding: 14px;
}

.admin-reservation h3 {
  margin: 9px 0 6px;
}

.admin-reservation p {
  margin-bottom: 5px;
}

.admin-reservation code {
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--teal);
  background: var(--surface);
  font-weight: 950;
}

.admin-reservation-side {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 8px;
}

.operation-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.95fr) minmax(310px, 0.75fr);
  gap: 18px;
  width: 100%;
  align-items: start;
}

.operation-workspace {
  display: grid;
  gap: 18px;
}

.operation-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #cfe8ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(4, 111, 169, 0.07);
}

.operation-toolbar .stacked-control {
  width: min(100%, 520px);
  margin: 0;
}

.operation-toolbar-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.operation-seat-panel,
.operation-summary,
.operation-checkin {
  border: 1px solid #cfe8ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(4, 111, 169, 0.07);
}

.operation-seat-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 20px;
}

.operation-seat-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.operation-seat-panel h2,
.operation-summary h2 {
  margin: 4px 0 0;
  color: #07446d;
  font-size: 1.25rem;
  line-height: 1.15;
}

.operation-seat-panel .eyebrow,
.operation-summary .eyebrow,
.operation-pickups .eyebrow {
  margin: 0;
}

.admin-seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.operation-bus-wrap {
  display: grid;
  place-items: center;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7e6df;
  border-radius: 8px;
  background: #f5faf7;
}

.operation-bus-front {
  color: #548077;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-seat-map {
  display: grid;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 16px;
  border-radius: 18px 18px 8px 8px;
  border: 1px solid #cedbd2;
  background: linear-gradient(180deg, #f6f8f5, #dfe8e2);
}

.admin-seat.status-paid {
  border-color: #c48916;
  background: var(--sun);
}

.admin-seat.is-checked-in {
  color: #ffffff;
  border-color: #0e6b4b;
  background: #16835d;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.admin-seat.status-pending {
  border-color: rgba(0, 109, 104, 0.48);
  background: var(--teal-light);
}

.admin-seat.status-blocked,
.admin-seat.status-reserved {
  color: #6c7770;
  background: #cbd2cd;
  text-decoration: line-through;
}

.admin-seat.is-saving {
  cursor: progress;
  opacity: 0.62;
}

.operation-summary {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 16px;
  color: #07446d;
  background: #ffffff;
}

.operation-summary-head > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.operation-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d5ebf0;
  border-radius: 7px;
}

.operation-stats div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 10px;
  border-right: 1px solid #d5ebf0;
  background: #eefafd;
}

.operation-stats div:last-child {
  border-right: 0;
}

.operation-stats strong {
  color: #07517a;
  font-size: 1.1rem;
  line-height: 1;
}

.operation-stats span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.2;
}

.operation-payment-stats div {
  background: #fff8df;
}

.operation-pickups {
  display: grid;
  gap: 9px;
}

.operation-pickups ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.operation-pickups li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.operation-pickups li strong {
  color: #07517a;
}

.operation-empty-note {
  margin: 0;
  padding: 12px;
  border: 1px dashed #c8e5eb;
  border-radius: 6px;
  color: var(--muted);
  background: #f6fcfd;
  font-size: 0.83rem;
  line-height: 1.4;
}

.compact-form {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.boarding-checkin {
  margin: 0;
  padding: 20px;
}

.operation-checkin {
  margin-top: 2px;
}

.boarding-checkin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.boarding-checkin-head h3 {
  margin: 4px 0 0;
}

.boarding-checkin-head .eyebrow {
  margin: 0;
}

.boarding-search {
  width: min(100%, 290px);
}

.boarding-search span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.boarding-search input {
  width: 100%;
}

.boarding-checkin-list {
  display: grid;
  gap: 8px;
}

.boarding-checkin-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.boarding-checkin-row:hover {
  border-color: rgba(0, 109, 104, 0.52);
  background: #f5fcfa;
  transform: translateY(-1px);
}

.boarding-checkin-row.is-checked-in {
  border-color: rgba(22, 131, 93, 0.4);
  background: #edf8f2;
}

.boarding-seat {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 7px;
  color: #0f5b44;
  background: var(--teal-light);
  font-size: 0.86rem;
  font-weight: 950;
}

.boarding-checkin-row.is-checked-in .boarding-seat {
  color: #ffffff;
  background: #16835d;
}

.boarding-passenger {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.boarding-passenger strong,
.boarding-passenger small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boarding-passenger small {
  color: var(--muted);
  font-size: 0.78rem;
}

.boarding-state {
  padding: 5px 8px;
  border-radius: 5px;
  color: #5d6c64;
  background: #edf0ed;
  font-size: 0.76rem;
  font-weight: 900;
}

.backup-box {
  min-height: 260px;
  margin: 10px 0 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
}

.admin-list {
  padding-left: 18px;
}

.reservation-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.reservation-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.reservation-item code {
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--white);
  color: var(--teal);
  font-weight: 950;
}

.reservation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--white);
  background: #20342c;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1040px) {
  .trip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-two-col,
  .operation-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark.logo-mark {
    width: 58px;
  }

  .brand-mark.logo-mark img {
    width: 52px;
    height: 31px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .nav-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .admin-entry {
    margin-left: auto;
  }

  .hero {
    min-height: 76svh;
    padding-top: 64px;
    background-position: 58% center;
  }

  .hero-metrics,
  .info-grid,
  .faq-band,
  .form-grid,
  .admin-kpis,
  .admin-form-grid,
  .admin-reservation {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-reservation-side {
    justify-items: start;
  }

  .section-head,
  .section-head.compact {
    display: grid;
    align-items: start;
  }

  .trip-grid {
    grid-template-columns: 1fr;
  }

  .booking-stepper {
    margin-bottom: 14px;
  }

  .booking-step {
    flex: 1 1 0;
    justify-content: center;
    padding: 0 8px;
    font-size: 0.76rem;
  }

  .reservation-form-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fare-editor-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px;
  }

  .fare-seat-toggle {
    grid-column: 1 / -1;
  }

  .trip-card {
    min-height: 0;
  }

  .seat-row {
    grid-template-columns: 36px 36px 18px 36px 36px;
    gap: 7px;
  }

  .seat {
    width: 36px;
    height: 36px;
  }

  .summary-top {
    display: grid;
  }

  .summary-top strong {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 3.1rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-metrics div {
    padding: 13px;
  }

  .check-row {
    grid-template-columns: 18px 1fr;
  }

  .check-row strong {
    grid-column: 2;
  }
}

/* Public experience refresh */
:root {
  --ink: #07446d;
  --muted: #547487;
  --paper: #fcfeff;
  --surface: #eaf8fb;
  --surface-strong: #d8f1f7;
  --teal: #00aeca;
  --teal-light: #d9f8fc;
  --leaf: #087bc1;
  --sun: #ffba00;
  --coral: #ff7100;
  --line: #d5edf3;
  --shadow: 0 22px 55px rgba(4, 111, 169, 0.14);
}

body {
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

.site-header {
  min-height: 78px;
  padding-top: 13px;
  padding-bottom: 13px;
  border-bottom-color: rgba(0, 174, 202, 0.16);
  background: rgba(252, 254, 255, 0.9);
}

.brand {
  min-width: 185px;
}

.brand-mark.logo-mark {
  width: 60px;
  height: 60px;
  border: 0;
  background: transparent;
}

.brand-mark.logo-mark img {
  width: 60px;
  height: 60px;
}

.brand strong {
  font-size: 1.04rem;
}

.main-nav {
  gap: clamp(16px, 3vw, 36px);
  color: var(--ink);
}

.nav-action {
  min-height: 40px;
  border-color: rgba(0, 174, 202, 0.32);
  color: var(--teal);
  background: transparent;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: clamp(28px, 7vw, 110px);
  min-height: min(80svh, 790px);
  padding-top: clamp(70px, 10vw, 130px);
  padding-bottom: clamp(76px, 9vw, 118px);
  background-image:
    linear-gradient(90deg, rgba(3, 57, 91, 0.9) 0%, rgba(3, 57, 91, 0.64) 37%, rgba(3, 57, 91, 0.08) 78%),
    url("/public/assets/hero-bus-v2.png");
  background-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-brand-mark {
  position: absolute;
  top: clamp(22px, 3vw, 42px);
  right: clamp(22px, 4vw, 56px);
  z-index: 2;
  width: clamp(92px, 8vw, 122px);
  height: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(1, 39, 67, 0.2);
}

.hero::after {
  height: 80px;
}

.hero-content {
  width: min(730px, 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86) !important;
  background: rgba(3, 57, 91, 0.34);
  backdrop-filter: blur(8px);
}

.hero-eyebrow span,
.live-dot,
.panel-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px rgba(243, 184, 51, 0.18);
}

.hero h1 {
  max-width: 12ch;
  margin: 20px 0 22px;
  font-size: clamp(3.2rem, 6.8vw, 6.7rem);
  line-height: 0.98;
}

.hero h1 span {
  color: var(--sun);
}

.hero-copy {
  max-width: 550px;
  margin-bottom: 30px;
  font-size: 1.12rem;
}

.button.primary,
.button.checkout-button {
  color: #15352e;
  background: var(--sun);
  box-shadow: 0 13px 30px rgba(243, 184, 51, 0.25);
}

.button.primary span {
  margin-left: 10px;
  font-size: 1.15rem;
  transition: transform 180ms ease;
}

.button.primary:hover span {
  transform: translateX(3px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}

.hero-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  font-weight: 850;
}

.hero-trip-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
  width: min(340px, 100%);
  margin: 0 0 14px auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  color: var(--white);
  background: rgba(3, 64, 105, 0.78);
  box-shadow: 0 22px 48px rgba(2, 47, 78, 0.32);
  backdrop-filter: blur(14px);
}

.hero-trip-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--sun);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-trip-card > p {
  margin: 7px 0 -4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 760;
}

.hero-trip-card h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.05;
}

.hero-trip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.hero-trip-meta span + span::before {
  margin-right: 8px;
  color: var(--sun);
  content: "\2022";
}

.hero-trip-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.79rem;
}

.hero-trip-bottom b {
  display: block;
  margin-top: 2px;
  color: var(--sun);
  font-size: 1.18rem;
}

.hero-trip-bottom small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.round-arrow {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #063e61;
  background: var(--sun);
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.round-arrow:hover {
  background: var(--white);
  transform: rotate(-18deg);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 36px));
  margin: -35px auto 0;
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(4, 111, 169, 0.12);
}

.trust-strip div {
  display: grid;
  gap: 5px;
  padding: 19px 22px;
}

.trust-strip div + div {
  border-left: 1px solid var(--line);
}

.trust-strip strong {
  font-size: 0.95rem;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.search-band,
.booking-band,
.faq-band {
  padding-top: clamp(64px, 8vw, 110px);
  padding-bottom: clamp(64px, 8vw, 110px);
}

.search-band {
  background: var(--paper);
}

.section-head h2,
.how-intro h2,
.faq-band h2 {
  max-width: 15ch;
  font-size: clamp(2.25rem, 4.3vw, 4rem);
  line-height: 0.98;
}

.filters {
  margin-bottom: 30px;
  padding: 12px;
  border: 0;
  background: #eef9fc;
  box-shadow: none;
}

.filters input,
.filters select {
  border-color: transparent;
  background: var(--white);
}

.trip-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.trip-grid:has(.trip-card:only-child) {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.trip-card {
  min-height: 0;
  padding: 0 18px 18px;
  overflow: hidden;
  border-color: transparent;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(4, 111, 169, 0.09);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.trip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(4, 111, 169, 0.17);
}

.trip-card.active {
  border-color: rgba(0, 174, 202, 0.55);
  box-shadow: 0 20px 40px rgba(0, 174, 202, 0.18);
}

.trip-media {
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin: 0 -18px 18px;
  border-radius: 0;
  background: #d9f1f8;
}

.trip-media::after {
  inset: auto 0 0;
  width: 100%;
  height: 28%;
  border-radius: 0;
  background: linear-gradient(180deg, transparent, rgba(3, 57, 91, 0.16));
  box-shadow: none;
}

.trip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.trip-media img[src*="recanto-das-cachoeiras"] {
  object-fit: cover;
  background: transparent;
}

.trip-card:hover .trip-media img {
  transform: scale(1.045);
}

.trip-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  margin: 0;
  padding: 6px 9px;
  color: #07517e;
  background: rgba(255, 255, 255, 0.92);
  text-transform: capitalize;
}

.trip-card h3 {
  min-height: 0;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.trip-card p {
  min-height: 48px;
  margin-bottom: 12px;
  font-size: 0.93rem;
}

.trip-meta {
  gap: 7px;
  margin: 14px 0 18px;
  font-size: 0.84rem;
}

.trip-price {
  padding-top: 15px;
}

.trip-price strong {
  font-size: 1.42rem;
}

.trip-price .button {
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
}

.trip-price-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.trip-price-actions .button {
  flex: 0 0 auto;
}

.button.secondary.trip-whatsapp-link {
  border-color: rgba(0, 109, 104, 0.24);
  color: var(--teal);
  background: var(--teal-light);
}

.trip-card-main {
  min-width: 0;
}

.trip-card-copy {
  padding: 0 2px;
}

.trip-card-copy > p {
  min-height: 0;
}

.trip-destination {
  margin: 0 0 4px;
  color: #087a9d !important;
  font-size: 0.88rem !important;
  font-weight: 850;
}

.trip-tagline {
  margin: 0 0 18px !important;
}

.trip-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.trip-facts div,
.trip-fare-list div {
  min-width: 0;
}

.trip-facts dt,
.trip-detail-block h4,
.trip-fare-list dt {
  margin: 0;
  color: #46708b;
  font-size: 0.73rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.trip-facts dd,
.trip-fare-list dd {
  margin: 4px 0 0;
  color: #084b77;
  font-size: 0.89rem;
  font-weight: 780;
  line-height: 1.36;
}

.trip-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid #d9e8ed;
}

.trip-detail-block {
  min-width: 0;
}

.trip-detail-block h4 {
  margin-bottom: 8px;
  color: #07517e;
}

.trip-chip-list,
.trip-point-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trip-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trip-chip-list li {
  padding: 5px 8px;
  border: 1px solid #cce9ec;
  border-radius: 999px;
  color: #07517e;
  background: #edf9f8;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.28;
}

.trip-point-list {
  display: grid;
  gap: 6px;
}

.trip-point-list li {
  color: #2b6384;
  font-size: 0.84rem;
  line-height: 1.38;
}

.trip-point-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 7px 1px 1px;
  border-radius: 50%;
  background: var(--sun);
}

.trip-fares-block {
  grid-column: 1 / -1;
}

.trip-fare-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.trip-fare-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.trip-fare-list dd {
  flex: none;
  color: #003f6b;
  font-size: 0.98rem;
}

.trip-gallery-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 5px;
  background: rgba(3, 57, 91, 0.66);
  backdrop-filter: blur(5px);
}

.trip-card .trip-gallery-button {
  display: grid;
  width: 27px;
  min-width: 27px;
  height: 27px;
  min-height: 27px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 3px;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 900;
}

.trip-gallery-button:hover,
.trip-gallery-button:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  transform: none;
}

.trip-gallery-count {
  min-width: 31px;
  padding: 0 4px;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.admin-gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  grid-column: 1 / -1;
}

.admin-gallery-item {
  position: relative;
  margin: 0;
}

.admin-gallery-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 5px;
  object-fit: cover;
}

.admin-gallery-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  background: rgba(3, 57, 91, 0.82);
  box-shadow: none;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.admin-gallery-remove:hover,
.admin-gallery-remove:focus-visible {
  background: #b84224;
  transform: none;
}

.payment-tabs input {
  width: 1px;
  min-height: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.how-it-works {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 8vw, 130px);
  padding: clamp(68px, 9vw, 120px) clamp(18px, 4vw, 56px);
  color: var(--white);
  background: #087bc1;
}

.how-intro,
.journey-steps {
  width: min(100%, 560px);
}

.how-intro {
  justify-self: end;
}

.how-intro .eyebrow {
  color: #cef7ff;
}

.how-intro h2 {
  margin-bottom: 20px;
}

.how-intro > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.03rem;
  line-height: 1.6;
}

.journey-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-steps li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 18px;
  padding: 23px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.journey-steps li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.journey-steps span {
  grid-row: span 2;
  color: var(--sun);
  font-size: 0.86rem;
  font-weight: 950;
}

.journey-steps h3 {
  margin-bottom: 7px;
  font-size: 1.18rem;
}

.journey-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.booking-band {
  background: #eef9fc;
}

.booking-band .section-head {
  margin-bottom: 32px;
}

.booking-band .section-head h2 {
  max-width: 26ch;
  font-size: clamp(2.25rem, 3.5vw, 3.4rem);
}

.booking-shell {
  gap: 14px;
}

.booking-shell.is-unavailable {
  grid-template-columns: minmax(0, 1fr);
}

.booking-shell.is-unavailable .seat-panel,
.booking-shell.is-unavailable .checkout-panel {
  display: none;
}

.booking-shell.is-unavailable .trip-panel {
  min-height: 188px;
}

.booking-shell.is-unavailable .selected-trip {
  margin-top: 20px;
}

.trip-panel,
.seat-panel,
.checkout-panel {
  border: 0;
  box-shadow: 0 12px 28px rgba(4, 111, 169, 0.09);
}

.checkout-panel {
  border-top: 4px solid var(--sun);
}

.bus-frame {
  background: #eff9fc;
}

.status-badge.paid,
.status-badge.open {
  color: #0577b8;
  background: #dff7fc;
}

.seat.is-selected {
  border-color: #c78c14;
}

.faq-band {
  background: #f9f5eb;
}

.faq-band details {
  border-color: #eadcc5;
  box-shadow: none;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-company {
  display: grid;
  gap: 5px;
  justify-self: center;
  justify-items: center;
  text-align: center;
}

.company-registration {
  color: var(--ink);
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 12px 18px;
}

.footer-links .text-link {
  white-space: nowrap;
}

.site-footer .brand {
  min-width: 0;
  justify-self: start;
}

.terms-row a,
.legal-document a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(0, 109, 104, 0.28);
  text-underline-offset: 3px;
}

.legal-page {
  background: linear-gradient(180deg, #eef8f6 0, var(--paper) 360px);
}

.legal-hero {
  display: grid;
  gap: 18px;
  max-width: 980px;
  padding: 96px clamp(22px, 7vw, 88px) 38px;
}

.legal-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.1rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.legal-hero p {
  max-width: 720px;
  margin: 0;
  color: #325f72;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.legal-hero span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.legal-shell {
  max-width: 980px;
  padding: 20px clamp(22px, 7vw, 88px) 96px;
}

.legal-document {
  display: grid;
  gap: 18px;
  color: #244157;
}

.legal-document h2 {
  margin: 34px 0 0;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document p,
.legal-document li {
  max-width: 820px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.78;
}

.legal-document ul {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin: 0;
  padding-left: 20px;
}

.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 90ms; }
.delay-2 { transition-delay: 180ms; }
.delay-3 { transition-delay: 270ms; }

/* Dedicated admin route */
.admin-page {
  display: none;
  min-height: 100svh;
  color: #07446d;
  background: #f3fbfd;
}

html.is-panel-route body {
  background: #f3fbfd;
}

html.is-panel-route .site-header,
html.is-panel-route main,
html.is-panel-route .site-footer,
html.is-panel-route .reservation-modal {
  display: none;
}

html.is-panel-route .admin-page {
  display: block;
}

html.is-panel-route.is-admin-login body {
  background: #eef9fc;
}

html.is-panel-route.is-admin-login .panel-header,
html.is-panel-route.is-admin-login .panel-sidebar {
  display: none;
}

html.is-panel-route.is-admin-login .panel-main {
  display: block;
  min-height: 100svh;
}

html.is-panel-route.is-admin-login .admin-content {
  display: grid;
  width: 100%;
  min-height: 100svh;
  padding: clamp(24px, 5vw, 72px);
  place-items: center;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.panel-header .brand small {
  color: var(--teal);
}

.panel-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.panel-account {
  max-width: min(260px, 26vw);
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-signout {
  color: #c44b24;
  border-color: rgba(196, 75, 36, 0.22);
}

.panel-signout:hover {
  border-color: rgba(196, 75, 36, 0.48);
  box-shadow: 0 8px 22px rgba(196, 75, 36, 0.12);
}

.panel-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.panel-status i {
  width: 7px;
  height: 7px;
  background: #00aeca;
  box-shadow: 0 0 0 4px rgba(0, 174, 202, 0.15);
}

.panel-main {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: calc(100svh - 76px);
}

.panel-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 14px 20px;
  border-right: 1px solid var(--line);
  background: #edf9fc;
}

.sidebar-label {
  margin: 0 12px 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-menu-button,
.panel-drawer-backdrop,
.panel-drawer-head {
  display: none;
}

html.is-panel-drawer-open,
html.is-panel-drawer-open body {
  overflow: hidden;
}

.panel-sidebar .admin-tabs {
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
}

.panel-sidebar .admin-tab {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
}

.panel-sidebar .admin-tab.is-active,
.panel-sidebar .admin-tab:hover {
  color: var(--teal);
  border-color: transparent;
  background: var(--white);
  box-shadow: 0 5px 14px rgba(4, 111, 169, 0.08);
}

.sidebar-support {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 14px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.sidebar-support a {
  color: var(--teal);
  font-weight: 900;
}

html.is-panel-route .admin-content {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  overflow: visible;
}

.admin-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 28px;
}

.admin-page-heading h1 {
  max-width: none;
  margin: 5px 0 10px;
  color: #07446d;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.admin-page-heading > div > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-page-actions {
  display: grid;
  justify-items: end;
  gap: 9px;
  flex: 0 0 auto;
}

.admin-sync-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-system-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.admin-system-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.admin-system-list div:last-child {
  border-bottom: 0;
}

.admin-system-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-system-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: right;
}

.admin-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 220px;
  color: var(--muted);
  font-weight: 850;
}

.admin-loading span {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 174, 202, 0.22);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: customer-spin 750ms linear infinite;
}

.admin-access {
  display: grid;
  justify-items: start;
  gap: 22px;
  width: min(100%, 460px);
  margin: 0;
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid #c8e7ed;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 52px rgba(4, 111, 169, 0.12);
}

.admin-access-brand {
  display: block;
  width: 118px;
}

.admin-access-brand img {
  display: block;
  width: 100%;
}

.admin-access-copy {
  display: grid;
  gap: 9px;
}

.admin-access h1,
.admin-access p {
  margin: 0;
}

.admin-access h1 {
  color: #07446d;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  line-height: 1;
}

.admin-access-copy > p:not(.eyebrow),
.admin-access > p:not(.eyebrow):not(.customer-error) {
  color: var(--muted);
  line-height: 1.5;
}

.admin-switch-account {
  border: 0;
  padding: 6px 0;
  color: var(--teal);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-login-form {
  display: grid;
  gap: 14px;
  width: 100%;
}

.admin-login-field {
  display: grid;
  gap: 7px;
  color: #07517a;
  font-size: 0.84rem;
  font-weight: 900;
}

.admin-login-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #b9deea;
  border-radius: 7px;
  outline: none;
  color: #07446d;
  background: #fbfeff;
  font: inherit;
  font-weight: 700;
}

.admin-login-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 174, 202, 0.14);
}

.admin-login-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border: 1px solid #efaf00;
  border-radius: 7px;
  color: #073d60;
  background: var(--sun);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.admin-login-submit:hover:not(:disabled) {
  filter: brightness(1.02);
  box-shadow: 0 8px 18px rgba(255, 181, 0, 0.24);
  transform: translateY(-1px);
}

.admin-login-submit:disabled,
.admin-password-reset:disabled {
  cursor: wait;
  opacity: 0.65;
}

.admin-password-reset {
  justify-self: start;
  padding: 3px 0;
  border: 0;
  color: #087ea4;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-login-help {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

html.is-panel-route .admin-kpi {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(4, 111, 169, 0.08);
}

html.is-panel-route .admin-kpi:nth-child(1) {
  border-top: 3px solid var(--teal);
}

html.is-panel-route .admin-kpi:nth-child(2) {
  border-top: 3px solid var(--sun);
}

html.is-panel-route .admin-kpi:nth-child(3) {
  border-top: 3px solid var(--coral);
}

html.is-panel-route .admin-kpi:nth-child(4) {
  border-top: 3px solid var(--leaf);
}

html.is-panel-route .admin-kpi strong {
  color: var(--teal);
}

html.is-panel-route .admin-panel,
html.is-panel-route .admin-reservation {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(4, 111, 169, 0.08);
}

/* Dedicated customer route */
.customer-page {
  display: none;
  min-height: 100svh;
  color: #07446d;
  background: #f3fbfd;
}

html.is-account-route body {
  background: #f3fbfd;
}

html.is-account-route .site-header,
html.is-account-route body > main,
html.is-account-route .site-footer,
html.is-account-route .reservation-modal,
html.is-account-route .admin-page {
  display: none;
}

html.is-account-route .customer-page {
  display: block;
}

.customer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 12px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.customer-header .brand small {
  color: var(--teal);
}

.customer-main {
  width: min(100% - 36px, 980px);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) 0;
}

.customer-hero {
  width: min(100%, 680px);
  margin-bottom: 38px;
}

.customer-hero h1 {
  max-width: 620px;
  margin: 0 0 14px;
  color: #07446d;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 0.98;
}

.customer-hero > p:last-child {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

.customer-surface {
  border: 1px solid var(--line);
  border-top: 4px solid var(--sun);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(4, 111, 169, 0.08);
}

.customer-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 178px;
  padding: 30px;
  color: var(--muted);
  font-weight: 800;
}

.customer-loading span {
  width: 13px;
  height: 13px;
  border: 2px solid #bde8f1;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: customer-spin 800ms linear infinite;
}

.customer-login {
  display: grid;
  gap: 26px;
  padding: clamp(28px, 5vw, 52px);
}

.customer-login-copy {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.google-symbol,
.google-login > span {
  display: inline-grid;
  place-items: center;
  color: #087bc1;
  font-family: Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
}

.google-symbol {
  width: 48px;
  height: 48px;
  border: 1px solid #bfe9f2;
  border-radius: 8px;
  background: #effbfe;
}

.customer-login h2,
.customer-profile h2,
.customer-reservation-heading h2 {
  margin: 0;
  color: #07446d;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.customer-login p:last-child,
.customer-profile p:last-child,
.customer-destination {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.customer-login-help {
  max-width: 560px;
  margin: -10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.google-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: fit-content;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #a9dce8;
  border-radius: 7px;
  color: #07446d;
  background: #f4fcfe;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.google-login:hover {
  background: #e7f8fc;
  box-shadow: 0 8px 18px rgba(4, 111, 169, 0.12);
  transform: translateY(-1px);
}

.google-login:disabled,
.customer-signout:disabled {
  cursor: wait;
  opacity: 0.65;
}

.customer-notice,
.customer-error {
  max-width: 560px;
  margin: 0;
  line-height: 1.5;
}

.customer-notice {
  color: var(--muted);
}

.customer-error {
  padding-left: 12px;
  border-left: 3px solid var(--coral);
  color: #a33300;
}

.customer-profile {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: clamp(24px, 4vw, 34px);
  border-bottom: 1px solid var(--line);
}

.customer-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--sun);
  border-radius: 50%;
  color: var(--white);
  background: #087bc1;
  font-size: 0.9rem;
  font-weight: 950;
}

.customer-profile .eyebrow,
.customer-reservation-heading .eyebrow {
  margin-bottom: 5px;
}

.customer-signout {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  color: #087bc1;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.customer-signout:hover {
  color: #ff7100;
}

.customer-reservation-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 4vw, 34px) clamp(24px, 4vw, 34px) 18px;
}

.customer-reservations {
  display: grid;
}

.customer-reservation {
  padding: clamp(24px, 4vw, 34px);
  border-top: 1px solid var(--line);
}

.customer-reservation-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.customer-reservation code {
  color: #087bc1;
  font-size: 0.78rem;
  font-weight: 900;
}

.customer-reservation h3 {
  margin: 0;
  color: #07446d;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.customer-trip-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 26px 0;
}

.customer-trip-details div {
  min-width: 0;
}

.customer-trip-details dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.customer-trip-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #07446d;
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.4;
}

.customer-reservation footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.customer-reservation footer strong {
  color: #087bc1;
  font-size: 1.16rem;
}

.customer-reservation footer > div:first-child {
  display: grid;
  gap: 3px;
}

.customer-reservation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.customer-support-link {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
}

.customer-support-link:hover {
  color: var(--coral);
}

.customer-empty {
  padding: 14px clamp(24px, 4vw, 34px) 34px;
}

.customer-empty h3 {
  margin: 0 0 8px;
  color: #07446d;
}

.customer-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@keyframes customer-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.5fr);
    gap: 24px;
  }

  .trip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-it-works {
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: auto;
  }

  .main-nav {
    order: 3;
    gap: 10px;
  }

  .main-nav a {
    font-size: 0.84rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    min-height: 780px;
    gap: 28px;
    background-image:
      linear-gradient(180deg, rgba(3, 57, 91, 0.4), rgba(3, 57, 91, 0.92) 73%),
      url("/public/assets/hero-bus-v2.png");
    background-position: 62% center;
  }

  .hero-brand-mark {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 15vw, 4.9rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-trip-card {
    width: 100%;
    margin: 0;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    width: min(100% - 36px, 520px);
    margin-top: -26px;
  }

  .trust-strip div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .trip-grid {
    grid-template-columns: 1fr;
  }

  .trip-grid:has(.trip-card:only-child) {
    grid-template-columns: minmax(0, 1fr);
  }

  .trip-facts,
  .trip-detail-grid {
    grid-template-columns: 1fr;
  }

  .trip-fares-block {
    grid-column: auto;
  }

  .trip-price {
    align-items: stretch;
    flex-direction: column;
  }

  .trip-price-actions {
    width: 100%;
    justify-content: stretch;
  }

  .trip-price-actions .button {
    flex: 1 1 120px;
  }

  .bus-frame {
    overflow-x: auto;
  }

  .seat-map-empty {
    min-height: 240px;
  }

  .admin-filter-summary span {
    flex: 1 1 140px;
    justify-content: center;
  }

  .admin-followup-item {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-gallery-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-it-works {
    grid-template-columns: 1fr;
  }

  .how-intro {
    justify-self: start;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-company {
    justify-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    justify-self: center;
  }

  .legal-hero {
    padding-top: 58px;
  }

  .legal-hero h1 {
    font-size: clamp(2.65rem, 14vw, 4.4rem);
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .panel-header-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .panel-header-actions .small-button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 9px;
    text-align: center;
  }

  .panel-account {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .panel-status {
    grid-column: 1 / -1;
    justify-content: center;
    font-size: 0.75rem;
  }

  .panel-main {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    overflow-x: clip;
  }

  .panel-sidebar {
    align-items: flex-start;
    gap: 0;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-label,
  .sidebar-support {
    display: none;
  }

  .panel-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(4, 111, 169, 0.18);
    border-radius: 8px;
    background: var(--white);
    color: var(--blue);
    box-shadow: 0 8px 22px rgba(4, 111, 169, 0.08);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 900;
    cursor: pointer;
  }

  .panel-menu-icon {
    display: grid;
    gap: 4px;
    color: var(--teal);
  }

  .panel-menu-icon i {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .panel-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: none;
    border: 0;
    background: rgba(0, 42, 72, 0.4);
    cursor: pointer;
  }

  .panel-sidebar.is-drawer-open .panel-drawer-backdrop {
    display: block;
  }

  .panel-sidebar .admin-tabs {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: min(88vw, 320px);
    max-width: calc(100vw - 56px);
    padding: 16px;
    border: 0;
    border-right: 1px solid var(--line);
    background: var(--white);
    box-shadow: 18px 0 46px rgba(0, 42, 72, 0.2);
    opacity: 0;
    overflow-y: auto;
    pointer-events: none;
    transform: translateX(-105%);
    visibility: hidden;
    transition:
      transform 0.18s ease,
      opacity 0.18s ease,
      visibility 0.18s step-end;
  }

  .panel-sidebar.is-drawer-open .admin-tabs {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
    transition:
      transform 0.18s ease,
      opacity 0.18s ease;
  }

  .panel-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    min-height: 44px;
    margin-bottom: 4px;
    color: var(--blue);
    font-weight: 900;
  }

  .panel-drawer-head > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .panel-drawer-close {
    flex: 0 0 auto;
  }

  .panel-sidebar .admin-tab {
    width: 100%;
    flex: 0 0 auto;
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 12px;
    white-space: normal;
  }

  .operation-toolbar,
  .operation-seat-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .operation-toolbar {
    gap: 12px;
    padding: 14px;
  }

  .operation-toolbar .stacked-control {
    width: 100%;
  }

  .operation-toolbar-meta {
    justify-content: flex-start;
    text-align: left;
  }

  .operation-seat-panel,
  .operation-summary,
  .operation-checkin {
    padding: 16px;
  }

  .operation-seat-panel {
    gap: 14px;
  }

  .operation-bus-wrap {
    padding: 10px;
  }

  .operation-seat-panel .admin-seat-legend {
    justify-content: flex-start;
  }

  html.is-panel-route .admin-content {
    min-width: 0;
    max-width: 100%;
    padding: 22px 18px;
  }

  .admin-page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
  }

  .admin-page-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .admin-page-actions .small-button {
    width: 100%;
    min-width: 0;
  }

  .admin-page-actions .admin-sync-label {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .admin-trip-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .admin-trip-row > .small-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .customer-header {
    align-items: flex-start;
  }

  .customer-main {
    width: min(100% - 28px, 980px);
    padding-top: 46px;
  }

  .customer-hero {
    margin-bottom: 28px;
  }

  .customer-hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
  }

  .customer-login-copy {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .google-symbol {
    width: 42px;
    height: 42px;
  }

  .google-login {
    width: 100%;
  }

  .customer-profile {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .customer-avatar {
    width: 44px;
    height: 44px;
  }

  .customer-signout {
    grid-column: 2;
    justify-self: start;
    min-height: 28px;
    padding: 0;
  }

  .customer-reservation-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-trip-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .customer-reservation footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-reservation-actions {
    justify-content: flex-start;
  }

  .fare-seat-row,
  .fare-lap-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .boarding-checkin-head {
    align-items: stretch;
    flex-direction: column;
  }

  .boarding-search {
    width: 100%;
  }

  .boarding-checkin-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .boarding-state {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 340px) {
  .panel-header-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-signout {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal-up { opacity: 1; transform: none; }
}
