/* ============================================================
   TOKENS — project-specific. Replace this whole file per client.
   Palette: Portis Cove Cottage, a fell-side cottage above the Northumberland
   coast. Moss + slate + chalk + driftwood — a working coastline,
   not a postcard. No cream/terracotta default here on purpose.
   ============================================================ */

:root {
  /* ---- Color: named, 6 values ---- */
  --moss:        #3F5B44; /* deep moss green — primary accent, links, CTAs */
  --moss-dark:   #2C4131; /* moss hover/active state */
  --slate:       #55606B; /* slate blue-grey — secondary text, meta */
  --ink:         #22261F; /* near-black warm ink — headings, body text */
  --chalk:       #F6F3EC; /* chalk white — page background */
  --driftwood:   #E7E0D0; /* driftwood — card/alt-section background */
  --tide:        #A9C2BE; /* pale sea-glass teal — hairlines, subtle fills */
  --tide-deep:   #6E8C88; /* deeper sea-glass — borders on tide fills */

  /* Every token file needs an --accent alias so shared base rules
     (focus rings, link defaults) never silently fall back when a
     project uses non-standard palette variable names. */
  --accent:       var(--moss);
  --accent-dark:  var(--moss-dark);
  --surface:      var(--chalk);
  --surface-alt:  var(--driftwood);
  --text:         var(--ink);
  --text-muted:   var(--slate);
  --border:       var(--tide);
  --border-strong: var(--tide-deep);
  --error:        #B3261E;
  --success:      #15803D;

  /* ---- Type ---- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  /* Fully consumed scale — every one of these is read somewhere in
     base.css/components.css. An unused token silently falls back
     to the browser default, which is the usual way this bites. */
  --fs-h1: clamp(2.4rem, 4.2vw + 1rem, 4.2rem);
  --fs-h2: clamp(1.9rem, 2.4vw + 1rem, 2.75rem);
  --fs-h3: clamp(1.35rem, 1vw + 1rem, 1.7rem);
  --fs-h4: 1.15rem;
  --fs-body: 1.05rem;
  --fs-small: 0.9rem;
  --fs-mono: 0.95rem;
  --lh-tight: 1.15;
  --lh-normal: 1.6;

  /* ---- Layout ---- */
  --container-max: 74rem;
  --container-pad: clamp(1.5rem, 6vw, 5rem);
  --radius: 0.6rem;
  --radius-lg: 1rem;
  --nav-height: 4.25rem;
  --shadow-card: 0 1px 2px rgba(34,38,31,0.06), 0 8px 24px rgba(34,38,31,0.08);
  --shadow-pop: 0 12px 28px rgba(34,38,31,0.14);
}
/* ============================================================
   BASE — reset + element defaults. Reusable as-is across projects.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html {
  /* A sticky nav needs this globally, set once, equal to the nav's
     own height — otherwise every anchor jump (fragment nav,
     scrollIntoView, in-page links) lands its target flush under
     the nav bar instead of below it. */
  scroll-padding-top: var(--nav-height);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; padding: 0; cursor: pointer; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 42rem;
}

/* Visible keyboard focus everywhere — never suppressed, only
   restyled. Reads from --accent so it never silently falls back
   on a project using a differently-named palette variable. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Respect reduced motion globally rather than per-component. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Progressive-enhancement gate. An inline script in <head> adds
   the "js" class to <html> immediately; anything that should only
   be hidden once JS is confirmed running is gated behind html.js
   so it degrades to visible (stacked/expanded) with JS off,
   instead of being permanently unreachable via [hidden] alone. */
html:not(.js) [data-js-hide] { display: revert !important; }

/* Many shared flex/card utilities (.stack, .cluster, .split) set
   display:flex on their children, which silently beats the
   browser's own [hidden]{display:none} default on any element
   that also carries one of those classes. This override wins
   regardless of what utility classes a hidden element also has. */
[hidden] { display: none !important; }
/* ============================================================
   LAYOUT — generic primitives. Rarely needs edits per project.
   Breakpoints used everywhere: 640 (mobile), 960 (tablet & down),
   961 (desktop & up).
   ============================================================ */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: clamp(3rem, 6vw, 6rem); }
.section--alt  { background: var(--surface-alt); }
.section--dark { background: var(--ink); color: var(--chalk); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--chalk); }

.stack > * + * { margin-top: var(--stack-gap, 1.25rem); }
.stack--tight  { --stack-gap: 0.6rem; }
.stack--loose  { --stack-gap: 2.5rem; }
/* .stack's margin-top trick does nothing to inline elements — any
   bare <a> list built on .stack needs this or it collapses onto
   one line despite correct markup. */
.stack > a { display: block; }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, 0.75rem);
}
.cluster--tight { --cluster-gap: 0.4rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.split--center { align-items: center; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem;
}

/* Fixed 3-column grid. Historically dropped to 2 columns at
   tablet width and orphaned the third card — fixed at the
   primitive itself, not patched per project. */
.grid-fixed-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 960px) {
  .grid-fixed-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-fixed-3 { grid-template-columns: 1fr; }
}

/* Two-column form row, collapsing under 640px. */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--ink);
  color: var(--chalk);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }
/* ============================================================
   COMPONENTS — nav/button/card/form mechanics are reusable as-is;
   colors, radius, and the tide-line signature are Portis Cove Cottage's own
   choices for this build. Swap those, keep the mechanics.
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  /* Prevents a stretched full-width button from pinning its label
     left when it sits in a flex column (e.g. a mobile nav panel or
     a form) — this is the default for every button, not a fix
     applied after the fact. */
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--accent); color: var(--chalk); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost { background: transparent; color: var(--accent); padding-inline: 0.25rem; }
.btn--ghost:hover { color: var(--accent-dark); }
.btn--block { width: 100%; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.88rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-height);
  background: rgba(246,243,236,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.nav--scrolled { border-color: var(--border); box-shadow: 0 1px 0 rgba(34,38,31,0.03); }

/* nav bar + panel are one flex row via this wrapper — keeping them
   as separate sibling containers is what causes misaligned nav
   links; always wrap bar contents in .nav__inner. */
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
}
.nav__toggle-icon {
  width: 1.3rem; height: 1.3rem;
  display: inline-block;
}
.nav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--chalk);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem var(--container-pad) 1.75rem;
  box-shadow: var(--shadow-pop);
}
.nav__panel .nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav__panel a:not(.btn) {
  padding: 0.65rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav__cta { margin-top: 1rem; }

@media (min-width: 961px) {
  .nav__toggle { display: none; }
  .nav__panel {
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex !important; /* desktop row is always visible, ignoring the [hidden] toggle used on mobile */
    align-items: center;
    gap: 2rem;
  }
  .nav__panel .nav__links { flex-direction: row; gap: 1.75rem; }
  .nav__panel a:not(.btn) { padding: 0; border-bottom: none; font-size: 0.95rem; }
  .nav__cta { margin-top: 0; }
}

/* ---------- Hero gallery (Airbnb-style: 1 large + 4 small) ---------- */
.hero-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 2 / 1;
}
.hero-gallery a { display: block; height: 100%; }
.hero-gallery a:first-child { grid-row: 1 / 3; }
/* Every cell (main + the 4 side squares) gets a definite pixel
   height straight from the grid track — width:100%/height:100%
   plus object-fit:cover fills that box exactly, whatever the
   source photo's real dimensions are. No auto-row/aspect-ratio
   coupling to drift out of sync between browsers. */
.hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 760px) {
  .hero-gallery { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: 4 / 3; }
  .hero-gallery a:not(:first-child) { display: none; }
  .hero-gallery a:first-child { grid-row: auto; }
}

/* ---------- Title block + quick facts ledger (signature) ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.stars { display: inline-flex; gap: 0.15rem; color: var(--accent); }
.stars svg { width: 1rem; height: 1rem; fill: currentColor; }

/* The mono "tide-table" ledger — Portis Cove Cottage's signature numeric
   treatment. Used for the quick-facts row and the booking price
   summary only; everywhere else stays in the body face. */
.ledger {
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
}
.ledger__item {
  padding: 0 1.1rem;
  border-left: 1px solid var(--border-strong);
}
.ledger__item:first-child { padding-left: 0; border-left: none; }
.ledger__value { display: block; font-size: 1.1rem; color: var(--text); }
.ledger__label { display: block; color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.15rem; }

/* ---------- Tide-line divider (signature, used once) ---------- */
.tide-line { width: 100%; height: 2.5rem; color: var(--accent); }
.tide-line path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  transition: stroke-dashoffset 1.1s ease;
}
.tide-line.is-visible path { stroke-dashoffset: 0; }

/* ---------- Reveal (JS sets its own hidden state, never CSS alone;
   see js/reveal.js — [data-reveal] with no JS running stays fully
   visible instead of vanishing permanently) ---------- */
.reveal-pending { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-pending.is-visible { opacity: 1; transform: none; }

/* ---------- Placeholder image block ----------
   Stands in for a real photo during build-out. Labels the exact
   path the real asset should be saved to (data-ph) so a client
   handoff never leaves an invented image mistaken for a real one —
   swap for a real <img src="/img/..."> when photos are ready. */
.ph {
  --ph-ratio: 4 / 5;
  aspect-ratio: var(--ph-ratio);
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--tide) 0%, var(--driftwood) 100%);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.ph::after {
  content: attr(data-ph);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink);
  background: rgba(246,243,236,0.85);
  padding: 0.3rem 0.5rem;
  margin: 0.5rem;
  border-radius: 0.3rem;
}

/* ---------- Map embed ---------- */
.map-embed {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-embed iframe { width: 100%; height: 100%; display: block; }

/* ---------- Amenities ---------- */
.amenity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.amenity svg { width: 1.4rem; height: 1.4rem; flex-shrink: 0; color: var(--accent); }

/* ---------- Cards ---------- */
.card {
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.review-card { background: transparent; padding: 0; }
.review-card__meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.review-card__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-alt); /* shows briefly while the photo loads */
  flex-shrink: 0;
}

/* ---------- Booking sidebar ---------- */
.booking-card {
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}
@media (min-width: 961px) {
  .booking-card-wrap { position: sticky; top: calc(var(--nav-height) + 1.5rem); }
}

/* ---------- Forms (shared: contact form + admin) ---------- */
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  min-width: 0; /* guards against overflow when inside a flex/grid column */
  padding: 0.75rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--chalk);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 8rem; }
.error   { color: var(--error); font-size: 0.9rem; }
.success { color: var(--success); font-size: 0.9rem; font-weight: 600; }

/* ---------- Admin shell (booking admin + calendar help) ---------- */
.admin-shell { max-width: 44rem; margin-inline: auto; padding: 3rem var(--container-pad) 5rem; }
.admin-login { max-width: 22rem; margin: 5rem auto; text-align: center; }
.admin-login .field { text-align: left; margin-top: 1.5rem; }
.admin-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-top: 1.75rem;
  background: var(--chalk);
}
.admin-card legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h4);
  padding: 0 0.4rem;
}
.admin-list { margin-top: 1rem; }
.admin-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.admin-list li:last-child { border-bottom: none; }
.admin-list button {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--error);
  text-decoration: underline;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer__col h4 { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.9rem; }
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   BOOKING WIDGET — folded into the build so its structural rules
   ([hidden] override, dropdown anchoring) live in the same
   pipeline as everything else, instead of an inline <style> blob
   pasted per project. --sw-* variables default to the site's own
   tokens; override any of them here to retheme just the widget.
   ============================================================ */
#stay-widget {
  --sw-accent:        var(--accent);
  --sw-accent-hover:  var(--accent-dark);
  --sw-text:          var(--text);
  --sw-text-muted:    var(--text-muted);
  --sw-border:        var(--border-strong);
  --sw-border-light:  var(--border);
  --sw-bg-card:       transparent;
  --sw-bg-field:      #ffffff;
  --sw-bg-hover:      var(--surface-alt);
  --sw-error:         var(--error);
  --sw-success:       var(--success);
  --sw-radius:        var(--radius);
  --sw-radius-card:   var(--radius-lg);
  --sw-font:          inherit;

  font-family: var(--sw-font);
  color: var(--sw-text);
}
#stay-widget .sw-card { background: var(--sw-bg-card); border: none; border-radius: var(--sw-radius-card); padding: 0; }
#stay-widget .sw-title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin: 0 0 0.25rem; }
#stay-widget .sw-rates { font-family: var(--font-mono); font-size: 0.85rem; color: var(--sw-text-muted); margin: 0 0 1.25rem; }

#stay-widget .sw-field { margin-bottom: 1rem; position: relative; }
#stay-widget label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--sw-text-muted); margin-bottom: 0.4rem; }

#stay-widget .sw-control {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid var(--sw-border);
  border-radius: var(--sw-radius);
  background: var(--sw-bg-field);
  font-family: inherit;
  font-size: 1rem;
  color: var(--sw-text);
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
}
#stay-widget .sw-control:focus { outline: none; border-color: var(--sw-accent); }

#stay-widget .sw-calendar {
  position: absolute;
  top: 100%; left: 0; right: 0;
  margin-top: 0.4rem;
  background: var(--sw-bg-field);
  border: 1px solid var(--sw-border-light);
  border-radius: var(--sw-radius);
  box-shadow: var(--shadow-pop);
  padding: 0.9rem;
  z-index: 20;
}
#stay-widget .sw-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; font-weight: 700; }
#stay-widget .sw-cal-nav { background: none; border: none; cursor: pointer; font-size: 1.1rem; padding: 0.25rem 0.6rem; color: var(--sw-accent); }
#stay-widget .sw-cal-nav:hover { color: var(--sw-accent-hover); }
#stay-widget .sw-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.2rem; text-align: center; }
#stay-widget .sw-cal-day-name { font-size: 0.7rem; color: var(--sw-text-muted); padding: 0.25rem 0; }
#stay-widget .sw-cal-day {
  background: var(--sw-bg-field);
  border: 1px solid var(--sw-border-light);
  padding: 0.5rem 0 0.4rem;
  border-radius: calc(var(--sw-radius) * 0.6);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--sw-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  line-height: 1.1;
}
#stay-widget .sw-cal-day-price {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--sw-text-muted);
}
#stay-widget .sw-cal-day.range-end .sw-cal-day-price { color: #fff; opacity: 0.9; }
#stay-widget .sw-cal-day:hover:not(:disabled) { background: var(--sw-bg-hover); }
#stay-widget .sw-cal-day:disabled { color: var(--sw-border); cursor: not-allowed; text-decoration: line-through; background: var(--sw-bg-hover); }
#stay-widget .sw-cal-day.in-range { background: var(--sw-bg-hover); }
#stay-widget .sw-cal-day.range-end { background: var(--sw-accent); border-color: var(--sw-accent); color: #fff; }
#stay-widget .sw-cal-day.empty { visibility: hidden; border: none; }
#stay-widget .sw-cal-hint { font-size: 0.78rem; color: var(--sw-text-muted); margin-top: 0.6rem; text-align: center; }

#stay-widget .sw-summary {
  background: var(--sw-bg-hover);
  border-radius: var(--sw-radius);
  padding: 0.9rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
#stay-widget .sw-summary-row { display: flex; justify-content: space-between; margin-top: 0.35rem; }
#stay-widget .sw-summary-row:first-child { margin-top: 0; }
#stay-widget .sw-summary-total { font-weight: 700; border-top: 1px solid var(--sw-border-light); margin-top: 0.6rem; padding-top: 0.6rem; }

#stay-widget .sw-card-element { padding: 0.75rem; border: 1.5px solid var(--sw-border); border-radius: var(--sw-radius); background: var(--sw-bg-field); }

#stay-widget .sw-submit {
  width: 100%;
  padding: 0.85rem 0;
  background: var(--sw-accent);
  color: #fff;
  border: none;
  border-radius: var(--sw-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
#stay-widget .sw-submit:hover { background: var(--sw-accent-hover); }
#stay-widget .sw-submit:disabled { opacity: 0.5; cursor: not-allowed; }

#stay-widget .sw-error { color: var(--sw-error); font-size: 0.85rem; margin-top: 0.75rem; }
#stay-widget .sw-success { color: var(--sw-success); font-size: 0.9rem; margin-top: 0.75rem; font-weight: 600; }
