/* Shared structure for the three landing designs. Colours come from each design's style.css tokens. */
* { box-sizing: border-box; }
/* Sizes are rem at the 16px design scale. Laptops and desktops (992px+) draw at 75% so the page doesn't look
   oversized on scaled Windows screens (Jeff, Oct 22); phones keep 100%. The page width stays 1280px. */
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (min-width: 992px) { html { font-size: 12px; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--font, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif); padding-bottom: 4rem; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--heading); line-height: 1.15; margin: 0 0 .5rem; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
a { color: var(--accent); }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.25rem; border-radius: var(--btn-radius, 0.625rem);
  font-weight: 700; text-decoration: none; border: 0.125rem solid transparent; }
.btn-lg { min-height: 3.375rem; font-size: 1.05rem; }
.btn-xl { min-height: 3.75rem; font-size: 1.2rem; padding: 0 1.75rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-call { background: var(--call); color: var(--on-call); }
.btn-call:hover { filter: brightness(1.05); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.top { position: sticky; top: 0; z-index: 10; background: var(--header-bg); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.625rem; font-weight: 800; color: var(--heading); text-decoration: none; margin-right: auto; }
.top-nav { display: none; gap: 1.25rem; }
.top-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.top-call { display: none; }
@media (min-width: 720px) { .top-nav { display: flex; } .top-call { display: inline-flex; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 800; margin: 0 0 .6rem; }
.lead { font-size: 1.1rem; max-width: 54ch; }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--surface-alt); }
.section-lead { color: var(--muted); max-width: 70ch; margin-top: 0; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 1rem 1.125rem 1.25rem; }
.card-body p { margin: 0 0 .5rem; }
.price { color: var(--muted); }
.price strong { color: var(--heading); font-size: 1.35rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; background: var(--accent-soft); color: var(--accent); border-radius: 62.4375rem; padding: 0.125rem 0.625rem; vertical-align: middle; }
.fine { color: var(--muted); font-size: .9rem; margin-top: 1.125rem; }
.split { display: grid; gap: 1.75rem; align-items: center; }
.split img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
.facts { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.75rem; }
@media (min-width: 720px) { .facts { grid-template-columns: 1fr 1fr 1fr; } }
.facts li { background: var(--surface); border: 1px solid var(--border); border-radius: 0.625rem; padding: 0.875rem 1rem; }
address { font-style: normal; font-size: 1.1rem; font-weight: 700; color: var(--heading); }
.availability { margin-top: 1.75rem; padding: 1.375rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.footer { padding: 1.75rem 0 2.25rem; border-top: 1px solid var(--border); background: var(--surface); }
.footer p { margin: 0 0 .25rem; }
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.action-bar a { min-height: 3.5rem; display: flex; align-items: center; justify-content: center; font-weight: 800; text-decoration: none; color: var(--accent); }
.action-bar a:first-child { background: var(--call); color: var(--on-call); }
@media (min-width: 720px) { .action-bar { display: none; } body { padding-bottom: 0; } }
.dot { display: inline-block; width: 0.5625rem; height: 0.5625rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0.25rem rgba(34,197,94,.25); margin-right: 0.375rem; vertical-align: middle; }
/* Availability calendar (availability.js) */
.avail-cal { margin: 1rem 0 0.25rem; }
.avail-legend { color: var(--muted); font-size: .9rem; }
.avail-key { display: inline-block; padding: 1px 0.625rem; border-radius: 62.4375rem; font-weight: 700; font-size: .8rem; }
.avail-key.free, .avail-day.free { background: var(--surface); color: var(--heading); box-shadow: inset 0 0 0 1.5px var(--free-border); }
.avail-key.booked, .avail-day.booked { background: var(--booked-bg); color: var(--booked-text); }
.avail-key.today, .avail-day.today { box-shadow: inset 0 0 0 0.1562rem var(--today); font-weight: 800; }
.avail-day.booked { text-decoration: line-through; }
.avail-category { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.avail-category h4 { flex-basis: 100%; margin: 1.125rem 0 0.5rem; color: var(--heading); }
.avail-month { width: 100%; max-width: 20rem; }
.avail-month-name { font-weight: 700; margin-bottom: 0.375rem; }
.avail-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }
.avail-dow { text-align: center; font-size: .75rem; color: var(--muted); font-weight: 700; }
.avail-day { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 0.5rem; font-weight: 600; font-size: .9rem; }
.avail-note { font-weight: 700; color: var(--heading); }
/* C · Rate board: price first, like the sign by the road. Few photos, fast on any phone. Light + dark. */
:root {
  --bg: #f4f5f9; --surface: #ffffff; --surface-alt: #eceef4; --header-bg: #ffffff;
  --border: #e3e6ee; --text: #1d2433; --heading: #0f172a; --muted: #5b6576;
  --accent: #3730a3; --on-accent: #ffffff; --accent-soft: #eef0fb;
  /* Color review (Jeff, Oct 19): indigo brand, amber only for Call, calendar told apart by lightness (colour-blind safe). */
  --brand: #312e81; --on-brand: #ffffff; --brand-soft: #c7d2fe; --call: #fbbf24; --on-call: #1c1917;
  --free-border: #cbd5e1; --booked-bg: #334155; --booked-text: #ffffff; --today: #3730a3;
  --radius: 0.75rem; --btn-radius: 0.75rem; --shadow: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1324; --surface: #171c33; --surface-alt: #131830; --header-bg: #171c33; --border: #2a3152; --text: #d8dcef;
    --heading: #f2f4ff; --muted: #9aa3c4; --accent: #a5b4fc; --on-accent: #0f1324; --accent-soft: #232a4d; --brand: #1e1b4b; --brand-soft: #c7d2fe; --free-border: #3b4470; --booked-bg: #cbd5e1; --booked-text: #0f172a; --today: #a5b4fc; color-scheme: dark; }
}
.hero { background: var(--brand); color: var(--on-brand); padding: 2.5rem 0 3rem; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: flex-end; }
.hero-main { flex: 1 1 30rem; min-width: 0; }
.hero h1 { color: var(--on-brand); font-size: clamp(2rem, 1.3rem + 3.4vw, 3.4rem); letter-spacing: -.01em; line-height: 1.1; }
.hero .lead { color: var(--brand-soft); }
.hero .btn-call { width: 100%; max-width: 26.25rem; }
.open { display: inline-flex; align-items: center; background: rgba(255,255,255,.12); border-radius: 62.4375rem; padding: 0.375rem 0.875rem; }
.from-card { flex: 0 1 18.75rem; background: var(--surface); color: var(--heading); border-radius: var(--radius); padding: 1.125rem 1.25rem; }
.from-card .label { margin: 0 0 0.25rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.from-card .amount { margin: 0; font-size: 2.6rem; font-weight: 900; line-height: 1.1; color: var(--heading); }
.from-card p { margin: 0; color: var(--muted); }
/* Phone and tablet (Jeff, Nov 1): the card sits under the Call button, so it takes the button's width. Side by side from 992px. */
@media (max-width: 991.98px) {
  .hero-grid { flex-direction: column; align-items: stretch; }
  .hero-main { flex: none; }
  .from-card { flex: none; width: 100%; max-width: 26.25rem; }
}
.open { font-weight: 800; margin: 0 0 .4rem; }
.board { border: 0.1875rem solid var(--heading); border-radius: var(--radius); padding: 1.125rem; background: var(--surface); }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.board-head span { color: var(--muted); font-weight: 600; }
.board table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; font-size: 1.05rem; }
.board th, .board td { padding: 0.75rem 0.375rem; border-bottom: 1px dashed var(--border); text-align: left; }
.board thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 0.125rem solid var(--heading); }
.board tbody th { color: var(--heading); }
.board .amt { text-align: right; font-weight: 900; font-size: 1.4rem; color: var(--heading); font-variant-numeric: tabular-nums; }
.board thead .amt { font-size: .8rem; }
/* Photo galleries (3 per room or space): swipe on phones (scroll-snap), arrow buttons from gallery.js on bigger screens. */
.units { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin-top: 1.25rem; }
.units-events { margin-bottom: 1.25rem; }
/* Columns are chosen by the app from the number of units (LandingSite.GalleryColumns) so rows come out even and a
   single event space stays card-sized instead of stretching across the page. */
@media (min-width: 600px) { .units { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .units.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .units.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.unit { margin: 0; }
.gallery-wrap { position: relative; }
.unit h3 { margin: 0.625rem 0 0.125rem; font-size: 1.05rem; color: var(--heading); }
.unit p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 0.75rem;
  scrollbar-width: none; overscroll-behavior-x: contain; aspect-ratio: 4 / 3; background: var(--border); }
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline: 0.1875rem solid var(--brand); outline-offset: 0.1875rem; }
.gallery figure { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery .count { position: absolute; right: 0.625rem; bottom: 0.625rem; padding: 0.125rem 0.5625rem; border-radius: 62.4375rem; font-size: .78rem; font-weight: 700;
  color: #fff; background: rgba(15, 23, 42, .72); font-variant-numeric: tabular-nums; }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: #0f172a; background: rgba(255, 255, 255, .92); box-shadow: 0 0.125rem 0.5rem rgba(15, 23, 42, .25); }
.gallery-btn.prev { left: 0.5rem; }
.gallery-btn.next { right: 0.5rem; }
.gallery-btn:disabled { opacity: 0; pointer-events: none; }
.gallery-btn:focus-visible { outline: 0.1875rem solid var(--brand); outline-offset: 0.125rem; }
@media (hover: none) { .gallery-btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .gallery { scroll-behavior: auto; } }
.pkg-list { display: grid; gap: 0.875rem; margin-top: 1rem; }
@media (min-width: 720px) { .pkg-list { grid-template-columns: 1fr 1fr; } }
/* One event space: its photos on the left, the packages beside it instead of an empty half row. */
@media (min-width: 900px) {
  .events-row:has(.units-events > .unit:only-child) { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
  .events-row:has(.units-events > .unit:only-child) .units-events { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }
  .events-row:has(.units-events > .unit:only-child) .pkg-list { grid-template-columns: minmax(0, 1fr); margin-top: 1.25rem; }
  .events-row:has(.units-events > .unit:only-child) + .availability { margin-top: 1.25rem; }
}
.pkg { background: var(--surface); border: 1px solid var(--border); border-left: 0.375rem solid var(--accent); border-radius: 0.625rem; padding: 1rem 1.125rem; }
.pkg p { margin: 0 0 .4rem; }
.board td:nth-child(2) { white-space: nowrap; color: var(--muted); }
.board td.terms { white-space: normal; }
.board td.terms span { white-space: nowrap; }
.board .group th { padding-top: 1.25rem; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.board tbody th a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .2em; }
.board .amt small { font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: .15rem; }
/* Phones (Jeff, Nov 1): three columns overflowed the board. Each rate becomes two lines: name and price on top, the stay
   (or package terms) under the name. The column headings stay for screen readers only. */
@media (max-width: 599.98px) {
  .board { padding: 1rem 0.875rem; }
  .board table, .board tbody { display: block; }
  .board thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .board tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.75rem; row-gap: 0.125rem;
    align-items: baseline; padding: 0.75rem 0.125rem; border-bottom: 1px dashed var(--border); }
  .board tbody th, .board tbody td { padding: 0; border: 0; }
  .board tbody tr > th { grid-column: 1; grid-row: 1; font-size: 1.05rem; line-height: 1.3; }
  .board tbody tr > .amt { grid-column: 2; grid-row: 1; white-space: nowrap; font-size: 1.3rem; }
  .board tbody tr > td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: .95rem; white-space: normal; }
  .board tbody tr.group { display: block; padding: 1rem 0.125rem 0.25rem; border-bottom: 0; }
  .board tbody tr.group th { padding: 0; }
}

/* Footer social links (Facebook, X, Instagram): 48 px round buttons, inline icons. */
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.social { list-style: none; display: flex; gap: 0.625rem; margin: 0; padding: 0; }
.social a { width: 3rem; height: 3rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  border: 1.5px solid var(--border); color: var(--heading); background: var(--surface); }
.social a:hover, .social a:focus-visible { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.footer .footer-top { margin-bottom: 0.875rem; }

/* What this place offers: 8 highlights; "Show all" opens every amenity, grouped, in a pop-up (popover, no script). */
.offers { list-style: none; margin: 1.125rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0.375rem 2rem; }
@media (min-width: 640px) { .offers { grid-template-columns: 1fr 1fr; } }
.offers li { display: flex; align-items: center; gap: 1rem; min-height: 3rem; font-size: 1.05rem; color: var(--heading); }
.offers svg, .amenities svg { flex: none; color: var(--heading); }
.offers-all { display: inline-flex; align-items: center; min-height: 3rem; margin-top: 1.125rem; padding: 0 1.375rem; border-radius: 0.625rem;
  background: var(--surface); border: 1px solid var(--heading); font: inherit; font-weight: 700; color: var(--heading); cursor: pointer; }
.offers-all:hover { background: var(--surface-alt); }
.amenities { width: min(45rem, calc(100vw - 1.5rem)); max-height: min(86vh, 56.25rem); padding: 0; border: 0; border-radius: 1.25rem;
  background: var(--surface); color: var(--text); box-shadow: 0 1.5rem 4rem rgba(0,0,0,.35); overflow: hidden; }
.amenities:popover-open { display: flex; flex-direction: column; }
.amenities::backdrop { background: rgba(15, 23, 42, .55); }
.amenities-head { padding: 0.75rem 1rem 0; }
.amenities-close { width: 3rem; height: 3rem; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--heading); cursor: pointer; }
.amenities-close:hover { background: var(--surface-alt); }
.amenities-body { overflow-y: auto; padding: 0.25rem 1.75rem 1.75rem; }
.amenities-body h2 { margin: 0.25rem 0 0.5rem; }
.amenities-body h3 { margin: 1.75rem 0 0.25rem; font-size: 1.2rem; }
.amenities-body ul { list-style: none; margin: 0; padding: 0; }
.amenities-body li { display: flex; align-items: center; gap: 1.125rem; padding: 1.125rem 0; border-bottom: 1px solid var(--border); color: var(--heading); font-size: 1.05rem; }
.amenities-body li small { display: block; color: var(--muted); font-size: .92rem; margin-top: 0.125rem; }
@media (max-width: 560px) { .amenities-body { padding: 0.25rem 1.125rem 1.5rem; } .amenities { max-height: 92vh; border-radius: 1rem; } }

/* Find us: Google map (Setup → Website → Google Maps embed), loads only when scrolled to. */
.map { margin: 1rem 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--border); }
.map iframe { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 28rem; border: 0; }
@media (max-width: 600px) { .map iframe { aspect-ratio: 4 / 3; } }

/* Find us: the entrance photo (Setup → Website → Entrance), so guests recognise the gate. */
.entrance { margin: 1rem 0; max-width: 40rem; }
.entrance img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.entrance figcaption { margin-top: 0.375rem; font-size: .9rem; color: var(--muted); }

/* Task 37: the motel's own design (theme.css sets the colours). */
.brand-img { height: 2rem; width: auto; max-width: 10rem; object-fit: contain; }
/* An uploaded logo may be a wide wordmark (Jeff, Nov 1: own brand). */
.brand-logo { max-width: 13rem; }
.hero .tagline { color: var(--on-brand); opacity: .9; font-size: 1.15rem; margin: -0.25rem 0 0.75rem; }
.promo-list { padding-left: 1.25rem; }
.promo-list li { margin-bottom: 0.5rem; }
.faq details { border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--heading); }
.faq details p { margin: 0.5rem 0 0; }
