/* =================================================================
   Old Pier Apartments — Bridport, Tasmania
   styles.css  ·  Coastal premium design system
   -----------------------------------------------------------------
   Sections
   1.  Design tokens (:root)
   2.  Reset & base
   3.  Typography helpers
   4.  Layout (container, sections, grid)
   5.  Buttons
   6.  Header & navigation
   7.  Hero & page-hero
   8.  Booking callout band
   9.  Cards (apartment / highlight / feature)
   10. Feature & amenity lists
   11. Reviews / guest feedback
   12. Comparison table
   13. Gallery & lightbox
   14. Forms & booking enquiry
   15. FAQ accordion
   16. CTA band
   17. Footer
   18. Image placeholders
   19. Breadcrumbs & misc
   20. Responsive
   21. Accessibility & reduced motion
   ================================================================= */

/* 1. DESIGN TOKENS ------------------------------------------------ */
:root {
  /* Coastal colour palette (semantic tokens) */
  --c-offwhite:   #EDF2EE;  /* page background — calm sea-glass */
  --c-cream:      #E3EBE4;  /* alt section background */
  --c-sand:       #DBE5DC;  /* soft sage surface      */
  --c-sand-deep:  #C2D3C6;  /* sage border / detail   */
  --c-navy:       #16324F;  /* deep navy — headings   */
  --c-navy-deep:  #0E2333;  /* footer / darkest       */
  --c-blue:       #6E9DBE;  /* soft coastal blue      */
  --c-blue-soft:  #D9E6E5;  /* pale sea-mist tint     */
  --c-teal:       #2C7A72;  /* muted teal accent      */
  --c-teal-700:   #1F635C;  /* primary action bg      */
  --c-teal-800:   #184E48;  /* primary action hover   */
  --c-timber:     #B0794E;  /* warm timber            */
  --c-timber-700: #8F5F3B;  /* timber deep            */

  --c-ink:        #1C2B36;  /* body text              */
  --c-muted:      #566570;  /* secondary text         */
  --c-line:       rgba(22, 50, 79, 0.14);
  --c-line-soft:  rgba(22, 50, 79, 0.08);
  --c-white:      #F8FBF8;  /* card surface — soft, not stark white */

  /* Feedback colours */
  --c-error:      #B23A2E;
  --c-error-bg:   #FBEDEB;
  --c-success:    #1F6B4A;
  --c-success-bg: #E8F3EC;

  /* Typography */
  --ff-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ff-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-xs:   0.8rem;
  --fs-sm:   0.9rem;
  --fs-base: 1rem;
  --fs-md:   1.075rem;
  --fs-lg:   1.3rem;
  --fs-xl:   clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  --fs-2xl:  clamp(1.9rem, 1.3rem + 2.6vw, 2.7rem);
  --fs-3xl:  clamp(2.3rem, 1.4rem + 3.8vw, 3.4rem);
  --fs-hero: clamp(2.5rem, 1.5rem + 4.6vw, 4.2rem);

  /* Spacing (8pt rhythm) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(14, 35, 51, 0.06), 0 2px 6px rgba(14, 35, 51, 0.06);
  --sh-2: 0 8px 22px rgba(14, 35, 51, 0.10);
  --sh-3: 0 20px 48px rgba(14, 35, 51, 0.16);

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;

  /* z-index scale */
  --z-header: 100;
  --z-overlay: 800;
  --z-lightbox: 1000;
}

/* 2. RESET & BASE ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-offwhite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--c-teal-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-teal-800); }

button { font: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--c-navy);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--c-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--c-blue-soft); color: var(--c-navy); }

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--c-navy);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--r-pill);
  z-index: 1100;
  transition: top var(--dur) var(--ease);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 10px; color: #fff; }

/* 3. TYPOGRAPHY HELPERS ------------------------------------------ */
.eyebrow {
  font-family: var(--ff-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-teal);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--c-timber);
  display: inline-block;
}
.eyebrow.is-centered { justify-content: center; }

.section-title { font-size: var(--fs-2xl); margin-top: 0.6rem; }
.section-lead {
  font-size: var(--fs-md);
  color: var(--c-muted);
  max-width: 60ch;
  margin-top: 1rem;
}
.text-center { text-align: center; }
.center-x { margin-inline: auto; }
.measure { max-width: 64ch; }

/* 4. LAYOUT ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.is-narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section.is-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--sand { background: var(--c-cream); }
.section--navy { background: var(--c-navy); color: #E7EEF3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--blue { background: var(--c-blue-soft); }

.section-head { max-width: 64ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head.is-centered .section-lead { margin-inline: auto; }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr 1fr;
}
.split.is-reverse .split-media { order: 2; }

/* 5. BUTTONS ------------------------------------------------------ */
.btn {
  --btn-bg: var(--c-teal-700);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.8rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  touch-action: manipulation;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { background: var(--c-teal-800); border-color: var(--c-teal-800); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }

.btn-secondary {
  --btn-bg: transparent;
  --btn-fg: var(--c-navy);
  border-color: var(--c-navy);
}
.btn-secondary:hover { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }

.btn-light {
  --btn-bg: rgba(255, 255, 255, 0.95);
  --btn-fg: var(--c-navy);
  border-color: rgba(255, 255, 255, 0.95);
}
.btn-light:hover { background: #fff; color: var(--c-navy); border-color: #fff; }

.btn-outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

.btn-block { width: 100%; }
.btn-lg { min-height: 56px; padding: 1rem 2rem; font-size: var(--fs-md); }
.btn-sm { min-height: 42px; padding: 0.5rem 1.1rem; font-size: var(--fs-sm); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn-row.is-centered { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--c-teal-700);
}
.link-arrow svg { transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* 6. HEADER & NAVIGATION ------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(237, 242, 238, 0.86);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--c-line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--c-navy);
}
.brand-mark {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--c-navy);
  color: #fff;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--ff-display); font-weight: 600; font-size: 1.18rem; color: var(--c-navy); }
.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 600;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
}
.primary-nav a:not(.btn) {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  border-radius: var(--r-sm);
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.primary-nav a:not(.btn):hover { background: var(--c-sand); color: var(--c-navy); }
.primary-nav a[aria-current="page"] {
  color: var(--c-navy);
  font-weight: 600;
  background: var(--c-sand);
}
.nav-cta { margin-left: 0.4rem; }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--c-line);
  background: var(--c-white);
  border-radius: 12px;
  position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--c-navy);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* 7. HERO & PAGE-HERO --------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  min-height: clamp(560px, 84vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Coastal gradient sits behind image so the hero looks premium even before photos load */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120% 90% at 75% 10%, #2C7A72 0%, transparent 55%),
    linear-gradient(160deg, #1B3C5B 0%, #16324F 45%, #0E2333 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Two scrims: a vertical one for overall depth, plus a left-weighted one so the
     headline stays legible over a bright photo while the right of the image
     (buildings, street number) keeps its daylight. */
  background:
    linear-gradient(100deg, rgba(14, 35, 51, 0.80) 0%, rgba(14, 35, 51, 0.60) 38%, rgba(14, 35, 51, 0.18) 68%, rgba(14, 35, 51, 0.10) 100%),
    linear-gradient(180deg, rgba(14, 35, 51, 0.22) 0%, rgba(14, 35, 51, 0.30) 45%, rgba(14, 35, 51, 0.72) 100%);
}
.hero-inner { padding-block: clamp(2.5rem, 7vw, 5rem); max-width: 760px; }
.hero .eyebrow { color: #ffd9b0; }
.hero .eyebrow::before { background: #ffd9b0; }
.hero h1 {
  color: #fff;
  font-size: var(--fs-hero);
  margin-top: 1rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero-sub {
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.3rem);
  color: #EAF1F6;
  margin-top: 1.2rem;
  max-width: 56ch;
}
.hero .btn-row { margin-top: 1.9rem; }
.hero-trust {
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: #EAF1F6;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.hero-trust svg { width: 18px; height: 18px; color: #ffd9b0; flex: none; }

/* Sub-page hero */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--c-navy);
  color: #fff;
  padding-block: clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 120% at 90% -10%, rgba(44, 122, 114, 0.55) 0%, transparent 60%),
    linear-gradient(120deg, #16324F, #0E2333);
}
.page-hero h1 { color: #fff; font-size: var(--fs-3xl); margin-top: 0.8rem; }
.page-hero .eyebrow { color: #ffd9b0; }
.page-hero .eyebrow::before { background: #ffd9b0; }
.page-hero-sub { color: #DDE7EE; font-size: var(--fs-md); margin-top: 1rem; max-width: 64ch; }

/* 8. BOOKING CALLOUT BAND ----------------------------------------- */
.callout-band {
  background: var(--c-timber);
  color: #fff;
}
.callout-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem 1.2rem;
  text-align: center;
  padding-block: 1.1rem;
}
.callout-inner svg { width: 22px; height: 22px; flex: none; }
.callout-inner p { font-weight: 600; font-size: var(--fs-md); }
.callout-inner strong { font-family: var(--ff-display); }

/* 9. CARDS -------------------------------------------------------- */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.card-body { padding: clamp(1.3rem, 3vw, 1.8rem); display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }
.card-title { font-size: var(--fs-xl); }
.card-text { color: var(--c-muted); }
.card .btn { margin-top: auto; }

.apt-card .card-media { position: relative; }
.apt-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(14, 35, 51, 0.78);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--c-sand);
  color: var(--c-navy);
  border-radius: var(--r-pill);
  padding: 0.35rem 0.8rem;
  font-size: var(--fs-sm);
  font-weight: 500;
}
.chip svg { width: 15px; height: 15px; color: var(--c-teal); flex: none; }

/* Highlight cards (why stay / local) */
.feature-card {
  background: var(--c-white);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md);
  padding: clamp(1.3rem, 3vw, 1.7rem);
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  height: 100%;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--c-blue-soft);
  color: var(--c-navy);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: var(--fs-lg); }
.feature-card p { color: var(--c-muted); font-size: var(--fs-sm); }

/* local highlight tiles with image */
.highlight-tile {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  box-shadow: var(--sh-1);
}
.highlight-tile .img-frame { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.highlight-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 35, 51, 0) 30%, rgba(14, 35, 51, 0.85) 100%);
}
.highlight-tile-body { padding: 1.4rem; }
.highlight-tile h3 { color: #fff; font-size: var(--fs-lg); }
.highlight-tile p { color: #E7EEF3; font-size: var(--fs-sm); margin-top: 0.25rem; }

/* 10. FEATURE & AMENITY LISTS ------------------------------------- */
.amenity-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.7rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.amenity-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--fs-base);
}
.amenity-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--c-teal);
  margin-top: 1px;
}
.tick-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.tick-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.tick-list svg { width: 20px; height: 20px; color: var(--c-teal); flex: none; margin-top: 2px; }

.stat-row { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 3rem); }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--ff-display); font-size: var(--fs-2xl); color: var(--c-navy); line-height: 1; }
.stat-label { font-size: var(--fs-sm); color: var(--c-muted); margin-top: 0.3rem; }

/* 11. REVIEWS / GUEST FEEDBACK ------------------------------------ */
/* Hero score chip */
.score-chip {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 0.4rem;
  border-radius: 10px 10px 10px 3px;
  background: #FEBB02;            /* review-badge gold */
  color: var(--c-navy-deep);
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

/* Review summary panel (score + category bars) */
.review-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  background: var(--c-white);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: clamp(1.4rem, 3.5vw, 2.2rem) clamp(1.4rem, 4vw, 2.8rem);
}
.review-score { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; text-align: center; }
.review-score-badge {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 22px 22px 22px 6px;
  background: linear-gradient(150deg, var(--c-navy) 0%, var(--c-navy-deep) 100%);
  color: #fff;
  font-family: var(--ff-display);
  font-size: 2.1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 24px rgba(14, 35, 51, 0.28);
}
.review-score-label { font-family: var(--ff-display); font-size: var(--fs-lg); font-weight: 600; color: var(--c-navy); }
.review-score-count { font-size: var(--fs-xs); color: var(--c-muted); }

.review-bars { list-style: none; padding: 0; display: grid; gap: 0.55rem 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.review-bars li { display: grid; grid-template-columns: 8.2em 1fr 2.4em; align-items: center; gap: 0.7rem; font-size: var(--fs-sm); }
.review-bars .bar-label { color: var(--c-ink); font-weight: 500; }
.review-bars .bar-track { height: 7px; border-radius: 99px; background: var(--c-sand); overflow: hidden; }
.review-bars .bar-fill {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--c-teal) 0%, var(--c-teal-700) 100%);
}
.review-bars .bar-num { color: var(--c-navy); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

/* Per-quote score badge */
.quote-score {
  align-self: flex-start;
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 0.45rem;
  border-radius: 10px 10px 10px 3px;
  background: var(--c-navy);
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .review-summary { grid-template-columns: 1fr; }
  .review-bars { grid-template-columns: 1fr; }
}

.quote-card {
  background: var(--c-white);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}
.quote-mark { font-family: var(--ff-display); font-size: 3rem; line-height: 0.6; color: var(--c-sand-deep); height: 1.4rem; }
.quote-card blockquote { font-size: var(--fs-md); color: var(--c-ink); }
.quote-attr { font-size: var(--fs-sm); color: var(--c-muted); font-weight: 600; margin-top: auto; }
.quote-theme {
  display: inline-block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-teal);
  font-weight: 700;
}
.feedback-note {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  border: 1px dashed var(--c-sand-deep);
  background: var(--c-cream);
  border-radius: var(--r-sm);
  padding: 0.9rem 1.1rem;
  margin-top: 1.8rem;
}

/* 12. COMPARISON TABLE -------------------------------------------- */
.compare-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--c-line); box-shadow: var(--sh-1); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--c-white); }
.compare-table caption { text-align: left; padding: 1rem 1.2rem; color: var(--c-muted); font-size: var(--fs-sm); }
.compare-table th, .compare-table td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--c-line-soft); vertical-align: top; }
.compare-table thead th { background: var(--c-navy); color: #fff; font-family: var(--ff-display); font-size: var(--fs-md); font-weight: 600; }
.compare-table tbody th {
  font-family: var(--ff-body);
  font-weight: 600;
  color: var(--c-navy);
  background: var(--c-cream);
  width: 30%;
}
.compare-table tbody tr:last-child td, .compare-table tbody tr:last-child th { border-bottom: none; }
.compare-table td svg { width: 18px; height: 18px; color: var(--c-teal); vertical-align: -3px; margin-right: 0.3rem; }
.compare-cta-row td { background: var(--c-cream); }

/* 13. GALLERY & LIGHTBOX ------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.5vw, 1rem);
}
.gallery-item {
  padding: 0;
  border: none;
  background: none;
  border-radius: var(--r-sm);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.gallery-item .img-frame { border-radius: var(--r-sm); }
.gallery-item img { transition: transform 400ms var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 35, 51, 0);
  transition: background var(--dur) var(--ease);
  pointer-events: none;
}
.gallery-item:hover::after { background: rgba(14, 35, 51, 0.12); }
.gallery-item .zoom-badge {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-navy);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gallery-item:hover .zoom-badge, .gallery-item:focus-visible .zoom-badge { opacity: 1; transform: translateY(0); }
.gallery-item .zoom-badge svg { width: 18px; height: 18px; }
.gallery-item.is-wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(8, 20, 30, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.8rem, 3vw, 2.5rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-stage { max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 0.8rem; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; gap: 0.7rem; align-items: center; }
.lightbox-figure img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-3);
  object-fit: contain;
}
.lightbox-figure figcaption { color: #DDE7EE; font-size: var(--fs-sm); text-align: center; }
.lightbox-counter { color: rgba(255, 255, 255, 0.7); font-size: var(--fs-sm); text-align: center; }
.lightbox-btn {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  backdrop-filter: blur(4px);
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-btn svg { width: 24px; height: 24px; }
.lightbox-close { top: clamp(0.8rem, 3vw, 1.6rem); right: clamp(0.8rem, 3vw, 1.6rem); }
.lightbox-prev { left: clamp(0.5rem, 2vw, 1.6rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(0.5rem, 2vw, 1.6rem); top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.06); }

/* 14. FORMS & BOOKING ENQUIRY ------------------------------------- */
.form-card {
  background: var(--c-white);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  padding: clamp(1.4rem, 4vw, 2.6rem);
}
.form-grid { display: grid; gap: 1.1rem 1.3rem; grid-template-columns: repeat(2, 1fr); }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.is-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--c-navy); }
.field .req { color: var(--c-timber-700); }
.field .hint { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-offwhite);
  color: var(--c-ink);
  font-size: var(--fs-base);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2316324F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(44, 122, 114, 0.18);
}
.field input::placeholder, .field textarea::placeholder { color: #9AA6AE; }
.field .field-error {
  font-size: var(--fs-xs);
  color: var(--c-error);
  font-weight: 600;
  min-height: 1em;
  display: none;
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--c-error);
  background: var(--c-error-bg);
}
.field.has-error .field-error { display: block; }

fieldset { border: none; padding: 0; margin: 0; }
fieldset legend { font-weight: 600; font-size: var(--fs-sm); color: var(--c-navy); margin-bottom: 0.5rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  background: var(--c-offwhite);
  transition: all var(--dur) var(--ease);
  min-height: 44px;
}
.radio-pill input:checked + span { border-color: var(--c-teal); background: rgba(44, 122, 114, 0.1); color: var(--c-navy); font-weight: 600; }
.radio-pill input:focus-visible + span { outline: 3px solid var(--c-teal); outline-offset: 2px; }

.nights-readout {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--c-blue-soft);
  border-radius: var(--r-sm);
  padding: 0.8rem 1rem;
  font-size: var(--fs-sm);
  color: var(--c-navy);
  font-weight: 600;
}
.nights-readout svg { width: 20px; height: 20px; flex: none; }
.nights-readout[hidden] { display: none; }

.form-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.form-disclaimer { font-size: var(--fs-xs); color: var(--c-muted); margin-top: 1rem; }

.form-status { border-radius: var(--r-sm); padding: 1rem 1.2rem; font-size: var(--fs-sm); display: none; gap: 0.7rem; align-items: flex-start; }
.form-status[data-state="success"] { display: flex; background: var(--c-success-bg); color: var(--c-success); border: 1px solid rgba(31, 107, 74, 0.3); }
.form-status[data-state="error"] { display: flex; background: var(--c-error-bg); color: var(--c-error); border: 1px solid rgba(178, 58, 46, 0.3); }
.form-status svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.form-status strong { display: block; font-size: var(--fs-base); }

/* Booking engine embed placeholder */
.embed-frame {
  border: 2px dashed var(--c-sand-deep);
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(45deg, rgba(176, 121, 78, 0.04) 0 14px, transparent 14px 28px),
    var(--c-cream);
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.embed-frame .embed-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--c-white); color: var(--c-teal);
  display: grid; place-items: center; margin: 0 auto 1rem; box-shadow: var(--sh-1);
}
.embed-frame .embed-icon svg { width: 32px; height: 32px; }
.embed-frame h3 { color: var(--c-navy); }
.embed-frame p { color: var(--c-muted); max-width: 46ch; margin: 0.6rem auto 0; }
.embed-frame code { background: var(--c-sand); padding: 0.15rem 0.45rem; border-radius: 6px; font-size: 0.85em; color: var(--c-navy); }

.mode-tabs { display: inline-flex; gap: 0.3rem; background: var(--c-sand); padding: 0.3rem; border-radius: var(--r-pill); margin-bottom: 1.6rem; }
.mode-tab {
  border: none; background: none; padding: 0.6rem 1.2rem; border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--fs-sm); color: var(--c-muted); min-height: 44px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.mode-tab[aria-selected="true"] { background: var(--c-white); color: var(--c-navy); box-shadow: var(--sh-1); }
.mode-panel[hidden] { display: none; }

/* 15. FAQ ACCORDION ----------------------------------------------- */
.accordion { display: grid; gap: 0.8rem; }
.accordion-heading { margin: 0; font: inherit; }
.accordion-item {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.accordion-item.is-open { box-shadow: var(--sh-1); border-color: var(--c-sand-deep); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--c-navy);
}
.accordion-trigger:hover { color: var(--c-teal-700); }
.accordion-icon {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c-sand);
  display: grid; place-items: center;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.accordion-icon svg { width: 16px; height: 16px; color: var(--c-navy); }
.accordion-item.is-open .accordion-icon { transform: rotate(45deg); background: var(--c-teal); }
.accordion-item.is-open .accordion-icon svg { color: #fff; }
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease); }
.accordion-panel-inner { overflow: hidden; }
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel-inner p { padding: 0 1.3rem 1.3rem; color: var(--c-muted); }
.accordion-panel-inner p + p { padding-top: 0; }

/* 16. CTA BAND ---------------------------------------------------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 120% at 15% 10%, rgba(44, 122, 114, 0.6) 0%, transparent 55%),
    linear-gradient(120deg, #16324F, #0E2333);
}
.cta-band .container { padding-block: clamp(3rem, 7vw, 5rem); text-align: center; }
.cta-band h2 { color: #fff; font-size: var(--fs-2xl); }
.cta-band p { color: #DDE7EE; max-width: 54ch; margin: 1rem auto 0; font-size: var(--fs-md); }
.cta-band .btn-row { margin-top: 1.8rem; }

/* 17. FOOTER ------------------------------------------------------ */
.site-footer { background: var(--c-navy-deep); color: #C9D6DF; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #8EA3B2; }
.footer-brand p { color: #AFC0CC; font-size: var(--fs-sm); margin-bottom: 0.6rem; line-height: 1.7; }
.footer-brand a { color: #fff; text-decoration: none; }
.footer-brand a:hover { color: #ffd9b0; text-decoration: underline; }
.footer-col h4 { color: #fff; font-family: var(--ff-body); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: #C9D6DF; text-decoration: none; font-size: var(--fs-sm); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col .btn { margin-top: 0.4rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
  color: #8EA3B2;
}
.footer-powered span { color: #C9D6DF; }

/* 18. IMAGE PLACEHOLDERS ------------------------------------------ */
.img-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #D9E6E5, #DBE5DC);
  border-radius: var(--r-md);
  margin: 0;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-3x4 { aspect-ratio: 3 / 4; }

/* Shown via JS when the real photo is missing */
.img-frame.is-missing img { display: none; }
.img-frame.is-missing {
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(44, 122, 114, 0.22) 0%, transparent 55%),
    linear-gradient(150deg, #20405E 0%, #16324F 60%, #0E2333 100%);
}
.img-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
  padding: 1.2rem;
  color: #EAF1F6;
}
.img-ph svg { width: 38px; height: 38px; opacity: 0.85; color: #ffd9b0; }
.img-ph .img-ph-purpose { font-family: var(--ff-display); font-size: 1.05rem; color: #fff; line-height: 1.2; }
.img-ph .img-ph-file {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #BFD0DC;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.img-ph .img-ph-tag { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; color: #ffd9b0; font-weight: 700; }

/* 19. BREADCRUMBS & MISC ------------------------------------------ */
.breadcrumb { font-size: var(--fs-sm); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; align-items: center; }
.breadcrumb a { color: #DDE7EE; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li[aria-current] { color: #ffd9b0; font-weight: 600; }
.breadcrumb .sep { color: rgba(255, 255, 255, 0.4); }

.info-card {
  background: var(--c-white);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md);
  padding: clamp(1.3rem, 3vw, 1.8rem);
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.info-card h3 { font-size: var(--fs-lg); display: flex; align-items: center; gap: 0.6rem; }
.info-card h3 svg { width: 22px; height: 22px; color: var(--c-teal); flex: none; }
.info-card p, .info-card address { color: var(--c-muted); font-style: normal; }
.info-card a { font-weight: 600; }

.map-frame {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-1);
  min-height: 360px;
  background:
    repeating-linear-gradient(0deg, rgba(110, 157, 190, 0.12) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(110, 157, 190, 0.12) 0 1px, transparent 1px 40px),
    var(--c-blue-soft);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}
.map-frame .embed-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--c-white); color: var(--c-teal); display: grid; place-items: center; margin: 0 auto 1rem; box-shadow: var(--sh-1); }
.map-frame .embed-icon svg { width: 30px; height: 30px; }
.map-frame h3 { color: var(--c-navy); }
.map-frame p { color: var(--c-muted); max-width: 44ch; margin: 0.5rem auto 0; }

.pill-note {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--c-sand); color: var(--c-navy);
  border-radius: var(--r-pill); padding: 0.45rem 1rem;
  font-size: var(--fs-sm); font-weight: 600;
}
.pill-note svg { width: 18px; height: 18px; color: var(--c-teal); }

.prose > * + * { margin-top: 1rem; }
.prose h3 { margin-top: 2rem; font-size: var(--fs-xl); }
.prose p { color: var(--c-ink); }

.divider { height: 1px; background: var(--c-line); border: none; margin-block: var(--sp-5); }

/* 20. RESPONSIVE -------------------------------------------------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--c-offwhite);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--sh-2);
    padding: 1rem var(--gutter) 1.6rem;
    display: none;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  .primary-nav.is-open { display: block; animation: navIn 220ms var(--ease); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .primary-nav a:not(.btn) { padding: 0.85rem 0.8rem; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav-cta { margin: 0.6rem 0 0; }
  .nav-cta .btn { width: 100%; }
  @keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split.is-reverse .split-media { order: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.is-wide { grid-column: span 2; }
  .amenity-list { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .btn-row .btn { width: 100%; }
}

/* 21. ACCESSIBILITY & REDUCED MOTION ------------------------------ */
.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;
}
[hidden] { display: none !important; }
body.no-scroll { overflow: hidden; }

@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;
  }
  .card:hover, .btn:hover { transform: none; }
  .gallery-item:hover img { transform: none; }
}

/* 22. SCROLL REVEAL -------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 640ms var(--ease), transform 640ms var(--ease);
    transition-delay: calc(var(--reveal-i, 0) * 80ms);
    will-change: opacity, transform;
  }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

/* 23. BENTO — "Why stay with us" ------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.4rem);
}

/* Elevated feature cards (upgrade over the flat originals) */
.bento .feature-card {
  background: var(--c-white);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.bento .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: var(--c-sand-deep);
}
.bento .feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: var(--c-blue-soft);
  color: var(--c-teal-700);
}
.bento .feature-icon svg { width: 26px; height: 26px; }
.bento .feature-card h3 { font-size: 1.16rem; margin-bottom: 0.5rem; }
.bento .feature-card p { color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.6; }

/* Wide photo feature tile */
.bento-feature {
  grid-column: 1 / -1;
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: clamp(260px, 34vw, 400px);
  box-shadow: var(--sh-2);
  isolation: isolate;
}
.bento-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias the crop upward so the barbeque stays in frame on wide viewports */
  object-position: 50% 30%;
  transition: transform 900ms var(--ease);
}
.bento-feature:hover img { transform: scale(1.04); }
.bento-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,35,51,0.05) 20%, rgba(14,35,51,0.42) 48%, rgba(14,35,51,0.80) 76%, rgba(14,35,51,0.93) 100%);
}
.bento-feature figcaption {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.4rem, 3.2vw, 2.4rem);
  max-width: 60ch;
}
.bento-feature figcaption h3 {
  color: #fff;
  font-size: var(--fs-xl);
  margin-bottom: 0.5rem;
}
.bento-feature figcaption p {
  color: #DDE7EE;
  font-size: var(--fs-md);
  line-height: 1.6;
}

/* 24. HOST — Colleen quotes ------------------------------------------ */
.host-quotes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.host-quote {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-line-soft);
  border-left: 3px solid var(--c-teal);
  border-radius: var(--r-md);
  padding: 1.15rem 1.3rem 1.15rem 1.4rem;
  box-shadow: var(--sh-1);
  display: grid;
  gap: 0.55rem;
}
.host-quote .quote-score {
  justify-self: start;
  position: static;
}
.host-quote blockquote {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--c-navy);
}
.host-quote cite {
  font-style: normal;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Top-rated review cards get a warmer accent */
.quote-card.is-top { border-top: 3px solid var(--c-teal); }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento-feature { min-height: 280px; }
}

/* 25. BOOK DIRECT ------------------------------------------------------ */
.status-extra { display: inline-block; margin-top: 0.5rem; font-size: var(--fs-sm); opacity: 0.95; }

/* Phone icon sits inline in "Call now" buttons */
.btn svg { width: 18px; height: 18px; flex: none; }

/* 26. INCLUDED LIST — "what every apartment includes" ------------------ */
.include-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem clamp(1.2rem, 3vw, 2.4rem);
}
.include-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  background: var(--c-white);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--c-ink);
  font-weight: 500;
}
.include-list li svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--c-teal);
}

@media (max-width: 860px) { .include-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .include-list { grid-template-columns: 1fr; } }

/* 27. SUCCESS-PANEL ACTIONS (pre-filled text to Colleen) --------------- */
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.9rem 0 0.2rem;
}
.status-actions .btn { min-height: 42px; }
.status-actions .btn svg { width: 17px; height: 17px; }


/* 28. GALLERY ROOM GROUPS — keep photos of the same room together ------- */
.gallery .gal-group {
  grid-column: 1 / -1;
  font-size: var(--fs-lg);
  color: var(--c-navy);
  margin: 1.4rem 0 -0.4rem;
}
.gallery .gal-group:first-child { margin-top: 0; }

/* Hero on phones -------------------------------------------------
   Two changes work together to keep the bay visible on a narrow screen.

   1. The water sits on the LEFT of the photo, so `cover` with a centred
      crop drops it behind the buildings and grasses. Pan the visible
      slice left. 12% keeps the bay and the far sand spit in frame while
      still showing the apartment row and the driveway; going further
      left drags in the neighbour's carport.

   2. The default scrim is left-weighted (0.80 -> 0.10 across the width)
      because on desktop the headline sits in the left column. On a phone
      the copy stacks full-width instead, so that gradient does nothing
      useful and lands its heaviest shading exactly on the water. Swap in
      a vertical scrim: dark at the top behind the headline and subhead,
      lifting through the middle so the bay reads at its real brightness,
      darkening again at the base into the band below. */
@media (max-width: 700px) {
  .hero-media img { object-position: 12% center; }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(14, 35, 51, 0.74) 0%,
      rgba(14, 35, 51, 0.66) 26%,
      rgba(14, 35, 51, 0.34) 46%,
      rgba(14, 35, 51, 0.32) 60%,
      rgba(14, 35, 51, 0.70) 100%
    );
  }
}
