:root {
  --navy: #06295a;
  --navy-2: #001c40;
  --blue: #0898e6;
  --sky: #dff5ff;
  --green: #069949;
  --line: #06c755;
  --purple: #5c2cc8;
  --gold: #ffb21a;
  --orange: #ff7a18;
  --ink: #10233f;
  --muted: #667085;
  --paper: #ffffff;
  --soft: #f2fbff;
  --border: rgba(11, 45, 92, .13);
  --shadow: 0 18px 50px rgba(7, 37, 86, .16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans Thai", Tahoma, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #e8f8ff 0%, #f8fdff 42%, #ffffff 100%);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(16px, 4vw, 44px);
  color: #fff;
  background:
    radial-gradient(circle at 14% 0%, rgba(255,178,26,.24), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(6,199,85,.2), transparent 30%),
    linear-gradient(105deg, #001833 0%, #06306b 48%, #021b3d 100%);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 34px rgba(0, 20, 52, .28);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px 8px 8px;
  min-width: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.brand-mark {
  width: 64px;
  height: 64px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 2px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(255, 178, 26, .95);
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(255,255,255,.08),
    0 12px 24px rgba(0,0,0,.24);
  line-height: 1;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand b {
  display: block;
  font-size: clamp(17px, 1.8vw, 23px);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: rgba(255,255,255,.9);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color .2s ease, transform .2s ease;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-1px);
}

.site-nav .nav-call {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, #09ae53, #057936);
  border-radius: 999px;
  box-shadow: 0 12px 25px rgba(6, 153, 73, .32);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  display: block;
  margin: 4px auto;
  background: #fff;
  border-radius: 999px;
}

.system-alert {
  max-width: 1120px;
  margin: 16px auto 0;
  padding: 14px 18px;
  color: #842029;
  background: #fff3f4;
  border: 1px solid #ffd3d7;
  border-radius: var(--radius);
}

.hero {
  position: relative;
  min-height: auto;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #1398e1;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: -3;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 21, 50, .72) 0%, rgba(0, 42, 86, .36) 43%, rgba(0, 66, 120, .04) 100%),
    linear-gradient(0deg, rgba(0, 88, 154, .28), rgba(255,255,255,0) 45%);
}

.hero-shine {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 62% 22%, rgba(255,255,255,.34), transparent 26%);
  mix-blend-mode: screen;
  animation: shineDrift 9s ease-in-out infinite alternate;
}

.wave-layer {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -45px;
  height: 140px;
  z-index: -1;
  opacity: .6;
  background:
    radial-gradient(70px 18px at 80px 36px, rgba(255,255,255,.8) 0 38%, transparent 40%),
    radial-gradient(90px 22px at 230px 68px, rgba(255,255,255,.55) 0 34%, transparent 36%),
    radial-gradient(70px 18px at 410px 42px, rgba(255,255,255,.65) 0 36%, transparent 38%);
  background-size: 520px 96px;
  animation: waveMove 8s linear infinite;
}

.birds {
  position: absolute;
  inset: 120px 0 auto 0;
  height: 120px;
  pointer-events: none;
}

.birds span {
  position: absolute;
  width: 32px;
  height: 14px;
  border-top: 3px solid rgba(255,255,255,.9);
  border-radius: 50%;
  animation: birdFloat 8s ease-in-out infinite;
}

.birds span::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 14px;
  left: 24px;
  top: -3px;
  border-top: 3px solid rgba(255,255,255,.9);
  border-radius: 50%;
}

.birds span:nth-child(1) { left: 48%; top: 14px; }
.birds span:nth-child(2) { left: 72%; top: 52px; animation-delay: -2s; transform: scale(.78); }
.birds span:nth-child(3) { left: 18%; top: 74px; animation-delay: -4s; transform: scale(.6); }

.hero-content {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 42px) 36px;
}

.notice-ribbon {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  margin: 0 auto 18px;
  padding: 12px 16px;
  color: #87200d;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  backdrop-filter: blur(10px);
}

.notice-ribbon.important {
  color: #b42318;
  background: #fff1f0;
}

.notice-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: #f04438;
  border-radius: 50%;
  font-weight: 900;
}

.notice-ribbon p {
  margin: 0;
  flex: 1;
  font-size: 16px;
  line-height: 1.55;
}

.notice-ribbon button {
  width: 34px;
  height: 34px;
  border: 0;
  color: var(--ink);
  background: transparent;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: stretch;
  gap: clamp(14px, 2.4vw, 26px);
}

.hero-grid > *,
.booking-wrap > *,
.route-dashboard > *,
.contact-map > *,
.quick-actions > *,
.hero-service-actions > * {
  min-width: 0;
}

.hero-copy {
  max-width: none;
  padding-top: 0;
  min-width: 0;
}

.hero-route-panel {
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 10px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius);
  box-shadow: 0 22px 54px rgba(0, 27, 70, .24);
  backdrop-filter: blur(8px);
}

.hero-service-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.hero-service-action {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--navy);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(0, 27, 70, .18);
  font-size: 18px;
  font-weight: 900;
  backdrop-filter: blur(10px);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hero-service-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0, 27, 70, .24);
}

.hero-service-action span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  box-shadow: 0 10px 22px rgba(0, 45, 95, .18);
}

.hero-service-action.blue span {
  background: linear-gradient(135deg, #0d58c8, #06337c);
}

.hero-service-action.green span {
  background: linear-gradient(135deg, #0baa59, #057239);
}

.hero-service-action.purple span {
  background: linear-gradient(135deg, #6843d8, #351b9c);
}

.eyebrow {
  margin: 0 0 12px;
  color: #a8ecff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.eyebrow.dark {
  color: #0576b6;
}

.hero h1 {
  margin: 0;
  color: #fff;
  text-shadow: 0 5px 18px rgba(0, 24, 64, .36);
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-highlight {
  display: inline-flex;
  margin: 20px 0 0;
  padding: 8px 14px;
  color: #053a1d;
  background: linear-gradient(135deg, #fff, #c9ffdc);
  border-radius: var(--radius);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(0, 50, 90, .16);
}

.hero-lead {
  max-width: 590px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.93);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.hero-actions,
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-map-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.hero-map-actions .button {
  min-width: 0;
  padding-inline: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #0b4a99);
  border-radius: var(--radius);
  box-shadow: 0 12px 25px rgba(8, 55, 119, .2);
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  text-align: center;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(8, 55, 119, .28);
}

.button.primary {
  background: linear-gradient(135deg, #074da5, #003675);
}

.button.line {
  background: linear-gradient(135deg, var(--line), #07903f);
}

.button.phone {
  background: linear-gradient(135deg, #11aa56, #067138);
}

.button.outline,
.button.button-ghost {
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(6, 41, 90, .16);
  box-shadow: none;
}

.service-status {
  position: relative;
  min-width: 0;
  height: 100%;
  padding: 20px;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.service-status::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(140deg, rgba(8, 152, 230, .28), rgba(6, 199, 85, .24), rgba(255, 178, 26, .2));
}

.status-pill {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 10px;
  padding: 8px 18px;
  color: #fff;
  background: linear-gradient(135deg, #0ab75a, #047234);
  border-radius: 999px;
  font-weight: 900;
}

.status-pill span,
.live-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  background: #35ff8c;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(53,255,140,.2);
  animation: pulse 1.8s ease-in-out infinite;
}

.service-status.closed .status-pill {
  background: linear-gradient(135deg, #e11d48, #991b1b);
}

.service-status.closed .status-pill span {
  background: #ffe4e6;
  box-shadow: 0 0 0 6px rgba(225, 29, 72, .18);
}

.service-status > p {
  margin: 0 0 12px;
  text-align: center;
  color: var(--muted);
}

.hours-card {
  padding: 16px;
  color: #fff;
  background: linear-gradient(180deg, #073a78, #001f47);
  border-radius: var(--radius);
}

.hours-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.hours-card div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.16);
}

.hours-card span {
  color: rgba(255,255,255,.78);
}

.hours-card .green b { color: #48ff86; }
.hours-card .orange b { color: #ffbf52; }

.quick-actions {
  max-width: 1230px;
  margin: -40px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 30px);
}

.action-card {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(7, 37, 86, .2);
}

.action-card > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 900;
}

.action-card.blue > span { background: linear-gradient(135deg, #0e64d8, #052f89); }
.action-card.green > span { background: linear-gradient(135deg, #08a64d, #067333); }
.action-card.purple > span { background: linear-gradient(135deg, #6b35da, #391e9f); }
.action-card.indigo > span { background: linear-gradient(135deg, #254fd8, #052f89); }

.action-card b {
  display: block;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
}

.action-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.booking-wrap {
  max-width: 1230px;
  margin: 36px auto 48px;
  padding: 0 clamp(16px, 4vw, 30px);
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(16px, 3vw, 28px);
}

.booking-card,
.fare-panel,
.route-card,
.track-card,
.contact-panel,
.map-panel,
.admin-panel,
.access-card,
.stat-grid article {
  background: rgba(255,255,255,.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.fare-panel {
  position: sticky;
  top: 112px;
  padding: clamp(20px, 3vw, 28px);
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,178,26,.22), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(238,249,255,.96));
}

.fare-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--gold), var(--green), var(--blue));
}

.fare-heading {
  margin-bottom: 16px;
}

.fare-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
}

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

.fare-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 12px 14px;
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(6, 41, 90, .1);
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(7, 37, 86, .08);
}

.fare-row span {
  font-weight: 900;
  line-height: 1.3;
}

.fare-row b {
  padding: 7px 12px;
  color: #fff;
  background: linear-gradient(135deg, #073a78, #001f47);
  border-radius: 999px;
  font-size: 20px;
  white-space: nowrap;
}

.fare-row.free {
  display: block;
  color: #046c35;
  background: linear-gradient(135deg, #e5fff0, #ffffff);
  border-color: rgba(6, 153, 73, .22);
  text-align: center;
}

.fare-row.free span {
  display: block;
  font-size: 20px;
}

.section-heading h2,
.contact-panel h2,
.map-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.section-heading > p,
.contact-panel > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.booking-card {
  padding: clamp(20px, 4vw, 32px);
}

.form-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.form-heading p {
  margin: 0 0 4px;
  color: var(--muted);
  font-weight: 800;
}

.form-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
}

.form-heading > span {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #057939;
  background: #dfffea;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

.form-heading > span.booking-status-closed {
  color: #b42318;
  background: #fff1f0;
  border: 1px solid rgba(180, 35, 24, .18);
}

.form-heading > span.server-status-text {
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #007a4d;
  background: #e6fff2;
  border: 1px solid rgba(6, 199, 85, .28);
  border-radius: 10px;
  text-align: right;
  line-height: 1.2;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(6, 199, 85, .12);
}

.server-status-text b,
.server-status-text small {
  color: inherit;
}

.server-status-text b {
  font-size: 14px;
}

.server-status-text small {
  font-size: 12px;
  font-weight: 900;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 800;
}

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

label span {
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd8e5;
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

textarea {
  resize: vertical;
  min-height: 108px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 152, 230, .13);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.submit-button {
  width: 100%;
  background: linear-gradient(135deg, #074da5, #002e68);
}

.submit-button.is-loading {
  pointer-events: none;
  filter: saturate(.7);
}

.form-error {
  margin: 12px 0;
  padding: 12px;
  color: #b42318;
  background: #fff1f0;
  border: 1px solid #ffd4ce;
  border-radius: var(--radius);
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: clamp(14px, 3vw, 28px);
}

.booking-modal.is-open,
.booking-modal:target {
  display: grid;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 46, .7);
  backdrop-filter: blur(7px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,252,255,.98));
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 20, 52, .36);
}

.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.modal-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
}

.modal-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--navy);
  background: #eef8ff;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
}

.success-state {
  min-height: 430px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.success-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 42px;
  font-weight: 900;
  box-shadow: 0 0 0 12px rgba(6,153,73,.13);
}

.success-state h3 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
}

.success-state p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-map {
  max-width: 1230px;
  margin: 64px auto;
  padding: 0 clamp(16px, 4vw, 30px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.route-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 24px;
}

.route-card,
.track-card,
.contact-panel,
.map-panel {
  padding: clamp(20px, 3vw, 28px);
}

.route-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.route-top div {
  flex: 1;
}

.route-top small,
.route-meta small,
.track-result span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.route-top b {
  display: block;
  color: var(--navy);
  font-size: 24px;
}

.route-top time {
  color: var(--muted);
  font-weight: 800;
}

.route-line {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  gap: 18px;
  margin: 34px 0;
}

.point {
  display: grid;
  gap: 4px;
  color: var(--navy);
}

.point.end {
  text-align: right;
}

.point small {
  color: var(--muted);
}

.track {
  position: relative;
  height: 12px;
  display: block;
  background: #dbeeff;
  border-radius: 999px;
}

.track i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--progress);
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: inherit;
}

.track em {
  position: absolute;
  left: var(--progress);
  top: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 34px;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(0, 31, 71, .24);
  animation: boatBob 1.6s ease-in-out infinite;
}

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

.route-meta span {
  padding: 14px;
  background: #f4fbff;
  border: 1px solid #d5efff;
  border-radius: var(--radius);
}

.route-meta b {
  display: block;
  margin-top: 4px;
  color: var(--navy);
}

.track-card {
  display: grid;
  gap: 14px;
}

.track-card h3 {
  margin: -6px 0 2px;
  color: var(--navy);
  font-size: 24px;
}

.track-message,
.track-result {
  margin: 0;
  padding: 14px;
  border-radius: var(--radius);
}

.track-message.error {
  color: #b42318;
  background: #fff1f0;
}

.track-result {
  background: #edfff4;
  border: 1px solid #c5f7d8;
}

.track-result b {
  display: block;
  color: var(--navy);
  font-size: 22px;
}

.track-result p {
  margin: 4px 0 0;
  color: var(--muted);
}

.contact-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: clamp(18px, 3vw, 28px);
  color: #fff;
  background: linear-gradient(145deg, #063977, #001d43);
}

.contact-panel h2,
.contact-panel .eyebrow {
  color: #fff;
}

.contact-panel p {
  color: rgba(255,255,255,.78);
}

.line-qr-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px;
  color: var(--navy);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius);
  box-shadow: 0 18px 38px rgba(0, 18, 46, .22);
  text-align: center;
}

.line-qr-card img {
  width: min(170px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
}

.line-qr-card span {
  color: #047234;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.map-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
}

.map-heading a {
  color: var(--green);
  font-weight: 900;
}

.meeting-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.meeting-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--border);
}

.meeting-row:last-child {
  border-bottom: 1px solid var(--border);
}

.meeting-row small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.meeting-row b {
  display: block;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.35;
}

.meeting-pin {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #068b48, #013b88);
  border-radius: 50%;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(0, 64, 128, .18);
}

.boat-route-map {
  position: relative;
  width: 100%;
  height: min(58vh, 520px);
  min-height: 360px;
  overflow: hidden;
  background: #dff5ff;
  border-radius: var(--radius);
}

.boat-route-map.hero-boat-route-map {
  height: min(36vh, 300px);
  min-height: 260px;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 16px 38px rgba(0, 28, 64, .28);
}

.google-map-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.google-map-actions a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--navy);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(0, 28, 64, .14);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.google-map-actions span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, #f04438, #d92d20);
  border-radius: 50%;
}

.boat-route-map .leaflet-control-attribution {
  font-size: 11px;
}

.pier-label {
  padding: 8px 10px;
  color: var(--navy);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(6, 41, 90, .16);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(7, 37, 86, .16);
  font-weight: 900;
  white-space: nowrap;
}

.pier-label small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.route-shadow {
  filter: drop-shadow(0 8px 14px rgba(0, 58, 120, .28));
}

.boat-map-marker {
  --flip: 1;
  width: 82px;
  height: 49px;
  pointer-events: none;
  transform: scaleX(var(--flip));
  transform-origin: center;
  transition: transform .18s ease;
}

.boat-map-marker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 28, 64, .34));
}

.map-pin-pulse {
  width: 22px;
  height: 22px;
  border: 6px solid rgba(6, 199, 85, .25);
  background: #06c755;
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(6, 199, 85, .13);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 48px);
  color: #fff;
  background: linear-gradient(90deg, var(--navy-2), var(--navy));
}

.site-footer p {
  margin: 0;
  color: rgba(255,255,255,.76);
  text-align: right;
}

.mobile-tabbar {
  display: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .65s ease, transform .65s ease;
}

@keyframes waveMove {
  from { background-position: 0 0; }
  to { background-position: 520px 0; }
}

@keyframes shineDrift {
  from { transform: translateX(-1.5%); opacity: .7; }
  to { transform: translateX(2%); opacity: 1; }
}

@keyframes birdFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 16px -8px; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.82); opacity: .65; }
}

@keyframes boatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Admin */
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px 1fr;
  background: #f5fbff;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
}

.admin-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-brand .brand-mark {
  width: 58px;
  height: 58px;
}

.admin-brand b {
  display: block;
  line-height: 1.2;
}

.admin-brand small {
  color: rgba(255,255,255,.7);
}

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

.admin-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  color: rgba(255,255,255,.76);
  border-radius: var(--radius);
}

.admin-nav a.active,
.admin-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
}

.admin-nav em {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #06295a;
  background: #fff;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
}

.admin-account {
  margin-top: auto;
  padding: 14px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
}

.admin-account span,
.admin-account a,
.admin-logout-form button {
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

.admin-logout-form {
  margin: 0;
}

.admin-logout-form button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.admin-logout-form button:hover {
  color: #fff;
  text-decoration: underline;
}

.admin-account b {
  display: block;
  margin: 4px 0 10px;
}

.admin-main {
  padding: 28px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-topbar p,
.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.admin-topbar h1,
.panel-heading h2 {
  margin: 4px 0 0;
  color: var(--navy);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.integration-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: #b42318;
  background: #fff1f0;
  border-radius: 999px;
  font-weight: 900;
}

.integration-pill.connected {
  color: #057939;
  background: #e7fff0;
}

.integration-pill span {
  width: 10px;
  height: 10px;
  background: currentColor;
  border-radius: 50%;
}

.admin-message {
  width: 100%;
  margin: 0 0 18px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  border: 0;
  color: #057939;
  background: #e7fff0;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stat-grid article {
  padding: 20px;
}

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

.stat-grid strong {
  display: block;
  margin: 8px 0;
  color: var(--navy);
  font-size: 42px;
}

.admin-panel {
  padding: 22px;
  margin-bottom: 18px;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-heading a,
.announcement-list button {
  color: var(--green);
  border: 0;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

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

.booking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.booking-table th {
  padding: 12px;
  color: var(--muted);
  text-align: left;
  background: #f4fbff;
}

.booking-table td {
  padding: 14px 12px;
  vertical-align: top;
  border-top: 1px solid var(--border);
}

.booking-table b,
.booking-table span,
.booking-table small {
  display: block;
}

.booking-table small {
  margin-top: 4px;
  color: var(--muted);
}

.status-form select {
  min-width: 150px;
}

.empty-cell {
  text-align: center;
  color: var(--muted);
}

.edit-form {
  display: grid;
  gap: 16px;
}

.admin-columns {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
  gap: 18px;
}

.announcement-list {
  display: grid;
  align-content: start;
  gap: 12px;
}

.announcement-list article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: #f8fcff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.announcement-list h3,
.announcement-list p {
  margin: 0;
}

.announcement-list span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.access-body {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(0,28,64,.72), rgba(8,152,230,.2)),
    url("hero-river.png") center / cover;
  background:
    linear-gradient(120deg, rgba(0,28,64,.72), rgba(8,152,230,.2)),
    image-set(
      url("hero-river.webp") type("image/webp"),
      url("hero-river.png") type("image/png")
    ) center / cover;
}

.access-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.access-card {
  width: min(100%, 430px);
  display: grid;
  gap: 14px;
  padding: 30px;
  text-align: center;
}

.access-card .brand-mark {
  width: 88px;
  height: 88px;
  margin: 0 auto;
}

.access-card h1 {
  margin: 0;
  color: var(--navy);
}

.access-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 1040px) {
  .site-header {
    height: 78px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 78px 14px auto 14px;
    display: none;
    padding: 16px;
    background: rgba(0, 28, 64, .96);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 18px;
  }

  .hero-grid,
  .booking-wrap,
  .route-dashboard,
  .contact-map,
  .admin-shell,
  .admin-columns {
    grid-template-columns: 1fr;
  }

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

  .fare-panel {
    position: relative;
    top: auto;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }
}

@media (max-width: 680px) {
  * {
    min-width: 0;
  }

  p,
  h1,
  h2,
  h3,
  b,
  small,
  span,
  a {
    overflow-wrap: anywhere;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 76px;
  }

  .site-header {
    gap: 10px;
    padding: 0 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    padding: 2px;
  }

  .brand b {
    max-width: 220px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.16;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .brand small {
    display: none;
  }

  .hero-art {
    object-position: 36% bottom;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(0, 28, 64, .78) 0%, rgba(0, 57, 106, .28) 48%, rgba(0, 88, 154, .22) 100%);
  }

  .hero-content {
    width: 100%;
    max-width: 100vw;
    padding: 12px 12px 24px;
    overflow: hidden;
  }

  .notice-ribbon {
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .notice-ribbon p {
    font-size: 14px;
  }

  .hero-copy {
    padding-top: 6px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-service-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }

  .hero-service-action {
    min-height: 68px;
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 8px 5px;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
  }

  .hero-service-action span {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .hero-route-panel {
    gap: 7px;
    padding: 8px;
  }

  .hero h1 {
    width: min(100%, 340px);
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    font-size: clamp(28px, 8.8vw, 34px);
    line-height: 1.08;
    word-break: break-all;
    line-break: anywhere;
  }

  .hero-highlight {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    width: min(100%, 280px);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions .button,
  .contact-buttons .button {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
    white-space: normal;
  }

  .hero-map-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 360px;
    gap: 8px;
    margin: 0 auto;
  }

  .hero-map-actions .button {
    min-height: 42px;
    padding-inline: 6px;
    font-size: 14px;
  }

  .hero-lead {
    width: min(100%, 340px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    line-height: 1.62;
  }

  .service-status {
    height: auto;
    padding: 16px;
    overflow: hidden;
    width: 100%;
  }

  .hours-card {
    padding: 14px;
  }

  .hours-card h2 {
    font-size: 18px;
  }

  .hours-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
  }

  .hours-card b {
    text-align: right;
    overflow-wrap: anywhere;
  }

  .quick-actions {
    margin-top: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 12px;
  }

  .action-card {
    min-height: 96px;
    padding: 12px;
    gap: 10px;
  }

  .action-card > span {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .action-card b {
    font-size: 16px;
  }

  .action-card small {
    font-size: 12px;
  }

  .booking-wrap,
  .contact-map {
    margin: 24px auto 32px;
    padding: 0 12px;
  }

  .fare-panel {
    padding: 18px;
  }

  .fare-heading {
    margin-bottom: 12px;
  }

  .fare-row {
    min-height: 52px;
    padding: 10px 12px;
    gap: 10px;
  }

  .fare-row b {
    padding: 6px 10px;
    font-size: 18px;
  }

  .fare-row.free span {
    font-size: 17px;
  }

  .booking-card,
  .route-card,
  .track-card,
  .contact-panel,
  .map-panel,
  .admin-panel {
    padding: 18px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .line-qr-card {
    width: min(100%, 280px);
    margin: 0 auto;
  }

  .line-qr-card img {
    width: 156px;
  }

  .form-grid,
  .route-meta,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .form-heading {
    display: grid;
  }

  .route-line {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .point.end {
    text-align: left;
  }

  .track {
    height: 42px;
    margin: 8px 0;
  }

  .map-heading,
  .site-footer,
  .admin-topbar,
  .topbar-actions,
  .panel-heading {
    display: grid;
    justify-items: start;
  }

  .site-footer p {
    text-align: left;
  }

  .boat-route-map {
    height: 500px;
    min-height: 460px;
  }

  .boat-route-map.hero-boat-route-map {
    height: 250px;
    min-height: 240px;
  }

  .google-map-actions {
    gap: 6px;
  }

  .google-map-actions a {
    min-height: 40px;
    gap: 5px;
    padding: 7px 6px;
    font-size: 12px;
  }

  .google-map-actions span {
    width: 24px;
    height: 24px;
  }

  .boat-map-marker {
    width: 58px;
    height: 34px;
  }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: auto;
    bottom: 0;
    z-index: 60;
    width: 390px;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 130px));
    min-height: 68px;
    padding: 6px 10px max(6px, env(safe-area-inset-bottom));
    color: #fff;
    background: linear-gradient(90deg, var(--navy-2), var(--navy));
    box-shadow: 0 -12px 28px rgba(0, 28, 64, .22);
    overflow: hidden;
  }

  .mobile-tabbar a {
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-tabbar span {
    font-size: 20px;
  }

  .admin-main {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
