/* Coast look. Colours, radii and fonts come from theme.css tokens only. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--c-bg); }
body { font-family: var(--f-sans); margin: 0; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; line-height: 1.5; }
main { max-width: 52rem; margin: 0 auto; padding: 1rem; }
main.wide { max-width: none; padding: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--c-accent); text-underline-offset: .15em; }
a:hover { color: var(--c-accent-2); }
h1, h2, h3 { font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: 1.6rem; margin: .5rem 0; }
h2 { font-size: 1.2rem; margin: 0 0 .25rem; }
h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.test-banner { background: color-mix(in srgb, var(--c-warn) 22%, var(--c-bg)); color: var(--c-text); border-bottom: 1px solid var(--c-warn); padding: .5rem 1rem; text-align: center; font-weight: 600; }
footer { text-align: center; padding: 1.5rem 1rem 2rem; font-size: .85rem; color: var(--c-text-2); border-top: 1px solid var(--c-line); margin-top: 1.5rem; overflow-wrap: anywhere; }
footer a { color: var(--c-text-2); }
footer a:hover { color: var(--c-accent-2); }

/* Shared header: wordmark, sister-site links, Trip map / Classic search switch. Below 820px the header is the wordmark and the switch on one row (the switch may wrap under the wordmark at 320px); the sister-site links move to a line after the footer. No script needed. */
.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-line-2); }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; max-width: 72rem; margin: 0 auto; padding: .35rem 1rem; }
.site-header a { color: var(--c-text-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; border-radius: var(--r-pill); font-weight: 600; }
.site-header a:hover { color: var(--c-text); }
.site-header .wordmark { color: var(--c-accent); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; padding-left: 0; margin-right: auto; }
.site-header .wordmark:hover { color: var(--c-accent-2); }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem; }
.foot-links { display: none; }
.site-header .switch { background: var(--c-surface-2); border: 1px solid var(--c-line-2); border-radius: var(--r-pill); padding: 2px; gap: 0; flex: none; }
.site-header .switch a { padding: 0 .9rem; color: var(--c-text-2); }
.site-header .switch a[aria-current="page"] { background: var(--c-accent); color: var(--c-accent-ink); }
@media (max-width: 819px) {
  .site-header .bar { gap: 0 .5rem; padding: .35rem .75rem; }
  .site-header .wordmark { font-size: 1rem; }
  .site-header .links { display: none; }
  .site-header .switch a { padding: 0 .45rem; font-size: .9rem; }
  .foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .25rem; padding: 0 1rem 1.5rem; }
  .foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; color: var(--c-text-2); }
}

.lead, .note, .city, .times, .near-line, .view-line { color: var(--c-text-2); }
.near-line, .view-line { font-size: .9rem; }
.note { font-size: .9rem; }
form.search { display: grid; gap: .75rem; grid-template-columns: 1fr; background: var(--c-surface); padding: 1rem; border-radius: var(--r-3); border: 1px solid var(--c-line-2); box-shadow: var(--shadow-1); }
form.search label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 700; color: var(--c-text-2); }
input, select, button { font: inherit; padding: .7rem .8rem; border-radius: var(--r-1); border: 1px solid var(--c-line-2); width: 100%; min-height: 44px; color: var(--c-text); background: var(--c-surface-2); }
input, select { color-scheme: dark; }
input::placeholder { color: var(--c-text-2); }
input:focus-visible, select:focus-visible { border-color: var(--c-accent); }
button { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); border-radius: var(--r-pill); font-weight: 800; cursor: pointer; padding-left: 1.25rem; padding-right: 1.25rem; }
a.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem 1.25rem; border-radius: var(--r-pill); background: var(--c-accent); color: var(--c-accent-ink); border: 1px solid var(--c-accent); font-weight: 800; text-decoration: none; margin: .15rem .25rem .15rem 0; }
a.button:visited { color: var(--c-accent-ink); }
a.button:hover { background: var(--c-accent-2); border-color: var(--c-accent-2); color: var(--c-accent-ink); }
a.button.secondary { background: transparent; color: var(--c-text); border-color: var(--c-line-2); }
a.button.secondary:visited { color: var(--c-text); }
a.button.secondary:hover { background: var(--c-accent-soft); border-color: var(--c-accent); color: var(--c-text); }
button:hover { background: var(--c-accent-2); border-color: var(--c-accent-2); }
/* The map library's own control buttons keep the library's size and shape: undo the site's pill button on them (both maps). */
.maplibregl-ctrl button { min-height: 0; min-width: 0; margin: 0; font-weight: 400; border-radius: 0; }
.maplibregl-ctrl button:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
body.loading form.search button { opacity: .6; }
.msg { background: color-mix(in srgb, var(--c-warn) 16%, var(--c-surface)); border: 1px solid color-mix(in srgb, var(--c-warn) 55%, transparent); border-radius: var(--r-1); padding: .75rem 1rem; }
.results { margin: 1rem 0; }
.cards { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1rem; }
.searching { position: relative; margin: 1rem 0; padding-bottom: .6rem; color: var(--c-text-2); }
.searching::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 30%; border-radius: 2px; background: var(--c-accent); animation: sweep 1.2s ease-in-out infinite alternate; }
.searching:has(~ .results) { display: none; }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(233%); } }
button[disabled] { opacity: .6; cursor: progress; }
a.busy { position: relative; cursor: progress; }
a.busy::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 30%; border-radius: 2px; background: var(--c-accent); animation: sweep 1.2s ease-in-out infinite alternate; }
/* Prices older than the limit (busy.js adds .prices-expired): no price and no Book button, one line in their place. */
.prices-expired .price, .prices-expired .per-night, .prices-expired form, .prices-expired .badge.lowest { display: none; }
@media (prefers-reduced-motion: reduce) { .searching::after, a.busy::after { animation: none; width: 100%; opacity: .4; } }
.card { background: var(--c-surface); border: 1px solid var(--c-line-2); border-radius: var(--r-2); overflow: hidden; box-shadow: var(--shadow-1); }
.card a { color: inherit; text-decoration: none; display: block; }
.card a:hover h2 { color: var(--c-accent-2); }
.card img { width: 100%; height: 11rem; object-fit: cover; display: block; }
.card .body { padding: .75rem 1rem 1rem; }
.price { margin: .5rem 0; }
.fee { color: var(--c-text-2); font-size: .9rem; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: var(--r-pill); font-size: .8rem; font-weight: 700; }
.badge.ok { background: color-mix(in srgb, var(--c-good) 18%, var(--c-surface)); color: var(--c-good); }
.badge.warn { background: color-mix(in srgb, var(--c-warn) 18%, var(--c-surface)); color: var(--c-warn); }

.desc { overflow-wrap: anywhere; color: var(--c-text-2); }
/* "Free cancellation only": one toggle button (a link) over the results and the room list, away from the forms; the line saying how many rooms it hides sits under it. */
.free-hidden a { white-space: nowrap; }
.room { background: var(--c-surface); border: 1px solid var(--c-line-2); border-radius: var(--r-2); padding: 1rem; margin: 1rem 0; }
.rate { border-top: 1px solid var(--c-line); padding: .75rem 0; }
.rate:first-of-type { border-top: 0; }
.policy { margin: .5rem 0; padding-left: 1.1rem; font-size: .9rem; color: var(--c-text-2); overflow-wrap: anywhere; }
.stay { color: var(--c-text-2); font-weight: 600; margin: .25rem 0; }
.summary { background: var(--c-surface); border: 1px solid var(--c-line-2); border-radius: var(--r-2); padding: 1rem; margin: 1rem 0; }
/* Checkout: step list, and the summary beside the form (above it on phones). */
.steps { display: flex; flex-wrap: wrap; gap: .35rem .5rem; list-style: none; margin: .5rem 0 1rem; padding: 0; font-size: .9rem; color: var(--c-text-3); }
.steps li { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem .25rem .3rem; border: 1px solid var(--c-line); border-radius: var(--r-pill); }
.steps .num { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; border-radius: var(--r-pill); background: var(--c-surface-2); font-weight: 700; }
.steps .done { color: var(--c-text-2); }
.steps [aria-current="step"] { color: var(--c-text); font-weight: 700; border-color: var(--c-accent); }
.steps [aria-current="step"] .num { background: var(--c-accent); color: var(--c-accent-ink); }
.checkout { display: grid; gap: 1rem; }
.checkout-main { min-width: 0; }
.checkout .summary { margin: 0; }
@media (min-width: 900px) {
  main:has(.checkout) { max-width: 72rem; }
  .checkout { grid-template-columns: 3fr 2fr; align-items: start; }
  .checkout .summary { grid-column: 2; grid-row: 1; }
  .checkout-main { grid-column: 1; grid-row: 1; }
  .sticky { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow-y: auto; }
}
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: .75rem 0; }
.facts dt { color: var(--c-text-2); }
.facts dd { margin: 0; min-width: 0; }
.holder { display: grid; gap: .75rem; background: var(--c-surface); border: 1px solid var(--c-line-2); border-radius: var(--r-2); padding: 1rem; }
.holder label { display: grid; gap: .25rem; font-weight: 700; color: var(--c-text-2); }
/* The payment provider draws a light form; it gets a light panel, and our own messages inside it read on that panel. */
#pay { background: var(--c-paper); color: var(--c-paper-ink); color-scheme: light; padding: 1rem; border-radius: var(--r-2); }
#pay p { color: var(--c-paper-ink); }
.board { color: var(--c-text-2); }
@media (min-width: 600px) { form.search { grid-template-columns: repeat(3, 1fr) auto; align-items: end; } button { width: auto; } }

label.check { display: flex; gap: .5rem; align-items: flex-start; margin: .75rem 0; min-width: 0; overflow-wrap: break-word; color: var(--c-text); font-weight: 400; }
label.check input[type="checkbox"] { flex: none; width: 1.25rem; min-width: 1.25rem; min-height: 0; height: 1.25rem; padding: 0; margin-top: .15rem; accent-color: var(--c-accent); }
label.check > span { min-width: 0; flex: 1; }
.err { color: var(--c-bad); font-size: .9rem; margin: .25rem 0 .5rem; overflow-wrap: break-word; }
main, main p, main li, main dd, main td, main address, .summary, .room, .card, .msg, .note { overflow-wrap: break-word; }

/* Hotel page: back links, gallery, facts, small map, rate layout. Tokens only. */
.backs { margin: .5rem 0; }
.gallery { display: grid; gap: .5rem; margin: .75rem 0; min-width: 0; }
.gallery img { display: block; background: var(--c-surface-2); border-radius: var(--r-1); object-fit: cover; overflow: hidden; }
.photo-main { width: 100%; aspect-ratio: 3 / 2; max-height: 26rem; }
.photo-row { display: flex; gap: .5rem; overflow-x: auto; min-width: 0; padding-bottom: .25rem; }
.photo-row img { flex: none; height: 7rem; aspect-ratio: 3 / 2; width: auto; }
.hotel-facts { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: .75rem 0; color: var(--c-text-2); font-weight: 600; }
.minimap-block { margin: .75rem 0; }
.minimap-block[hidden] { display: none; }
/* No space is reserved until the map has loaded (script adds .ready on style.load), so a failed map or no script leaves no jump and no empty box. */
.minimap { height: 0; overflow: hidden; border-radius: var(--r-2); background: var(--c-surface-2); }
.minimap-block.ready .minimap { height: 220px; border: 1px solid var(--c-line-2); }
.minimap-dot { width: 1rem; height: 1rem; border-radius: var(--r-pill); background: var(--c-accent); border: 2px solid var(--c-paper); box-shadow: var(--shadow-1); }
.cancel-line { margin: .5rem 0 .25rem; font-weight: 700; }
.cancel-line.ok { color: var(--c-good); }
.cancel-line.warn { color: var(--c-warn); }
.badge.lowest { background: var(--c-accent-soft); color: var(--c-accent-2); }
/* Member prices (only rendered while MEMBER_PRICES is on): the badge, the struck public price, and the logged-out sign-in label. */
.badge.member { background: var(--c-accent); color: var(--c-paper); margin-right: .25rem; }
s.was { color: var(--c-text-2); font-size: .9rem; margin-left: .25rem; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.member-label { margin: .25rem 0 .5rem; font-size: .9rem; }
.member-label a { color: var(--c-accent-2); font-weight: 700; }
.card .member-label { padding: 0 1rem .75rem; margin: 0; }
.card .member-label a { display: inline; }
.prices-expired .member-label { display: none; }
.prices-expired .bestnear { display: none; } /* the Lowest-price-near block shows prices as link text */
.per-night { color: var(--c-text-2); font-size: .9rem; margin-top: .5rem; }

/* Member accounts (only rendered while MEMBERS is on). */
.site-header .account-link { flex: none; border: 1px solid var(--c-line-2); background: var(--c-surface-2); color: var(--c-text); }
.site-header .account-link:hover { border-color: var(--c-accent); }
form.account { max-width: 26rem; margin: 1rem 0; }
form.account label { display: block; margin: .5rem 0 .25rem; font-weight: 600; }
form.account label.check { display: flex; font-weight: 400; }
form.account button { margin-top: .75rem; }
form.interests fieldset { border: 1px solid var(--c-line-2); border-radius: var(--r-1); padding: .5rem 1rem; margin: 0; }
form.interests legend { font-weight: 800; padding: 0 .35rem; }
ul.account-links { list-style: none; padding: 0; margin: 1rem 0; }
ul.account-links li { margin: .5rem 0; }

/* Party fields (adults, children, one age select per child): script hides the ages that are not needed; without it all three show. */
label.age[hidden] { display: none; }

/* The free-cancellation toggle: a pill link with aria-pressed, at least 44px tall, on or off at a glance (accent fill and "On" when pressed). */
.free-row { margin: .5rem 0; }
a.free-toggle { display: inline-flex; align-items: center; justify-content: space-between; gap: .6rem; max-width: 100%; min-height: 44px; padding: .25rem .35rem .25rem 1rem; border-radius: var(--r-pill); border: 1px solid var(--c-line-2); background: var(--c-surface-2); color: var(--c-text); font-weight: 700; text-decoration: none; }
a.free-toggle .free-label { min-width: 0; overflow-wrap: anywhere; }
a.free-toggle .free-state { flex: none; min-width: 3rem; padding: .3rem .7rem; border-radius: var(--r-pill); background: var(--c-surface-3); color: var(--c-text-2); font-size: .85rem; text-align: center; }
a.free-toggle[aria-pressed="true"] { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
a.free-toggle[aria-pressed="true"] .free-state { background: var(--c-accent-ink); color: var(--c-accent-2); }
a.free-toggle:hover { border-color: var(--c-accent); }

/* Adults: four big buttons in a row (radio inputs styled as a segmented control), each at least 44px tall. The radio stays real and
   focusable; the chosen one is filled. Children sit behind "+ Children" when script is on; without script everything shows. */
fieldset.adults { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.adults legend { padding: 0; margin: 0 0 .25rem; font-size: .9rem; font-weight: 700; color: var(--c-text-2); }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--c-line-2); border-radius: var(--r-pill); overflow: hidden; background: var(--c-surface-2); }
.seg .seg-opt { position: relative; display: block !important; margin: 0; padding: 0; min-width: 0; }
.seg-opt input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.seg-opt span { display: flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 800; color: var(--c-text); }
.seg-opt + .seg-opt span { border-left: 1px solid var(--c-line-2); }
.seg-opt input:checked + span { background: var(--c-accent); color: var(--c-accent-ink); }
.seg-opt input:focus-visible + span { box-shadow: inset 0 0 0 3px var(--c-text); }
.kids { display: contents; }
.kids[hidden] { display: none; }
button.more-kids { width: auto; min-height: 44px; justify-self: start; background: transparent; color: var(--c-accent-2); border: 1px dashed var(--c-line-2); font-weight: 700; }
button.more-kids[hidden] { display: none; }

/* Room Groom: the simpler room list (views/rooms.js), one card per room. Only rendered with ROOM_GROOM optin/on. Tokens only. */
.room-card { background: var(--c-surface); border: 1px solid var(--c-line-2); border-radius: var(--r-2); padding: 1rem; margin: 1rem 0; min-width: 0; }
.room-card h3 { margin-bottom: .25rem; }
.lead-terms { margin: .25rem 0; }
.lead-board { color: var(--c-text-2); font-weight: 600; }
.refund { display: inline-flex; align-items: baseline; gap: .35rem; font-weight: 700; }
.refund.ok { color: var(--c-good); }
.refund.warn { color: var(--c-warn); }
.refund .ico { display: inline-grid; place-items: center; flex: none; width: 1.2rem; height: 1.2rem; border-radius: var(--r-pill); border: 2px solid currentColor; font-size: .75rem; line-height: 1; }
.room-card .per-night { margin-top: .25rem; }
form.book-lead button { width: 100%; min-height: 48px; margin: .25rem 0 .5rem; }
.cancel-details { margin: .25rem 0 .5rem; }
.cancel-details summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--c-accent); font-weight: 700; }
.cancel-details .pol-head { margin: .5rem 0 0; font-weight: 700; color: var(--c-text-2); font-size: .9rem; }
.others-head { margin: .75rem 0 .25rem; font-weight: 800; }
.opts { list-style: none; margin: 0; padding: 0; }
.opt { border-top: 1px solid var(--c-line); padding: .5rem 0; min-width: 0; }
.opt-name { margin: 0 0 .15rem; }
.opt-row { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.lead-price { margin: .35rem 0 .25rem; }
.lead-total { font-size: 1.15rem; }
.lead-sub { color: var(--c-text-2); font-size: .9rem; }
.opt-text { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.opt-name { font-weight: 700; }

.opt-price { margin: 0; }
.opt-price .fee { font-size: .85rem; }
.opt-price .fee::before { content: "· "; margin-left: .3em; }
.opt form { flex: none; }
.opt form button { width: auto; min-width: 5.5rem; }
.every-rate { margin: .5rem 0 1rem; }
.every-rate a, .list-switch a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.prices-expired .opt-price, .prices-expired .opt form { display: none; }
