/* Furnished Thunder Bay Houses: design-review tweaks (2026-11-16).
   Loaded after main.css and wp.css. Every block is an isolated override with a
   one-line reason; delete a block to revert it. Uses the tokens from main.css. */

/* T1 Lightbox: `max-height: 100%` on the photo did not resolve inside the auto-sized grid row, so tall
   photos were shown at natural size and cropped (1440x1713 in a 900px viewport). A definite 1fr row/column
   makes the percentage resolve, so the whole photo always fits between the top bar and the caption.
   Photos are never scaled above their natural size (width/height stay auto), which keeps the small
   Queen Elizabeth Suites files from being blown up. */
.lb-slide {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  /* top bar is 60px tall; the old padding reused --nav-h (104px on phones) and wasted 44px of photo height */
  padding-top: calc(60px + env(safe-area-inset-top, 0px));
}
.lb-slide img { max-width: 100%; max-height: 100%; }
/* T1b Lightbox, pointer devices: keep the photo clear of the previous/next buttons and leave a
   click-outside-to-close gutter on both sides. */
@media (hover: hover) and (pointer: fine) {
  .lb-slide { padding-inline: max(68px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
}
/* T1c Lightbox: the accent focus ring is 3.7:1 on black and can vanish over a photo; white is always visible. */
.lightbox :focus-visible { outline-color: #fff; }

/* T2 Focus ring: the global `a:focus-visible, button:focus-visible { border-radius: 6px }` outranks
   `.btn` / `.card` / `.thumb`, so their corners snapped from 12-22px to 6px while focused. Keep each
   component's own radius so the ring follows its shape. */
.btn:focus-visible { border-radius: 12px; }
.card:focus-visible { border-radius: var(--radius-lg); }
.thumb:focus-visible { border-radius: 12px; }
.theme-toggle:focus-visible { border-radius: 10px; }
.lb-btn:focus-visible { border-radius: 999px; }
/* T2b The amenities disclosure had only the browser default ring; match the site ring. */
details.more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* T3 Contrast, dark theme: muted text (#85827c) on cards (#1b1c1f) was 4.45:1, just under AA for the
   small review dates, card blurbs and contact tiles. #8f8c86 gives 5.1:1 on cards and 5.6:1 on the page.
   Skipped when the visitor asks for more contrast, where main.css already maps --fg-3 to --fg-2. */
@media (prefers-color-scheme: dark) and (not (prefers-contrast: more)) {
  :root:not([data-theme="light"]) { --fg-3: #8f8c86; }
}
@media not (prefers-contrast: more) {
  :root[data-theme="dark"] { --fg-3: #8f8c86; }
}

/* T4 Contrast: the browser default placeholder (#757575) is 3.7:1 on the dark field; use the muted token
   (5.6:1 light, 5.1:1 dark). */
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); opacity: 1; }

/* T5 Contrast, light theme: rating stars (#e0a526) were 2.0:1 on the page and 2.2:1 on white cards.
   A deeper gold reaches 3.2:1 / 3.4:1 (graphic minimum is 3:1). Dark theme keeps the original gold (7.8:1+). */
:root { --star: #b97f0a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --star: #e0a526; } }
:root[data-theme="dark"] { --star: #e0a526; }
.rating svg, .stars, .reviews blockquote p.stars { color: var(--star); }

/* T6 Short pages (404, or any page with little content): the footer floated mid-screen with empty page
   below it. Let the main area take the spare height so the footer sits at the bottom of the window. */
body { display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }

/* T7 Home, "Why guests come back": a heading typed inside the text column had 0px below it, unlike
   section headings (14px). */
.prose > h2 { margin-bottom: 14px; }

/* T8 Property pages, desktop: the booking row is static at 900px and up and its button sat 0px above the
   footer rule, and between 900 and 1151px it lost the page gutter (text started 16px left of the content).
   Give it a section's breathing room and the normal gutter. */
@media (min-width: 900px) { .book-bar { padding: 0 var(--gutter) clamp(28px, 4vw, 44px); } }

/* T9 Reviews: auto-fill columns left one orphan card on the last row (5 reviews = 4 + 1 at desktop) and
   a 30-character measure. Three per row at desktop; a short last row is shared evenly instead of leaving
   a hole (5 = 3 + 2, 4 = 2 + 2, 7 = 3 + 2 + 2). Two per row on tablets, with an odd last card full width. */
@media (min-width: 640px) and (max-width: 899.98px) {
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .reviews { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .reviews > * { grid-column: span 2; }
  .reviews > :nth-last-child(2):nth-child(3n+1),
  .reviews > :last-child:nth-child(3n+2),
  .reviews > :nth-last-child(4):nth-child(3n+1),
  .reviews > :nth-last-child(4):nth-child(3n+1) ~ * { grid-column: span 3; }
}

/* T10 Amenities typed as one plain list (Queen Elizabeth Suites): 15 items ran down a single 240px
   column beside ~850px of empty page. Flow a lone list into balanced columns. */
.amen > div:only-child { grid-column: 1 / -1; }
.amen > div:only-child > ul { columns: 3 220px; column-gap: 32px; }
.amen > div:only-child > ul > li { break-inside: avoid; }

/* T11 Nav, 641-860px: brand plus four links need about 780px, so "Contact" was clipped to "C" with no
   fade or scroll hint on small tablets and narrow windows. Use the short brand where that is enough,
   and the two-row phone layout below that. */
@media (min-width: 641px) and (max-width: 860px) {
  .brand .brand-long { display: none; }
  .brand .brand-short { display: inline; }
}
@media (min-width: 641px) and (max-width: 719.98px) {
  :root { --nav-h: 6.5rem; }
  .nav-in { flex-wrap: wrap; row-gap: 0; padding-bottom: 6px; }
  .nav-links { flex: 1 0 100%; margin-left: 0; margin-inline: -4px; padding-inline: 4px; }
}

/* T12 Home hero, 360px phones: the two buttons needed 330px in a 328px row, so the second one dropped
   to its own line. 4px less side padding each keeps them side by side. */
@media (max-width: 380px) { .hero-actions .btn { padding-inline: 1rem; } }

/* T13 Eyebrow: on phones a long eyebrow wrapped with one word alone on the second line. */
.eyebrow { text-wrap: balance; }

/* T14 Reduced motion: the hover lift on cards and the hover zoom on thumbnails are declared after the
   reduced-motion block in main.css and so were not switched off. */
@media (prefers-reduced-motion: reduce) {
  .card:hover, .thumb:hover { transform: none; }
}

/* T15 Enquiry form: the native select arrow sat about 6px from the field edge while the date icons sit
   16px in. Draw a caret aligned with them; works in both themes because it uses the text token. */
.field select {
  -webkit-appearance: none; appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%);
  background-size: 5px 5px, 5px 5px;
  background-position: right calc(1rem + 5px) top calc(50% + 1px), right 1rem top calc(50% + 1px);
  background-repeat: no-repeat;
}

/* T16 Low-resolution hero (Queen Elizabeth Suites, 910px source): it was stretched to 1120px wide, 1.2x
   upscale before the display's own pixel density, and looked soft. When the hero file is that small,
   show it at about half width in its own 4:3 shape beside the title, so it is drawn at or below its real
   size. Keyed to the image's width attribute, so it switches itself off when a full-size photo is uploaded. */
@media (min-width: 900px) {
  .p-hero:has(.p-hero-media > img[width="910"]) {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 44px); align-items: center;
  }
  .p-hero:has(.p-hero-media > img[width="910"]) .p-hero-media { aspect-ratio: 4 / 3; }
  .p-hero:has(.p-hero-media > img[width="910"]) .p-head { padding: 0; }
}

/* T17 Fact rows ("10 guests · 3 bedrooms · 5 beds · 2 baths"): when the row wrapped (home cards on phones
   and tablets) the separator dot was left dangling at the end of the first line. Draw the dot before each
   item and clip the one that lands at the start of a line, so a wrapped row never starts or ends with a dot. */
.facts { gap: 6px 0; margin-left: -24px; clip-path: inset(0 0 0 24px); }
.facts span { position: relative; padding-left: 24px; }
.facts span::after { content: none; }
.facts span::before { content: "\00b7"; position: absolute; left: 10px; color: var(--fg-3); }
