/* Tropical Resort and Marina: shared parts. Load after tokens.css. Plain CSS, no build step.
   Pieces: type helpers, buttons, bands, plates, caption strip, proof row, room entry, first screen, form and message states. */

.t-offer { font: 700 var(--fs-offer)/1 var(--font-display); letter-spacing: var(--ls-display); text-transform: uppercase; }
.t-h1 { font: 700 var(--fs-h1)/var(--lh-tight) var(--font-display); letter-spacing: var(--ls-display); }
.t-h2 { font: 700 var(--fs-h2)/var(--lh-head) var(--font-display); letter-spacing: var(--ls-display); }
.t-h3 { font: 600 var(--fs-h3)/var(--lh-head) var(--font-display); }
.t-lead { font: 400 var(--fs-lead)/1.45 var(--font-read); }
.t-body { font: 400 var(--fs-body)/var(--lh-body) var(--font-read); }
.t-ui { font: 500 var(--fs-ui)/1.35 var(--font-ui); }
.t-small { font: 400 var(--fs-small)/1.4 var(--font-ui); }
.t-legal { font: 400 var(--fs-legal)/1.4 var(--font-ui); }
.t-label { font: 600 var(--fs-ui)/1.2 var(--font-display); color: var(--label); }
/* Water names go in italic, the way river charts set them: on Lake Beresford, St. Johns River. */
.water { font-family: var(--font-read); font-style: italic; font-weight: 400; }

/* Buttons. Real <a> or <button>. Solid fill, slight radius, a visible focus ring. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap-min); padding: 0 var(--s-5);
  border: 2px solid var(--cta-edge); border-radius: var(--r-btn);
  background: var(--cta); color: var(--cta-ink);
  font: 600 1.1875rem/1 var(--font-display); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* Android paints a blue wash over the orange on tap. :active is the pressed look. */
}
.btn:active { background: var(--cta-press); border-color: var(--cta-press-edge); }
/* Hover only where a mouse exists. On a phone a hover style sticks after the tap and the button looks stuck. */
@media (hover: hover) { .btn:hover { background: var(--cta-press); border-color: var(--cta-press-edge); } }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
/* Solid buttons sit up off the page: a pressed-orange bottom edge and a soft orange glow, so they read as tappable
   against the strong color bands. A mouse lifts them a touch. A press pushes them down. Nathan, Nov 23, 2026. */
.btn:not(.btn--quiet) { box-shadow: 0 3px 0 var(--cta-press-edge), 0 6px 18px color-mix(in srgb, var(--cta) 35%, transparent); transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.12s ease-out; }
@media (hover: hover) { .btn:not(.btn--quiet):hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--cta-press-edge), 0 10px 24px color-mix(in srgb, var(--cta) 45%, transparent); } }
.btn:not(.btn--quiet):active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cta-press-edge), 0 3px 8px color-mix(in srgb, var(--cta) 25%, transparent); }
@media (prefers-reduced-motion: reduce) { .btn:not(.btn--quiet), .btn:not(.btn--quiet):hover, .btn:not(.btn--quiet):active { transition: none; transform: none; } }
.btn--quiet:active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (hover: hover) { .btn--quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); } }
/* Working: darker fill, a small turning ring, and the label says what is happening. Full opacity, so the words keep their contrast. */
.btn[aria-busy="true"] { background: var(--cta-press); border-color: var(--cta-press-edge); cursor: progress; }
.btn[aria-busy="true"]::before { content: ""; flex: none; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tr-turn 0.9s linear infinite; }
@keyframes tr-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn[aria-busy="true"]::before { animation: none; } }
/* Not available: dashed edge and no fill, so it does not rely on gray. Never on the main booking or code button: those stay live and explain what is missing. */
.btn[disabled], .btn[aria-disabled="true"] { background: transparent; color: var(--ink-muted); border: 2px dashed var(--ink-muted); cursor: not-allowed; }

/* Band: the signature device. A flat strip that runs edge to edge directly under a clean photo. */
.band { display: block; padding: var(--s-3) var(--gutter-phone); border-radius: 0; }
.band--setup { background: var(--accent); color: var(--accent-ink); font: 700 var(--fs-h2)/1 var(--font-display); }
.band--offer { background: var(--cta); color: var(--cta-ink); font: 700 var(--fs-offer)/1 var(--font-display); text-transform: uppercase; }
.band--terms { background: var(--paper); color: var(--ink); font: 500 var(--fs-small)/1.35 var(--font-ui); }

/* Plate: a number over a small label. Square, flat, hairline edge. */
.plate { display: inline-flex; flex-direction: column; align-items: center; gap: var(--s-1); padding: var(--s-3) var(--s-4); background: var(--panel); color: var(--panel-ink); border: 2px solid var(--rule-strong); border-radius: 0; }
.plate__num { font: 700 2.5rem/1 var(--font-display); letter-spacing: var(--ls-plate); }
.plate__label { font: 500 0.8125rem/1.2 var(--font-ui); color: var(--panel-muted); }
/* Set data-palette on the plate to recolor it. Example: class="plate plate--paper" data-palette="deep-water". */
.plate--paper { background: var(--paper); color: var(--ink); border-color: var(--rule-strong); }
.plate--paper .plate__label { color: var(--ink-muted); }

/* Caption strip: the words go under the photo, never on it. Ends with the town, the way an old postcard does. */
.caption-strip { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); background: var(--panel); color: var(--panel-ink); font: 500 var(--fs-small)/1.25 var(--font-ui); border-bottom: var(--rule-hair) solid var(--rule); }
.caption-strip img { height: 22px; width: auto; flex: none; }

/* Proof row: big number over a small source label, hairlines between. */
.proof-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: var(--rule-heavy) solid var(--ink); border-bottom: var(--rule-hair) solid var(--rule); }
.proof-row > div { padding: var(--s-2) var(--s-2) var(--s-3); border-left: var(--rule-hair) solid var(--rule); }
.proof-row > div:first-child { border-left: 0; padding-left: 0; }
.proof-row b { display: block; font: 700 1.75rem/1.1 var(--font-display); }
.proof-row span { display: block; font: 400 0.8125rem/1.25 var(--font-ui); color: var(--ink-muted); }

/* Room entry: rule on top, name left, from price right, one line of facts, one small line of terms. */
.room-entry { border-top: var(--rule-heavy) solid var(--ink); padding-top: var(--s-2); }
.room-entry__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.room-entry__name { font: 700 1.625rem/1.1 var(--font-display); margin: 0; }
.room-entry__price { font: 600 1.0625rem/1.1 var(--font-ui); white-space: nowrap; }
.room-entry__facts { font: 400 var(--fs-small)/1.4 var(--font-read); margin: var(--s-1) 0 0; }
.room-entry__terms { font: 400 var(--fs-legal)/1.4 var(--font-ui); color: var(--ink-muted); margin: var(--s-1) 0 0; }

/* Desktop first screen. Photo at its own 16:9 shape on the left, words and dates in a panel on the right.
   Nothing crops the photo, and the dates stay on screen at any window height from 1024 wide up.
   Under 1024 px this stacks: photo, caption strip, panel. Reference: patterns/desktop-first-screen.html */
.first-screen { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--paper); color: var(--ink); }
.first-screen__photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--c-deep-water); }
.first-screen__panel { background: var(--accent); color: var(--accent-ink); padding: var(--s-4) var(--gutter-phone); }
.first-screen__panel h1 { font: 700 var(--fs-h1)/1.04 var(--font-display); letter-spacing: var(--ls-display); margin: 0; }
.first-screen__lead { font: 400 1.125rem/1.38 var(--font-read); margin: var(--s-2) 0 var(--s-3); }
.first-screen__dates { background: var(--paper); color: var(--ink); border: var(--rule-hair) solid var(--rule); padding: var(--s-3); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.first-screen__dates .btn { width: 100%; }
.first-screen__price { grid-column: 1 / -1; margin: 0; font: 400 var(--fs-small)/1.35 var(--font-ui); }
.first-screen__price b { font-weight: 700; }
.first-screen__more { margin: var(--s-3) 0 0; font: 600 var(--fs-ui)/1.3 var(--font-ui); }
.first-screen__more a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1024px) {
  .first-screen { grid-template-columns: minmax(0, 1fr) clamp(440px, 37vw, 600px); align-items: stretch; }
  .first-screen__panel { padding: var(--s-5); display: flex; flex-direction: column; justify-content: center; }
  .first-screen__panel h1 { font-size: clamp(2.5rem, 3.4vw, 3.5rem); }
}

/* Forms and messages. Named tr- so they never collide with a page's own .field. Reference: patterns/ui-states.html
   Fields sit on a white or terrazzo panel only. Text is 17 px, because iOS zooms the page into any field under 16 px. */
.tr-field { display: grid; gap: var(--s-1); min-width: 0; }
.tr-field label, .tr-field__label { font: 600 var(--fs-ui)/1.25 var(--font-ui); color: var(--field-ink); }
.tr-field .opt { font-weight: 400; color: var(--c-slate); }
.tr-field input, .tr-field select, .tr-field textarea {
  display: block; box-sizing: border-box; width: 100%; min-height: var(--tap-min); padding: 0 var(--s-3);
  background-color: var(--field-bg); color: var(--field-ink); border: 2px solid var(--field-edge); border-radius: var(--r-field);
  font: 500 1.0625rem/1.2 var(--font-ui);
}
.tr-field textarea { padding: var(--s-3); min-height: 112px; }
.tr-field input:focus-visible, .tr-field select:focus-visible, .tr-field textarea:focus-visible { outline: 3px solid var(--field-focus); outline-offset: 1px; }
/* Error edge is 3 px with the padding trimmed 1 px, so the text does not jump when the error appears. */
.tr-field [aria-invalid="true"] { border-width: 3px; border-color: var(--state-error); padding-left: calc(var(--s-3) - 1px); }
.tr-field__hint { font: 400 var(--fs-small)/1.35 var(--font-ui); color: var(--c-slate); }
.tr-err { display: flex; gap: var(--s-1); align-items: flex-start; font: 600 var(--fs-small)/1.33 var(--font-ui); color: var(--state-error); }
.tr-err::before { content: "!"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--state-error); color: var(--c-hull-white); font: 700 0.8125rem/20px var(--font-ui); text-align: center; }
.tr-err:empty, .tr-err[hidden] { display: none; }

/* Checkbox: the whole row is the target, 48 px tall at least. */
.tr-check { display: flex; gap: var(--s-3); align-items: flex-start; min-height: var(--tap-min); padding: var(--s-1) 0; color: var(--field-ink); cursor: pointer; }
.tr-check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--c-deep-water); cursor: pointer; }
.tr-check input:focus-visible { outline: 3px solid var(--field-focus); outline-offset: 2px; }

/* Message box: heavy rule, icon, a bold line that says what happened, then the next step. Flat white, no tinted wash. */
.tr-note { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: var(--s-2); padding: var(--s-3); background: var(--field-bg); color: var(--field-ink); border: var(--rule-hair) solid var(--c-sand-rule); border-left: var(--rule-heavy) solid var(--state-wait); font: 400 var(--fs-small)/1.38 var(--font-ui); }
.tr-note > svg { width: 22px; height: 22px; color: var(--state-wait); }
.tr-note b { font-weight: 700; }
.tr-note a { color: var(--c-lake-blue); }
.tr-note--error { border-left-color: var(--state-error); }
.tr-note--error > svg { color: var(--state-error); }
.tr-note--ok { border-left-color: var(--state-ok); }
.tr-note--ok > svg { color: var(--state-ok); }

/* Date cell. Open has an edge and bold type, closed has neither, picked is filled and carries a word. */
.tr-day { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--c-slate); font: 400 var(--fs-ui)/1 var(--font-ui); }
.tr-day--open { background: var(--field-bg); color: var(--field-ink); border: 2px solid var(--field-ink); font-weight: 700; cursor: pointer; }
.tr-day--picked { background: var(--c-deep-water); color: var(--c-terrazzo); font-weight: 700; }
.tr-day--picked small { font: 600 0.8125rem/1 var(--font-ui); margin-top: 2px; }
.tr-day--closed { text-decoration: line-through; }
.tr-day:focus-visible { outline: 3px solid var(--field-focus); outline-offset: 2px; }

/* A light panel inside a dark section. The section's focus and link colors are meant for its dark ground and can vanish on the panel.
   Live Oak and Pine set focus to terrazzo, so a ring on a terrazzo panel measures 1:1. Add this class to the panel. */
.tr-on-panel { --focus: var(--c-deep-water); --link: var(--c-lake-blue); --ink: var(--c-deep-water); --ink-muted: var(--c-slate); color: var(--c-deep-water); }

/* Price stack: the regular rate beside the offer price, same room and same nights. Words carry the meaning, so no strikethrough.
   Orange stays off it: orange means act, and this is information. Rules in BRAND section 10a. */
.tr-stack { display: grid; grid-template-columns: 1fr 1fr; border: var(--rule-hair) solid var(--c-sand-rule); background: var(--c-hull-white); color: var(--c-deep-water); }
.tr-stack__cell { display: grid; gap: 2px; padding: 8px 12px 9px; align-content: end; }
.tr-stack__cell--now { background: var(--c-block-aqua); }
.tr-stack__label { font: 600 var(--fs-small)/1.2 var(--font-ui); }
.tr-stack__num { font: 700 1.75rem/1.05 var(--font-display); white-space: nowrap; }
/* The regular total stays the larger number until the code is applied: FTC fee rule FAQ, research audit 3.6. */
.tr-stack__cell--now .tr-stack__num { font-size: 1.375rem; }

/* Logo image in a header. If the file fails, the name shows on one line in the display face, not as clipped underlined serif. Keep alt to "Tropical Resort and Marina". */
.tr-logo-img { display: block; font: 700 1.125rem/1.1 var(--font-display); color: var(--ink); white-space: nowrap; overflow: hidden; }
a:has(> .tr-logo-img) { text-decoration: none; }


/* Scrolling Google review row (plan/kit/build-reviews.py). Swipe on a phone, arrows on a computer. The marks keep each site's own color, set here once. */
:root { --mark-google: #4285F4; --mark-google-red: #EA4335; --mark-google-yellow: #FBBC05; --mark-google-green: #34A853; --mark-expedia: #191E3B; --mark-facebook: #0866FF; --mark-star: #FBBC05; }
.g-red { fill: var(--mark-google-red); }
.g-blue { fill: var(--mark-google); }
.g-yellow { fill: var(--mark-google-yellow); }
.g-green { fill: var(--mark-google-green); }
.revrow { position: relative; margin-top: var(--s-4); }
.revrow__track { display: flex; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 2px 2px var(--s-3); overscroll-behavior-x: contain; scrollbar-width: thin; }
.revrow__track:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.revcard { flex: 0 0 min(82%, 300px); scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--s-2); margin: 0; padding: var(--s-3); background: var(--c-hull-white); color: var(--c-deep-water); border: 1px solid var(--rule); border-radius: 12px; }
.revcard__who { display: flex; align-items: center; gap: var(--s-2); }
.revcard__avatar { position: relative; overflow: hidden; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-deep-water); color: var(--c-hull-white); font: 700 0.9375rem/1 var(--font-display); }
.revcard__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; }
.revcard__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; font: 600 0.9375rem/1.2 var(--font-ui); }
.revcard__name b { font-weight: 700; overflow-wrap: anywhere; }
.revcard__stars { display: inline-flex; gap: 1px; }
.revcard__stars svg { fill: var(--mark-star); }
.revcard__g { flex: none; margin-left: auto; align-self: flex-start; }
.revcard blockquote { margin: 0; }
.revcard blockquote p { margin: 0; font: 400 1rem/1.45 var(--font-read); }
.revcard blockquote p::before { content: "\201C"; }
.revcard blockquote p::after { content: "\201D"; }
.revrow__nav { display: flex; justify-content: flex-end; gap: var(--s-2); margin-top: var(--s-1); }
.revrow__nav[hidden] { display: none; }
.revrow__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 2px solid var(--c-deep-water); border-radius: 50%; background: var(--c-hull-white); color: var(--c-deep-water); cursor: pointer; }
.revrow__btn .icon { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.revrow__btn:disabled { opacity: 0.35; cursor: default; }
.revrow__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (min-width: 900px) { .revcard { flex-basis: 320px; } }
