: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; }

/* Home hero: banner image beside a narrow search column. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap-wide { width: min(1160px, 100%); }
.hero-banner { padding: 22px 0 32px; }
.hero-banner .topbar { margin-bottom: 18px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.banner { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 14px 34px rgb(6 36 31 / .28); }
.hero-grid .search { padding: 14px; }
.hero-grid .search fieldset { margin-bottom: 12px; }
.hero-grid .search legend { margin-bottom: 6px; font-size: 13px; }
.hero-grid .direction span { padding: 8px 4px; font-size: 14px; }
.hero-grid .date-list { gap: 3px; }
.hero-grid .date-head { font-size: 11px; }
.hero-grid .date-list label span { padding: 2px 0 3px; border-radius: 7px; }
.hero-grid .date-list small { min-height: 12px; font-size: 9px; line-height: 12px; }
.hero-grid .date-list b { font-size: 14px; }
.hero-grid .search .primary { padding: 10px 14px; font-size: 16px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.book-cta { display: inline-block; }
.route-head { margin: 18px 0 2px; font-size: 18px; color: var(--jungle); }
.route-head:first-child { margin-top: 0; }
.route-pick { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.route-pick select {
  width: 100%;
  padding: 9px 10px;
  border: 1.5px solid var(--river);
  border-radius: 10px;
  background: var(--river-soft);
  color: var(--jungle);
  font-size: 15px;
  font-weight: 600;
}
/* Today's buses that already left: still listed, greyed out and not bookable. */
.trip.departed { opacity: .55; filter: grayscale(1); }
.trip.departed .book { cursor: not-allowed; }

/* 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; } }

/* Contact, policy tables and the floating WhatsApp button */
.footer-contact a { color: var(--jungle); font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 6px 0 12px; }
table.policy { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; }
table.policy th, table.policy td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.policy th { background: var(--river-soft); color: var(--jungle); font-weight: 700; }
table.policy tr:last-child td { border-bottom: 0; }
.guide .steps { padding-left: 22px; }
.guide .steps li { margin-bottom: 8px; }
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 18px rgb(0 0 0 / .25);
}
.whatsapp-float:hover { background: #1ebe5a; }
.footer { padding-bottom: 88px; }
.whatsapp-button {
  display: block;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.whatsapp-button:hover { background: #1ebe5a; }
.whatsapp-hint { margin: 6px 0 4px; color: var(--muted); font-size: 13px; }
.guide-updated { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.about-intro { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; }
.about-photo { display: block; width: 100%; height: auto; border-radius: 14px; margin-top: 18px; }
@media (max-width: 600px) { .about-intro { grid-template-columns: 1fr; } .about-photo { max-width: 220px; } }
.stops { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 6px 0 12px; }
.stop-card { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.stop-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--jungle); }
.stop-card p { margin: 0 0 8px; font-size: 15px; }
.stop-card .stop-address { font-weight: 700; }
.stop-card .stop-gps { color: var(--muted); font-size: 14px; }
.stops-more { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .stops { grid-template-columns: 1fr; } }

/* Home results: sort/filter beside the trip list. */
.results-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 22px; }
.side { display: grid; gap: 14px; position: sticky; top: 12px; }
.side-box { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.side-box h2 { margin: 0 0 8px; font-size: 17px; }
.side-title { display: flex; align-items: baseline; justify-content: space-between; }
.link-btn { padding: 0; border: 0; background: none; color: var(--river); font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.radio-list, .filter-group { display: grid; gap: 6px; }
.radio-list label, .filter-group label { display: flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; }
.radio-list input, .filter-group input { width: 17px; height: 17px; accent-color: var(--jungle); }
.filter-group { margin: 0; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); }
.filter-group + .filter-group { margin-top: 10px; }
.filter-group legend { float: left; width: 100%; margin-bottom: 4px; padding: 0; font-weight: 700; font-size: 15px; }
.filter-group small { margin-left: auto; color: var(--muted); font-size: 12px; }
.results-head h2 { font-size: 21px; }
.results-head h2 b { color: var(--muted); font-weight: 600; }

/* Trip card: photo, operator, timeline, then price and button on the right. */
.ticket {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 190px;
  gap: 16px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .15s;
}
.ticket:hover { box-shadow: 0 6px 18px rgb(6 36 31 / .1); }
.ticket.departed { opacity: .55; filter: grayscale(1); }
.ticket-photo { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; background: var(--line); }
.ticket-main { min-width: 0; }
.ticket-main h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 17px; }
.ticket-route { padding: 1px 8px; border-radius: 6px; background: var(--jungle); color: #fff; font-size: 12px; font-weight: 600; }
.ticket-type { margin: 2px 0 8px; color: var(--muted); font-size: 14px; }
.timeline { position: relative; display: grid; gap: 2px; margin: 0; padding: 0 0 0 20px; list-style: none; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 13px; bottom: 13px; border-left: 2px dotted var(--muted); }
.timeline li { position: relative; display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 14px; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; left: -20px; top: 7px; width: 8px; height: 8px; border: 2px solid var(--jungle); border-radius: 50%; background: #fff; }
.timeline li.end::before { background: var(--sun); border-color: var(--sun); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.timeline b { color: var(--ink); font-size: 19px; }
.timeline .place { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline .dur { padding-left: 2px; font-size: 12.5px; }
.timeline .dur::before { display: none; }
.ticket-tags { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--river); text-transform: uppercase; }
.ticket-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.ticket-buy .price { color: var(--jungle); font-size: 22px; }
.ticket-buy .price small { color: var(--muted); font-size: 13px; font-weight: 500; }
.ticket-buy .book { width: 100%; margin-top: auto; }
.details-btn { padding: 0; border: 0; background: none; color: var(--river); font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ticket-details { grid-column: 2 / -1; margin-top: -4px; padding: 10px 12px; background: var(--paper); border-radius: 10px; font-size: 14px; }
.ticket-details .seats { margin: 0; }
.ticket-details .stop { margin-top: 6px; }

@media (max-width: 900px) {
  .results-layout { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .searchbar { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .ticket-photo { height: 96px; }
  .ticket-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); }
  .ticket-buy .book { flex: 1 0 100%; }
  .ticket-details { grid-column: 1 / -1; }
}

/* ===== Home page: operator-site layout (header, hero search, routes, news, services, footer) ===== */
.home {
  --blue: #1d5fbf;
  --blue-deep: #0d3a80;
  --navy: #0f1b2d;
  --red: #e3262f;
  --red-deep: #c11d25;
  --sky: #eef5ff;
  background: #fff;
  color: #1c2533;
}
.home .wrap-wide { width: min(1180px, 100%); }

.site-header { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 2px 10px rgb(15 27 45 / .08); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-deep); text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #3b8cf0, var(--blue-deep)); color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -.04em; }
.logo-text { display: grid; line-height: 1.1; }
.logo-text b { font-size: 17px; }
.logo-text small { color: var(--red); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.logo.light { color: #fff; }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; flex: 1; }
.main-nav a { color: #1c2533; font-size: 15px; font-weight: 500; text-decoration: none; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); font-weight: 700; }
.hotlines { display: grid; gap: 6px; }
.hotline { padding: 5px 16px; border-radius: 99px; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; text-align: center; text-decoration: none; white-space: nowrap; }
.hotline:hover { background: var(--red-deep); }

.home-hero { position: relative; padding-bottom: 50px; background: var(--sky); }
.hero-img { display: block; width: 100%; height: clamp(240px, 38vw, 520px); object-fit: cover; }
.find-box {
  position: relative;
  margin-top: -54px;
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr auto;
  align-items: end;
  gap: 18px;
  padding: 22px 26px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgb(15 27 45 / .14);
}
.find-field { display: grid; gap: 2px; min-width: 0; }
.find-label { color: #6b7686; font-size: 14px; }
.find-field select, .find-field input { width: 100%; padding: 6px 0; border: 0; border-bottom: 1.5px solid #cfd8e3; background: none; font-size: 16px; font-weight: 600; color: var(--blue-deep); outline: none; cursor: pointer; }
.find-field select:focus, .find-field input:focus { border-bottom-color: var(--blue); }
.swap { align-self: center; width: 34px; height: 34px; border: 1px solid #cfd8e3; border-radius: 50%; background: #fff; color: var(--blue); font-size: 17px; cursor: pointer; }
.swap:hover { background: var(--sky); }
.find-go { padding: 12px 30px; border: 0; border-radius: 99px; background: var(--blue); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; }
.find-go:hover { background: var(--blue-deep); }

.block { padding: 46px 0; }
.block-soft { background: var(--sky); }
.block-title { margin: 0 0 26px; text-align: center; font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: #1c2533; }
.block-title.left { text-align: left; margin-bottom: 14px; }
.center { text-align: center; margin: 26px 0 0; }
.outline-btn { display: inline-block; padding: 8px 22px; border: 2px solid #1c2533; border-radius: 99px; color: #1c2533; font-weight: 700; text-decoration: none; }
.outline-btn:hover { background: #1c2533; color: #fff; }
.red-btn { display: inline-block; padding: 8px 20px; border: 0; border-radius: 8px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; }
.red-btn:hover { background: var(--red-deep); }
.red-btn.big { padding: 12px 26px; border-radius: 99px; font-size: 18px; }

.route-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.route-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 14px; box-shadow: 0 4px 16px rgb(15 27 45 / .1); transition: transform .15s; }
.route-card:hover { transform: translateY(-3px); }
.route-card img { width: 100%; height: 170px; object-fit: cover; }
.route-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 14px; }
.route-ends { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #e6ebf2; }
.ends { display: grid; grid-template-columns: 16px 1fr; align-items: center; margin: 0; font-weight: 700; font-size: 15px; }
.ends .dot { width: 10px; height: 10px; border: 2px solid var(--blue); border-radius: 50%; }
.ends .dot.end { border-color: var(--blue-deep); background: var(--blue-deep); }
.swap-mini { grid-column: 1 / -1; color: #8a96a8; font-size: 12px; line-height: 1.2; }
.route-price { margin: 0; align-self: center; padding-left: 12px; border-left: 2px dashed #e6ebf2; color: var(--blue-deep); font-weight: 800; font-size: 18px; white-space: nowrap; }
.route-price small { color: #6b7686; font-weight: 500; font-size: 12px; }
.route-meta { margin: 0; color: #4b5667; font-size: 13.5px; }
.route-body .red-btn { align-self: flex-end; margin-top: auto; }

.news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; background: var(--blue-deep); border-radius: 14px; color: #fff; text-decoration: none; transition: transform .15s; }
.news-card:hover { transform: translateY(-3px); }
.news-card img { width: 100%; height: 190px; object-fit: cover; background: #fff; }
.news-card b { padding: 18px; font-size: 16px; text-transform: uppercase; line-height: 1.4; }

.app-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.app-row h3 { margin: 0 0 8px; font-size: 18px; }
.app-row p { color: #4b5667; }
.app-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.store-btn { display: grid; padding: 8px 20px; border-radius: 10px; background: #111; color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; line-height: 1.2; }
.store-btn small { font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.store-btn:hover { background: #333; }
.phone-mock { justify-self: center; width: 250px; padding: 12px; border-radius: 34px; background: #1c2533; box-shadow: 0 16px 36px rgb(15 27 45 / .25); }
.phone-screen { display: grid; gap: 8px; min-height: 380px; align-content: start; padding: 14px 12px; border-radius: 24px; background: #e9f1f8; }
.chat-head { margin: -14px -12px 6px; padding: 14px; border-radius: 24px 24px 0 0; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; }
.bubble { max-width: 85%; margin: 0; padding: 8px 10px; border-radius: 12px; font-size: 13px; line-height: 1.35; }
.bubble.in { justify-self: end; background: #d8f8c8; }
.bubble.out { justify-self: start; background: #fff; }

.service-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.service-cols img { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; }
.service-cols h3 { margin: 14px 0 6px; font-size: 20px; }
.service-cols p { margin: 0 0 10px; color: #4b5667; font-size: 14.5px; }
.checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: '✓'; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; }

.hotline-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hotline-card p { color: #4b5667; font-size: 16px; }
.hotline-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hotline-photos img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }

.site-footer { padding: 46px 0 0; background: var(--navy); color: #c9d2de; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1.2fr; gap: 30px; padding-bottom: 30px; }
.site-footer h3 { margin: 4px 0 12px; color: var(--red); font-size: 16px; }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 12px 0 0; }
.copyright { margin: 0 !important; padding: 16px; border-top: 1px solid rgb(255 255 255 / .1); text-align: center; color: #fff; }
.copyright b { color: var(--red); }

.call-float {
  position: fixed; right: 18px; bottom: 88px; z-index: 30;
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: #4caf50; color: #fff; font-size: 24px; text-decoration: none;
  box-shadow: 0 6px 18px rgb(0 0 0 / .25);
}

/* Search mode: the hero becomes a slim search bar above the results. */
.home.searching .hero-img, .home.searching #home-sections { display: none; }
.home.searching .home-hero { padding: 20px 0 0; }
.home.searching .find-box { margin-top: 0; }
.home .results-layout { padding-bottom: 40px; }
.home .ticket .book.primary, .home .ticket .book { border-radius: 8px; }
.home .primary { background: var(--red); color: #fff; }
.home .primary:hover { background: var(--red-deep); }
.home .ticket-route { background: var(--blue); }
.home .ticket-buy .price, .home .route-head, .home .timeline b { color: var(--blue-deep); }
.home .ticket-tags { color: var(--blue); }
.home .timeline li::before { border-color: var(--blue); }
.home .timeline li.end::before { background: var(--red); border-color: var(--red); }
.home .details-btn, .home .link-btn { color: var(--blue); }
.home .radio-list input, .home .filter-group input { accent-color: var(--blue); }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-row { justify-content: space-between; }
  .find-box { grid-template-columns: 1fr auto 1fr; }
  .find-date { grid-column: 1 / -1; }
  .find-go { grid-column: 1 / -1; }
  .route-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-row { min-height: 64px; gap: 10px; }
  .logo-mark { width: 40px; height: 40px; font-size: 15px; }
  .logo-text b { font-size: 15px; }
  .hotline { padding: 4px 10px; font-size: 13px; }
  .find-box { margin-top: -30px; padding: 16px; gap: 12px; }
  .route-cards, .news-cards, .service-cols, .app-row, .hotline-row, .footer-grid { grid-template-columns: 1fr; }
  .phone-mock { display: none; }
}
.ticket-photo.placeholder { display: grid; place-items: center; font-size: 46px; background: #eef2f7; }

/* Operator pages (/viet-lao/ …): photo and intro, then trip facts beside the description. */
.op-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.op-photo { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 30px rgb(15 27 45 / .15); }
.op-kicker { margin: 0; color: var(--blue); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.op-hero h1 { margin: 4px 0 10px; font-size: clamp(30px, 4vw, 44px); color: var(--blue-deep); }
.op-lead { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.op-hero p { color: #4b5667; }
.op-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.op-box { padding: 24px; border: 1px solid #e6ebf2; border-radius: 16px; box-shadow: 0 4px 16px rgb(15 27 45 / .06); }
.op-box h2 { margin: 0 0 14px; font-size: 21px; text-transform: uppercase; }
.op-box p { color: #4b5667; }
.op-facts { display: grid; gap: 0; margin: 0; }
.op-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed #e6ebf2; }
.op-facts dt { color: #4b5667; }
.op-facts dd { margin: 0; font-weight: 700; color: var(--blue-deep); text-align: right; }
.op-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.op-actions .outline-btn { padding: 6px 20px; }
.op-slogan { margin: 34px 0 0; text-align: center; color: var(--red); font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; letter-spacing: .02em; }
@media (max-width: 780px) {
  .op-hero-row, .op-grid { grid-template-columns: 1fr; }
}
.op-link { color: inherit; text-decoration: none; } .op-link:hover { color: var(--blue); text-decoration: underline; }
.op-box .checks { font-size: 15.5px; gap: 12px; }
.op-book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 30px; }
.op-book img { width: 100%; height: auto; border-radius: 16px; }
.op-book h2 { margin: 0 0 8px; font-size: 24px; text-transform: uppercase; }
.op-book p { color: #4b5667; }
@media (max-width: 780px) { .op-book { grid-template-columns: 1fr; } }
/* The banner is a wide 1168×365 image: show all of it, and let the search box overlap only its bottom edge. */
.home .hero-img { height: auto; max-height: none; object-fit: contain; }
.home .find-box { margin-top: -28px; }
.home.searching .find-box { margin-top: 0; }
@media (max-width: 640px) { .home .find-box { margin-top: 12px; } }

/* Header v2: bus logo, centred menu with a red underline, hotline block with a round phone icon. */
.site-header { border-top: 4px solid var(--blue); }
.header-row { min-height: 80px; gap: 32px; }
.site-header .logo-mark {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(145deg, #3f8ff2, var(--blue-deep));
  box-shadow: 0 6px 14px rgb(29 95 191 / .3);
}
.site-header .logo-text b { font-size: 19px; letter-spacing: -.01em; }
.site-header .logo-text small { font-size: 12px; letter-spacing: .32em; }
.main-nav { justify-content: center; gap: 4px; }
.main-nav a {
  position: relative; padding: 10px 14px; border-radius: 8px;
  font-size: 15.5px; font-weight: 600; color: #2b3445; transition: color .15s, background .15s;
}
.main-nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px;
  border-radius: 3px; background: var(--red); transform: scaleX(0); transition: transform .2s;
}
.main-nav a:hover { color: var(--blue); background: var(--sky); font-weight: 600; }
.main-nav a.active { color: var(--blue-deep); font-weight: 700; }
.main-nav a.active::after, .main-nav a:hover::after { transform: scaleX(1); }
.hotline-block { display: flex; align-items: center; gap: 10px; color: var(--blue-deep); text-decoration: none; white-space: nowrap; }
.hl-icon {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 6px 14px rgb(227 38 47 / .35);
}
.hl-icon::after { content: ''; position: absolute; inset: -5px; border: 2px solid rgb(227 38 47 / .35); border-radius: 50%; animation: hl-ring 1.8s ease-out infinite; }
@keyframes hl-ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.hl-text { display: grid; line-height: 1.2; }
.hl-text small { color: #6b7686; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.hl-text b { font-size: 18px; font-weight: 800; }
.hotline-block:hover .hl-text b { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .hl-icon::after { animation: none; } }
@media (max-width: 640px) {
  .header-row { min-height: 66px; }
  .site-header .logo-mark { width: 42px; height: 42px; border-radius: 12px; }
  .site-header .logo-text b { font-size: 16px; }
  .hl-text small { display: none; }
  .hl-text b { font-size: 14px; }
  .hl-icon { width: 36px; height: 36px; }
}
@media (max-width: 380px) { .hl-text { display: none; } }
.main-nav { flex-wrap: nowrap; }
.main-nav a { white-space: nowrap; }
@media (max-width: 1180px) {
  .header-row { gap: 16px; }
  .main-nav a { padding: 10px 9px; font-size: 15px; }
  .main-nav a::after { left: 9px; right: 9px; }
  .hl-text b { font-size: 16px; }
}

/* Route cards v2: from/to joined by a dotted line, price block, four even info rows. */
.route-body { gap: 0; padding: 16px 16px 18px; }
.route-ends { align-items: center; padding-bottom: 14px; margin-bottom: 12px; }
.ends { display: grid; gap: 14px; position: relative; font-size: 16px; }
.ends::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 14px; border-left: 2px dotted #a9b4c4; }
.stop-row { display: flex; align-items: center; gap: 10px; }
.ends .dot { flex: none; width: 12px; height: 12px; background: #fff; position: relative; z-index: 1; }
.route-price { display: grid; justify-items: end; padding-left: 14px; line-height: 1.1; font-size: 24px; }
.route-price small { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.route-info { display: grid; gap: 9px; margin: 0 0 16px; padding: 0; list-style: none; }
.route-info li { display: grid; grid-template-columns: 22px 1fr; align-items: center; color: #3d4757; font-size: 14px; line-height: 1.3; }
.route-info li span { font-size: 15px; }
.route-body .red-btn { align-self: stretch; margin-top: auto; padding: 10px; text-align: center; }
.ends { grid-template-columns: 1fr; }
.op-sub { display: inline-block; margin: 6px 0 4px; padding: 3px 12px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 14px; }
.op-facts + .op-sub { margin-top: 20px; }
.op-return { margin: 12px 0 0; text-align: right; }
.op-return a { color: var(--red); font-weight: 700; text-decoration: none; }
.op-return a:hover { text-decoration: underline; }
.guide-photo { margin: 14px 0 6px; }
.guide-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.cta-buttons .cta-wa { background: #25d366; border-color: #25d366; color: #fff; }
.cta-buttons .cta-wa:hover { background: #1ebe5a; }
