:root {
  color-scheme: light;
  --ink: #17332d;
  --muted: #5d716b;
  --line: #dfe7e1;
  --paper: #f6f4ee;
  --card: #ffffff;
  --jungle: #0f4c43;
  --jungle-deep: #0a332d;
  --river: #1b8a78;
  --river-soft: #e2f2ee;
  --sun: #e5a23a;
  --warn: #9a5b00;
  --warn-soft: #fbefd9;
  --off: #8a4438;
  --off-soft: #f5e6e2;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  line-height: 1.5;
}

.wrap { width: min(880px, 100%); margin: 0 auto; padding: 0 16px; }

button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.primary, .secondary {
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.primary { border: 0; background: var(--sun); color: var(--jungle-deep); }
.primary:hover { background: #d8942a; }
.primary:disabled { opacity: .6; cursor: wait; }
.secondary { border: 1.5px solid var(--jungle); background: transparent; color: var(--jungle); }
.secondary:hover { background: var(--river-soft); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 340px at 92% -20%, #2a9c87 0%, transparent 62%),
    linear-gradient(165deg, var(--jungle-deep), var(--jungle));
  color: #fff;
  padding: 28px 0 40px;
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 30px; }
.brand { margin: 0; font-weight: 700; letter-spacing: .02em; }
.lang-switch {
  padding: 5px 12px;
  border: 1.5px solid rgb(255 255 255 / .45);
  border-radius: 99px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.lang-switch:hover { background: rgb(255 255 255 / .12); }
.hero h1 { margin: 0; font-size: clamp(30px, 7vw, 46px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.lead { margin: 12px 0 24px; max-width: 34em; color: #cfe6df; }

/* Search */
.search { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 18px; box-shadow: 0 14px 34px rgb(6 36 31 / .28); }
.search fieldset { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.search legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.search .primary { width: 100%; font-size: 17px; }

.direction { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.direction legend { grid-column: 1 / -1; }
.direction label, .date-list label { position: relative; cursor: pointer; }
.direction input, .date-list input { position: absolute; opacity: 0; }
.direction span {
  display: block;
  padding: 11px 8px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
}
.direction input:checked + span, .date-list input:checked + span {
  border-color: var(--river);
  background: var(--river-soft);
  color: var(--jungle);
}
.direction input:focus-visible + span, .date-list input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }

/* Calendar of the bookable days: 7 columns, Monday first. */
.date-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  padding: 2px;
}
.date-head { padding-bottom: 2px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; }
.date-head.sunday, .date-list span.sunday b { color: var(--off); }
.date-list label span {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0 6px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  white-space: nowrap;
}
.date-list span.today { border-color: var(--sun); }
.date-list small { min-height: 15px; color: var(--muted); font-size: 11px; line-height: 15px; }
.date-list b { font-size: 16px; line-height: 1.2; }

/* Results */
#results { padding: 30px 0 10px; scroll-margin-top: 8px; }
.results-head { margin-bottom: 14px; }
.results-head h2 { margin: 0; font-size: 22px; }
.status { margin: 2px 0 0; min-height: 1.5em; color: var(--muted); font-size: 14px; }
.trips { display: grid; gap: 12px; }
.empty { padding: 26px 18px; background: var(--card); border-radius: var(--radius); text-align: center; color: var(--muted); }
.empty a { color: var(--jungle); font-weight: 600; }

.trip {
  display: grid;
  grid-template-columns: 88px 1fr 176px;
  gap: 16px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.trip.featured { border-color: var(--river); box-shadow: inset 4px 0 0 var(--river); }
.trip-time { display: flex; flex-direction: column; }
.trip-time strong { font-size: 26px; line-height: 1.1; color: var(--jungle); }
.trip-time span { margin-top: 6px; font-size: 14px; color: var(--muted); }
.trip-time small { color: var(--muted); font-size: 12px; }
.trip-info { min-width: 0; }
.trip-info h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 17px; }
.trip-info em {
  padding: 1px 8px;
  border-radius: 99px;
  background: var(--river-soft);
  color: var(--jungle);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}
.meta { margin: 2px 0 6px; color: var(--muted); font-size: 14px; }
.line, .stop { margin: 0; font-size: 13.5px; color: var(--muted); }
.stop span { font-weight: 600; color: var(--ink); }
.seats { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.seats li { display: flex; align-items: baseline; gap: 10px; padding: 3px 0; border-top: 1px dashed var(--line); }
.seats li span { flex: 1; }
.seats .left { color: var(--river); font-weight: 600; white-space: nowrap; }
.seats b { white-space: nowrap; }
.seats li.closed { color: var(--muted); }
.seats li.closed b { color: var(--off); font-weight: 600; }
.trip-buy { display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: right; }
.price { margin: 0; font-size: 19px; font-weight: 800; }
.pill { align-self: flex-end; margin: 0; padding: 1px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; }
.pill.ok { background: var(--river-soft); color: var(--jungle); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.off { background: var(--off-soft); color: var(--off); }
.book { margin-top: auto; padding: 10px 12px; font-size: 15px; }

.footer { padding-top: 28px; padding-bottom: 32px; color: var(--muted); font-size: 13px; }
.footer p { margin: 4px 0; }
.footer a { color: var(--jungle); font-weight: 600; }

/* Order dialog */
dialog { width: min(440px, calc(100% - 32px)); border: 0; border-radius: var(--radius); padding: 22px; color: var(--ink); }
dialog::backdrop { background: rgb(6 36 31 / .55); }
dialog h2 { margin: 0; font-size: 21px; }
#order-form { position: relative; display: grid; gap: 12px; }
#order-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
#order-form input, #order-form select, #order-form textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-weight: 400;
  font-size: 16px;
}
.close { position: absolute; top: -8px; right: -6px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }
.order-trip { margin: -6px 0 2px; color: var(--muted); font-size: 14px; }
.order-note { margin: 0; padding: 9px 11px; background: var(--river-soft); border-radius: 9px; font-size: 13.5px; }
.seat-picker { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.seat-picker legend { padding: 0; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.seat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 9px; }
.seat-row span { display: grid; }
.seat-row small { color: var(--muted); font-size: 13px; }
#order-form .seat-row select { width: 76px; flex: none; }
.order-total { margin: 2px 0 0; text-align: right; font-weight: 800; font-size: 17px; }
.field-error, .error { margin: 0; color: var(--off); font-size: 13px; font-weight: 500; }
.error:empty, .field-error:empty { display: none; }
.honeypot { position: absolute; left: -9999px; }
.order-code { margin: 4px 0 12px; font-size: 28px; font-weight: 800; letter-spacing: .06em; color: var(--jungle); }
#order-done .primary { width: 100%; }

@media (max-width: 680px) {
  .trip { grid-template-columns: 76px 1fr; }
  .trip-time strong { font-size: 22px; }
  .trip-buy {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    text-align: left;
  }
  .pill { align-self: center; }
  .book { flex: 1 0 100%; }
}

/* Header links and the booking lookup page */
.top-links { display: flex; align-items: center; gap: 14px; }
.top-links a:not(.lang-switch) { color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.top-links a:not(.lang-switch):hover { text-decoration: underline; }
.brand-link { color: #fff; text-decoration: none; }
.hero-small { padding-bottom: 26px; }
.hero-small .topbar { margin-bottom: 18px; }
.hero-small h1 { font-size: clamp(26px, 6vw, 36px); }
.booking-page { padding-top: 22px; padding-bottom: 36px; }
.booking-page h2 { margin: 18px 0 10px; font-size: 19px; }
.lookup { display: grid; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.lookup label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.lookup input { width: 100%; padding: 10px 11px; border: 1.5px solid var(--line); border-radius: 9px; font-size: 16px; font-weight: 400; }
.bookings { display: grid; gap: 12px; margin-top: 12px; }
.trip.booking { display: block; }
.trip.booking.cancelled { opacity: .7; }
.booking-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.booking-code { font-size: 20px; letter-spacing: .05em; color: var(--jungle); }
.trip.booking h3 { margin: 6px 0 8px; font-size: 16px; }
.booking-row { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 4px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.booking-row span { color: var(--muted); }
.booking-row b { text-align: right; }
.text-link { color: var(--jungle); font-weight: 600; }
#order-done .text-link { display: inline-block; margin-top: 4px; }

/* Content for search engines and travellers: features, facts, gallery, FAQ, guides */
.intro { padding: 28px 0 4px; }
.intro > h2 { margin: 0 0 14px; font-size: 22px; }
/* Even grids: 4 features as 2 × 2, 6 photos as 3 × 2 (2 × 3 on tablets), one column on phones. */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-icon { font-size: 26px; line-height: 1; }
.feature h3 { margin: 8px 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 6px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.facts div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.facts dt { color: var(--muted); white-space: nowrap; }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 24px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features, .gallery { grid-template-columns: 1fr; } }
.gallery figure, .guide-photos figure, .guide-hero { margin: 0; }
.gallery img, .guide-photos img, .guide-hero img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.gallery figcaption, .guide-photos figcaption { padding-top: 6px; color: var(--muted); font-size: 13px; }
.faq details { margin-bottom: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { padding: 13px 16px; font-weight: 600; cursor: pointer; }
.faq details p { margin: 0; padding: 0 16px 14px; color: var(--muted); }
.guide-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.guide-links a { display: grid; gap: 4px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.guide-links a:hover { border-color: var(--river); }
.guide-links b { color: var(--jungle); font-size: 16px; }
.guide-links span { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.footer-links a { color: var(--jungle); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.guide { padding-top: 22px; padding-bottom: 20px; font-size: 16.5px; line-height: 1.65; }
.guide section { padding: 6px 0 10px; }
.guide h2 { margin: 18px 0 8px; font-size: 22px; line-height: 1.3; }
.guide h3 { margin: 16px 0 4px; font-size: 18px; color: var(--jungle); }
.guide p { margin: 0 0 12px; }
.guide ul { margin: 0 0 12px; padding-left: 22px; }
.guide li { margin-bottom: 4px; }
.guide .ticks { padding-left: 0; list-style: none; }
.guide .ticks li { position: relative; padding-left: 26px; }
.guide .ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--river); font-weight: 800; }
.guide-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.cta { margin: 20px 0 8px; padding: 20px; background: var(--river-soft); border-radius: var(--radius); }
.cta h2 { margin: 0 0 6px; font-size: 20px; }
.cta p { margin: 0 0 14px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-buttons a { flex: 1 1 200px; }
.top-links a { white-space: nowrap; }
@media (max-width: 420px) {
  .topbar { gap: 8px; }
  .brand { font-size: 14px; }
  .top-links { gap: 10px; }
  .top-links a:not(.lang-switch) { font-size: 13px; }
  .lang-switch { padding: 4px 10px; font-size: 13px; }
}
.guide-photo-small { max-width: 420px; margin: 4px 0 12px; }
.guide-photo-small img { display: block; width: 100%; height: auto; border-radius: 12px; }
.guide-photo-small figcaption { padding-top: 6px; color: var(--muted); font-size: 13px; }

@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }
