/* Ayutthaya Taxis — river-island ruins.
 * Maroon of the temple murals for the frame, jade for every action, warm
 * white paper, brick for accents, thin double rules like a mural border.
 * Near-square corners. System fonts only: nothing to download. */
:root {
  --maroon: #6a1b2a; --maroon-d: #4a111c; --maroon-l: #f3e6e3;
  --jade: #127a5c; --jade-d: #0c5e46; --jade-l: #e3f2ec;
  --paper: #fbf7f2; --card: #fff; --brick: #a4462b; --gold: #e9b872;
  --ink: #2a1a16; --ink-2: #5b4943; --line: #e5d8cb;
  --r: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Thai", "Leelawadee UI", Thonburi, Tahoma, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--paper); }
:lang(th) body { line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--jade-d); }
h1, h2, h3 { margin: 0 0 .45em; line-height: 1.18; }
:lang(th) h1, :lang(th) h2, :lang(th) h3 { line-height: 1.4; }
/* Chinese, Japanese and Korean (2026-10-09): no negative tracking on the first heading; Korean breaks lines between words */
:lang(zh-Hans) .arrive h1, :lang(ja) .arrive h1, :lang(ko) .arrive h1 { letter-spacing: 0; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) .lead { word-break: keep-all; overflow-wrap: break-word; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; color: var(--maroon); }
h3 { font-size: 1.08rem; font-weight: 750; }
p { margin: 0 0 1em; }
.in { width: min(100% - 32px, 1180px); margin-inline: auto; }
.nw { white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the mural double rule, used as a divider and a frame */
.rule { border: 0; border-top: 4px double var(--brick); margin: 0; opacity: .75; }

/* ── masthead ─────────────────────────────────────────── */
.mast { background: var(--maroon); color: #fff; position: sticky; top: 0; z-index: 30; border-bottom: 4px double var(--gold); }
.mast-in { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; min-width: 0; }
.brand img { width: 38px; height: 38px; border-radius: 6px; flex: none; }
.brand b { display: block; font-size: 1.06rem; font-weight: 800; letter-spacing: .01em; line-height: 1.1; }
.brand small { display: block; font-size: .72rem; color: #f1d9c2; font-weight: 600; line-height: 1.2; }
@media (max-width: 359px) { .mast .brand small { display: none; } }
.mnav { display: none; }
.mtools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* The language menu (2026-10-09: ten languages): a <details>, so it opens without the script. The button keeps the
   old EN/TH link's frame; the list is a white card with the mast's gold double rule on top. On phones it is fixed
   under the masthead, so it never runs off the screen's left edge; from 1000 px it hangs under its button. */
.langs { position: relative; }
.langs > summary { display: inline-flex; align-items: center; gap: 3px; list-style: none; cursor: pointer; color: #fff; font-size: .85rem; font-weight: 700; padding: 5px 6px; border: 1px solid rgba(255,255,255,.45); border-radius: var(--r); -webkit-user-select: none; user-select: none; }
.langs > summary::-webkit-details-marker { display: none; }
.langs > summary svg { width: 15px; height: 15px; flex: none; }
.langs > summary:hover, .langs[open] > summary { border-color: var(--gold); }
.langs[open] > summary { background: rgba(255,255,255,.12); }
.langs ul { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 64px); right: 16px; z-index: 40; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; width: 280px; max-width: calc(100vw - 32px); margin: 0; padding: 8px; list-style: none; background: var(--card); border: 1px solid var(--line); border-top: 4px double var(--gold); border-radius: var(--r); box-shadow: 0 18px 36px -16px rgba(42, 26, 22, .55); }
.langs a { display: block; padding: 9px 10px; border-radius: 4px; color: var(--ink); font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.langs a:hover, .langs a:focus-visible { background: var(--paper); color: var(--maroon); }
.langs a[aria-current] { background: var(--maroon-l); color: var(--maroon); font-weight: 800; }
@media (min-width: 1000px) { .langs ul { position: absolute; top: calc(100% + 23px); right: 0; } }
/* below 360 px the site's name keeps its one line next to the button (as next to the old EN/TH link) */
@media (max-width: 359px) { .mtools { gap: 6px; } }
.mwa { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r); background: #fff; color: #0b6b3a; }
.mwa svg { width: 22px; height: 22px; }
.mbook { display: none; }
@media (min-width: 1000px) {
  .mast-in { min-height: 64px; gap: 20px; }
  .mnav { display: flex; gap: 20px; margin-left: 12px; }
  .mnav a { color: #fbeee6; text-decoration: none; font-weight: 600; font-size: .95rem; }
  .mnav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
  .mbook { display: inline-block; background: var(--jade); color: #fff; font-weight: 800; text-decoration: none; padding: 9px 16px; border-radius: var(--r); }
  .mbook:hover { background: var(--jade-d); }
}
/* Header from 1000 px (2026-10-02): the menu and Book never wrap; up to 1199 px the menu tightens so the Thai
   menu fits on one line too. */
.mnav a, .mbook { white-space: nowrap; }
@media (min-width: 1000px) and (max-width: 1199px) {
  .mast-in { gap: 12px; }
  .mnav { gap: 13px; margin-left: 6px; }
  .mnav a { font-size: .88rem; }
  .mbook { padding: 9px 12px; }
}

/* ── first screen: copy + photo plate, then the booking desk ─── */
.arrive { padding: 10px 0 20px; }
.arrive-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(112px, 33vw, 250px);
  grid-template-areas: "copy shot" "trust trust" "perks perks" "desk desk"; gap: 8px 12px; }
.arrive-copy { grid-area: copy; align-self: center; min-width: 0; }
.arrive h1 { font-size: clamp(1.36rem, 5.6vw, 2.3rem); font-weight: 850; color: var(--maroon); margin: 0 0 6px; letter-spacing: -.01em; }
:lang(th) .arrive h1 { font-size: clamp(1.3rem, 5.4vw, 2.1rem); letter-spacing: 0; }
.anchor { margin: 0; font-size: 1rem; font-weight: 650; }
.anchor b { color: var(--brick); font-size: 1.12em; }
.trust { grid-area: trust; margin: 0; font-size: .8rem; color: var(--ink-2); line-height: 1.4; }
.trust b { color: var(--ink); }
.trust .st { color: var(--brick); letter-spacing: 1px; }
.arrive-shot { grid-area: shot; position: relative; border: 4px double var(--brick); padding: 2px; border-radius: 8px; background: #fff; align-self: start; }
.arrive-shot img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 3px; }
.arrive-shot figcaption { display: none; }
.perks { grid-area: perks; display: flex; flex-wrap: wrap; gap: 2px 14px; list-style: none; margin: 0; padding: 0; font-size: .8rem; font-weight: 650; color: var(--ink); line-height: 1.45; }
.perks li { position: relative; padding-left: 16px; }
.perks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 8px; height: 5px; border-left: 2px solid var(--jade); border-bottom: 2px solid var(--jade); transform: rotate(-45deg); }

/* the booking desk (form[data-widget]) */
.desk { grid-area: desk; background: var(--card); border: 1px solid var(--line); border-top: 5px double var(--maroon); border-radius: var(--r); padding: 10px 12px 12px; box-shadow: 0 10px 30px rgba(74,17,28,.08); min-width: 0; }
.desk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.desk-t { margin: 0; font-weight: 800; font-size: .95rem; color: var(--maroon); }
@media (max-width: 999px) {
  .desk-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .desk-head .dir { flex: 1 1 auto; }
  .perks .d-only { display: none; }
}
.dir { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--maroon); border-radius: var(--r); overflow: hidden; flex: none; }
.dir button { font: inherit; font-size: .8rem; font-weight: 750; border: 0; background: #fff; color: var(--maroon); padding: 6px 10px; cursor: pointer; line-height: 1.25; }
.dir button[aria-pressed="true"] { background: var(--maroon); color: #fff; }
.picks, .cars { border: 0; margin: 0; padding: 0; min-width: 0; }
.picks legend, .cars legend, .when label > span { font-size: .78rem; font-weight: 700; color: var(--brick); padding: 0; margin-bottom: 3px; line-height: 1.3; }
.pk { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid var(--line); border-top-width: 0; cursor: pointer; background: #fff; }
.pk:first-of-type { border-top-width: 1px; border-radius: var(--r) var(--r) 0 0; }
.pk:last-of-type { border-radius: 0 0 var(--r) var(--r); }
.pk input { accent-color: var(--jade); width: 17px; height: 17px; margin: 0; }
.pk-n { font-weight: 650; font-size: .95rem; line-height: 1.3; }
.pk-p { font-weight: 800; font-size: 1rem; white-space: nowrap; }
.pk:has(input:checked) { background: var(--jade-l); box-shadow: inset 3px 0 0 var(--jade); }
.cars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.cars legend { grid-column: 1 / -1; }
.car { position: relative; display: grid; gap: 0; border: 1.5px solid var(--line); border-radius: var(--r); padding: 5px 8px 6px; cursor: pointer; background: #fff; line-height: 1.25; }
.car input { position: absolute; opacity: 0; pointer-events: none; }
.car span { font-weight: 800; font-size: .88rem; }
.car small { font-size: .72rem; color: var(--ink-2); }
.car b { font-size: .98rem; }
.car:has(input:checked) { border-color: var(--jade); box-shadow: inset 0 0 0 1.5px var(--jade); background: var(--jade-l); }
.car:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 1px; }
.when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.when label { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
select, input, textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 8px 10px; width: 100%; min-width: 0; }
select:focus, input:focus, textarea:focus { border-color: var(--jade); outline: 2px solid rgba(18,122,92,.25); outline-offset: 0; }
.go { width: 100%; margin-top: 10px; font: inherit; font-size: 1.05rem; font-weight: 850; line-height: 1.3; color: #fff; background: var(--jade); border: 0; border-radius: var(--r); padding: 12px 14px; cursor: pointer; display: flex; justify-content: center; gap: 6px; }
.go:hover { background: var(--jade-d); }
.go:disabled { opacity: .6; cursor: not-allowed; }
.fine { margin: 6px 0 0; font-size: .78rem; color: var(--ink-2); text-align: center; line-height: 1.4; text-wrap: balance; }
@media (min-width: 1000px) {
  .arrive { padding: 0; }
  .arrive-grid { width: 100%; grid-template-columns: 58fr 42fr; grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "shot copy" "shot trust" "shot perks" "shot desk"; gap: 0; }
  .arrive-copy, .trust, .perks, .desk { margin-left: clamp(28px, 3vw, 52px); margin-right: clamp(16px, 3vw, 52px); max-width: 540px; }
  .anchor { margin-bottom: 6px; }
  .arrive-copy { padding-top: 26px; }
  .perks { margin-top: 12px; }
  .desk { margin-top: 14px; margin-bottom: 26px; padding: 12px 16px 14px; align-self: start; }
  .arrive-shot { border: 0; padding: 0; border-radius: 0; min-height: 100%; }
  .arrive-shot img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 54% 60%; border-radius: 0; }
  .arrive-shot::after { content: ""; position: absolute; inset: 16px; border: 4px double rgba(255,247,235,.85); pointer-events: none; }
  .arrive-shot figcaption { display: block; position: absolute; left: 32px; bottom: 32px; background: var(--maroon); color: #fff; font-size: .82rem; font-weight: 650; padding: 5px 10px; border-radius: 4px; }
  .trust { font-size: .88rem; }
  .pk { padding: 9px 12px; }
}

/* ── sections ─────────────────────────────────────────── */
.sec { padding: 44px 0; }
[id] { scroll-margin-top: 76px; }
.sec.alt { background: #fff; border-block: 1px solid var(--line); }
.eyebrow { font-size: .82rem; font-weight: 750; color: var(--brick); margin: 0 0 4px; }
.sec h2::after { content: ""; display: block; width: 72px; margin-top: 10px; border-top: 4px double var(--brick); }
.lead { color: var(--ink-2); max-width: 46rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; text-decoration: none; border-radius: var(--r); padding: 11px 18px; line-height: 1.25; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.jade { background: var(--jade); color: #fff; }
.btn.jade:hover { background: var(--jade-d); }
.btn.plain { background: #fff; color: #0b6b3a; border: 1.5px solid #cfe3d6; }
.btn.plain:hover { border-color: #0b6b3a; }

/* (1) the fare table, both directions */
.fares-wrap { margin-top: 18px; overflow-x: auto; }
.fares { width: 100%; border-collapse: collapse; background: #fff; border: 4px double var(--maroon); font-variant-numeric: tabular-nums; }
.fares th, .fares td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); }
.fares thead th { background: var(--maroon); color: #fff; font-size: .82rem; font-weight: 750; }
.fares thead th:first-child { text-align: left; }
.fares .grp th { text-align: left; background: var(--maroon-l); color: var(--maroon); font-size: .98rem; font-weight: 800; padding-top: 10px; }
.fares .grp small { display: block; font-weight: 600; color: var(--ink-2); font-size: .8rem; }
.fares tbody th[scope="row"] { text-align: left; font-weight: 600; font-size: .9rem; color: var(--ink); }
.fares td a { font-weight: 800; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--jade); }
.fares td a:hover { color: var(--jade-d); }
.fares-note { font-size: .85rem; color: var(--ink-2); margin: 10px 0 0; }
@media (max-width: 400px) {
  .fares th, .fares td { padding: 7px 6px; }
  .fares tbody th[scope="row"] { font-size: .84rem; }
  .fares td a { font-size: .92rem; }
}
.facts { display: grid; gap: 14px; margin-top: 22px; }
.facts > div { background: #fff; border: 1px solid var(--line); border-left: 4px double var(--brick); border-radius: var(--r); padding: 14px 16px; }
.facts h3 { color: var(--maroon); margin-bottom: 6px; }
.facts ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.facts li + li { margin-top: 4px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* (2) a day in Ayutthaya */
.day-grid { display: grid; gap: 20px; margin-top: 16px; }
.day-pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 4px double var(--brick); padding: 2px; background: #fff; border-radius: 8px; }
.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ways li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.ways b { display: block; color: var(--maroon); margin-bottom: 2px; }
.ways span { color: var(--ink-2); }
.day-note { font-size: .88rem; color: var(--ink-2); margin: 12px 0 0; }
.founder { margin: 14px 0 0; padding-top: 12px; border-top: 4px double var(--line); font-size: .92rem; color: var(--ink); }
@media (min-width: 900px) { .day-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; } }
/* (2b) the day trip (tour 9, owner 2026-10-18; on the page only once the owner publishes it): a white plaque in the
   mural's double frame under the ways to spend the day — what it is and how long, then the three prices per car as
   paper tiles and the jade Book */
.trip { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 26px; background: var(--card); border: 4px double var(--maroon); border-radius: var(--r); padding: 18px 16px; }
.trip .eyebrow { margin-bottom: 2px; }
.trip h3 { color: var(--maroon); font-size: 1.25rem; margin-bottom: 6px; }
.trip-h { font-size: .9rem; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.trip-txt p:last-child { margin: 0; color: var(--ink-2); text-wrap: pretty; }
.trip-fares { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.trip-fares li { display: grid; grid-template-columns: minmax(0, 1fr); padding: 6px 8px 7px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper); line-height: 1.25; min-width: 0; }
.trip-fares span { font-size: .78rem; font-weight: 700; color: var(--ink-2); overflow-wrap: anywhere; }
.trip-fares b { font-size: 1.05rem; white-space: nowrap; }
.trip-per { margin: 6px 0 10px; font-size: .8rem; color: var(--ink-2); }
.trip-buy .btn { width: 100%; }
@media (min-width: 900px) { .trip { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 36px; padding: 24px 28px; } }

/* (3) from Ayutthaya onwards — a road list with the town at its head */
.origin { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-weight: 850; color: var(--maroon); font-size: 1.1rem; }
.origin img { width: 34px; height: 34px; border-radius: 6px; }
.onward { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.onward::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 30px; border-left: 4px double var(--brick); }
.onward li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.onward li::before { content: ""; position: absolute; left: -25px; top: 19px; width: 12px; height: 12px; background: var(--paper); border: 3px solid var(--jade); border-radius: 50%; }
.onward .to { font-weight: 800; font-size: 1.08rem; }
.onward .how { grid-column: 1; color: var(--ink-2); font-size: .88rem; }
.onward .back { grid-column: 1; font-size: .82rem; color: var(--ink-2); }
.onward .fare { grid-row: 1 / span 3; grid-column: 2; text-align: right; display: grid; gap: 2px; justify-items: end; align-content: start; }
.onward .fare b { font-size: 1.3rem; line-height: 1.1; }
.onward .fare small { font-size: .78rem; color: var(--ink-2); }
.onward .fare a { font-weight: 800; font-size: .88rem; color: #fff; background: var(--jade); text-decoration: none; padding: 5px 10px; border-radius: var(--r); margin-top: 4px; }
.onward .fare a:hover { background: var(--jade-d); }
@media (min-width: 900px) { .onward-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; align-items: start; } }
/* route names that open their route page (English) */
.fares tbody th a, .onward a.to, .onward .back a { color: inherit; text-decoration-color: var(--jade); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.fares tbody th a:hover, .onward a.to:hover, .onward .back a:hover { color: var(--jade-d); }

/* (4) the three cars */
.fleet-pic img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r); margin-top: 16px; }
.garage { display: grid; background: #fff; border: 4px double var(--maroon); margin-top: 14px; }
.garage > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.garage > div:last-child { border-bottom: 0; }
.garage h3 { margin: 0; color: var(--maroon); }
.garage p { margin: 0; grid-column: 1; color: var(--ink-2); font-size: .88rem; }
.garage .from { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-size: .78rem; color: var(--ink-2); }
.garage .from b { display: block; font-size: 1.2rem; color: var(--ink); }
@media (min-width: 900px) { .garage { grid-template-columns: repeat(3, minmax(0, 1fr)); } .garage > div { border-bottom: 0; border-right: 1px solid var(--line); } .garage > div:last-child { border-right: 0; } }

/* (5) three steps, numbered like temple tablets */
.steps { list-style: none; counter-reset: s; display: grid; gap: 16px; padding: 0; margin: 18px 0 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; }
.steps li::before { content: counter(s); font-size: 2.1rem; font-weight: 850; color: var(--brick); line-height: 1; text-align: center; padding-bottom: 6px; border-bottom: 4px double var(--brick); }
:lang(th) .steps li::before { content: counter(s, thai); }
.steps b { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.steps span { color: var(--ink-2); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }

/* (5b) the Smile Taxi app (2026-10-11): a white plaque in the mural's double frame on a rose band; the three things
   the app does as paper tiles with a jade lozenge; on a computer the QR code at the plaque's left, in the brick frame
   of the photo plates (a phone has the two buttons, so no QR there) */
.appx { background: var(--maroon-l); border-block: 1px solid #e2c6c0; }
.appx-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; background: var(--card); border: 4px double var(--maroon); border-radius: var(--r); padding: 22px 18px 24px; }
.appx-body { min-width: 0; }
.appx-qr { display: none; }
.appx-pts { list-style: none; margin: 18px 0 20px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.appx-pts li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; align-content: start; padding: 12px 14px 13px 36px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.appx-pts li::before { content: ""; position: absolute; left: 14px; top: 1.2em; width: 9px; height: 9px; background: var(--jade); transform: rotate(45deg); }
.appx-pts b { color: var(--maroon); font-size: 1.02rem; line-height: 1.3; }
.appx-pts span { color: var(--ink-2); font-size: .93rem; text-wrap: pretty; }
.appx-st { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.appx-st .btn { flex: 1 1 130px; max-width: 220px; }
@media (min-width: 900px) {
  .appx-in { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 40px; padding: 32px 36px; }
  .appx-qr { display: block; margin: 0; }
  .appx-qr svg { display: block; width: 176px; height: 176px; padding: 9px; background: #fff; border: 4px double var(--brick); border-radius: 8px; }
  .appx-qr figcaption { margin-top: 10px; max-width: 176px; font-size: .84rem; line-height: 1.4; color: var(--ink-2); text-align: center; text-wrap: balance; line-break: strict; }
  :lang(ja) .appx-qr figcaption { word-break: auto-phrase; }   /* Japanese breaks between phrases (Chrome) */
  .appx-pts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
/* the store logos before the store names (owner, 2026-10-11): 1.25 em, centred on the label, the gap of the other
   icon buttons; a store name never breaks */
.appx-st .btn { white-space: nowrap; }
.appx-st .si { width: 1.25em; height: 1.25em; flex: none; }
/* after a booking: the app, to follow it there (booking page) */
.app-after { padding: 12px 14px 14px; background: var(--paper); border: 1px solid var(--line); border-left: 4px double var(--jade); border-radius: var(--r); }
.app-after p { margin: 0 0 10px; font-weight: 650; text-wrap: pretty; }
.app-after .appx-st { margin: 0; }

/* (6) questions, all open */
.qa { display: grid; gap: 0 36px; margin: 14px 0 0; }
.qa > div { padding: 14px 0; border-top: 1px solid var(--line); }
.qa dt { font-weight: 800; color: var(--maroon); margin-bottom: 4px; }
.qa dd { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) { .qa { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* (7) closing band */
.last { background: var(--maroon); color: #fff; padding: 8px; border-radius: var(--r); }
.last-in { border: 4px double var(--gold); border-radius: 4px; padding: 26px 20px; display: grid; gap: 14px; }
.last h2 { color: #fff; margin: 0; }
.last h2::after { display: none; }
.last p { margin: 0; color: #f4e4dc; }
.last .acts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .last-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 30px 34px; } }

/* footer */
.foot { background: var(--maroon-d); color: #f0e0d8; padding: 36px 0 100px; font-size: .92rem; border-top: 4px double var(--gold); }
.foot a { color: #fff; }
.foot-cols { display: grid; gap: 22px; }
.foot h3 { color: var(--gold); font-size: .92rem; margin-bottom: 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot .brand { margin-bottom: 10px; }
/* the Smile Taxi app under the about line (2026-10-11): its name in gold, the two stores as small framed links */
.ft-app { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; }
.ft-app b { color: var(--gold); }
.ft-st { display: flex; flex-wrap: wrap; gap: 8px; }
.foot .ft-a { color: #fff; text-decoration: none; font-weight: 700; font-size: .86rem; padding: 4px 11px; border: 1px solid rgba(233,184,114,.6); border-radius: var(--r); }
.foot .ft-a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }   /* the store logos (2026-10-11) */
.ft-a .si { width: 1.1em; height: 1.1em; flex: none; }
.foot .ft-a:hover { border-color: var(--gold); background: rgba(255,255,255,.07); }
.smile { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(233,184,114,.35); display: grid; justify-items: center; gap: 8px; text-align: center; }
.smile p { margin: 0; }
.smile span { margin: 0 6px; color: #d9bfb3; }
.op { margin: 16px 0 0; font-size: .82rem; color: #e3cfc6; text-align: center; }
.op.legal span { margin: 0 8px; color: #d9bfb3; }
@media (min-width: 900px) { .foot-cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
@media (min-width: 1000px) { .foot { padding-bottom: 36px; } }

/* mobile thumb bar: Book · WhatsApp · AI chat (2026-10-02) */
.thumb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1.25fr repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 4px double var(--maroon); box-shadow: 0 -6px 18px rgba(74,17,28,.12); }
.thumb a, .thumb button { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; border: 0; font: inherit; font-weight: 800; font-size: .92rem; text-decoration: none; border-radius: var(--r); padding: 10px 6px; line-height: 1.2; cursor: pointer; }
.thumb svg { width: 18px; height: 18px; flex: none; }
.thumb .t-book { background: var(--jade); color: #fff; }
.thumb .t-wa { background: #fff; color: #0b6b3a; border: 1.5px solid #cfe3d6; }
.thumb .t-ai { background: var(--maroon-l); color: var(--maroon); border: 1.5px solid #e2c6c0; }
/* a phone: the two message buttons set the icon over the word */
@media (max-width: 599px) {
  .thumb { grid-template-columns: 1.1fr repeat(2, minmax(0, 1fr)); gap: 5px; }
  .thumb :is(.t-wa, .t-ai) { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: .74rem; line-height: 1.1; }
}
/* a 320 px phone: "Book a taxi" stays on one line */
@media (max-width: 379px) {
  .thumb { grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr)); }
  .thumb .t-book { font-size: .84rem; padding-left: 4px; padding-right: 4px; white-space: nowrap; }
}
@media (min-width: 1000px) { .thumb { display: none; } }
/* the AI chat (served by www.smiletaxiservice.com) in this site's colours */
:root { --sx-ai-bg: var(--maroon); --sx-ai-fg: #fff; --sx-ai-ring: var(--gold); }

/* ── booking and contact pages ────────────────────────── */
.page-top { padding: 22px 0 6px; }
.page-top h1 { font-size: clamp(1.5rem, 4.4vw, 2.2rem); font-weight: 850; color: var(--maroon); }
.page-top p { color: var(--ink-2); max-width: 44rem; margin: 0; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "stub" "form" "side"; gap: 16px; padding: 14px 0 50px; }
.bk-grid > form { grid-area: form; }
.bk-grid > .stub { grid-area: stub; }
.bk-grid > .side { grid-area: side; }
.bk-grid:not(:has(> .stub)) { grid-template-areas: "form" "side"; }
.sheet { background: #fff; border: 1px solid var(--line); border-top: 5px double var(--maroon); border-radius: var(--r); padding: 16px; min-width: 0; }
.sheet h2 { font-size: 1.05rem; margin: 18px 0 10px; }
.sheet h2:first-child { margin-top: 0; }
.sheet h2::after { display: none; }
.fields { display: grid; gap: 12px; }
.fields label, .lbl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; font-size: .86rem; font-weight: 700; min-width: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 519px) { .two.stack { grid-template-columns: minmax(0, 1fr); } }
.phone { display: flex; gap: 6px; min-width: 0; }
.phone select { flex: 0 0 112px; }
.phone input { flex: 1 1 auto; min-width: 0; }
.hint { font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.bk-cars { margin-top: 10px; }
/* the day trip on the form (tour 9, 2026-10-18; only once it is published): the Transfer / Day trip switch is the
   home desk's direction toggle; the trip stands where the route list was, on paper with a jade rule */
.bk-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 12px; }
.bk-mode button { font-size: .88rem; padding: 8px 10px; }
.tour-box { display: grid; gap: 6px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-left: 4px double var(--jade); border-radius: var(--r); }
.tour-n { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.tour-n b { color: var(--maroon); font-size: 1.02rem; }
.tour-n > span { font-size: .84rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.tour-box .hint { margin: 0; }
.tour-out { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; font-weight: 700; cursor: pointer; }
.tour-out input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; padding: 0; accent-color: var(--jade); }
.stub { background: var(--maroon); color: #fff; border-radius: var(--r); padding: 6px; }
.stub-in { border: 4px double var(--gold); border-radius: 4px; padding: 14px 16px; display: grid; gap: 4px; }
.stub small { color: #f1d9c2; font-size: .8rem; }
.stub b { font-size: 1.05rem; }
.stub .amt { font-size: 1.7rem; font-weight: 900; color: var(--gold); line-height: 1.1; }
.side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.side .sheet p { margin: 0 0 8px; color: var(--ink-2); }
.side ol { margin: 0; padding-left: 20px; color: var(--ink-2); }
.side ol li + li { margin-top: 4px; }
.alert { border-radius: var(--r); padding: 12px 14px; }
.alert.good { background: #e6f4ee; border: 1px solid #9ccfb8; color: #0a3d2c; }
.alert.bad { background: #fbeceb; border: 1px solid #ecb3ad; color: #6b1a14; }
.cf-turnstile { min-height: 66px; }
/* the cancellation & change policy, above the Confirm button (owner, 2026-10-02):
   a paper panel with the mural's double rule, the fees read like a fare list */
.policy { display: grid; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-left: 4px double var(--maroon); border-radius: var(--r); padding: 12px 14px; }
.policy-h { margin: 0; font-weight: 800; color: var(--maroon); }
.policy-h small { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.tiers { margin: 0; display: grid; }
.tiers div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-top: 1px dotted #d3bfae; font-size: .88rem; }
.tiers dt { min-width: 0; }
.tiers dd { margin: 0; flex: none; font-weight: 850; color: var(--brick); font-variant-numeric: tabular-nums; }
.policy-note { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--ink-2); }
.fields label.policy-ok { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 700; cursor: pointer; }
.policy-ok input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; padding: 0; accent-color: var(--jade); }
.acts-col { display: grid; gap: 8px; }
@media (min-width: 1000px) {
  .bk-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-areas: "form stub" "form side"; grid-template-rows: auto 1fr; align-items: start; gap: 18px 22px; }
  .bk-grid:not(:has(> .stub)) { grid-template-areas: "form side"; grid-template-rows: auto; }
}
.lost { padding: 48px 0 60px; min-height: 52vh; }
.lost h1 { color: var(--maroon); font-size: clamp(1.6rem, 5vw, 2.4rem); }
.lost .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* iPhone gives date and time inputs an intrinsic width of their own, which can
   push a two-column row wider than the screen: let them fill and shrink. */
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; min-height: 42px; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }
:is(label, div, p):has(> input[type="date"]), :is(label, div, p):has(> input[type="time"]) { grid-template-columns: minmax(0, 1fr); min-width: 0; }
/* Turnstile is a fixed 300px box; on a 320px phone scale it with zoom (a
   transform would leave the 300px box in the layout). */
@media (max-width: 359px) { .cf-turnstile { zoom: .86; max-width: 100%; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
