/* pebbl web: the frame and the pieces every page shares. Page-specific styles are in site.css and planner.css. */

/* ---- layout helpers ---- */
.wrap { width: min(100% - 2 * var(--gut), 1360px); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2 * var(--gut), 820px); }
:root { --gut: clamp(16px, 3vw, 40px); --top-h: 68px; }
.loading { padding: var(--s8) var(--gut); text-align: center; color: var(--muted); }
.halt { padding: var(--s8) var(--gut); text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { left: 8px; }
main:focus { outline: none; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 62ch; }
.kind { font-size: var(--step--1); font-weight: 600; color: var(--teal); }
.good-text { color: var(--good); } .bad-text { color: var(--danger); }
.ic { flex: none; vertical-align: -0.2em; }
h2 { font-size: var(--step-3); } h3 { font-size: var(--step-1); }

/* ---- top bar ---- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 252, 247, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: var(--s5); height: var(--top-h); padding-inline: var(--gut); max-width: 1680px; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 11px; }
.top nav ul { display: flex; gap: var(--s1); }
.top nav a { display: block; padding: 10px 14px; border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-weight: 500; }
.top nav a:hover { background: var(--sand); }
.top nav a[aria-current] { background: var(--teal-soft); color: var(--teal-deep); font-weight: 600; }
.top-end { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }
.who { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-weight: 500; }
.who:hover { background: var(--sand); }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--peach); color: var(--ink); font-size: .8125rem; }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.btn.on { box-shadow: 0 0 0 3px var(--teal-soft); }
/* on the front page the bar sits over the photo */
.top.over { position: absolute; left: 0; right: 0; background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.top.over .brand, .top.over nav a, .top.over .who { color: #fff; }
.top.over nav a:hover, .top.over .who:hover { background: rgba(255, 255, 255, .16); }
.top.over .btn { background: #fff; color: var(--teal-deep); border-color: #fff; }

/* ---- messages ---- */
.flash { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80; max-width: min(92vw, 640px); padding: 14px 22px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-weight: 500; box-shadow: var(--shadow-2); }
.flash.bad { background: var(--danger); }
.alert { padding: 12px 16px; border-radius: var(--r-m); background: var(--warn-bg); color: var(--warn); }
.alert.good { background: var(--good-bg); color: var(--good); }
.alert.bad { background: var(--danger-bg); color: var(--danger); }
.confirm { padding: var(--s4); border-radius: var(--r-m); border: 2px solid var(--amber); background: var(--paper); display: grid; gap: var(--s2); }
.empty { text-align: center; padding: var(--s8) var(--s5); display: grid; gap: var(--s3); justify-items: center; }

/* ---- cards, buttons, form pieces ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--s5); display: grid; gap: var(--s4); align-content: start; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.btn-col { display: grid; gap: var(--s2); }
.btn.wide { width: 100%; }
.btn.big { min-height: 56px; padding-inline: var(--s6); font-size: var(--step-1); }
.btn.glass { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .7); color: #fff; backdrop-filter: blur(6px); }
.btn.glass:hover { background: rgba(255, 255, 255, .28); }
.round { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--field); background: #fff; color: var(--ink); }
.round:hover:not([disabled]) { border-color: var(--teal); color: var(--teal); }
.round[disabled] { opacity: .35; cursor: default; }
.stepper { display: inline-flex; align-items: center; gap: var(--s3); }
.stepper output { min-width: 5.5em; text-align: center; }
.stepper output b { font-family: var(--display); font-size: var(--step-2); }
.stepper.small { gap: 6px; } .stepper.small .round { width: 32px; height: 32px; } .stepper.small output { min-width: 1.6em; } .stepper.small output b { font-size: var(--step-1); }
.field { display: grid; gap: 6px; align-content: start; }
.field label, fieldset legend { font-weight: 600; font-size: var(--step--1); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--field); border-radius: var(--r-s); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); }
.field.inline { display: inline-flex; align-items: center; gap: var(--s3); }
.field.inline select { width: auto; }
.field.search { position: relative; } .field.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); } .field.search input { padding-left: 42px; border-radius: var(--r-pill); }
.pair { display: grid; grid-template-columns: 1fr auto; gap: var(--s2); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.form.one { grid-template-columns: 1fr; }
.form .wide, .form h2, .form h3 { grid-column: 1 / -1; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.tick { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.tick input { width: 22px; height: 22px; accent-color: var(--teal); flex: none; }
.tick.big { padding: 14px 16px; border-radius: var(--r-m); background: var(--sand); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.chips.col { flex-direction: column; align-items: stretch; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--field); background: #fff; font-weight: 500; }
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"], .chip.check:has(input:checked) { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip.check input { position: absolute; opacity: 0; width: 1px; height: 1px; } .chip.check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; } .chip.check { cursor: pointer; }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.month { min-height: 44px; border-radius: var(--r-s); border: 1.5px solid var(--field); background: #fff; font-weight: 600; }
.month:hover { border-color: var(--teal); }
.month[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.split-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.page-head { display: grid; gap: var(--s3); padding-block: var(--s6) var(--s4); }
.page-head h1 { font-size: var(--step-4); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.table tfoot th, .table tfoot td { border-bottom: 0; font-weight: 600; }
.table .amount { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; position: relative; }   /* relative: so hidden labels inside a wide table cannot stretch the page */
.ticks { display: grid; gap: 10px; } .ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23154F54' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.500l4 4L18 8'/%3E%3C/svg%3E") center/14px no-repeat; }
.notes { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.bar { display: block; height: 10px; border-radius: 5px; background: var(--sand); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 5px; background: var(--teal); } .bar i.alt { background: var(--amber); }
.tiles { display: grid; gap: var(--s3); } .tiles.three { grid-template-columns: repeat(3, 1fr); }
.tile { background: var(--sand); border-radius: var(--r-m); padding: var(--s4); }
.figure { font-family: var(--display); font-size: var(--step-3); font-weight: 600; line-height: 1.1; }
.cover { width: 100%; height: 100%; object-fit: cover; }
.thumb { width: 64px; height: 64px; border-radius: var(--r-s); object-fit: cover; flex: none; }
svg.drawn { display: block; }

/* ---- place cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s4); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; display: grid; grid-template-rows: 170px 1fr; transition: box-shadow .15s, transform .15s; }
.pcard:hover, .pcard.hot { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.pcard-ph { display: block; overflow: hidden; }
.pcard-body { padding: var(--s4); display: grid; gap: 6px; align-content: start; }
.pcard h3 a { color: var(--ink); text-decoration: none; } .pcard h3 a::after { content: ""; position: absolute; inset: 0; }
.pcard .tag { color: var(--muted); font-size: var(--step--1); }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pcard .add { position: absolute; z-index: 2; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #fff; color: var(--teal-deep); box-shadow: var(--shadow-1); }
.pcard .add:hover { background: var(--teal); color: #fff; } .pcard .add.in { background: var(--good-bg); color: var(--good); }

/* ---- the map ---- */
.map { display: grid; gap: var(--s2); justify-items: center; }
.map-frame { position: relative; height: min(calc(100vh - var(--map-off, 150px)), 900px); max-width: 100%; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-1); background: #9cc7d6; }
.map-frame img { width: 100%; height: 100%; }
.map-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-frame polyline { fill: none; stroke: #8E2B1C; stroke-width: 5; stroke-dasharray: 2 11; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pin { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--teal-deep); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .12s; }
.pin.minor { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: #6b7f86; }
.pin.good { background: #1F8A5B; } .pin.amber { background: #E8A21C; } .pin.red { background: #C0392B; }
.pin i { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 3px 9px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font: 600 .75rem/1.3 var(--body); white-space: nowrap; box-shadow: var(--shadow-1); opacity: 0; pointer-events: none; }
.pin:hover, .pin.hot, .pin:focus-visible { transform: scale(1.5); z-index: 5; } .pin:hover i, .pin.hot i, .pin:focus-visible i { opacity: 1; transform: translateX(-50%) scale(.67); transform-origin: bottom center; }
.pin.named i { opacity: 1; left: calc(100% + 6px); bottom: auto; top: 50%; transform: translateY(-50%); }
.pin.named:hover i, .pin.named.hot i { transform: translateY(-50%) scale(.67); transform-origin: left center; }
.pin.on { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: #8E2B1C; display: grid; place-items: center; z-index: 3; text-decoration: none; }
.pin.on b { color: #fff; font: 600 .8125rem/1 var(--body); }
button.pin { cursor: pointer; }
.map figcaption { max-width: 46ch; text-align: center; }

/* ---- pebbl's Thai animations: decoration, one to a page, on the page each belongs to ---- */
.anim { width: 100%; max-width: 420px; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-1); background: #fff; } .anim.small { max-width: 240px; flex: none; }

/* ---- footer ---- */
.foot { background: var(--teal-deep); color: #E6F2F0; margin-top: var(--s8); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6); padding: var(--s7) var(--gut); max-width: 1360px; margin-inline: auto; }
.foot .brand { color: #fff; } .foot h2 { font-size: var(--step-0); color: #fff; margin-bottom: var(--s3); }
.foot ul { display: grid; gap: 8px; } .foot a { color: #E6F2F0; }
.foot-note { grid-column: 1 / -1; padding-top: var(--s5); border-top: 1px solid rgba(255, 255, 255, .2); max-width: none; }

@media (max-width: 900px) {
  .top-in { flex-wrap: wrap; height: auto; padding-block: 10px 0; gap: var(--s2) var(--s3); } .top nav { order: 3; width: 100%; overflow-x: auto; } .top nav ul { width: max-content; padding-bottom: 8px; } .who span { display: none; }
  :root { --top-h: 112px; } .top, .top.over { position: static; } .top.over { position: absolute; }
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .months { grid-template-columns: repeat(6, 1fr); }
  .foot-in { grid-template-columns: 1fr 1fr; } .form { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .cards, .cards.four { grid-template-columns: 1fr; } .foot-in { grid-template-columns: 1fr; } .brand span { display: none; } .tiles.three { grid-template-columns: 1fr; } }
@media print { .top, .planbar, .foot, .flash, .no-print { display: none !important; } body { background: #fff; } }
/* Mark, 22 Nov 2026: a long pasted link or word with no spaces wraps instead of making the page wider than the screen. Tables keep their own layout. */
#app { overflow-wrap: anywhere; }
#app table { overflow-wrap: normal; }
/* Mark, 23 Nov 2026: hearts for liking, on place cards and area cards. Likes are for exploring; the plus still adds to the trip. */
.like { position: absolute; z-index: 2; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #fff; color: #C8102E; box-shadow: var(--shadow-1); }
.like:hover { transform: scale(1.08); } .like.on .ic { fill: currentColor; } .like.on { background: #C8102E; color: #fff; }
.pcard .add { right: auto; left: 12px; width: auto; min-width: 40px; padding: 0 11px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; font: 600 .8125rem/1 var(--body); }
.pcard .add.in { background: var(--teal-deep); color: #fff; }
.area { position: relative; } .area .like { top: 10px; right: 10px; }
.likes-link { position: relative; color: #C8102E; } .likes-link .ic { fill: currentColor; } .top.over .likes-link { color: #fff; }
.likes-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); margin-bottom: var(--s4); } .likes-bar > .ic { color: #C8102E; flex: none; } .likes-bar span { flex: 1; min-width: 200px; }
.likes-bar.on { border-color: #C8102E; } .likes-bar.on > .ic { fill: currentColor; }
.like-card { gap: var(--s2); } .like-card .btn.on { background: #C8102E; border-color: #C8102E; color: #fff; } .like-card .btn.on .ic { fill: currentColor; }
.liked-note .ic, .alert .ic { vertical-align: -2px; } .liked-note .ic { color: #C8102E; fill: currentColor; } .area-hint .btn { margin-left: 6px; }
/* Pick my holiday */
.lk { display: grid; gap: var(--s4); padding-bottom: var(--s8); align-content: start; } .lk .page-head { padding-bottom: 0; } .lk .page-head .kind .ic { color: #C8102E; fill: currentColor; vertical-align: -2px; }
.lk-steps { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; } .lk-steps button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 500; }
.lk-steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--ink); font-size: .8125rem; } .lk-steps .on button { border-color: var(--teal); color: var(--ink); } .lk-steps .on b, .lk-steps .done b { background: var(--teal); color: #fff; } .lk-steps button:disabled { opacity: .7; cursor: default; }
.lk-likes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s3); }
.lk-like { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; padding-right: 56px; min-height: 96px; } .lk-like > img, .lk-like > .cover, .lk-row > img, .lk-row > .cover { width: 96px; height: 100%; min-height: 96px; object-fit: cover; } .lk-like .like { top: 50%; margin-top: -21px; box-shadow: none; }
.lk-like h3 a, .lk-row h3 a { color: inherit; text-decoration: none; } .lk-like .small .ic { color: #C8102E; fill: currentColor; vertical-align: -2px; }
.lk-extra { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); } .lk-extra li { display: flex; gap: var(--s3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.lk-pace { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); } .lk-pace legend, .lk fieldset.chips legend { font-weight: 600; margin-bottom: var(--s2); padding: 0; } .lk fieldset.chips { border: 0; padding: 0; margin: 0; }
.chip.tall { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; border-radius: var(--r-m); min-height: 0; text-align: left; } .chip.tall span { font-size: var(--step--1); font-weight: 400; opacity: .85; }
.lk-verdict { background: var(--teal-deep); color: #fff; border-radius: var(--r-l); padding: var(--s5); display: grid; gap: var(--s3); } .lk-verdict h2 { font-size: var(--step-3); } .lk-verdict .good-text { color: #BFF0CF; } .lk-verdict.warn { background: #6B2A12; }
.lk-warn { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; } .lk-warn li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; background: rgba(255,255,255,.12); border-radius: var(--r-s); padding: 8px 10px; } .lk-warn .ic { margin-top: 3px; }
.lk-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s5); align-items: start; } .lk-cols section { display: grid; gap: var(--s3); align-content: start; } .lk-cols h2 { display: flex; align-items: center; gap: 8px; }
.lk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.lk-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; padding-right: 14px; } .lk-row.drop { opacity: .92; background: var(--paper); } .lk-row.drop > img { filter: grayscale(.7); }
.lk-row-in { display: grid; gap: 6px; padding-block: 12px; min-width: 0; } .lk-row h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lk-why { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; font-size: var(--step--1); } .lk-why li { display: grid; grid-template-columns: 16px 1fr; gap: 6px; align-items: start; } .lk-why .ic { margin-top: 3px; } .lk-why .good .ic { color: var(--good); } .lk-why .bad { color: var(--warn); }
.lk-leg { font-size: var(--step--1); color: var(--muted); } .lk-leg .ic { vertical-align: -2px; }
.lk-events { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .lk-events li { display: grid; }
.lk-nav { justify-content: space-between; } .lk-nav .btn:disabled { opacity: .5; }
@media (max-width: 900px) { .lk-cols { grid-template-columns: 1fr; } .lk-pace { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .lk-row { grid-template-columns: 72px minmax(0, 1fr); padding-right: 0; } .lk-row > img, .lk-row > .cover { width: 72px; } .lk-row > .btn { grid-column: 1 / -1; margin: 0 12px 12px; } .lk-steps span { display: none; } .lk-steps .on span { display: inline; } }
/* Mark, 23 Nov 2026: What is realistic shows the time each place needs, how close it is to the others, and a Must go choice. */
.lk-facts { display: grid; gap: 3px; font-size: var(--step--1); color: var(--ink); } .lk-facts span { display: grid; grid-template-columns: 16px 1fr; gap: 6px; align-items: start; } .lk-facts .ic { margin-top: 3px; color: var(--teal); }
.lk-acts { display: grid; gap: 6px; justify-items: stretch; } .lk-acts .btn { justify-content: center; }
.pill.must, .btn.must { background: #8E2B1C; color: #fff; border-color: #8E2B1C; } .btn.must.on { box-shadow: none; } .pill.must .ic { vertical-align: -2px; }
.lk-advice { background: #FFF3DA; border: 2px solid #E0A93B; border-radius: var(--r-l); padding: var(--s4) var(--s5); display: grid; gap: var(--s2); } .lk-advice h3 { display: flex; align-items: center; gap: 8px; } .lk-advice h3 .ic { color: #8E2B1C; }
.lk-advice ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 520px) { .lk-acts { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; margin: 0 12px 12px; } }
/* ===== Review rev2 (Mark, 23 Nov 2026) ===== */
/* P1: on a phone the menu uses short names so all five show */
.nav-short { display: none; }
@media (max-width: 900px) { .nav-long { display: none; } .nav-short { display: inline; } .top nav ul { width: 100%; min-width: max-content; justify-content: space-between; gap: 0; padding-bottom: 6px; } .top nav a { padding: 8px 7px; white-space: nowrap; font-size: .9375rem; } }
/* P3: hearts and round buttons big enough for a thumb */
@media (pointer: coarse), (max-width: 900px) { .like { width: 44px; height: 44px; } .place-tiles .like { width: 40px; height: 40px; top: 4px; right: 4px; } .pcard .add { min-height: 44px; min-width: 44px; justify-content: center; } }
/* F1: how do you want to start */
.start-ways { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s4); margin-block: var(--s4); }
.way { position: relative; display: block; min-height: 250px; border-radius: var(--r-l); overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--shadow-1); }
.way img, .way .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; } .way:hover img { transform: scale(1.05); }
.way > span { position: absolute; inset: auto 0 0 0; padding: 60px 18px 16px; display: grid; gap: 4px; background: linear-gradient(transparent, rgba(8,16,40,.88)); }
.way b { font-family: var(--display); font-size: var(--step-1); line-height: 1.15; } .way em { font-style: normal; font-size: var(--step--1); opacity: .95; }
.way.main b { font-size: var(--step-2); } .way i { font-style: normal; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; background: #C8102E; border-radius: var(--r-pill); padding: 6px 14px; justify-self: start; }
@media (max-width: 1000px) { .start-ways { grid-template-columns: 1fr 1fr; } .way.main { grid-column: 1 / -1; } .way { min-height: 190px; } }
@media (max-width: 520px) { .start-ways { grid-template-columns: 1fr; } .way { min-height: 150px; } .way.main { min-height: 230px; } }
@media (prefers-reduced-motion: reduce) { .way img { transition: none; } }
/* N1: picture categories; P4: search and filters behind one button on a phone */
.explore-main { min-width: 0; } .cats { max-width: 100%; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(128px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: var(--s3); scrollbar-width: thin; }
.cat { position: relative; aspect-ratio: 4 / 3; border: 0; border-radius: var(--r-m); overflow: hidden; color: #fff; padding: 0; background: var(--teal-deep); }
.cat img, .cat .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .cat span { position: absolute; inset: auto 0 0 0; padding: 26px 8px 8px; font: 600 .875rem/1.15 var(--body); text-align: left; background: linear-gradient(transparent, rgba(8,16,40,.85)); }
.cat.on { outline: 4px solid var(--teal); outline-offset: -4px; } .cat.on span { background: var(--teal); padding-top: 8px; }
.filt-row { display: none; margin-bottom: var(--s2); }
@media (max-width: 620px) { .filt-row { display: block; } .filters.shut { display: none; } }
/* N3, N4: three picture questions */
.day-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s3); }
.day { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; border-radius: var(--r-l); overflow: hidden; color: #fff; background: var(--teal-deep); box-shadow: var(--shadow-1); }
.day img, .day .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .day span { position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; font: 600 1.0625rem/1.2 var(--display); text-align: left; background: linear-gradient(transparent, rgba(8,16,40,.88)); }
.day i { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.85); color: transparent; } .day.on i { background: var(--teal); color: #fff; } .day.on { outline: 4px solid var(--teal); outline-offset: 2px; }
@media (max-width: 900px) { .day-pick { grid-template-columns: repeat(2, 1fr); } .day { aspect-ratio: 4 / 3; } .day:last-child { grid-column: 1 / -1; aspect-ratio: 8 / 3; } }
/* N2: one big photo at a time, like it or skip it */
.deck { position: relative; height: min(62vh, 560px); min-height: 380px; touch-action: pan-y; user-select: none; }
.deck-card { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; background: var(--teal-deep); color: #fff; box-shadow: 0 14px 34px rgba(60,30,20,.25); }
.deck-card.under { transform: scale(.95) translateY(14px); opacity: .7; } .deck-card.top { cursor: grab; transition: transform .25s; }
.deck-card img, .deck-card .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.deck-card .sh { position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(8,16,40,.9)); }
.deck-text { position: absolute; inset: auto 0 0 0; padding: 20px 22px 22px; display: grid; gap: 6px; } .deck-text .kind { color: #FFE7C2; } .deck-text h2 { font-size: var(--step-4); line-height: 1.05; } .deck-why { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.stamp { position: absolute; top: 22px; padding: 8px 16px; border-radius: 12px; font: 700 1.25rem/1 var(--display); display: flex; align-items: center; gap: 8px; opacity: 0; transition: opacity .15s; } .stamp.yes { left: 22px; background: #C8102E; } .stamp.no { right: 22px; background: rgba(8,16,40,.8); } .stamp .ic { fill: currentColor; }
.going-yes .stamp.yes, .going-no .stamp.no { opacity: 1; }
.deck-btns { display: flex; align-items: center; justify-content: center; gap: var(--s5); margin-top: var(--s4); }
.round.big { width: 66px; height: 66px; border-radius: 50%; border: 0; display: grid; place-items: center; box-shadow: var(--shadow-1); } .round.big.yes { background: #C8102E; color: #fff; } .round.big.yes .ic { fill: currentColor; } .round.big.no { background: #fff; color: var(--ink); } .round.big:hover { transform: scale(1.06); }
.deck-count { text-align: center; } .linkish { background: none; border: 0; padding: 0; color: var(--teal); text-decoration: underline; font: inherit; } .deck-end { text-align: center; justify-items: center; }
@media (prefers-reduced-motion: reduce) { .deck-card.top, .stamp { transition: none; } }
/* N5, N6 */
.card.friend { border: 2px solid #C8102E; } .card.friend h2 .ic { color: #C8102E; fill: currentColor; vertical-align: -2px; } .share-wl input { width: 100%; min-height: 44px; border: 1.5px solid var(--field); border-radius: var(--r-s); padding: 0 12px; font: inherit; }
.card.torn { border: 2px solid var(--amber); gap: var(--s2); } .torn-t { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 460px; } .torn-t th, .torn-t td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.torn-t tbody th { width: 150px; color: var(--muted); font-weight: 600; font-size: var(--step--1); } .torn-t thead td { width: 150px; } .torn-t thead th { display: table-cell; } .torn-t thead th img, .torn-t thead th .cover { display: block; width: 100%; height: 110px; object-fit: cover; border-radius: var(--r-m); margin-bottom: 6px; } .torn-t thead th b { display: block; font-family: var(--display); font-size: var(--step-1); } .torn-t thead th span { color: var(--muted); font-weight: 400; }
.torn-t tr:last-child td, .torn-t tr:last-child th { border-bottom: 0; }
/* F4: jump links on long place pages, and a way back to the top */
.jump { display: flex; gap: 8px; overflow-x: auto; padding-block: var(--s3); scrollbar-width: thin; } .jump .chip { flex: none; min-height: 38px; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--teal-deep); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-2); opacity: .9; }
.start-ways .way, .start-ways .way b, .start-ways .way em, .start-ways .way i { color: #fff; opacity: 1; } .start-ways .way > span { z-index: 1; }

/* ===== Idea 9: one look across every page (Mark, 23 Nov 2026) =====
   1 pages open on a photo band. 2 lists use the Plan page's dark photo strips. 3 softer cards: no outlines, a light shadow.
   4 one job per colour: teal to act, gold for what is selected, red only for the wish list. The dusk beach stays on the Plan page alone. */
.page-routes .page-head { --ph: url(../img/photos/railay.jpg); } .page-compare .page-head { --ph: url(../img/photos/chiangmai.jpg); }
.page-places .page-head { --ph: url(../img/photos/phiphi.jpg); } .page-when .page-head { --ph: url(../img/photos/samui.jpg); }
.page-likes .page-head { --ph: url(../img/photos/lanta.jpg); } .page-find .page-head { --ph: url(../img/photos/kohsamet.jpg); } .page-import .page-head { --ph: url(../img/photos/bangkok.jpg); }
:is(.page-routes, .page-compare, .page-places, .page-when, .page-likes, .page-find, .page-import) .page-head {
  position: relative; overflow: hidden; border-radius: 30px; margin-top: var(--s4); margin-bottom: var(--s4); padding: clamp(34px, 5vw, 60px) clamp(20px, 3.2vw, 40px) 30px; color: #fff;
  background: linear-gradient(100deg, rgba(10, 32, 40, .88) 0%, rgba(10, 32, 40, .55) 55%, rgba(10, 32, 40, .18) 100%), var(--ph) center / cover; box-shadow: 0 14px 34px rgba(60, 30, 20, .18); }
:is(.page-routes, .page-compare, .page-places, .page-when, .page-likes, .page-find, .page-import) .page-head::after { content: ""; position: absolute; left: clamp(20px, 3.2vw, 40px); bottom: 0; width: 120px; height: 6px; border-radius: 6px 6px 0 0; background: #F4B942; }
:is(.page-routes, .page-compare, .page-places, .page-when, .page-likes, .page-find, .page-import) .page-head :is(h1, .lede, p, label, legend) { color: #fff; }
:is(.page-routes, .page-compare, .page-places, .page-when, .page-likes, .page-find, .page-import) .page-head .kind { color: #FFE2A8; }
:is(.page-likes, .page-find) .page-head { padding-top: clamp(26px, 4vw, 44px); padding-bottom: 26px; } :is(.page-likes, .page-find) .page-head .kind .ic { color: #FF8A8A; }
.page-head :is(select, input) { color: var(--ink); background-color: #fff; } .page-head .month, .page-head .chip { color: var(--ink); border-color: transparent; background: rgba(255, 255, 255, .95); }
.page-when .page-head.wrap { margin-inline: auto; width: min(100% - 2 * var(--gut), 1680px); padding-inline: clamp(20px, 3.2vw, 40px); }
@media (max-width: 620px) { :is(.page-routes, .page-compare, .page-places, .page-when, .page-likes, .page-find, .page-import) .page-head { border-radius: 22px; } :is(.page-routes, .page-compare, .page-places, .page-when, .page-likes, .page-find, .page-import) .page-head h1 { font-size: var(--step-3); } }
/* gold for what is selected */
.chip[aria-pressed="true"], .chip.check:has(input:checked), .month[aria-pressed="true"], .page-head .month[aria-pressed="true"], .page-head .chip[aria-pressed="true"] { background: #F4B942; border-color: #F4B942; color: #2A1A10; }
.cat.on { outline-color: #F4B942; } .cat.on span { background: #F4B942; color: #2A1A10; } .day.on { outline-color: #F4B942; } .day.on i { background: #F4B942; color: #2A1A10; }
/* softer cards */
.card, .pcard, .filters, .likes-bar:not(.on), .lk-like, .lk-row { border-color: transparent; box-shadow: 0 6px 22px rgba(80, 50, 20, .10); }
.card { border-radius: 26px; }
/* photos on Book and Budget */
.with-ph { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; } .with-ph .thumb, .with-ph img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; } .with-ph .t { display: grid; min-width: 0; }
.todo li { border-color: transparent; box-shadow: 0 3px 12px rgba(80, 50, 20, .08); border-radius: 20px; }
