/* ==========================================================================
   Southern Cross Guesthouse — site stylesheet
   Exported from the Claude Design canvas artboards (*.dc.html), then tuned
   for phones: a compact sticky header with a Menu button, single-column
   layouts, full-width buttons and a smaller type scale below 600px.

   Breakpoints: 900px and up is the desktop header and two-column room cards;
   below 600px the phone type scale and stacked layouts apply.
   ========================================================================== */

/* --- Reset / base ------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 19px;
  line-height: 1.7;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

/* The build wraps photographs in <picture> for the WebP/JPEG choice; treated
   as transparent so grids and flex boxes see the image itself. */
picture { display: contents; }

/* --- Monochrome templates ----------------------------------------------
   The site is black and white. Four monochrome templates ship with it; they
   differ only in how light the paper is and how hard the contrast runs.
   Switch in the admin under Settings -> Look of the site.
   ---------------------------------------------------------------------- */

.site {
  /* mono (default) - white paper, near-black ink */
  --bg: #FFFFFF;
  --ink: #121212;
  --accent: #121212;
  --accent-dark: #000000;
  --cta: #121212;
  --cta-dark: #3D3D3D;
  --muted: #5E5E5E;
  --line: #D8D8D8;
  --tint: #F3F3F3;

  /* Vertical rhythm between page sections; tightened on phones. */
  --sec: 64px;
  --sec-lg: 72px;

  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

/* Pure black on pure white, heavier rules - the most severe of the four. */
.site[data-palette="contrast"] { --bg:#FFFFFF; --ink:#000000; --accent:#000000; --accent-dark:#000000; --cta:#000000; --cta-dark:#333333; --muted:#4A4A4A; --line:#B4B4B4; --tint:#EDEDED; }

/* Warm off-white, like uncoated paper. Softest of the four. */
.site[data-palette="paper"]    { --bg:#FAFAF8; --ink:#1A1A18; --accent:#1A1A18; --accent-dark:#0B0B0A; --cta:#1A1A18; --cta-dark:#454542; --muted:#66655F; --line:#DEDDD7; --tint:#F1F1EC; }

/* Cool grey ground, a fraction less stark on screen. */
.site[data-palette="slate"]    { --bg:#F7F8F8; --ink:#15181A; --accent:#15181A; --accent-dark:#000000; --cta:#15181A; --cta-dark:#41474A; --muted:#5A6165; --line:#D6DADC; --tint:#ECEFF0; }

/* --- Photographs --------------------------------------------------------
   Optional: drain the colour from every photograph so the site is black and
   white throughout. Off by default - rooms and food sell better in colour.
   Turned on in the admin under Settings -> Photographs.
   ---------------------------------------------------------------------- */

.site[data-photos="mono"] img,
.site[data-photos="mono"] video { filter: grayscale(1); }

/* Give the reader the colour back on hover, where a photo is a link or a
   button - a quiet reward, and a hint that the picture does something. */
.site[data-photos="mono"] .card:hover img,
.site[data-photos="mono"] .gallery-item:hover img,
.site[data-photos="mono"] .photo-band figure:hover img { filter: grayscale(0); }

/* Ordinary prose links. Wrapped in :where() so this carries no specificity:
   anything with its own class — buttons, cards, nav — sets its own colour and
   is not overridden by this rule.

   On a black-and-white site colour cannot mark a link, so the underline does
   all the work: always present, thin and set below the letters so descenders
   stay readable, thickening on hover. */
:where(.site a) {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
:where(.site a:hover) {
  color: var(--cta-dark);
  text-decoration-thickness: 2px;
}

/* Visible focus for keyboard users on every interactive element. */
.site a:focus-visible,
.site button:focus-visible,
.site input:focus-visible,
.site textarea:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 2px;
}

/* --- Shared type -------------------------------------------------------- */

.serif { font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; }

.page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(38px, 4.5vw, 54px);
  line-height: 1.15;
  margin: 0 0 12px;
}

.page-intro { max-width: 68ch; margin: 0 0 40px; }

.h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 8px;
}

.h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.quote {
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.4;
  margin: 0 0 14px;
}

.muted { color: var(--muted); }

.award-line {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Layout ------------------------------------------------------------- */

.wrap {
  --pad: clamp(20px, 4vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Rooms need the extra width: the photos are shown whole, never cropped,
   so every pixel of page width becomes picture. */
.wrap-wide { max-width: 1560px; }

.main-pad { padding-top: 56px; padding-bottom: 56px; }

/* Section spacing, so the phone rhythm can be tuned in one place. */
.section    { padding-top: var(--sec); }
.section-pb { padding-bottom: var(--sec); }
.section-lg { padding-top: var(--sec-lg); padding-bottom: var(--sec-lg); }

/* min(…, 100%) keeps every grid inside a screen narrower than its ideal
   column, instead of forcing a sideways scroll. */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 28px; }
.grid-wide  { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; align-items: center; }

/* The one square slot: a portrait of two people is cut off at the head in a
   16:9 strip, and the hosts photo on file is square. */
.hosts-photo {
  width: 100%;
  height: auto;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.prose { max-width: 56ch; margin: 0 0 16px; }
.prose:last-child { margin-bottom: 0; }

/* A row of buttons that stacks on phones (thank-you page). */
.btn-row { display: flex; flex-wrap: wrap; gap: 18px; }

/* --- Skip link ---------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent-dark);
  color: #fff;
  padding: 14px 22px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 0 0 6px 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --- Header ------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 0;
}

.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  text-decoration: none;
  color: var(--accent-dark);
  margin-right: auto;
  min-height: 56px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

/* The big monogram in the top-left corner, sized to the margin beside the
   page column so it never crosses the thin line: about 90px wide on a
   1440px screen, 130px from 1520px up. Below 1400px the margin is too
   narrow and the small mark beside the name takes over again. */
.corner-mark { display: none; }

@media (min-width: 1400px) {
  .corner-mark {
    display: block;
    position: absolute;
    /* The thin line starts at the page column's outer edge,
       (100vw - 1200px) / 2 from the left; end 10px before it. */
    right: calc(50vw + 610px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(60px, calc((100vw - 1200px) / 2 - 30px), 130px);
  }
  .corner-mark img { width: 100%; height: auto; display: block; }
  .brand-mark { display: none; }
}

/* The SC monogram from the logo. The full stacked lockup is at
   /assets/logo.png, but its GUESTHOUSE line goes illegible at header size,
   so the header carries the mark and sets the words in type beside it. */
.brand-mark {
  flex: none;
  height: 46px;
  width: auto;
}

.brand-name {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}

.brand-sub {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The Menu button only exists on phones (see the phone header below). */
.nav-toggle { display: none; }

/* On desktop the menu wrapper is invisible: the language switch and the
   navigation lay out as if they sat directly in the header bar. */
.header-menu { display: contents; }

/* Language switch */

/* Plain text, no pill: "English | Deutsch" with a small word beneath. */
.lang {
  order: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-height: 56px;
  justify-content: center;
}

.lang-choice { display: inline-flex; align-items: center; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  padding: 2px 4px;
  font-family: inherit;
  font-size: 17px;
  letter-spacing: 0.04em;
  font-weight: 500;
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang-sep { margin: 0 6px; color: var(--muted); opacity: 0.5; font-weight: 400; }

.lang-btn:hover { color: var(--accent-dark); }

.lang-btn[aria-pressed="true"],
.lang-btn[aria-current="true"] {
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
}

.lang-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Navigation: a full-width row under the brand line. The negative margins
   run the rule out to the padded edges of the header. */

.nav {
  order: 2;
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 6px calc(-1 * var(--pad)) 0;
  padding: 0 var(--pad);
  border-top: 1px solid var(--line);
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  font-size: 19px;
  text-decoration: none;
  color: var(--ink);
}

.nav a:hover { color: var(--cta-dark); }

.nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--accent-dark);
  box-shadow: inset 0 -3px 0 var(--cta);
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 10px 32px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-dark); color: #fff; }

.btn-outline {
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent-dark);
  padding-left: 30px;
  padding-right: 30px;
}
/* Inverts rather than lightening: on white paper a white hover state is no
   state at all. */
.btn-outline:hover { background: var(--accent-dark); color: var(--bg); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  padding-left: 30px;
  padding-right: 30px;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.25); color: #fff; }

.btn-on-dark { background: #fff; color: #1A1A1A; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3); }
.btn-on-dark:hover { background: #E8E8E8; color: #1A1A1A; }

.btn-sm { min-height: 52px; font-size: 17px; padding-left: 26px; padding-right: 26px; }

/* --- Hero (home) -------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(88vh, 860px);
  min-height: min(88svh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  animation: slowZoom 18s ease-out both;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.7) 100%);
  animation: fadeIn 1s ease both;
}

.hero-inner {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 96px clamp(20px, 4vw, 48px);
  max-width: 900px;
}

.hero-kicker {
  margin: 0 0 18px;
  font-size: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  animation: fadeUp 0.9s ease 0.15s both;
}

.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(46px, 6.5vw, 86px);
  line-height: 1.08;
  margin: 0 0 14px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  animation: fadeUp 0.9s ease 0.3s both;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(24px, 2.8vw, 32px);
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.95);
  animation: fadeUp 0.9s ease 0.45s both;
}

.hero-text {
  margin: 0 auto 36px;
  max-width: 58ch;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.92);
  animation: fadeUp 0.9s ease 0.6s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  animation: fadeUp 0.9s ease 0.75s both;
}

/* --- Link cards --------------------------------------------------------- */

.card {
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover { color: var(--ink); }

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-body { display: block; padding: 22px 24px 26px; }

.card-title {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 27px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.card-sub { display: block; font-size: 18px; color: var(--muted); }

/* Static (non-link) card, used on Facilities */

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.panel img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.panel-body { padding: 22px 24px 26px; }
.panel-body p { margin: 0; font-size: 18px; color: var(--muted); }

/* Tinted fact tiles */

.tiles {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 16px 28px;
  font-size: 18px;
}

.tiles li { background: var(--tint); border-radius: 8px; padding: 16px 20px; }
.tiles span { color: var(--muted); }

/* --- Photo band --------------------------------------------------------- */

.photo-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px; }

.photo-band figure { margin: 0; transition: transform 0.25s ease; }

.photo-band img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Lift-on-hover only where there is a real pointer; on a touch screen it
   would stick after the tap. */
@media (hover: hover) {
  .card:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
    transform: translateY(-5px);
  }
  .photo-band figure:hover { transform: scale(1.02); }
}

/* --- Booking band + footer (every page) --------------------------------- */

.book-band { background: var(--tint); border-top: 1px solid var(--line); text-align: center; }
.book-band .wrap { padding-top: 56px; padding-bottom: 56px; }
.book-band h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 36px; line-height: 1.15; margin: 0 0 28px; }

.book-options { display: flex; flex-wrap: wrap; gap: 32px 56px; justify-content: center; }
.book-options > div { min-width: min(260px, 100%); }
.book-options p { margin: 12px 0 0; font-size: 17px; color: var(--muted); }

.footer { background: var(--accent-dark); color: #EDEDED; }

.footer .wrap {
  padding-top: 48px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 28px;
  font-size: 18px;
}

.footer a { color: #fff; text-decoration: underline; text-underline-offset: 0.18em; overflow-wrap: anywhere; }
.footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.footer strong { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 600; }

/* --- Rooms page --------------------------------------------------------- */

.room {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.room-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  overflow: hidden;
  background: var(--tint);
  touch-action: pan-y pinch-zoom; /* horizontal swipes go to the carousel */
}

/* contain, not cover: the entire photograph is always visible. Portrait and
   panoramic shots simply sit on the tinted ground rather than being cut. */
.room-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.room-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  min-width: 56px;
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #121212;
  font-size: 26px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.room-arrow:hover { background: #121212; color: #fff; }
.room-arrow.prev { left: 12px; }
.room-arrow.next { right: 12px; }

.room-zoom {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #121212;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.room-zoom:hover { background: #121212; color: #fff; }

.room-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 16px;
  padding: 6px 14px;
  border-radius: 6px;
}

.room-body { padding: 22px clamp(20px, 2.5vw, 32px); font-size: 17px; line-height: 1.7; }

.room-body h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.room-type {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
}

.room-desc { margin: 0 0 16px; max-width: 60ch; font-size: 16.5px; }

.room-amenities {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

.room-amenities li { border-top: 1px solid var(--line); padding: 8px 0; }

.room-rates { margin: 0 0 14px; border-top: 1px solid var(--line); padding-top: 10px; }

.room-rates h3 {
  margin: 0 0 3px;
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-dark);
}

.room-rates p { margin: 0; font-size: 15px; color: var(--muted); }

.room-rates-note {
  margin-top: 8px !important;
  font-size: 14.5px;
  line-height: 1.45;
  max-width: 52ch;
}

/* --- Rates page --------------------------------------------------------- */

.rate-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 32px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.rate-card h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 30px; margin: 0 0 2px; }
.rate-card > p { margin: 0 0 20px; font-size: 17px; color: var(--muted); }

.dl-price { margin: 0; font-size: 19px; }

.dl-price > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.dl-price dt { margin: 0; }
/* The price keeps to one line and, if the label is long, drops under it
   right-aligned rather than pushing the card sideways. */
.dl-price dd { margin: 0 0 0 auto; font-weight: 600; white-space: nowrap; }

.dl-rows { margin: 0; font-size: 19px; max-width: 820px; }

.dl-rows > div {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 8px 24px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.dl-rows dt { margin: 0; font-weight: 600; }
.dl-rows dd { margin: 0; }

.rates-included { margin: 24px 0 0; font-size: 18px; color: var(--muted); }

/* --- Facilities hero ---------------------------------------------------- */

/* A mood banner, not a picture: the photo sits softened and darkened behind
   the heading, so a small or oddly shaped upload never shows as pixels or an
   awkward crop. Shorter than a photo banner needs to be. */
.fac-hero {
  position: relative;
  height: min(34vw, 50vh, 440px);
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--accent-dark);
}

.fac-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(0.9);
  transform: scale(1.06); /* hides the blurred edge */
}

.fac-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.3) 100%);
}

.fac-hero-inner {
  position: relative;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 48px;
  color: #fff;
}

.fac-hero-inner h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); margin-bottom: 6px; }
.fac-hero-inner p { max-width: 68ch; margin: 0; font-size: 20px; color: rgba(255, 255, 255, 0.94); }

.section-intro { margin: 0 0 32px; color: var(--muted); max-width: 68ch; }

/* --- Gallery ------------------------------------------------------------ */

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 28px; }

.gallery-item {
  /* A column, photo at the top and the caption taking whatever height the
     row has to spare — a button would otherwise centre its content and
     leave bands above and below the photo. */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.gallery-item:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14); }

.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.gallery-item picture, .gallery-item > img { flex: none; }
.gallery-caption { display: block; flex: 1; padding: 12px 18px; font-size: 17px; color: var(--ink); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overscroll-behavior: contain;
}

.lightbox[hidden] { display: none; }

.lightbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.lightbox-head p { margin: 0; color: #FFFFFF; font-size: 20px; min-width: 0; }

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  touch-action: pan-y pinch-zoom; /* horizontal swipes move between photos */
}
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }

.lightbox-foot { display: flex; gap: 16px; margin-top: 16px; justify-content: center; }

.lightbox-btn {
  min-height: 56px;
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  background: none;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  border-radius: 6px;
  cursor: pointer;
  padding: 0 24px;
  flex: none;
}

.lightbox-btn.solid { background: #FFFFFF; color: #121212; border: 0; min-width: 120px; }

/* --- Contact ------------------------------------------------------------ */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; }

.dl-contact { margin: 0 0 32px; font-size: 20px; }
.dl-contact > div { border-top: 1px solid var(--line); padding: 16px 0; }
.dl-contact dt { margin: 0; font-weight: 600; }
.dl-contact dd { margin: 0; }
.dl-contact dd a { font-size: 22px; }
.dl-contact dd a.email { font-size: 20px; overflow-wrap: anywhere; }

.map-embed {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 10px;
  display: block;
  background: var(--tint);
}

.map-open { margin-top: 14px; }

.map-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  width: 100%;
  min-height: 240px;
  aspect-ratio: 16 / 9;
  border: 2px dashed var(--line);
  border-radius: 10px;
  background: var(--tint);
  padding: 24px;
  color: var(--muted);
  font-size: 18px;
}

.map-placeholder strong { color: var(--ink); font-size: 19px; }

.form { display: grid; gap: 24px; max-width: 560px; }
.form label { font-size: 19px; font-weight: 600; display: block; margin-bottom: 8px; }

.form input,
.form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 19px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.form input { min-height: 56px; padding: 0 16px; }
.form textarea { padding: 14px 16px; line-height: 1.6; resize: vertical; }

.form input:focus,
.form textarea:focus { border-color: var(--accent); }

.form-status {
  margin: 16px 0 0;
  font-size: 19px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  padding: 14px 18px;
  max-width: 48ch;
  background: #fff;
}

.form-status[hidden] { display: none; }

/* --- Phone header (below the desktop breakpoint) ------------------------
   The brand line becomes a compact bar with a Menu button; the navigation
   and the language switch live in a panel that the button opens. With
   JavaScript off there is no button and the links show as a wrapped row.
   ---------------------------------------------------------------------- */

@media (max-width: 899px) {
  .header-bar {
    gap: 8px 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    flex: 1 1 0;
    margin-right: 0;
    min-height: 48px;
    font-size: 20px;
    line-height: 1.1;
    gap: 10px;
  }

  .brand-mark { height: 40px; }

  .brand-sub {
    font-size: 11px;
    letter-spacing: 0.1em;
    margin-top: 3px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
  }

  .nav-toggle[aria-expanded="true"] {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
  }

  /* Three bars that fold into a cross when the panel is open. */
  .nav-toggle-icon {
    position: relative;
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }

  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1px;
    background: currentColor;
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    background: transparent;
    box-shadow: none;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { opacity: 1; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::after  { opacity: 1; transform: rotate(-45deg); }

  .header-menu {
    display: none;
    flex: 1 0 100%;
    margin: 2px calc(-1 * var(--pad)) -10px;
    padding: 6px var(--pad) 18px;
    border-top: 1px solid var(--line);
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
  }

  .header-menu.is-open,
  .no-js .header-menu { display: block; }

  .no-js .nav-toggle { display: none; }

  .header-menu .nav {
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    border-top: 0;
  }

  .header-menu .nav a {
    min-height: 52px;
    padding: 0 6px;
    border-bottom: 1px solid var(--line);
  }

  .header-menu .nav a[aria-current="page"] {
    box-shadow: inset 4px 0 0 var(--cta);
    padding-left: 16px;
  }

  /* Without JavaScript the links show as a compact wrapped row instead. */
  .no-js .header-menu .nav { flex-direction: row; flex-wrap: wrap; gap: 0 2px; }
  .no-js .header-menu .nav a { min-height: 44px; padding: 0 10px; font-size: 17px; border-bottom: 0; }
  .no-js .header-menu .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--cta); padding-left: 10px; }

  .header-menu .lang { margin-top: 16px; }

  /* Room cards fold to one column here; the photo box takes its height from
     the picture instead of a fixed 440px, so no grey bands above and below. */
  .room-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .room-arrow { min-width: 44px; min-height: 44px; font-size: 22px; }
  .room-arrow.prev { left: 8px; }
  .room-arrow.next { right: 8px; }

  .room-zoom { left: 8px; bottom: 8px; min-height: 40px; padding: 0 12px; font-size: 14px; }
  .room-count { right: 8px; bottom: 8px; font-size: 14px; padding: 4px 10px; }

  .room-body .btn { width: 100%; }
}

/* The narrowest phones: keep the name to two lines beside the Menu button. */
@media (max-width: 359px) {
  .brand { font-size: 18px; gap: 8px; }
  .brand-mark { height: 36px; }
  .brand-sub { font-size: 10px; letter-spacing: 0.08em; }
  .nav-toggle { padding: 0 12px; }
}

/* Above tablet width the photo takes the larger share of the room card. */
@media (min-width: 900px) {
  .brand-mark { height: 58px; }

  .room {
    grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr);
  }
}

/* --- Phone type scale and stacked layouts -------------------------------- */

@media (max-width: 600px) {
  body { font-size: 18px; line-height: 1.6; }

  .site { --sec: 44px; --sec-lg: 48px; }

  .main-pad { padding-top: 36px; padding-bottom: 40px; }

  .page-title { font-size: 36px; }
  .page-intro { margin-bottom: 28px; }
  .h2 { font-size: 30px; }
  .h3 { font-size: 24px; }

  .btn { padding-left: 24px; padding-right: 24px; }

  /* Hero */
  .hero { min-height: min(80vh, 640px); min-height: min(80svh, 640px); }
  .hero-inner { padding: 56px var(--pad, 20px) 60px; }
  .hero-kicker { font-size: 13px; letter-spacing: 0.22em; margin-bottom: 14px; }
  .hero-title { font-size: 40px; }
  .hero-tagline { font-size: 22px; margin-bottom: 20px; }
  .hero-text { font-size: 18px; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn { width: 100%; max-width: 340px; }

  /* Cards, panels, grids */
  .grid-cards, .grid-wide, .photo-band, .gallery-grid { gap: 20px; }
  .grid-wide { gap: 28px; }
  .card-body, .panel-body { padding: 18px 20px 22px; }
  .card-title { font-size: 24px; }
  .card-sub, .panel-body p { font-size: 17px; }
  .tiles { gap: 12px; font-size: 17px; }
  .tiles li { padding: 14px 16px; }

  /* Rooms */
  .room { margin-bottom: 24px; }
  .room-body { padding: 18px 20px 22px; }

  /* Rates */
  .rate-card { padding: 22px 20px; }
  .rate-card h2 { font-size: 27px; }
  .dl-price, .dl-rows { font-size: 18px; }
  .dl-rows > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }

  /* Facilities */
  .fac-hero { min-height: 280px; }
  .fac-hero-inner { padding-top: 36px; padding-bottom: 36px; }
  .fac-hero-inner p { font-size: 18px; }
  .section-intro { margin-bottom: 24px; }

  /* Gallery + lightbox */
  .gallery-caption { padding: 10px 14px; font-size: 16px; }
  .lightbox { padding: 10px; }
  .lightbox-head { gap: 10px; margin-bottom: 10px; }
  .lightbox-head p { font-size: 16px; line-height: 1.35; }
  .lightbox-btn { min-height: 48px; font-size: 17px; padding: 0 16px; }
  .lightbox-btn.solid { min-width: 0; }
  .lightbox-foot { gap: 10px; margin-top: 10px; }
  .lightbox-foot .lightbox-btn { flex: 1 1 0; }

  /* Contact */
  .contact-grid { gap: 36px; }
  .dl-contact { font-size: 19px; }
  .dl-contact dd a { font-size: 20px; }
  .form { gap: 18px; }
  .form .btn { width: 100%; }
  .map-placeholder { padding: 20px 16px; font-size: 17px; }

  /* Booking band + footer */
  .book-band .wrap { padding-top: 44px; padding-bottom: 44px; }
  .book-band h2 { font-size: 30px; margin-bottom: 22px; }
  .book-options { flex-direction: column; align-items: center; gap: 24px; }
  .book-options > div { width: 100%; max-width: 340px; }
  .book-options .btn { width: 100%; }
  .footer .wrap { padding-top: 36px; padding-bottom: 36px; gap: 20px; font-size: 17px; }

  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; max-width: 340px; }
}

/* --- Animations --------------------------------------------------------- */

@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* --- Print (Rates and Contact are meant to print cleanly) --------------- */

@media print {
  .header .nav,
  .header .lang,
  .header .nav-toggle,
  .book-band,
  .skip-link,
  .form,
  .lightbox { display: none !important; }

  .header { position: static; box-shadow: none; }
  .site { background: #fff; }
  .footer { background: #fff; color: #000; }
  .footer a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 13px; word-break: break-all; }
}

/* --- Photo boxes follow the photo ---------------------------------------
   Instead of one fixed shape that cuts the edges off, each box takes the
   shape of its own photo within limits: anything from a wide 2:1 to a 4:3
   shows whole, the box a touch shorter or taller. Shapes beyond that
   (portraits, panoramas) are fitted inside on a tinted ground. cqw is the
   box's own width, so the limits scale with the column. */
.card, .panel, .gallery-item, .photo-band figure,
figure:has(> .map-photo), figure:has(> picture > .map-photo) { container-type: inline-size; }

.card img, .panel img, .gallery-item img, .photo-band img, .map-photo {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  min-height: 50cqw;  /* 2:1 */
  max-height: 75cqw;  /* 4:3 */
  object-fit: contain;
  background: var(--tint);
  display: block;
}
