/* =========================================================
   HostyGuides Front End v11 / V383
   Locked production stylesheet
   - Single source of truth for layout, components, palette and responsive rules
   - No historical patch stack
   ========================================================= */

:root {
  /* Brand */
  --green: #17491f;
  --green-light: #1d5c2c;
  --coral: #ff6b5d;
  --cream: #fbf7ee;
  --paper: #f6f3ee;
  --paper-edge: #e7dfd2;
  --surface: #fffdfa;
  --card-surface: var(--surface);
  --accordion-surface: #fffdfa;
  --ink: #1f2420;
  --brown: #533326;
  --muted: #90877f;
  --charcoal: #1F2A2E;
  --sand-header: #F3EEE7;

  /* Section palette */
  --stay: #B98B3A;
  --stay-dark: #8B5E1C;
  --explore: #3B6B7B;
  --explore-dark: #315B69;
  --property: #C77943;
  --property-dark: #8F5A2E;
  --services: #694C7A;
  --services-dark: #674B78;
  --emergency: #B54848;
  --emergency-dark: #A33E3E;

  /* Layout */
  --header-h: 74px;
  --shell-w: min(96vw, 1180px);
  --sidebar-w: 286px;
  --desktop-gap: 28px;
  --content-w: 760px;
  --home-w: 760px;

  /* Shape / surface */
  --line: rgba(60,45,30,.055);
  --soft-line: rgba(60,45,30,.045);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-soft: 0 10px 28px rgba(42,31,20,.055);
  --shadow-card: 0 16px 38px rgba(42,31,20,.10);
  --shadow-app: 0 12px 34px rgba(20,20,20,.08);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --body-size: 16px;
  --body-line: 1.62;
  --body-weight: 430;
  --title-size: clamp(1.45rem, 5vw, 2rem);
  --title-line: 1.08;
  --heading-size: 1.2rem;
  --accordion-title-size: 1.05rem;
  --accordion-item-title-size: .9rem;
  --signature-size: 2.1rem;
  --header-logo-width: 34px;
  --header-logo-height: 34px;
  --header-logo-fit: contain;
  --return-chip-bg: rgba(255,253,250,.94);
  --return-chip-text: var(--green);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--paper); }
body {
  font-family: var(--font);
  color: var(--ink);
  font-size: var(--body-size);
  line-height: var(--body-line);
  font-weight: var(--body-weight);
  letter-spacing: -0.006em;
}
button, a, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
#app {
  min-height: 100dvh;
  background: linear-gradient(90deg, rgba(231,223,210,.72), var(--paper) 10%, var(--paper) 90%, rgba(231,223,210,.72));
}

/* =========================================================
   App shell + header
   ========================================================= */

.stage {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: var(--header-h) 12px 24px;
  background: transparent;
}

.app-floating-controls {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--shell-w);
  height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -20%, rgba(255,255,255,.74), rgba(255,255,255,0) 62%),
    linear-gradient(180deg, #faf8f4, var(--sand-header));
  border-radius: 10px 10px 0 0;
  border: 1px solid rgba(60,45,30,.075);
  border-bottom: 0;
  box-shadow: 0 6px 24px rgba(42,31,20,.08);
}

.app-bar-logo {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: var(--header-logo-width, 50px);
  height: var(--header-logo-height, 50px);
  max-width: 62px;
  max-height: 62px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.18)) saturate(1.02);
}

.app-control-right { display: inline-flex; align-items: center; gap: 10px; pointer-events: none; }
.app-control-btn, .icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid rgba(60,45,30,.10);
  background: rgba(255,253,250,.62);
  color: var(--charcoal);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.50);
  font-weight: 800;
  pointer-events: auto;
  transition: transform .18s ease, background-color .18s ease, opacity .18s ease, filter .18s ease, box-shadow .18s ease;
}
.app-control-btn { font-size: 1.45rem; }
.icon-btn { font-size: 1.55rem; line-height: 1; }
.app-control-btn:active, .icon-btn:active { transform: scale(.98); background: rgba(255,253,250,.82); }
.app-control-btn.home-control, .home-control { display: inline-flex; }
.contact-control img { width: 25px; height: 25px; filter: brightness(0) saturate(100%) invert(13%) sepia(14%) saturate(846%) hue-rotate(156deg) brightness(95%) contrast(91%); opacity: 1; }
.home-control img { width: var(--header-logo-width, 34px); height: var(--header-logo-height, 34px); object-fit: var(--header-logo-fit, contain); opacity: 1; }
.home-control .header-home-icon { display: none; }

.floating-return-btn {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 950;
  transform: translate(-50%, 16px);
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: calc(100vw - 34px);
  padding: 10px 18px;
  border: 1px solid rgba(31,77,47,.16);
  border-radius: 999px;
  background: var(--return-chip-bg);
  color: var(--return-chip-text);
  box-shadow: 0 12px 32px rgba(20,20,20,.14);
  font-weight: 800;
  line-height: 1.1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  backdrop-filter: blur(10px);
}
.floating-return-btn.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }

.page {
  width: var(--shell-w);
  min-height: calc(100dvh - var(--header-h) - 24px);
  position: relative;
  overflow: visible;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-app);
  padding: 28px 28px 36px;
  animation: pageIn .22s ease both;
}

@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes softRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Typography + generic content
   ========================================================= */

.content { max-width: 68ch; }
.page-home .content { max-width: none; }
.page-home .page-header, .welcome-logo { display: none; }

.page-header { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin: 0 0 18px; }
.page h1 {
  margin: 0;
  color: #101614;
  font-size: var(--title-size);
  line-height: var(--title-line);
  letter-spacing: -.038em;
  font-weight: 740;
}
.page h2, .page h3 { margin: 0 0 10px; color: #171d1a; font-size: var(--heading-size); line-height: 1.18; font-weight: 650; letter-spacing: -.024em; }
.page p, .page li { font-size: var(--body-size); line-height: var(--body-line); font-weight: var(--body-weight); letter-spacing: -.008em; }
.page p { margin: 0 0 16px; }
.lead { font-size: 1.09rem; line-height: 1.62; font-weight: 440; }
.muted, .muted-text, .swipe-hint, .swipe-reviews { color: var(--muted); }
.center { text-align: center; }
.signature, .signature-small { font-family: Georgia, "Times New Roman", serif; color: var(--brown); letter-spacing: -.02em; }
.signature { font-size: var(--signature-size); margin-top: 10px; }
.signature-small { font-size: 1.25rem; }
.list { padding-left: 1.2rem; margin: 8px 0; }
.list li { margin: .45rem 0; }
.big-time { font-size: 2rem; line-height: 1.05; color: var(--green); font-weight: 900; margin: .25rem 0; }

.page-back-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border: 1px solid rgba(31,77,47,.12);
  background: rgba(255,253,250,.78);
  color: var(--green);
  box-shadow: 0 10px 26px rgba(31,77,47,.08), inset 0 1px 0 rgba(255,255,255,.72);
  border-radius: 15px;
  padding: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.page-back-btn:active { transform: scale(.98); opacity: .75; }

/* =========================================================
   Cards, actions, forms and visual content
   ========================================================= */

.card, .checklist-card, .feedback-card, .link-card, .action, .visual-card, .rating-guide, .rating-guide-card, .review-slide {
  background: var(--card-surface);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-sm);
  box-shadow: none;
}
.card, .rating-guide, .rating-guide-card { padding: 18px; margin: 14px 0; }
.warning { background: #fff7ed; border-color: #e2b483; }
.highlight-card { border-color: rgba(47,93,58,.24); }
.primary-action { border-color: rgba(47,93,58,.32); background: #f4f8f5; color: var(--green); }

.link-card, .action {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 610;
  transition: transform .12s ease, background-color .16s ease, border-color .16s ease;
}
.link-card:active, .action:active { transform: scale(.98); background: #f7f7f4; }
.address-card, .copy-card.copied { background: #f7fbf7; }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.save-tip { display: flex; align-items: center; gap: 12px; color: var(--muted); margin-top: 12px; }

.visual-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
.visual-card { overflow: hidden; content-visibility: auto; contain-intrinsic-size: 360px; }
.visual-card img { width: 100%; height: 320px; object-fit: cover; display: block; }
.visual-card .card-body, .visual-card > div { padding: 17px; }
.feature-img, .animals-hero, .wifi-img, .stars-img { max-width: 420px; height: auto; display: block; margin: 8px auto 16px; border-radius: var(--radius-sm); }
.feature-img, .animals-hero { width: 100%; max-height: 440px; object-fit: cover; }
.feature-img--small { width: min(140px, 55%); max-width: 140px; max-height: 140px; object-fit: contain; }
.feature-img--medium { width: min(320px, 88%); max-width: 320px; max-height: 300px; object-fit: contain; }
.feature-img--large { width: min(420px, 100%); max-width: 420px; max-height: 440px; object-fit: cover; }
.feature-img--full { width: 100%; max-width: none; max-height: none; object-fit: contain; }

.checklist-card { padding: 14px; margin: 14px 0; }
.checklist-card label { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid rgba(106,60,40,.08); }
.checklist-card label:last-child { border-bottom: 0; }
.checklist-card input { width: 20px; height: 20px; min-width: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--green); }
.final-checks .checklist-card { transition: opacity .22s ease, transform .22s ease; }
.final-checks.is-complete .checklist-card { opacity: 0; transform: translateY(-8px); }

.feedback-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 16px 0; }
.feedback-choice-grid { align-items: stretch; }
.feedback-card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; min-height: 164px; padding: 20px; color: var(--ink); text-decoration: none; }
.feedback-card strong { color: var(--brown); font-size: 1.04rem; font-weight: 650; line-height: 1.16; letter-spacing: -.018em; }
.feedback-card small { color: var(--muted); line-height: 1.35; }
.feedback-colour-icon { width: 64px; height: 64px; object-fit: contain; display: block; filter: none; }
.feedback-inline-icon { display:flex; align-items:center; justify-content:center; }
.feedback-inline-icon .svg-icon, .feedback-inline-icon svg { width: 64px; height: 64px; }
.feedback-stars-icon { width:auto; height:auto; font-size:1.55rem; line-height:1; color:#d89b25; letter-spacing:.04em; white-space:nowrap; }
.address-map-card .action { margin-top: 10px; }

.review-carousel { width: min(82vw, 340px); margin: 0 auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.review-track { display: flex; gap: 12px; }
.review-slide { flex: 0 0 100%; scroll-snap-align: start; padding: 16px; }
.review-dots { display: flex; justify-content: center; gap: 7px; margin: 12px 0 4px; }
.review-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(47,93,58,.25); }
.review-dots button.active { background: var(--green); }

.install-card .install-action-btn, .final-home-btn { width: 100%; justify-content: center; }
.wifi-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; margin-bottom: 16px; }
.qr-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.qr-code { width: 160px; height: 160px; object-fit: contain; margin-bottom: 12px; border-radius: 12px; background: #fff; padding: 10px; }
.copy-card { min-height: 180px; }
.copy-card .big-time { margin: 12px 0; }

/* =========================================================
   Icon system
   ========================================================= */

.svg-icon, .file-svg-tile { display: inline-flex; align-items: center; justify-content: center; color: var(--green); flex: 0 0 auto; overflow: hidden; box-sizing: border-box; }
.file-svg-tile > img.file-svg-img, img.file-svg-img, img.svg-icon.file-svg-img, .file-svg-tile > svg.inline-svg-img {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%; display: block; object-fit: contain; flex: 0 0 auto;
  filter: brightness(0) saturate(100%) invert(22%) sepia(23%) saturate(994%) hue-rotate(83deg) brightness(91%) contrast(90%);
}
.action .file-svg-tile, .link-card .file-svg-tile, .save-tip .file-svg-tile { width: 34px; height: 34px; min-width: 34px; min-height: 34px; padding: 0; border: 0; background: transparent; border-radius: 0; }
.action img.svg-icon:not(.file-svg-img), .link-card img.svg-icon:not(.file-svg-img), .save-tip img.svg-icon:not(.file-svg-img) { width: 34px; height: 34px; min-width: 34px; max-width: 34px; object-fit: contain; }


/* =========================================================
   Bottom app navigation
   ========================================================= */

.app-bottom-nav {
  display: none;
}

@media (max-width: 979px) {
  .app-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    height: calc(var(--bottom-nav-h, 76px) + env(safe-area-inset-bottom));
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    background: rgba(255, 253, 250, .96);
    border-top: 1px solid rgba(64, 49, 33, .10);
    box-shadow: 0 -10px 28px rgba(31, 42, 28, .08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .bottom-nav-item {
    min-width: 0;
    min-height: 56px;
    padding: 5px 2px 3px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: rgba(31, 77, 47, .72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    font: inherit;
    font-weight: 720;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item:active,
  .bottom-nav-item.is-menu-open {
    background: rgba(31, 77, 47, .08);
    color: var(--green);
  }

  .bottom-nav-icon {
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.38rem;
    line-height: 1;
  }

  .bottom-nav-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .68rem;
    letter-spacing: .01em;
  }
}

/* =========================================================
   Drawer / navigation
   ========================================================= */

.drawer {
  position: fixed;
  z-index: 3000;
  left: 0; top: 0; bottom: 0;
  width: min(92vw,420px);
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fbfaf7;
  border-right: 1px solid var(--line);
  box-shadow: 20px 0 60px rgba(0,0,0,.20);
  transform: translateX(-105%);
  transition: transform .25s ease;
}
.drawer.open { transform: none; }
.shade { position: fixed; inset: 0; z-index: 2500; background: rgba(0,0,0,.35); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-head strong { color: var(--green); font-size: 1rem; font-weight: 700; }
#closeMenu { color: #111; background: transparent; border: 0; box-shadow: none; font-size: 2rem; font-weight: 700; }
.drawer-brand { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 18px; border-radius: 12px; background: #fff; border: 1px solid var(--soft-line); }
.drawer-brand img { width: 48px; height: 48px; object-fit: contain; }
.drawer-brand h2 { margin: 0; color: var(--green); font-size: .96rem; line-height: 1.1; }
.drawer-brand p { margin: 3px 0 0; color: var(--muted); font-size: .74rem; }
.menu-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 14px; }
.menu-item {
  width: 100%; min-width: 0; border: 0; background: transparent; padding: 9px 8px; color: var(--brown); text-align: left;
  font-size: .88rem; line-height: 1.05; font-weight: 650; display: grid; grid-template-columns: 26px minmax(0,1fr); align-items: center; gap: 10px; border-radius: 10px;
  transition: transform .18s ease, background-color .18s ease, opacity .18s ease, filter .18s ease, box-shadow .18s ease;
}
.menu-item .file-svg-tile, .menu-item .mi, .menu-item img.menu-img-icon, .menu-item img { width: 26px; height: 26px; min-width: 26px; min-height: 26px; padding: 0; border: 0; background: transparent; }
.menu-label { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.menu-item:active { transform: scale(.98); background: rgba(31,77,47,.055); }
.menu-item.is-active { background: rgba(91,57,45,.08); }
.drawer-upsell { margin-top: 18px; padding: 14px; text-align: center; background: #fff; border: 1px solid var(--soft-line); border-radius: 12px; }
.upsell-illustration { width: 62px; height: 50px; margin: 0 auto 8px; border-radius: 12px; background: rgba(31,77,47,.055); display: flex; align-items: center; justify-content: center; }
.upsell-illustration img { width: 46px; height: 46px; }
.upsell-copy strong { display: block; color: var(--green); font-size: .94rem; margin-bottom: 3px; }
.upsell-copy span { display: block; color: var(--muted); font-size: .72rem; max-width: 260px; margin: 0 auto 11px; }
.upsell-btn { width: 100%; border: 0; border-radius: 12px; background: var(--green); color: #fff; font-weight: 750; padding: 10px 12px; }
.upsell-btn:active { transform: scale(.98); }

/* =========================================================
   Home experience components
   ========================================================= */

.page-home { overflow: hidden; }
.page-home .content { width: 100%; max-width: var(--home-w); margin: 0 auto; padding: 0 14px 26px; }
.home-experience-shell { width: 100%; display: flex; flex-direction: column; gap: 14px; }

.home-hero {
  position: relative;
  min-height: var(--hero-height, 410px);
  margin: 0 -14px 8px;
  padding: calc(96px + env(safe-area-inset-top)) 28px 70px;
  background-image: var(--home-hero-image);
  background-size: cover;
  background-position: center 42%;
  overflow: hidden;
  color: #fff;
  border-radius: 0;
}
.home-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,26,18,.04) 0%, rgba(8,26,18,.18) 36%, rgba(8,26,18,.70) 100%); pointer-events: none; }
.home-hero-content { position: relative; z-index: 1; max-width: 520px; }
.home-hero-kicker { margin: 0 0 14px; font-size: clamp(.95rem, 3.2vw, 1.15rem); line-height: 1.1; font-weight: 800; letter-spacing: -.01em; text-transform: none; opacity: .96; }
.home-hero h1 { margin: 0; max-width: 520px; color: #fff; font-size: clamp(2.35rem, 11vw, 4rem); line-height: .98; letter-spacing: -.052em; font-weight: 850; text-shadow: 0 2px 18px rgba(0,0,0,.24); }
.home-hero-subtitle { display: block; margin: 18px 0 0; max-width: 520px; font-size: clamp(1.05rem, 4.2vw, 1.45rem); line-height: 1.42; font-weight: 500; color: rgba(255,255,255,.96); text-shadow: 0 2px 14px rgba(0,0,0,.30); }

.home-quick-card, .home-accordion, .home-emergency-strip { position: relative; z-index: 2; border-radius: var(--radius-lg); border: 1px solid rgba(64,49,33,.07); background: rgba(255,253,250,.94); box-shadow: var(--shadow-card); }
.home-quick-card { padding: 18px; border-radius: 24px; backdrop-filter: blur(12px); animation: softRise .25s ease both; }
.home-panel-heading { margin: 0 0 14px; color: rgba(31,77,47,.82); font-size: .74rem; font-weight: 850; text-transform: uppercase; letter-spacing: .16em; }
.home-quick-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.home-quick-item, .home-accordion-grid button, .home-accordion-grid a {
  appearance: none; border: 1px solid rgba(64,49,33,.075); background: rgba(255,255,255,.64); color: var(--brown); text-decoration: none; border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; min-width: 0; box-shadow: none;
  transition: transform .14s ease, background .18s ease, border-color .18s ease;
}
.home-quick-item {
  min-height: var(--quick-access-tile-height, 158px);
  padding: var(--quick-access-tile-padding, 18px 10px 16px);
  gap: var(--quick-access-icon-gap, 10px);
}
.home-quick-item:active, .home-accordion-grid button:active, .home-accordion-grid a:active, .home-emergency-strip:active { transform: scale(.985); }
.home-quick-item .file-svg-tile, .home-accordion-grid .file-svg-tile { width: 48px; height: 48px; min-width: 48px; min-height: 48px; max-width: 48px; max-height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.home-quick-item .file-svg-img { filter: brightness(0) saturate(100%) invert(13%) sepia(14%) saturate(846%) hue-rotate(156deg) brightness(95%) contrast(91%); }
.home-quick-item strong, .home-accordion-grid strong { display: block; color: var(--brown); font-size: var(--accordion-item-title-size); line-height: 1.05; font-weight: 560; letter-spacing: -.01em; }
.home-quick-item strong { color: var(--charcoal); }
.home-quick-item span, .home-accordion-grid span { display: block; color: rgba(80,65,53,.68); font-size: .76rem; line-height: 1.22; font-weight: 500; }
.home-quick-item span { color: rgba(31,42,46,.68); }
.home-welcome-note { margin-top: 16px; padding: 12px 14px; border-radius: 18px; display: flex; align-items: center; justify-content: center; text-align: center; background: rgba(246,241,229,.82); color: var(--coral); }
.home-welcome-note strong { display: block; color: var(--charcoal); font-size: .86rem; font-weight: 620; margin: 0; }
.home-note-icon { display: none; }

.home-accordion-stack { display: flex; flex-direction: column; gap: 12px;margin-top: 12px; }
/* Stage 20: Quick Access unified into home accordion system */
.home-accordion-quick-access {
  background: rgba(255,253,250,.94);
  backdrop-filter: blur(12px);
}
.home-accordion-quick-access .home-accordion-icon {
  background: var(--green);
}
.home-accordion-quick-access .home-accordion-copy strong {
  color: var(--green-dark, var(--green));
}
.home-accordion-quick-access .home-accordion-panel {
  border-top: 1px solid rgba(64,49,33,.06);
}
.quick-access-accordion-grid {
  padding-top: 16px;
}
.quick-access-tile .file-svg-img {
  filter: brightness(0) saturate(100%) invert(13%) sepia(14%) saturate(846%) hue-rotate(156deg) brightness(95%) contrast(91%);
}

.home-accordion { overflow: hidden; background: var(--accordion-surface); box-shadow: var(--shadow-soft); animation: softRise .24s ease both; }
.home-accordion-head { appearance: none; -webkit-appearance: none; width: 100%; border: 0; background: transparent; cursor: pointer; min-height: 94px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; text-align: left; font: inherit; color: inherit; }
.home-accordion > summary { list-style: none; cursor: pointer; min-height: 94px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.home-accordion > summary::-webkit-details-marker { display: none; }
.home-accordion-icon { width: 54px; height: 54px; min-width: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--green); }
.home-accordion-icon .file-svg-tile { width: 28px; height: 28px; min-width: 28px; min-height: 28px; max-width: 28px; max-height: 28px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.home-accordion-icon .file-svg-img, .home-emergency-icon .file-svg-img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.home-accordion-copy strong { display: block; color: var(--brown); font-size: var(--accordion-title-size); line-height: 1.05; font-weight: 720; text-transform: none; letter-spacing: .006em; }
.home-accordion-copy span, .home-accordion-copy small { display: block; margin-top: 5px; color: rgba(80,65,53,.72); font-size: .86rem; line-height: 1.25; font-weight: 500; }
.home-accordion-chevron { width: 13px; height: 13px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); color: rgba(31,77,47,.82); margin-right: 3px; transition: transform .18s ease, color .18s ease; }
.home-accordion[open] .home-accordion-chevron, .home-accordion-head[aria-expanded="true"] .home-accordion-chevron { transform: rotate(-135deg); }
/* Direct-link home accordion rows navigate to a page, so their chevron points across rather than down. */
.home-accordion.is-direct-link .home-accordion-chevron,
.home-accordion.emergency-strip .home-accordion-chevron {
  transform: rotate(-45deg);
}
.home-accordion.is-direct-link .home-accordion-head[aria-expanded="true"] .home-accordion-chevron,
.home-accordion.emergency-strip .home-accordion-head[aria-expanded="true"] .home-accordion-chevron {
  transform: rotate(-45deg);
}

.home-accordion-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 0 14px 16px; }
.home-accordion-grid button, .home-accordion-grid a { min-height: 112px; padding: 12px 7px 10px; gap: 6px; }
/* Force white accordion icons */
.home-accordion-icon,
.home-emergency-icon {
  color: #fff;
}

.home-accordion-icon svg,
.home-emergency-icon svg,
.home-accordion-icon .file-svg-img,
.home-emergency-icon .file-svg-img {
  filter: brightness(0) invert(1) !important;
  color: #fff !important;
  stroke: #fff !important;
  fill: none !important;
}

.home-accordion-stay, .home-accordion.stay { background: linear-gradient(135deg, rgba(185,139,58,.12), rgba(255,253,250,.86)); }
.home-accordion-stay .home-accordion-icon, .home-accordion.stay .home-accordion-icon { background: rgba(185,139,58,.92); }
.home-accordion-stay .home-accordion-copy strong, .home-accordion.stay .home-accordion-copy strong { color: rgba(139,94,28,.95); }
.home-accordion-explore, .home-accordion.explore { background: linear-gradient(135deg, rgba(59,107,123,.11), rgba(255,253,250,.86)); }
.home-accordion-explore .home-accordion-icon, .home-accordion.explore .home-accordion-icon { background: rgba(59,107,123,.92); }
.home-accordion-explore .home-accordion-copy strong, .home-accordion.explore .home-accordion-copy strong { color: rgba(49,91,105,.95); }
.home-accordion-help, .home-accordion.emergency-strip { background: linear-gradient(135deg, rgba(183,104,55,.14), rgba(255,253,250,.88)); border-color: rgba(183,104,55,.22); }
.home-accordion-help .home-accordion-icon, .home-accordion.emergency-strip .home-accordion-icon { background: var(--property); }
.home-accordion-help .home-accordion-copy strong, .home-accordion-help .home-accordion-chevron, .home-accordion.emergency-strip .home-accordion-copy strong, .home-accordion.emergency-strip .home-accordion-chevron { color: var(--property-dark); }
.home-accordion-services, .home-accordion.services { background: linear-gradient(135deg, rgba(105,76,122,.10), rgba(255,253,250,.86)); }
.home-accordion-services .home-accordion-icon, .home-accordion.services .home-accordion-icon { background: rgba(105,76,122,.92); }
.home-accordion-services .home-accordion-copy strong, .home-accordion.services .home-accordion-copy strong { color: rgba(103,75,120,.95); }

.home-accordion-property, .home-accordion.property { background: linear-gradient(135deg, rgba(31,77,47,.10), rgba(255,253,250,.86)); }
.home-accordion-property .home-accordion-icon, .home-accordion.property .home-accordion-icon { background: var(--green); }
.home-accordion-property .home-accordion-copy strong, .home-accordion.property .home-accordion-copy strong { color: var(--brown); }

.home-emergency-strip { width: 100%; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; text-align: left; color: var(--brown); background: linear-gradient(135deg, rgba(181,72,72,.15), rgba(255,253,250,.88)); border-color: rgba(181,72,72,.24); }
.home-emergency-icon { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--emergency); color: #fff; overflow: hidden; }
.home-emergency-icon .file-svg-tile { width: 27px; height: 27px; min-width: 27px; min-height: 27px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.home-emergency-strip strong { display: block; color: var(--emergency-dark); font-size: .95rem; margin-bottom: 3px; }
.home-emergency-strip em { display: block; color: rgba(80,65,53,.70); font-style: normal; font-size: .82rem; line-height: 1.25; }
.home-emergency-strip b { color: var(--emergency-dark); font-size: 1.8rem; line-height: 1; }

/* =========================================================
   Desktop layout
   ========================================================= */


:root[data-guide-template="wilderness-retreat"] body,
:root[data-guide-template="wilderness-retreat"] .stage { background: linear-gradient(90deg, #ddd0b9, #f5f0e7 12%, #f5f0e7 88%, #ddd0b9); }
:root[data-guide-template="wilderness-retreat"] .app-floating-controls { background: linear-gradient(180deg, #fffdf7, #efe5d3); }
:root[data-guide-template="wilderness-retreat"] .home-quick-card,
:root[data-guide-template="wilderness-retreat"] .home-accordion,
:root[data-guide-template="wilderness-retreat"] .card,
:root[data-guide-template="wilderness-retreat"] .visual-card {
  box-shadow: 0 16px 38px rgba(64,54,38,.12), inset 0 1px 0 rgba(255,255,255,.62);
}

@media (min-width: 980px) {
  :root { --header-h: 82px; }
  .floating-return-btn { display: none !important; }
  .stage { padding: var(--header-h) 12px 24px; }
  .app-floating-controls { width: var(--shell-w); height: var(--header-h); padding: 0 10px; align-items: center; border-radius: 10px 10px 0 0; }
  .app-bar-logo { top: 10px; width: 45px; height: 45px; max-width: 62px; max-height: 62px; }
  .app-control-btn, .icon-btn { width: 44px; height: 44px; border-radius: 9px; background: rgba(255,253,250,.62); color: var(--charcoal); border-color: rgba(60,45,30,.10); }
  .contact-control img { width: 25px; height: 25px; filter: brightness(0) saturate(100%) invert(13%) sepia(14%) saturate(846%) hue-rotate(156deg) brightness(95%) contrast(91%); }
  .home-control img { width: var(--header-logo-width, 34px); height: var(--header-logo-height, 34px); }
  #menuBtn { visibility: hidden; pointer-events: none; }

  .page { width: var(--shell-w); min-height: calc(100dvh - var(--header-h) - 24px); display: block; padding: 0 28px 36px calc(var(--sidebar-w) + var(--desktop-gap) + 28px); border-radius: 0 0 10px 10px; border: 1px solid var(--line); border-top: 0; box-shadow: var(--shadow-app); }
  .content, .page-home .content { max-width: var(--content-w); margin: 0 auto; }
  .page-home .content { max-width: var(--home-w); padding-top: 0; }

  .drawer { position: fixed; z-index: 20; left: calc((100vw - var(--shell-w)) / 2); top: var(--header-h); bottom: auto; width: var(--sidebar-w); height: calc(100dvh - var(--header-h) - 24px); max-width: var(--sidebar-w); padding: 16px 14px; transform: none; overflow-y: auto; background: #fbfaf7; border: 0; border-right: 1px solid var(--soft-line); border-radius: 0 0 0 10px; box-shadow: none; }
  .drawer-head, .drawer-brand, .drawer-upsell { display: none; }
  .drawer .menu-grid { display: flex; flex-direction: column; gap: 0; }
  .drawer .menu-item { display: grid; grid-template-columns: 28px minmax(0,1fr) 18px; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 0; border-bottom: 1px solid var(--soft-line); background: transparent; color: #18241d; font-size: .93rem; font-weight: 650; line-height: 1.15; }
  .drawer .menu-item::after { content: "›"; display: block; color: var(--muted); font-size: 1.2rem; line-height: 1; }
  .drawer .menu-item.is-active { background: linear-gradient(90deg, rgba(91,57,45,.10), rgba(91,57,45,.04)); border-bottom-color: transparent; border-radius: 6px; }
  .drawer .menu-item .file-svg-tile, .drawer .menu-item img { width: 24px; height: 24px; min-width: 24px; min-height: 24px; }
  .shade { display: none !important; }
}

/* =========================================================
   Tablet and mobile layout
   ========================================================= */

@media (max-width: 979px) {
  :root { --shell-w: 100vw; --header-h: 76px; --bottom-nav-h: 76px; }
  .stage { padding: 0 0 calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
  .floating-return-btn { display: none !important; }
  .app-floating-controls { width: 100vw; height: 0; left: 0; right: 0; transform: none; border-radius: 0; border: 0; padding: 0 18px; align-items: flex-start; justify-content: flex-start; box-shadow: none; background: transparent !important; }
  .app-bar-logo { top: 17px; width: 45px; height: 45px; max-width: 52px; max-height: 52px; }
  .app-control-btn, .icon-btn { width: 44px; height: 44px; border-radius: 999px; background: rgba(255,253,250,.74); color: var(--charcoal); border: 1px solid rgba(60,45,30,.10); box-shadow: 0 8px 24px rgba(20,20,20,.12), inset 0 0 0 1px rgba(255,255,255,.50); font-size: 1.35rem; backdrop-filter: blur(14px); }
  #menuBtn { display: none !important; }
  #headerBackBtn { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 18px; z-index: 1200; }
  .contact-control img { width: 25px; height: 25px; filter: brightness(0) saturate(100%) invert(13%) sepia(14%) saturate(846%) hue-rotate(156deg) brightness(95%) contrast(91%); }
  .home-control img { width: var(--header-logo-width, 34px); height: var(--header-logo-height, 34px); }
  .page { width: 100vw; max-width: 100vw; min-height: calc(100dvh - var(--bottom-nav-h) - env(safe-area-inset-bottom)); padding: 0 0 34px; border: 0; border-radius: 0; box-shadow: none; }
  .page:not(.page-home) { padding: calc(24px + env(safe-area-inset-top)) 22px 30px; }
  .page h1 { font-size: clamp(1.45rem, 5vw, 1.95rem); }

  .page-home .content { max-width: none; padding: 0; }
  .home-experience-shell { gap: 12px; }
  .home-hero {
    width: 100%;
    margin: 0 0 6px;
    min-height: var(--hero-height, 320px);
    height: var(--hero-height, 320px);
    padding: calc(16px + env(safe-area-inset-top)) 26px 28px;
    display: flex;
    align-items: flex-end;
    border-radius: 0 !important;
    background-position: center 48%;
  }
  .page-home .home-hero { border-radius: 0 !important; }
  .home-quick-card {
    width: 100%;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 16px 14px 18px;
    border-radius: 24px;
  }
  .home-welcome-note, .home-accordion-stack, .home-emergency-strip { width: calc(100% - 20px); margin-left: auto; margin-right: auto; }
  .home-hero-content { transform: translateY(10px); }
  .home-hero-kicker {
    margin: 0 0 1px;
    font-size: .72rem;
    line-height: 1;
  }
  .home-hero h1 {
    max-width: 92%;
    font-size: clamp(1.62rem, 7.3vw, 2.15rem);
    line-height: .96;
    margin: 0;
  }
  .home-panel-heading { margin-bottom: 13px; }
  .home-quick-grid { gap: 8px; }
  .home-quick-item { min-height: 128px; padding: 12px 6px 10px; border-radius: 16px; }
  .home-quick-item .file-svg-tile, .home-accordion-grid .file-svg-tile { width: 42px; height: 42px; min-width: 42px; min-height: 42px; }
  .home-quick-item strong, .home-accordion-grid strong { font-size: .79rem; }
  .home-quick-item span, .home-accordion-grid span { font-size: .68rem; }
  .home-welcome-note { margin-top: 16px; }
  .home-accordion-head, .home-accordion > summary { min-height: 86px; padding: 14px; gap: 12px; }
  .home-accordion-icon { width: 48px; height: 48px; min-width: 48px; }
  .home-accordion-copy strong { font-size: .96rem; }
  .home-accordion-copy span { font-size: .79rem; }
  .home-accordion-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; padding: 0 10px 12px; }
  .home-accordion-grid button, .home-accordion-grid a { min-height: 100px; padding: 10px 5px 8px; border-radius: 16px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .app-floating-controls { padding: 0 18px; }
  .app-bar-logo { top: 16px; width: 45px; height: 45px; max-width: 50px; max-height: 50px; }
  .app-control-btn, .icon-btn { width: 42px; height: 42px; border-radius: 9px; }
  .contact-control img { width: 24px; height: 24px; }
  .home-control img { width: var(--header-logo-width, 32px); height: var(--header-logo-height, 32px); }
  .home-control .header-home-icon { display: none; }
  .drawer { width: 92vw; max-width: 390px; padding: 16px 14px calc(22px + env(safe-area-inset-bottom)); }
  .drawer .menu-grid { gap: 7px 10px; }
  .drawer .menu-item { font-size: .8rem; padding: 8px 6px; }
}

@media (max-width: 430px) {
  .feedback-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .feedback-card { min-height: 150px; padding: 14px; }
  .feedback-stars-icon { font-size: 1.1rem; }
}

@media (max-width: 340px) {
  .feedback-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .home-quick-grid, .home-accordion-grid { gap: 7px; }
  .home-quick-item { min-height: 118px; }
  .home-quick-item .file-svg-tile, .home-accordion-grid .file-svg-tile { width: 38px; height: 38px; min-width: 38px; min-height: 38px; }
  .home-quick-item strong, .home-accordion-grid strong { font-size: .73rem; }
  .home-quick-item span, .home-accordion-grid span { font-size: .62rem; }
  .page:not(.page-home) { padding-left: 16px; padding-right: 16px; }
}


@media (max-width: 979px) {
  :root[data-guide-template] .home-hero,
  :root[data-hero-style] .home-hero,
  .page-home .home-hero {
    border-radius: 0 !important;
    margin-top: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
/* ===== Small phones ===== */
@media (max-width: 430px) {

  .home-welcome-note,
  .home-accordion-stack,
  .home-emergency-strip {
    width: calc(100% - 16px);
  }

  .home-quick-grid {
    gap: 10px;
  }
/* =========================================================
   Quick access final mobile refinement
   ========================================================= */

.home-quick-item {
  min-height: var(--quick-access-tile-height, 120px);
  padding: var(--quick-access-tile-padding, 12px 8px 8px);
  gap: var(--quick-access-icon-gap, 8px);
  border-radius: 16px;
}

.home-quick-item strong {
  line-height: 1;
}

.home-quick-item span {
  margin-top: 2px;
  line-height: 1.15;
}


/* =========================================================
   Stage 3C — Visual Template Variants
   ========================================================= */

/* COUNTRY LODGE (default warm editorial feel) */
:root[data-guide-template="country-lodge"] .home-hero-content {
  max-width: 560px;
}

:root[data-guide-template="country-lodge"] .home-quick-item {
  min-height: var(--quick-access-tile-height, 122px);
}

/* MODERN APARTMENT */
:root[data-guide-template="modern-apartment"] .home-hero {
  border-radius: 0 0 28px 28px;
}

:root[data-guide-template="modern-apartment"] .home-quick-item,
:root[data-guide-template="modern-apartment"] .home-accordion,
:root[data-guide-template="modern-apartment"] .visual-card,
:root[data-guide-template="modern-apartment"] .card {
  border-radius: 14px;
}

:root[data-guide-template="modern-apartment"] .home-panel-heading {
  letter-spacing: .22em;
}

:root[data-guide-template="modern-apartment"] .home-quick-grid {
  gap: 10px;
}

/* COASTAL RETREAT */
:root[data-guide-template="coastal-retreat"] .home-hero {
  min-height: var(--hero-height, 340px);
}

:root[data-guide-template="coastal-retreat"] .home-hero-overlay {
  background:
    linear-gradient(to top, rgba(17,35,40,.68), rgba(17,35,40,.18)),
    linear-gradient(to bottom, rgba(255,255,255,.05), rgba(255,255,255,0));
}

:root[data-guide-template="coastal-retreat"] .home-quick-card,
:root[data-guide-template="coastal-retreat"] .home-accordion {
  background: rgba(255,255,255,.97);
}

:root[data-guide-template="coastal-retreat"] .visual-card img {
  aspect-ratio: 16 / 10;
}

/* LUXURY VILLA */
:root[data-guide-template="luxury-villa"] .home-hero {
  min-height: var(--hero-height, 360px);
}

:root[data-guide-template="luxury-villa"] .home-hero-overlay {
  background:
    linear-gradient(to top, rgba(12,14,14,.82), rgba(12,14,14,.22)),
    linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,0));
}

:root[data-guide-template="luxury-villa"] .home-quick-card,
:root[data-guide-template="luxury-villa"] .home-accordion,
:root[data-guide-template="luxury-villa"] .card,
:root[data-guide-template="luxury-villa"] .visual-card {
  box-shadow:
    0 10px 30px rgba(0,0,0,.06),
    0 1px 0 rgba(255,255,255,.45) inset;
}

:root[data-guide-template="luxury-villa"] .home-panel-heading {
  letter-spacing: .24em;
  font-size: .7rem;
}

:root[data-guide-template="luxury-villa"] .home-quick-item {
  min-height: var(--quick-access-tile-height, 122px);
}
/* BOUTIQUE STAY */
:root[data-guide-template="boutique-stay"] .home-hero {
  min-height: var(--hero-height, 350px);
}

:root[data-guide-template="boutique-stay"] .home-hero-overlay {
  background:
    linear-gradient(to top, rgba(23,19,21,.78), rgba(23,19,21,.20)),
    linear-gradient(to bottom, rgba(255,246,241,.08), rgba(255,246,241,0));
}

:root[data-guide-template="boutique-stay"] .home-panel-heading {
  letter-spacing: .26em;
  font-size: .69rem;
}

:root[data-guide-template="boutique-stay"] .home-quick-card,
:root[data-guide-template="boutique-stay"] .home-accordion,
:root[data-guide-template="boutique-stay"] .card,
:root[data-guide-template="boutique-stay"] .visual-card {
  border-radius: 18px;
  border-color: rgba(185,146,95,.18);
}

:root[data-guide-template="boutique-stay"] .visual-card img {
  aspect-ratio: 4 / 3;
}

/* FAMILY RETREAT */
:root[data-guide-template="family-retreat"] .home-hero {
  min-height: var(--hero-height, 330px);
}

:root[data-guide-template="family-retreat"] .home-hero-overlay {
  background:
    linear-gradient(to top, rgba(29,39,32,.64), rgba(29,39,32,.14)),
    linear-gradient(to bottom, rgba(255,248,238,.08), rgba(255,248,238,0));
}

:root[data-guide-template="family-retreat"] .home-quick-item {
  min-height: var(--quick-access-tile-height, 126px);
}

:root[data-guide-template="family-retreat"] .home-quick-card,
:root[data-guide-template="family-retreat"] .home-accordion,
:root[data-guide-template="family-retreat"] .card,
:root[data-guide-template="family-retreat"] .visual-card {
  border-radius: 22px;
}

:root[data-guide-template="family-retreat"] .home-panel-heading {
  letter-spacing: .16em;
}
/* WILDERNESS RETREAT */
:root[data-guide-template="wilderness-retreat"] .home-hero {
  min-height: var(--hero-height, 350px);
}

:root[data-guide-template="wilderness-retreat"] .home-hero-overlay {
  background:
    radial-gradient(circle at 18% 18%, rgba(196,122,68,.20), transparent 32%),
    linear-gradient(to top, rgba(37,35,31,.78), rgba(37,35,31,.18)),
    linear-gradient(to bottom, rgba(245,240,231,.08), rgba(245,240,231,0));
}

:root[data-guide-template="wilderness-retreat"] .home-panel-heading {
  letter-spacing: .22em;
  font-size: .7rem;
}

:root[data-guide-template="wilderness-retreat"] .home-quick-card,
:root[data-guide-template="wilderness-retreat"] .home-accordion,
:root[data-guide-template="wilderness-retreat"] .card,
:root[data-guide-template="wilderness-retreat"] .visual-card {
  border-radius: 20px;
  border-color: rgba(107,74,47,.18);
}

:root[data-guide-template="wilderness-retreat"] .home-quick-item {
  min-height: var(--quick-access-tile-height, 124px);
}


/* =========================================================
   Stage 3D — Template Layout Rules
   ========================================================= */

/* Density modes */
:root[data-guide-density="compact"] .home-experience-shell {
  gap: 10px;
}

:root[data-guide-density="compact"] .home-quick-item {
  min-height: var(--quick-access-tile-height, 108px);
}

:root[data-guide-density="compact"] .home-accordion > summary {
  min-height: 78px;
}

:root[data-guide-density="airy"] .home-experience-shell {
  gap: 18px;
}

:root[data-guide-density="airy"] .home-quick-card {
  padding-top: 20px;
  padding-bottom: 22px;
}

:root[data-guide-density="immersive"] .home-hero {
  min-height: var(--hero-height, 380px);
}

:root[data-guide-density="immersive"] .home-experience-shell {
  gap: 18px;
}

/* Hero style modes */
:root[data-hero-style="practical"] .home-hero {
  min-height: var(--hero-height, 240px);
}

:root[data-hero-style="open"] .home-hero-content {
  max-width: 620px;
}

:root[data-hero-style="cinematic"] .home-hero h1 {
  letter-spacing: -.045em;
}

/* Quick access layout modes */
:root[data-quick-access-mode="compact"] .home-quick-grid {
  gap: 8px;
}

:root[data-quick-access-mode="compact"] .home-quick-item {
  padding: var(--quick-access-tile-padding, 10px 7px 8px);
}
:root[data-quick-access-mode="premium"] .home-quick-item {
  min-height: var(--quick-access-tile-height, 136px);
  justify-content: center;
}

@media (max-width: 979px) {
  :root[data-guide-density="compact"] .home-quick-item {
    min-height: var(--quick-access-tile-height, 108px);
  }
}

  :root[data-guide-density="airy"] .home-hero {
    min-height: var(--hero-height, 305px);
  }

  :root[data-guide-density="immersive"] .home-hero {
    min-height: var(--hero-height, 315px);
  }

  :root[data-quick-access-mode="premium"] .home-quick-item {
  min-height: var(--quick-access-tile-height, 126px);
}
}

.file-svg-tile > svg.inline-svg-img { color: var(--green); stroke: currentColor; }


/* =========================================================
   Stage 12 — Approved template system finalisation
   ========================================================= */
:root {
  --screen-pad: 16px;
  --card-pad: 16px;
  --section-gap: 20px;
  --accordion-gap: 12px;
}

/* Stage 14.2: legacy top controls hidden for footer-led navigation. */
.app-bar-logo { display: none !important; }
.app-floating-controls {
  display: none !important;
}

.page-back-btn {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 8%, transparent);
  border-radius: 999px;
  padding: 8px 12px;
}

.drawer-brand {
  display: flex;
  background: linear-gradient(135deg, color-mix(in srgb, var(--green) 7%, #fff), rgba(255,255,255,.9));
  border-color: color-mix(in srgb, var(--green) 13%, transparent);
}
.drawer .menu-item.is-active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--green) 12%, transparent), color-mix(in srgb, var(--green) 4%, transparent));
  color: var(--green);
}
.drawer .menu-item .file-svg-img,
.drawer .menu-item img,
.home-quick-item .file-svg-img,
.contact-control img,
.home-control img {
  filter: none !important;
}

.home-accordion-stack { gap: var(--accordion-gap); }
.home-accordion, .home-quick-card, .card, .visual-card, .link-card, .action {
  border-color: color-mix(in srgb, var(--green) 10%, transparent);
}
.home-accordion-head, .home-accordion > summary { padding: 16px; }
.home-accordion-grid { padding: 0 16px 16px; gap: 10px; }
.home-accordion-grid button, .home-accordion-grid a { padding: 12px 8px 10px; }

/* Theme-aware accordion colour differentiation */
.home-accordion-stay, .home-accordion.stay {
  background: linear-gradient(135deg, color-mix(in srgb, var(--stay) 16%, #fff), color-mix(in srgb, var(--accordion-surface) 86%, #fff));
}
.home-accordion-stay .home-accordion-icon, .home-accordion.stay .home-accordion-icon { background: var(--stay); }
.home-accordion-stay .home-accordion-copy strong, .home-accordion.stay .home-accordion-copy strong { color: var(--stay-dark); }

.home-accordion-explore, .home-accordion.explore {
  background: linear-gradient(135deg, color-mix(in srgb, var(--explore) 14%, #fff), color-mix(in srgb, var(--accordion-surface) 88%, #fff));
}
.home-accordion-explore .home-accordion-icon, .home-accordion.explore .home-accordion-icon { background: var(--explore); }
.home-accordion-explore .home-accordion-copy strong, .home-accordion.explore .home-accordion-copy strong { color: var(--explore-dark); }

.home-accordion-property, .home-accordion.property {
  background: linear-gradient(135deg, color-mix(in srgb, var(--property) 15%, #fff), color-mix(in srgb, var(--accordion-surface) 88%, #fff));
}
.home-accordion-property .home-accordion-icon, .home-accordion.property .home-accordion-icon { background: var(--property); }
.home-accordion-property .home-accordion-copy strong, .home-accordion.property .home-accordion-copy strong { color: var(--property-dark); }

.home-accordion-services, .home-accordion.services {
  background: linear-gradient(135deg, color-mix(in srgb, var(--services) 14%, #fff), color-mix(in srgb, var(--accordion-surface) 88%, #fff));
}
.home-accordion-services .home-accordion-icon, .home-accordion.services .home-accordion-icon { background: var(--services); }
.home-accordion-services .home-accordion-copy strong, .home-accordion.services .home-accordion-copy strong { color: var(--services-dark); }

.home-accordion-help, .home-accordion.emergency-strip {
  background: linear-gradient(135deg, color-mix(in srgb, var(--emergency) 13%, #fff), color-mix(in srgb, var(--accordion-surface) 90%, #fff));
  border-color: color-mix(in srgb, var(--emergency) 18%, transparent);
}
.home-accordion-help .home-accordion-icon, .home-accordion.emergency-strip .home-accordion-icon { background: var(--emergency); }
.home-accordion-help .home-accordion-copy strong, .home-accordion-help .home-accordion-chevron, .home-accordion.emergency-strip .home-accordion-copy strong, .home-accordion.emergency-strip .home-accordion-chevron { color: var(--emergency-dark); }

:root[data-guide-template="coastal-retreat"] body,
:root[data-guide-template="coastal-retreat"] .stage { background: linear-gradient(90deg, #e5f2fa, #f7fbfd 12%, #f7fbfd 88%, #e5f2fa); }
:root[data-guide-template="coastal-retreat"] .app-floating-controls { background: linear-gradient(180deg, #f8fcff, #eaf4fb); }
:root[data-guide-template="coastal-retreat"] .home-quick-card,
:root[data-guide-template="coastal-retreat"] .home-accordion { box-shadow: 0 14px 34px rgba(16,106,168,.10); }

:root[data-guide-template="modern-apartment"] body,
:root[data-guide-template="modern-apartment"] .stage { background: linear-gradient(90deg, #e7e4df, #f6f4f1 12%, #f6f4f1 88%, #e7e4df); }
:root[data-guide-template="modern-apartment"] .app-floating-controls { background: linear-gradient(180deg, #fbfaf8, #eae7e3); }
:root[data-guide-template="modern-apartment"] .home-quick-card,
:root[data-guide-template="modern-apartment"] .home-accordion,
:root[data-guide-template="modern-apartment"] .card,
:root[data-guide-template="modern-apartment"] .visual-card { border-radius: 14px; box-shadow: 0 12px 28px rgba(24,25,27,.07); }

:root[data-guide-template="country-lodge"] body,
:root[data-guide-template="country-lodge"] .stage { background: linear-gradient(90deg, #e2ebda, #faf7ef 12%, #faf7ef 88%, #e2ebda); }
:root[data-guide-template="country-lodge"] .app-floating-controls { background: linear-gradient(180deg, #fbfff7, #eaf1e4); }
:root[data-guide-template="country-lodge"] .home-accordion { box-shadow: 0 14px 34px rgba(29,94,42,.10); }

:root[data-guide-template="luxury-villa"] body,
:root[data-guide-template="luxury-villa"] .stage { background: linear-gradient(90deg, #f0dfbf, #fff9f0 12%, #fff9f0 88%, #f0dfbf); }
:root[data-guide-template="luxury-villa"] .app-floating-controls { background: linear-gradient(180deg, #fffdf8, #fff3e2); }
:root[data-guide-template="luxury-villa"] .home-quick-card,
:root[data-guide-template="luxury-villa"] .home-accordion,
:root[data-guide-template="luxury-villa"] .card,
:root[data-guide-template="luxury-villa"] .visual-card {
  border-color: rgba(184,116,0,.16);
  box-shadow: 0 14px 36px rgba(138,86,0,.09), inset 0 1px 0 rgba(255,255,255,.62);
}

:root[data-guide-template="boutique-stay"] body,
:root[data-guide-template="boutique-stay"] .stage { background: linear-gradient(90deg, #eadbd0, #fbf6f1 12%, #fbf6f1 88%, #eadbd0); }
:root[data-guide-template="boutique-stay"] .app-floating-controls { background: linear-gradient(180deg, #fffdfb, #f4e8df); }
:root[data-guide-template="boutique-stay"] .home-quick-card,
:root[data-guide-template="boutique-stay"] .home-accordion,
:root[data-guide-template="boutique-stay"] .card,
:root[data-guide-template="boutique-stay"] .visual-card {
  box-shadow: 0 16px 38px rgba(80,48,38,.08), inset 0 1px 0 rgba(255,255,255,.62);
}

:root[data-guide-template="family-retreat"] body,
:root[data-guide-template="family-retreat"] .stage { background: linear-gradient(90deg, #e5eddc, #fff8ee 12%, #fff8ee 88%, #e5eddc); }
:root[data-guide-template="family-retreat"] .app-floating-controls { background: linear-gradient(180deg, #fffffb, #eef3e8); }
:root[data-guide-template="family-retreat"] .home-quick-card,
:root[data-guide-template="family-retreat"] .home-accordion,
:root[data-guide-template="family-retreat"] .card,
:root[data-guide-template="family-retreat"] .visual-card {
  box-shadow: 0 14px 32px rgba(69,105,72,.10), inset 0 1px 0 rgba(255,255,255,.64);
}


:root[data-guide-template="wilderness-retreat"] body,
:root[data-guide-template="wilderness-retreat"] .stage { background: linear-gradient(90deg, #ddd0b9, #f5f0e7 12%, #f5f0e7 88%, #ddd0b9); }
:root[data-guide-template="wilderness-retreat"] .app-floating-controls { background: linear-gradient(180deg, #fffdf7, #efe5d3); }
:root[data-guide-template="wilderness-retreat"] .home-quick-card,
:root[data-guide-template="wilderness-retreat"] .home-accordion,
:root[data-guide-template="wilderness-retreat"] .card,
:root[data-guide-template="wilderness-retreat"] .visual-card {
  box-shadow: 0 16px 38px rgba(64,54,38,.12), inset 0 1px 0 rgba(255,255,255,.62);
}

@media (min-width: 980px) {
  .drawer-brand { display: flex !important; }
  .drawer { padding-top: 18px; }
}

@media (max-width: 979px) {
  .app-floating-controls { padding: 0 var(--screen-pad); }
  .page:not(.page-home) { padding: 24px var(--screen-pad) 30px; }
  .home-quick-card,
  .home-welcome-note,
  .home-accordion-stack,
  .home-emergency-strip {
    width: calc(100% - (var(--screen-pad) * 2));
  }
  .home-quick-card { padding: 16px; }
  .home-accordion-head, .home-accordion > summary { min-height: 84px; padding: 14px 16px; }
  .home-accordion-grid { padding: 0 16px 16px; }
}
/* =========================================================
   Stage 12.2.6 — non-sticky mobile page header baseline
   =========================================================
   The per-page header must scroll with page content on mobile.
   Keep this block at the end of the file so older page-header
   rules cannot reintroduce sticky/fixed behaviour.
*/

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}

@media (max-width: 979px) {
  .page:not(.page-home) .page-header {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .page-home .page-header {
    display: none !important;
  }
}


/* =========================================================
   Stage 12.2.10 — Home icon + mobile footer finish
   ========================================================= */
.home-control .header-home-icon { display: none; }
.header-hosty-logo { display: block; }

html, body, #app {
  min-height: 100%;
}

body {
  background: var(--paper);
}

.stage {
  min-height: 100dvh;
}

@media (max-width: 979px) {
  #app {
    min-height: 100dvh;
    overflow-x: hidden;
  }

  .stage {
    padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    background: transparent;
  }

  .page {
    min-height: calc(100dvh - var(--header-h) - 72px);
    padding-bottom: calc(56px + env(safe-area-inset-bottom)) !important;
    border-bottom: 0;
    border-radius: 0;
  }

  .page:not(.page-home) {
    padding-bottom: calc(56px + env(safe-area-inset-bottom)) !important;
  }

  .content > *:last-child,
  .card:last-child,
  .visual-card:last-child {
    margin-bottom: 0;
  }
}


/* =========================================================
   Stage 12.2.17 — Mobile quick access centering fix
   Keep quick access aligned with accordion cards in exported guides.
   ========================================================= */
@media (max-width: 979px) {
  .page-home .home-quick-card {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 430px) {
  .page-home .home-quick-card,
  .page-home .home-welcome-note,
  .page-home .home-accordion-stack,
  .page-home .home-emergency-strip {
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    margin-left: auto;
    margin-right: auto;
  }

  .page-home .home-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
}


/* Stage 14.2 — header logo design override cleanup */
.hosty-logo-control { padding: 0; overflow: hidden; }
.home-control .header-hosty-logo {
  width: var(--header-logo-width, 34px);
  height: var(--header-logo-height, 34px);
  object-fit: var(--header-logo-fit, contain);
  display: block;
  filter: none !important;
}
.home-control .header-home-icon { display: none !important; }



.hosty-logo-control {
  cursor: pointer;
  touch-action: manipulation;
}
.hosty-logo-control:hover {
  transform: scale(1.03);
  background: rgba(255,253,250,.82);
  filter: brightness(1.04);
}
.hosty-logo-control:active {
  transform: scale(.96);
  opacity: .9;
}
.hosty-logo-control.is-menu-open {
  background: rgba(255,253,250,.88);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.62), 0 4px 16px rgba(0,0,0,.08);
}
@media (hover: none) {
  .hosty-logo-control:hover {
    transform: none;
    filter: none;
  }
}

/* =========================================================
   Stage 14.3 UX polish pass
   - stronger accordion affordance
   - clearer card hierarchy
   - safer hero text contrast
   ========================================================= */
.home-hero-overlay {
  background:
    linear-gradient(0deg, rgba(8, 18, 13, .64) 0%, rgba(8, 18, 13, .34) 42%, rgba(8, 18, 13, .08) 100%),
    linear-gradient(180deg, rgba(10, 30, 18, .12), rgba(10, 30, 18, .34));
}
.home-hero-content {
  padding-bottom: 2px;
}
.home-hero h1 {
  text-shadow: 0 2px 18px rgba(0,0,0,.36), 0 1px 2px rgba(0,0,0,.22);
}
.home-quick-card,
.home-accordion,
.home-emergency-strip {
  border-color: rgba(64,49,33,.10);
}
.home-quick-item,
.home-accordion-grid button,
.home-accordion-grid a {
  border-color: rgba(64,49,33,.10);
  background: rgba(255,255,255,.72);
  transition: transform .14s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.home-quick-item:hover,
.home-accordion-grid button:hover,
.home-accordion-grid a:hover,
.home-accordion-head:hover {
  background: rgba(255,255,255,.88);
}
.home-quick-item:active,
.home-accordion-grid button:active,
.home-accordion-grid a:active,
.home-accordion-head:active,
.home-emergency-strip:active {
  transform: scale(.982);
}
.home-quick-item {
  min-height: var(--quick-access-tile-height, 142px);
  padding: var(--quick-access-tile-padding, 16px 10px 14px);
  gap: var(--quick-access-icon-gap, 8px);
}
.home-quick-item .file-svg-tile,
.home-accordion-grid .file-svg-tile {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  max-width: 42px;
  max-height: 42px;
}
.home-quick-item strong,
.home-accordion-grid strong {
  font-size: clamp(.9rem, 2.45vw, 1.04rem);
  line-height: 1.08;
  font-weight: 560;
}
.home-quick-item span,
.home-accordion-grid span {
  margin-top: 1px;
  color: rgba(80,65,53,.58);
  font-size: .72rem;
  line-height: 1.18;
  font-weight: 500;
}
.home-accordion-stack {
  gap: 10px;
}
.home-accordion {
  border-color: rgba(64,49,33,.11);
}
.home-accordion-head,
.home-accordion > summary {
  min-height: 82px;
  padding: 13px 16px;
  gap: 12px;
  transition: background .18s ease, transform .14s ease;
}
.home-accordion-head[aria-expanded="true"],
.home-accordion[open] > summary {
  background: rgba(255,255,255,.30);
  border-bottom: 1px solid rgba(64,49,33,.09);
}
.home-accordion-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
}
.home-accordion-icon .file-svg-tile {
  width: 25px;
  height: 25px;
  min-width: 25px;
  min-height: 25px;
  max-width: 25px;
  max-height: 25px;
}
.home-accordion-copy strong {
  font-size: clamp(.92rem, 2.65vw, 1.08rem);
  letter-spacing: .025em;
}
.home-accordion-copy span,
.home-accordion-copy small {
  margin-top: 3px;
  color: rgba(80,65,53,.62);
  font-size: .8rem;
}
.home-accordion-chevron {
  width: 16px;
  height: 16px;
  border-right-width: 3px;
  border-bottom-width: 3px;
  color: rgba(31,77,47,.96);
  opacity: .95;
  margin-right: 4px;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.8));
  position: relative;
  top: -2px;
}
.home-accordion-head[aria-expanded="true"] .home-accordion-chevron,
.home-accordion[open] .home-accordion-chevron {
  color: var(--brown);
}
.home-accordion-grid {
  gap: 9px;
  padding: 11px 13px 14px;
}
.home-accordion-grid button,
.home-accordion-grid a {
  min-height: 101px;
  padding: 11px 7px 9px;
  gap: 5px;
}
@media (max-width: 560px) {
  .home-quick-grid,
  .home-accordion-grid {
    gap: 9px;
  }

  .home-quick-item {
    min-height: var(--quick-access-tile-height, 130px);
    padding: var(--quick-access-tile-padding, 14px 8px 12px);
    gap: var(--quick-access-icon-gap, 8px);
  }
}
  .home-accordion-head,
  .home-accordion > summary {
    min-height: 76px;
    padding: 12px 14px;
  }
  .home-accordion-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
}

/* Stage 14.9 Quick Access tile design override controls */
.home-quick-item{
  min-height: var(--quick-access-tile-height, 128px);
  padding: var(--quick-access-tile-padding, 12px 6px 10px);
}

.home-quick-item .svg-icon,
.home-quick-item .file-svg-tile{
  margin-bottom: var(--quick-access-icon-gap, 8px);
}

.home-quick-item strong{
  margin-top: 0;
  margin-bottom: 0;
}


:root[data-guide-template="wilderness-retreat"] body,
:root[data-guide-template="wilderness-retreat"] .stage { background: linear-gradient(90deg, #ddd0b9, #f5f0e7 12%, #f5f0e7 88%, #ddd0b9); }
:root[data-guide-template="wilderness-retreat"] .app-floating-controls { background: linear-gradient(180deg, #fffdf7, #efe5d3); }
:root[data-guide-template="wilderness-retreat"] .home-quick-card,
:root[data-guide-template="wilderness-retreat"] .home-accordion,
:root[data-guide-template="wilderness-retreat"] .card,
:root[data-guide-template="wilderness-retreat"] .visual-card {
  box-shadow: 0 16px 38px rgba(64,54,38,.12), inset 0 1px 0 rgba(255,255,255,.62);
}

@media (min-width: 980px){
  .home-quick-item{
    min-height: var(--quick-access-tile-height, 128px);
    padding: var(--quick-access-tile-padding, 12px 6px 10px);
  }
}

/* Stage 14.10 Quick Access design override wiring fix */
.home-quick-grid > .home-quick-item,
.home-quick-item{
  min-height: var(--quick-access-tile-height, 128px) !important;
  padding: var(--quick-access-tile-padding, 12px 6px 10px) !important;
}

.home-quick-item .svg-icon,
.home-quick-item .file-svg-tile,
.home-quick-item svg,
.home-quick-item img{
  margin-bottom: var(--quick-access-icon-gap, 8px) !important;
}

.home-quick-item span{
  margin-top: var(--quick-access-icon-gap, 8px);
}

.home-quick-item strong{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}



/* =========================================================
   Stage 18 — Persistent contact message control
   ========================================================= */
.app-control-right {
  gap: 8px;
}

.contact-message-control {
  padding: 0;
  color: var(--charcoal);
  cursor: pointer;
  touch-action: manipulation;
}

.contact-message-control[hidden] {
  display: none !important;
}

.header-contact-icon {
  width: 23px;
  height: 23px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .92;
}

.contact-message-control:hover {
  transform: scale(1.03);
  background: rgba(255,253,250,.82);
  filter: brightness(1.04);
}

.contact-message-control:active {
  transform: scale(.96);
  opacity: .9;
}

@media (hover: none) {
  .contact-message-control:hover {
    transform: none;
    filter: none;
  }
}


/* =========================================================
   Stage 20 — Welcome guest experience
   ========================================================= */
body.welcome-gate-active {
  overflow: hidden;
}

body.welcome-gate-active .app-floating-controls,
body.welcome-gate-active .floating-return-btn,
body.welcome-gate-active .drawer,
body.welcome-gate-active .shade {
  visibility: hidden !important;
  pointer-events: none !important;
}

.welcome-gate {
  position: fixed;
  inset: 0;
  z-index: 5000;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.52), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--stay) 14%, #ffffff) 0%, color-mix(in srgb, var(--stay) 9%, #ffffff) 100%);
  color: var(--charcoal);
  animation: welcomeGateIn .22s ease both;
}

.welcome-gate.is-leaving {
  animation: welcomeGateOut .22s ease both;
}

.welcome-gate-card {
  width: min(100%, 640px);
  min-height: min(760px, calc(100dvh - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(20px, 4vh, 34px);
  padding: 30px 18px;
}

.welcome-gate-brand-block {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: clamp(12px, 2vh, 22px);
}

.welcome-gate-logo {
  width: clamp(60px, 13vw, 82px);
  height: clamp(60px, 13vw, 82px);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 22px rgba(20,40,50,.10));
}

.welcome-gate-brand {
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(1.42rem, 4vw, 1.8rem);
  line-height: 1;
  font-weight: 580;
  letter-spacing: -.035em;
}

.welcome-gate-tagline {
  margin: 0;
  color: color-mix(in srgb, var(--charcoal) 78%, transparent);
  font-size: clamp(.96rem, 2.7vw, 1.08rem);
  line-height: 1.2;
  font-weight: 430;
}

.welcome-gate-title-block {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.welcome-gate-script {
  margin: 0;
  color: var(--stay);
  font-family: "Segoe Script", "Snell Roundhand", "Brush Script MT", cursive;
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  line-height: .9;
  font-weight: 400;
  letter-spacing: -.045em;
  text-shadow: 0 8px 18px rgba(40,70,90,.08);
}

.welcome-gate h1 {
  margin: 0;
  max-width: min(100%, 16ch);
  color: #10202b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.45rem, 10vw, 5.35rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 400;
  text-wrap: balance;
  text-shadow: 0 10px 24px rgba(40,70,90,.09);
}

.welcome-gate-rule {
  width: min(320px, 68vw);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: var(--stay);
  margin-top: 2px;
}

.welcome-gate-rule span {
  display: block;
  height: 1px;
  background: color-mix(in srgb, var(--stay) 72%, transparent);
}

.welcome-gate-rule b {
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
}

.welcome-gate-subtitle {
  margin: 8px 0 0;
  max-width: 530px;
  color: color-mix(in srgb, var(--charcoal) 82%, transparent);
  font-size: clamp(1.05rem, 3vw, 1.28rem);
  line-height: 1.52;
  font-weight: 420;
  text-wrap: balance;
}

.welcome-gate-details {
  width: min(100%, 520px);
  display: grid;
  gap: 0;
  margin-top: clamp(2px, 1vh, 12px);
  color: var(--charcoal);
  text-align: left;
}

.welcome-gate-detail-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid rgba(31,42,46,.12);
}

.welcome-gate-detail-row:last-child {
  border-bottom: 0;
}

.welcome-gate-detail-icon {
  width: 40px;
  height: 40px;
  display: block;
  background: var(--stay);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.welcome-gate-detail-icon-location {
  -webkit-mask-image: url("assets/svg-icons/location.svg");
  mask-image: url("assets/svg-icons/location.svg");
}

.welcome-gate-detail-icon-contact {
  -webkit-mask-image: url("assets/svg-icons/contact.svg");
  mask-image: url("assets/svg-icons/contact.svg");
}

.welcome-gate-detail-row strong {
  display: block;
  margin-bottom: 2px;
  color: #10202b;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 760;
}

.welcome-gate-detail-row span span,
.welcome-gate-detail-row a {
  display: block;
  color: color-mix(in srgb, var(--charcoal) 86%, transparent);
  font-size: clamp(.98rem, 2.8vw, 1.08rem);
  line-height: 1.35;
  font-weight: 430;
  text-decoration: none;
}

.welcome-gate-button {
  margin-top: clamp(2px, 1.2vh, 14px);
  width: auto;
  min-width: 218px;
  min-height: 60px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--stay) 92%, #ffffff), var(--stay));
  color: #ffffff;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--stay) 24%, transparent);
  font-size: clamp(1.1rem, 3vw, 1.22rem);
  font-weight: 760;
  letter-spacing: -.015em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.welcome-gate-button span:last-child {
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 300;
}

.welcome-gate-button:active {
  transform: translateY(1px) scale(.99);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--stay) 20%, transparent);
}


@keyframes welcomeGateIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes welcomeGateOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (max-width: 520px) {
  .welcome-gate {
    align-items: flex-start;
    overflow-y: auto;
  }

  .welcome-gate-card {
    min-height: calc(100dvh - 44px);
    justify-content: center;
    gap: 20px;
    padding-inline: 6px;
  }

  .welcome-gate h1 {
    max-width: min(100%, 12ch);
    font-size: clamp(3.05rem, 13vw, 4.4rem);
  }

  .welcome-gate-details {
    width: min(100%, 390px);
  }

  .welcome-gate-button {
    min-width: 210px;
  }
}


/* Stage 20: Featured local recommendation replaces the static home hero */
.featured-recommendation-hero {
  padding: 12px 14px 2px;
}

.featured-recommendation-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: clamp(210px, 34vw, 310px);
  overflow: hidden;
  border: 0;
  border-radius: calc(var(--radius, 22px) + 6px);
  padding: 0;
  cursor: pointer;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(10, 18, 14, .06), rgba(10, 18, 14, .58)),
    var(--featured-recommendation-image),
    color-mix(in srgb, var(--stay, #7d9672) 14%, #ffffff);
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 34px rgba(30, 45, 36, .14);
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  backface-visibility: hidden;
  isolation: isolate;
}

.featured-recommendation-card:focus {
  outline: none;
}

.featured-recommendation-card:focus-visible {
  box-shadow: 0 14px 34px rgba(30, 45, 36, .14), 0 0 0 3px rgba(255,255,255,.85), 0 0 0 6px color-mix(in srgb, var(--stay, #7d9672) 55%, transparent);
}

.featured-recommendation-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01) translateZ(0);
  backface-visibility: hidden;
}

.featured-recommendation-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 14, .06) 0%, rgba(10, 18, 14, .38) 48%, rgba(10, 18, 14, .76) 100%),
    linear-gradient(90deg, rgba(10, 18, 14, .66) 0%, rgba(10, 18, 14, .36) 48%, rgba(10, 18, 14, .14) 100%);
}

.featured-recommendation-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(210px, 34vw, 310px);
  max-width: 520px;
  padding: clamp(20px, 4vw, 34px);
  color: #fff;
}

.featured-recommendation-kicker {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--featured-kicker-bg, linear-gradient(90deg, rgba(67, 78, 58, .66), rgba(67, 78, 58, .36)));
  color: var(--featured-kicker-color, rgba(255,255,255,.94));
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: none;
  backdrop-filter: blur(10px);
}

.featured-recommendation-content strong {
  display: block;
  margin: 0;
  max-width: 500px;
  color: #fff;
  font-family: var(--font-heading, Georgia, serif);
  font-size: clamp(1.55rem, 5.8vw, 2.75rem);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -.035em;
  text-shadow: 0 2px 20px rgba(0,0,0,.36);
}

.featured-recommendation-description {
  display: block;
  margin-top: 10px;
  max-width: 430px;
  color: rgba(255,255,255,.94);
  font-size: clamp(.88rem, 2.1vw, 1rem);
  line-height: 1.42;
  text-shadow: 0 1px 12px rgba(0,0,0,.28);
}

.featured-recommendation-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-top: 14px;
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--featured-cta-bg, #eef2e9);
  color: var(--featured-cta-color, var(--charcoal, #223229));
  border: 1px solid var(--featured-cta-border, rgba(255,255,255,.55));
  font-size: .86rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}


/* Featured recommendation hero controls inherit each preset's mood without extra override CSS. */
:root[data-guide-template="country-lodge"] {
  --featured-kicker-bg: linear-gradient(90deg, rgba(68, 82, 56, .68), rgba(68, 82, 56, .36));
  --featured-kicker-color: rgba(255,255,255,.95);
  --featured-cta-bg: #eef2e8;
  --featured-cta-color: #24422d;
  --featured-cta-border: rgba(255,255,255,.58);
}

:root[data-guide-template="coastal-retreat"] {
  --featured-kicker-bg: linear-gradient(90deg, rgba(37, 76, 88, .68), rgba(37, 76, 88, .34));
  --featured-kicker-color: rgba(255,255,255,.95);
  --featured-cta-bg: #eaf5f7;
  --featured-cta-color: #184a55;
  --featured-cta-border: rgba(255,255,255,.62);
}

:root[data-guide-template="luxury-villa"] {
  --featured-kicker-bg: linear-gradient(90deg, rgba(83, 64, 35, .68), rgba(83, 64, 35, .34));
  --featured-kicker-color: rgba(255,250,240,.96);
  --featured-cta-bg: #f2eadb;
  --featured-cta-color: #46351f;
  --featured-cta-border: rgba(255,255,255,.58);
}

:root[data-guide-template="boutique-stay"] {
  --featured-kicker-bg: linear-gradient(90deg, rgba(94, 65, 66, .66), rgba(94, 65, 66, .34));
  --featured-kicker-color: rgba(255,246,241,.96);
  --featured-cta-bg: #f4e9df;
  --featured-cta-color: #49312e;
  --featured-cta-border: rgba(255,255,255,.58);
}

:root[data-guide-template="family-retreat"] {
  --featured-kicker-bg: linear-gradient(90deg, rgba(73, 92, 55, .66), rgba(73, 92, 55, .34));
  --featured-kicker-color: rgba(255,255,255,.95);
  --featured-cta-bg: #f2f0df;
  --featured-cta-color: #35492a;
  --featured-cta-border: rgba(255,255,255,.62);
}

:root[data-guide-template="wilderness-retreat"] {
  --featured-kicker-bg: linear-gradient(90deg, rgba(68, 62, 45, .68), rgba(68, 62, 45, .34));
  --featured-kicker-color: rgba(255,253,247,.96);
  --featured-cta-bg: #efe7d6;
  --featured-cta-color: #362f22;
  --featured-cta-border: rgba(255,255,255,.58);
}

:root[data-guide-template="modern-apartment"] {
  --featured-kicker-bg: linear-gradient(90deg, rgba(55, 59, 62, .64), rgba(55, 59, 62, .32));
  --featured-kicker-color: rgba(255,255,255,.94);
  --featured-cta-bg: #f0efec;
  --featured-cta-color: #25282a;
  --featured-cta-border: rgba(255,255,255,.62);
}

@media (max-width: 640px) {
  .featured-recommendation-hero {
    padding: 0;
    margin: 0 0 24px;
  }

  .featured-recommendation-card,
  .featured-recommendation-content {
    min-height: clamp(430px, 59vh, 560px);
  }

  .featured-recommendation-card {
    border-radius: 0;
    box-shadow: none;
  }

  .featured-recommendation-image {
    transform: scale(1.02) translateZ(0);
  }

  .featured-recommendation-overlay {
    background:
      linear-gradient(180deg, rgba(255,248,236,.18) 0%, rgba(10,18,14,.06) 22%, rgba(10,18,14,.34) 58%, rgba(7,14,10,.82) 100%),
      linear-gradient(90deg, rgba(7,14,10,.64) 0%, rgba(7,14,10,.34) 58%, rgba(7,14,10,.10) 100%);
  }

  .featured-recommendation-content {
    justify-content: flex-end;
    max-width: 100%;
    padding: calc(92px + env(safe-area-inset-top)) 30px 60px;
  }

  .featured-recommendation-kicker {
    margin-bottom: 14px;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: rgba(255,255,255,.96);
    font-size: clamp(1rem, 3.9vw, 1.22rem);
    font-weight: 820;
    letter-spacing: -.015em;
    line-height: 1.15;
    text-transform: none;
    backdrop-filter: none;
  }

  .featured-recommendation-content strong {
    max-width: 94%;
    font-size: clamp(2.45rem, 11vw, 4.15rem);
    line-height: .98;
    font-weight: 780;
    letter-spacing: -.055em;
    text-shadow: 0 3px 26px rgba(0,0,0,.42), 0 1px 2px rgba(0,0,0,.24);
  }

  .featured-recommendation-description {
    margin-top: 20px;
    max-width: 92%;
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
    line-height: 1.48;
    font-weight: 520;
    color: rgba(255,255,255,.96);
    text-shadow: 0 2px 16px rgba(0,0,0,.34);
  }

  .featured-recommendation-cta {
    display: none;
  }
}

/* Stage 20 featured recommendation resilience */
.featured-recommendation-card--no-image {
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.72));
}
.featured-recommendation-card--no-image .featured-recommendation-overlay {
  background: linear-gradient(135deg, rgba(20,40,28,.08), rgba(20,40,28,.18));
}
.featured-recommendation-card--no-image .featured-recommendation-content,
.featured-recommendation-card--no-image .featured-recommendation-content strong,
.featured-recommendation-card--no-image .featured-recommendation-description,
.featured-recommendation-card--no-image .featured-recommendation-kicker {
  color: var(--charcoal, #223229) !important;
  text-shadow: none !important;
}
.featured-recommendation-card--no-image .featured-recommendation-kicker {
  background: rgba(34, 50, 41, .10);
}
.featured-recommendation-card--force-repaint {
  transform: translateZ(0) scale(1.0001);
  will-change: transform;
}


/* =========================================================
   Stage 20.1 — Mobile home footer cleanup
   Prevent the home page from creating a large empty footer band
   after the final accordion on mobile while keeping non-home pages
   safe for browser chrome and return controls.
   ========================================================= */
@media (max-width: 979px) {
  .stage:has(.page-home) {
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  .page.page-home {
    min-height: auto !important;
    padding-bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    background: transparent;
  }

  .page-home .content {
    padding-bottom: 0 !important;
  }

  .page-home .home-experience-shell {
    padding-bottom: 0 !important;
  }

  .page-home .home-accordion-stack {
    margin-bottom: 0 !important;
  }
}


/* =========================================================
   Stage 20.2 — Final mobile home footer trim
   The home page is now a self-contained stack. Do not allow the
   app shell/page minimum heights or old browser-chrome padding rules
   to create a visible empty footer band after the emergency row.
   ========================================================= */
@media (max-width: 979px) {
  body.is-home-route .stage,
  body:has(.page-home) .stage {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 0 !important;
  }

  body.is-home-route #app,
  body:has(.page-home) #app {
    min-height: 0 !important;
    height: auto !important;
  }

  body.is-home-route .page.page-home,
  body:has(.page-home) .page.page-home {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
    background: var(--accordion-surface);
  }

  body.is-home-route .page-home .content,
  body:has(.page-home) .page-home .content,
  body.is-home-route .page-home .home-experience-shell,
  body:has(.page-home) .page-home .home-experience-shell {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  body.is-home-route .page-home .home-accordion-stack,
  body:has(.page-home) .page-home .home-accordion-stack {
    padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    margin-bottom: 0 !important;
  }

  body.is-home-route .page-home .home-accordion-stack > :last-child,
  body:has(.page-home) .page-home .home-accordion-stack > :last-child {
    margin-bottom: 0 !important;
  }
}

/* Stage 20: softened accordion headings only
   Scope: visual heading treatment for home accordion headers.
   No asset, export, script, data, footer, or cache logic changes. */
.home-accordion-copy strong {
  font-size: clamp(.9rem, 2.45vw, 1.02rem);
  line-height: 1.12;
  font-weight: 720;
  letter-spacing: .006em;
  text-transform: none;
}

.home-accordion-copy span,
.home-accordion-copy small {
  color: rgba(80,65,53,.60);
  font-size: .78rem;
  line-height: 1.25;
  font-weight: 480;
}

.home-accordion-head,
.home-accordion > summary {
  min-height: 80px;
}

@media (max-width: 640px) {
  .home-accordion-copy strong {
    font-size: .94rem;
    line-height: 1.12;
  }

  .home-accordion-copy span,
  .home-accordion-copy small {
    font-size: .76rem;
  }
}

/* Stage 21: lightweight simple-block image support */
.simple-block-image {
  margin: 1rem 0;
}
.simple-block-image img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg, 18px);
  border: 1px solid var(--line, rgba(0,0,0,.1));
}
.simple-block-image figcaption {
  margin-top: .45rem;
  font-size: .9rem;
  color: var(--muted, #6b7280);
  text-align: center;
}
.quick-access-tile-image {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 14px;
  margin: .15rem 0 .45rem;
}

/* =========================================================
   Stage 21.3c — Mobile subpage footer band fix
   The visible footer band was owned by the outer .stage shell:
   mobile .stage had 72px bottom padding for the floating Back control.
   Keep the Back-control clearance inside the subpage card instead, so the
   shell no longer paints a blank band after long mobile content.
   ========================================================= */
@media (max-width: 979px) {
  body.is-subpage-route .stage {
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  body.is-subpage-route .page:not(.page-home) {
    padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
  }
}


/* =========================================================
   Stage 22 — Home accordion micro-interaction polish
   - clearer expanded state contrast
   - stronger but restrained chevron animation
   - subtle press/lift feedback
   - softer small tile label weight to avoid iOS repaint heaviness
   ========================================================= */
.home-accordion {
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .16s ease;
  will-change: background-color, box-shadow;
}

.home-accordion[open] {
  border-color: color-mix(in srgb, var(--green) 18%, rgba(64,49,33,.12));
  background: color-mix(in srgb, var(--accordion-surface) 92%, #ffffff);
  box-shadow: 0 16px 34px rgba(42,31,20,.105);
}

.home-accordion-head,
.home-accordion > summary {
  transition: background-color .22s ease, transform .16s ease, box-shadow .18s ease;
}

.home-accordion-head:active,
.home-accordion > summary:active {
  transform: scale(.988);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.home-accordion-head[aria-expanded="true"],
.home-accordion[open] > summary {
  background: rgba(255,255,255,.46);
  border-bottom: 1px solid rgba(64,49,33,.105);
}

.home-accordion-icon {
  transition: transform .18s ease, box-shadow .22s ease, filter .22s ease;
  box-shadow: 0 8px 18px rgba(42,31,20,.10), inset 0 1px 0 rgba(255,255,255,.24);
}

.home-accordion-head:active .home-accordion-icon,
.home-accordion > summary:active .home-accordion-icon {
  transform: scale(.965);
  box-shadow: 0 4px 12px rgba(42,31,20,.10), inset 0 1px 0 rgba(255,255,255,.20);
}

.home-accordion-chevron {
  width: 15px;
  height: 15px;
  border-right-width: 2.5px;
  border-bottom-width: 2.5px;
  opacity: .95;
  transition: transform .26s cubic-bezier(.2,.8,.2,1), color .22s ease, opacity .22s ease;
  transform-origin: 58% 58%;
}

.home-accordion-head[aria-expanded="true"] .home-accordion-chevron,
.home-accordion[open] .home-accordion-chevron {
  opacity: 1;
  color: var(--brown);
}

.home-accordion[open] .home-accordion-grid {
  animation: accordionPanelIn .22s ease both;
}

@keyframes accordionPanelIn {
  from { opacity: .72; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}

.home-quick-item,
.home-accordion-grid button,
.home-accordion-grid a {
  transition: transform .16s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.home-quick-item:active,
.home-accordion-grid button:active,
.home-accordion-grid a:active {
  transform: scale(.976);
  box-shadow: 0 8px 18px rgba(42,31,20,.08);
}

.home-quick-item strong,
.home-accordion-grid strong {
  font-weight: 560 !important;
  letter-spacing: -.01em !important;
}

@media (hover: hover) {
  .home-accordion:hover {
    box-shadow: 0 14px 30px rgba(42,31,20,.085);
  }

  .home-quick-item:hover,
  .home-accordion-grid button:hover,
  .home-accordion-grid a:hover {
    box-shadow: 0 10px 22px rgba(42,31,20,.07);
  }
}

/* =========================================================
   v260 — Production accordion + icon system
   ---------------------------------------------------------
   Consolidated the approved Stage 21 accordion polish into a
   single source of truth.

   Keeps:
   - v238 natural tile icon rendering
   - v241 chevron optical alignment
   - approved section colour palette
   - mobile accordion spacing/card rhythm

   Removed:
   - duplicated historical Stage 21.4/21.5/21.8 override stack
   - repeated mobile icon-size rules
   - experimental icon scaling patches
   ========================================================= */

/* Accordion row rhythm */
.home-accordion-head,
.home-accordion > summary {
  min-height: 92px;
  padding: 15px 17px;
  gap: 13px;
}

/* Section circle icons */
.page-home .home-accordion-icon,
.home-accordion-stack .home-accordion-icon,
.home-accordion-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  flex: 0 0 50px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: none;
}

.page-home .home-accordion-icon .file-svg-tile,
.home-accordion-stack .home-accordion-icon .file-svg-tile,
.home-accordion-icon .file-svg-tile {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  max-width: 26px;
  max-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-1px);
}

.page-home .home-accordion-icon svg,
.home-accordion-stack .home-accordion-icon svg,
.home-accordion-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
}

.page-home .home-accordion-icon .file-svg-img,
.page-home .home-accordion-icon img,
.home-accordion-stack .home-accordion-icon .file-svg-img,
.home-accordion-stack .home-accordion-icon img,
.home-accordion-icon .file-svg-img,
.home-emergency-icon .file-svg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  filter: brightness(0) invert(1) !important;
}

/* Approved accordion colour palette */
.home-accordion-quick-access .home-accordion-icon { background: #17672f; }
.home-accordion-stay .home-accordion-icon,
.home-accordion.stay .home-accordion-icon { background: #789b43; }
.home-accordion-property .home-accordion-icon,
.home-accordion.property .home-accordion-icon { background: #c8aa57; }
.home-accordion-explore .home-accordion-icon,
.home-accordion.explore .home-accordion-icon { background: #9cbc84; }
.home-accordion-services .home-accordion-icon,
.home-accordion.services .home-accordion-icon { background: #7b9abd; }
.home-accordion-help .home-accordion-icon,
.home-accordion.emergency-strip .home-accordion-icon { background: #bd4b4c; }

.home-accordion-quick-access .home-accordion-copy strong { color: #17672f; }
.home-accordion-stay .home-accordion-copy strong,
.home-accordion.stay .home-accordion-copy strong { color: #436d35; }
.home-accordion-property .home-accordion-copy strong,
.home-accordion.property .home-accordion-copy strong { color: #846e2f; }
.home-accordion-explore .home-accordion-copy strong,
.home-accordion.explore .home-accordion-copy strong { color: #51793f; }
.home-accordion-services .home-accordion-copy strong,
.home-accordion.services .home-accordion-copy strong { color: #52724c; }
.home-accordion-help .home-accordion-copy strong,
.home-accordion.emergency-strip .home-accordion-copy strong,
.home-accordion.emergency-strip .home-accordion-chevron { color: #a13f43; }

/* Chevron optical alignment */
.home-accordion-chevron {
  width: 12px;
  height: 12px;
  border-right-width: 1.8px;
  border-bottom-width: 1.8px;
  margin-right: 4px;
  position: relative;
  top: -2px;
  opacity: .95;
  transform-origin: 58% 58%;
  transition: transform .26s cubic-bezier(.2,.8,.2,1), color .22s ease, opacity .22s ease;
}

.home-accordion-head[aria-expanded="true"] .home-accordion-chevron,
.home-accordion[open] .home-accordion-chevron {
  opacity: 1;
  color: var(--brown);
}

/* Expanded tile grid: preserve natural v238 icon rendering */
.home-accordion-grid {
  padding: 10px 16px 16px;
  gap: 10px;
}

.home-accordion-grid button,
.home-accordion-grid a {
  min-height: 110px;
  padding: 13px 10px 11px;
  gap: 8px;
  align-content: center;
  justify-content: center;
}

.home-accordion-grid .file-svg-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-1px);
}

.home-accordion-grid strong,
.home-quick-item strong {
  line-height: 1.08;
}

.home-accordion[open] .home-accordion-grid {
  animation: accordionPanelIn .22s ease both;
}

@keyframes accordionPanelIn {
  from { opacity: .72; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .home-accordion-head,
  .home-accordion > summary {
    min-height: 84px;
    padding: 14px 15px;
    gap: 12px;
  }

  .page-home .home-accordion-icon,
  .home-accordion-stack .home-accordion-icon,
  .home-accordion-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    flex-basis: 46px;
  }

  .page-home .home-accordion-icon .file-svg-tile,
  .home-accordion-stack .home-accordion-icon .file-svg-tile,
  .home-accordion-icon .file-svg-tile {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
  }

  .page-home .home-accordion-icon svg,
  .home-accordion-stack .home-accordion-icon svg,
  .home-accordion-icon svg {
    width: 24px;
    height: 24px;
  }

  .home-accordion-chevron {
    width: 11px;
    height: 11px;
    border-right-width: 1.75px;
    border-bottom-width: 1.75px;
    margin-right: 3px;
    top: -2px;
  }

  .home-accordion-grid {
    padding: 9px 11px 13px;
    gap: 8px;
  }

  .home-accordion-grid button,
  .home-accordion-grid a {
    min-height: 104px;
    padding: 12px 7px 10px;
    gap: 7px;
  }
}


/* Stage 24 — persistent quick-access footer */
body{
  padding-bottom:calc(84px + env(safe-area-inset-bottom))!important;
}
.floating-return-btn{
  display:none!important;
}
.persistent-footer{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  min-height:64px;
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  align-items:center;
  gap:0;
  padding:7px 14px calc(7px + env(safe-area-inset-bottom));
  border-radius:24px 24px 0 0;
  background:rgba(255,255,252,.92);
  border:1px solid rgba(31,73,41,.10);
  border-bottom:0;
  box-shadow:0 -10px 28px rgba(23,73,31,.10), 0 -1px 8px rgba(23,73,31,.05);
  -webkit-backdrop-filter:blur(22px) saturate(1.15);
  backdrop-filter:blur(22px) saturate(1.15);
  z-index:9999;
}
.persistent-footer.has-back{
  grid-template-columns:repeat(5, minmax(0, 1fr));
}
body.welcome-gate-active .persistent-footer{
  display:none!important;
}
.footer-nav-item{
  appearance:none;
  border:0;
  background:transparent;
  min-width:0;
  min-height:50px;
  padding:4px 2px 3px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  color:#234a31;
  border-radius:20px;
  font:inherit;
  -webkit-tap-highlight-color:transparent;
  transition:opacity .18s ease, transform .18s ease, background-color .18s ease, color .18s ease;
}
.footer-nav-item .svg-icon{
  width:25px;
  height:25px;
  display:block;
  color:currentColor;
}
.footer-nav-item .svg-icon img,
.footer-nav-item .svg-icon svg{
  width:25px;
  height:25px;
  display:block;
}
.footer-nav-item small{
  display:block;
  font-size:11px;
  line-height:1;
  font-weight:700;
  letter-spacing:-.01em;
  color:currentColor;
}
.footer-nav-item:active{
  transform:scale(.96);
}
.footer-nav-item.is-active{
  background:rgba(23,117,53,.10);
  color:#177535;
}
.footer-back{
  opacity:0;
  transform:translateX(-6px) scale(.94);
  pointer-events:none;
}
.footer-back.is-visible{
  opacity:1;
  transform:translateX(0) scale(1);
  pointer-events:auto;
}
@media (min-width: 900px){
  .persistent-footer{
    left:50%;
    right:auto;
    width:min(620px, calc(100vw - 48px));
    transform:translateX(-50%);
    border-radius:24px 24px 0 0;
  }
}


/* Stage 24.1 — sidebar import safety + footer backdrop trim */
#app{
  background: var(--paper) !important;
}
body::before,
body::after,
#app::before,
#app::after,
.stage::before,
.stage::after{
  pointer-events:none;
}
.persistent-footer{
  background: rgba(255,255,252,.86);
  box-shadow: 0 14px 34px rgba(23,73,31,.12), 0 2px 10px rgba(23,73,31,.05);
}
@media (max-width: 979px){
  body.is-home-route .stage,
  body.is-subpage-route .stage,
  body:has(.page-home) .stage{
    background: transparent !important;
  }
  body.is-home-route .page,
  body.is-subpage-route .page,
  body:has(.page-home) .page{
    box-shadow: none;
  }
}


/* Stage 24.2 — persistent footer backdrop cleanup
   Remove the remaining cream/edge gradient behind the floating footer.
   The footer now provides its own separation, so the app shell should not
   paint an extra bottom fade/band underneath it. */
html,
body,
#app{
  background: var(--paper) !important;
  background-image: none !important;
}
.stage{
  background: transparent !important;
  background-image: none !important;
}
.persistent-footer::before,
.persistent-footer::after{
  display: none !important;
  content: none !important;
}


/* Stage 24.4 — app-style full-width footer dock */
.persistent-footer{
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  width:auto !important;
  transform:none !important;
  border-radius:24px 24px 0 0 !important;
  background:rgba(255,255,252,.92) !important;
  box-shadow:0 -10px 28px rgba(23,73,31,.10), 0 -1px 8px rgba(23,73,31,.05) !important;
}
.persistent-footer:not(.has-back) .footer-back{
  display:none !important;
}
body.welcome-gate-active .persistent-footer{
  display:none !important;
}
@media (min-width:900px){
  .persistent-footer{
    left:50% !important;
    right:auto !important;
    width:min(620px, calc(100vw - 48px)) !important;
    transform:translateX(-50%) !important;
  }
}


/* Stage 24.5 — native dock footer refinement
   Full-width, app-style bottom navigation. No floating pill side rounding. */
.persistent-footer{
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  width:100% !important;
  max-width:none !important;
  transform:none !important;
  border-radius:0 !important;
  border-left:0 !important;
  border-right:0 !important;
  border-bottom:0 !important;
  padding:7px 14px calc(7px + env(safe-area-inset-bottom)) !important;
}
@media (min-width:900px){
  .persistent-footer{
    left:0 !important;
    right:0 !important;
    width:100% !important;
    max-width:none !important;
    transform:none !important;
    border-radius:0 !important;
  }
}


/* Stage 24.6 — luxury footer interaction polish + optical balance */
.persistent-footer{
  background:rgba(255,255,252,.94) !important;
  box-shadow:0 -6px 22px rgba(23,73,31,.075), 0 -1px 0 rgba(31,73,41,.075) !important;
  padding:6px 14px calc(10px + env(safe-area-inset-bottom)) !important;
}
.footer-nav-item{
  min-height:52px !important;
  padding:5px 2px 7px !important;
  gap:3px !important;
  color:rgba(35,74,49,.72) !important;
  border-radius:14px !important;
  opacity:.86;
  transition:opacity .22s ease, transform .22s ease, background-color .22s ease, color .22s ease;
}
.footer-nav-item .svg-icon,
.footer-nav-item .svg-icon img,
.footer-nav-item .svg-icon svg{
  width:24px !important;
  height:24px !important;
}
.footer-nav-item small{
  font-size:10.5px !important;
  line-height:1.05 !important;
  font-weight:600 !important;
  letter-spacing:0 !important;
}
.footer-nav-item:hover{
  opacity:.94;
}
.footer-nav-item:active{
  transform:translateY(1px) scale(.985) !important;
  opacity:1;
  background:rgba(96,111,69,.045) !important;
}
.footer-nav-item.is-active{
  color:rgba(73,92,48,.96) !important;
  background:rgba(96,111,69,.065) !important;
  opacity:1;
}
.footer-back{
  color:rgba(35,74,49,.72) !important;
}
.footer-back.is-visible{
  opacity:.9;
}
.footer-back.is-visible.is-active,
.footer-back.is-visible:active{
  opacity:1;
}

/* Stage 24.7 — footer height micro-refinement
   Compress dock by ~5% while preserving icon size and touch clarity. */
.persistent-footer{
  min-height:60px !important;
  padding:4px 14px calc(8px + env(safe-area-inset-bottom)) !important;
}
.footer-nav-item{
  min-height:49px !important;
  padding:4px 2px 6px !important;
  gap:2px !important;
}


/* ===== V298 Header Simplification ===== */
.app-control-left{
  display:flex;
  align-items:center;
  gap:12px;
}

.app-control-right{
  display:none !important;
}

.header-back-btn{
  display:flex;
  align-items:center;
  justify-content:center;
}

.header-back-btn img{
  width:22px;
  height:22px;
  opacity:0.92;
}

/* ===== V298 Footer Active State Refinement ===== */
.footer-nav-item{
  background:transparent !important;
  transition:
    opacity .22s ease,
    transform .22s ease,
    color .22s ease;
  opacity:.62;
}

.footer-nav-item small{
  font-weight:600;
  letter-spacing:-0.01em;
}

.footer-nav-item.is-active{
  background:transparent !important;
  opacity:1;
  transform:translateY(-1px);
}

.footer-nav-item.is-active small{
  font-weight:700;
}

.footer-nav-item.is-active img,
.footer-nav-item.is-active svg{
  opacity:1;
}

.footer-nav-item img,
.footer-nav-item svg{
  opacity:.88;
}

.persistent-footer{
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}


/* ===== V299 Navigation refinement ===== */
.persistent-footer .footer-back{
  display:none !important;
}

.header-back-btn[hidden]{
  display:none !important;
}

.header-back-btn{
  color:var(--green, #1D5E2A);
}

.footer-nav-item.is-active{
  background:transparent !important;
  box-shadow:none !important;
}

.footer-nav-item.is-active::before,
.footer-nav-item.is-active::after{
  display:none !important;
}


/* ===== V300 Footer icon/label optical weight ===== */
.persistent-footer{
  --footer-ink: color-mix(in srgb, var(--green, #1D5E2A) 92%, #102318 8%);
}

.footer-nav-item{
  color: var(--footer-ink) !important;
  opacity: .72;
}

.footer-nav-item img,
.footer-nav-item svg{
  opacity: .95;
  filter: contrast(1.06);
}

.footer-nav-item small{
  color: var(--footer-ink) !important;
  font-weight: 700;
}

.footer-nav-item.is-active{
  opacity: 1;
}

.footer-nav-item.is-active img,
.footer-nav-item.is-active svg{
  opacity: 1;
  filter: contrast(1.12);
}

.footer-nav-item.is-active small{
  color: var(--green, #1D5E2A) !important;
  font-weight: 750;
}


/* ===== V301 inline header back icon ===== */
.header-back-btn img{
  display:none !important;
}

.header-back-svg{
  width:22px;
  height:22px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}


/* ===== V304 Welcome screen cleanup ===== */
.welcome-divider,
.welcome-flourish,
.welcome-heart,
.welcome-rule,
.welcome-gate-divider,
.welcome-gate-flourish,
.welcome-gate-heart,
.welcome-gate-rule,
.intro-divider,
.intro-flourish,
.intro-heart,
.intro-rule{
  display:none !important;
}

.welcome-gate-brand::after,
.welcome-gate-brand::before,
.welcome-brand::after,
.welcome-brand::before,
.welcome-property::after,
.welcome-property::before{
  display:none !important;
  content:none !important;
}


/* ===== V306 curated hospitality SVG icons ===== */
.inline-svg-icon.custom-svg-icon{
  width:1.35em;
  height:1.35em;
  display:inline-block;
  object-fit:contain;
  vertical-align:middle;
}

.home-accordion-icon .custom-svg-icon,
.accordion-tile .custom-svg-icon,
.page-card-icon .custom-svg-icon{
  width:24px;
  height:24px;
}

.accordion-tile .custom-svg-icon{
  margin-bottom:2px;
}


.icon-library-section .accordion-body{
  padding-top:14px;
}

.icon-library-panel .small{
  margin-bottom:12px;
}

.icon-library-toolbar{
  margin:8px 0 14px;
}

.button-like{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:8px 12px;
  border:1px solid rgba(64, 89, 69, .18);
  border-radius:12px;
  background:#fff;
  color:#23412b;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(36, 48, 38, .06);
}

.icon-gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(112px, 1fr));
  gap:10px;
  align-items:stretch;
}

.icon-gallery-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:5px;
  min-height:118px;
  padding:12px 8px;
  border:1px solid rgba(64, 89, 69, .12);
  border-radius:14px;
  background:rgba(255,255,255,.72);
  box-shadow:0 8px 20px rgba(36, 48, 38, .05);
  text-align:center;
}

.icon-gallery-card.is-custom-icon{
  cursor:pointer;
}

.icon-gallery-card.is-custom-icon:hover{
  transform:translateY(-1px);
  border-color:rgba(64, 89, 69, .24);
}

.icon-gallery-preview{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#254a2d;
}

.icon-gallery-preview .svg-icon,
.icon-gallery-preview svg,
.icon-gallery-preview img{
  width:28px;
  height:28px;
  display:block;
}

.icon-gallery-label{
  max-width:100%;
  font-size:12px;
  font-weight:700;
  line-height:1.18;
  color:#243126;
  overflow:hidden;
  text-overflow:ellipsis;
}

.icon-gallery-card code{
  max-width:100%;
  font-size:10px;
  line-height:1.15;
  color:rgba(36,49,38,.62);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.icon-gallery-type{
  margin-top:auto;
  font-size:10px;
  color:rgba(36,49,38,.5);
}

.icon-gallery-editor{
  grid-column:1 / -1;
  padding:12px;
  border:1px solid rgba(64, 89, 69, .16);
  border-radius:14px;
  background:rgba(248,244,235,.92);
}


/* ===== V311 Studio icon gallery grid fix ===== */
.icon-library-panel .icon-gallery-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fill, minmax(96px, 1fr)) !important;
  gap:12px !important;
  align-items:stretch !important;
  width:100% !important;
  margin-top:14px !important;
}

.icon-library-panel .icon-gallery-card{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  min-width:0 !important;
  min-height:116px !important;
  padding:12px 8px !important;
  border:1px solid rgba(64, 89, 69, .13) !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.76) !important;
  text-align:center !important;
  box-shadow:0 8px 18px rgba(36, 48, 38, .05) !important;
}

.icon-library-panel .icon-gallery-preview{
  width:40px !important;
  height:40px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 auto 6px !important;
  color:#254a2d !important;
}

.icon-library-panel .icon-gallery-preview .studio-icon-preview,
.icon-library-panel .icon-gallery-preview .svg-icon,
.icon-library-panel .icon-gallery-preview svg,
.icon-library-panel .icon-gallery-preview img{
  width:30px !important;
  height:30px !important;
  display:block !important;
  object-fit:contain !important;
}

.icon-library-panel .icon-gallery-label{
  width:100% !important;
  font-size:12px !important;
  font-weight:700 !important;
  line-height:1.18 !important;
  color:#243126 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
}

.icon-library-panel .icon-gallery-card code{
  display:block !important;
  width:100% !important;
  margin-top:3px !important;
  font-size:10px !important;
  line-height:1.15 !important;
  color:rgba(36,49,38,.58) !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.icon-library-panel .icon-gallery-type{
  display:block !important;
  margin-top:auto !important;
  padding-top:4px !important;
  font-size:10px !important;
  color:rgba(36,49,38,.48) !important;
}

.icon-library-panel .icon-gallery-editor{
  grid-column:1 / -1 !important;
  padding:12px !important;
  border:1px solid rgba(64, 89, 69, .16) !important;
  border-radius:14px !important;
  background:rgba(248,244,235,.92) !important;
}

@media (min-width: 980px){
  .icon-library-panel .icon-gallery-grid{
    grid-template-columns:repeat(auto-fill, minmax(104px, 1fr)) !important;
  }
}


/* ===== V312 Icon library state cleanup ===== */
.icon-library-panel .icon-gallery-card.is-curated-icon{
  cursor:default !important;
}

.icon-library-panel .icon-gallery-card.is-curated-icon:hover{
  transform:none !important;
}

.icon-library-panel .icon-gallery-card.is-uploaded-icon{
  cursor:pointer !important;
  border-color:rgba(29,94,42,.22) !important;
}

.icon-library-panel .icon-gallery-card.is-uploaded-icon .icon-gallery-type{
  color:rgba(29,94,42,.75) !important;
  font-weight:700 !important;
}

.icon-library-panel .icon-gallery-card.is-curated-icon .icon-gallery-type{
  color:rgba(36,49,38,.46) !important;
}


/* ===== V314 custom icon runtime/export sizing ===== */
.svg-icon.file-svg-tile > svg,
.svg-icon.file-svg-tile.custom-inline-svg-icon > svg{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  display:block !important;
  overflow:visible;
}

.svg-icon.file-svg-tile.custom-inline-svg-icon svg,
.svg-icon.file-svg-tile.custom-inline-svg-icon svg *{
  vector-effect:non-scaling-stroke;
}

.home-accordion-icon .custom-inline-svg-icon,
.home-accordion-icon .custom-file-svg-icon{
  width:28px !important;
  height:28px !important;
  min-width:28px !important;
  min-height:28px !important;
  max-width:28px !important;
  max-height:28px !important;
}

.home-accordion-icon .custom-inline-svg-icon svg,
.home-accordion-icon .custom-file-svg-icon img{
  width:28px !important;
  height:28px !important;
  max-width:28px !important;
  max-height:28px !important;
}

.accordion-tile .custom-inline-svg-icon,
.accordion-tile .custom-file-svg-icon{
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  min-height:34px !important;
  max-width:34px !important;
  max-height:34px !important;
}

.accordion-tile .custom-inline-svg-icon svg,
.accordion-tile .custom-file-svg-icon img{
  width:34px !important;
  height:34px !important;
  max-width:34px !important;
  max-height:34px !important;
}

/* ===== V315 preset homepage section targeting ===== */
.preset-card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:12px;
  margin-top:10px;
}

.preset-target-card{
  padding:14px;
  border:1px solid rgba(64,89,69,.13);
  border-radius:16px;
  background:rgba(255,255,255,.72);
  box-shadow:0 8px 20px rgba(36,48,38,.05);
}

.preset-target-card h4{
  margin:0 0 6px;
}

.preset-target-controls{
  display:grid;
  gap:10px;
  margin-top:12px;
}

/* ===== V316 preset select object label fix ===== */
.preset-target-label{
  margin:-4px 0 0;
  color:rgba(36,49,38,.62);
  font-weight:700;
}


/* ===== V318 icon library import/preview refinement ===== */
.studio-icon-preview img.media-icon-thumb{
  width:32px;
  height:32px;
  object-fit:contain;
  display:block;
}

.icon-gallery-preview .studio-icon-preview img.media-icon-thumb{
  width:30px !important;
  height:30px !important;
}


/* ===== V327 custom homepage section colour ===== */
.home-accordion[style*="--home-section-accent"]{
  background:linear-gradient(135deg, var(--home-section-accent-soft), rgba(255,253,250,.86)) !important;
}

.home-accordion[style*="--home-section-accent"] .home-accordion-icon{
  background:var(--home-section-accent) !important;
}

.home-accordion[style*="--home-section-accent"] .home-accordion-copy strong{
  color:var(--home-section-accent-title) !important;
}

.colour-field-row{
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:6px;
}

.colour-field-row input[type="color"]{
  width:46px;
  height:36px;
  padding:2px;
  border:1px solid rgba(64,89,69,.18);
  border-radius:10px;
  background:#fff;
}


/* ===== V328 preset colour reference chips ===== */
.preset-colour-reference{
  grid-column:1 / -1;
  padding:10px 12px;
  border:1px solid rgba(64,89,69,.12);
  border-radius:14px;
  background:rgba(255,255,255,.58);
}

.preset-colour-reference > .small{
  margin:0 0 8px;
  font-weight:700;
  color:rgba(36,49,38,.68);
}

.preset-colour-reference-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  gap:8px;
}

.preset-colour-chip{
  display:grid;
  grid-template-columns:22px 1fr auto;
  align-items:center;
  gap:8px;
  min-height:36px;
  padding:7px 9px;
  border:1px solid rgba(64,89,69,.12);
  border-radius:12px;
  background:#fff;
  color:#243126;
  text-align:left;
  cursor:pointer;
}

.preset-colour-chip span{
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
}

.preset-colour-chip strong{
  font-size:12px;
  line-height:1.15;
}

.preset-colour-chip code{
  font-size:11px;
  color:rgba(36,49,38,.62);
}


/* ===== V329 collapsible preset colour reference ===== */
.preset-colour-reference.collapsed-reference{
  grid-column:1 / -1;
  padding:0;
  border:1px solid rgba(64,89,69,.12);
  border-radius:14px;
  background:rgba(255,255,255,.58);
  overflow:hidden;
}

.preset-colour-reference.collapsed-reference summary{
  cursor:pointer;
  padding:10px 12px;
  font-weight:800;
  color:#243126;
}

.preset-colour-reference.collapsed-reference .small{
  margin:0;
  padding:0 12px 8px;
  color:rgba(36,49,38,.62);
}

.preset-colour-reference-rows{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  padding:0 10px 10px;
}

.preset-colour-row{
  display:grid;
  grid-template-columns:24px 1fr auto auto;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:38px;
  padding:8px 10px;
  border:0;
  border-top:1px solid rgba(64,89,69,.09);
  background:transparent;
  color:#243126;
  text-align:left;
  cursor:pointer;
}

.preset-colour-row:first-child{
  border-top:0;
}

.preset-colour-row:hover,
.preset-colour-row.is-current-style{
  background:rgba(64,89,69,.06);
}

.preset-colour-row span{
  width:24px;
  height:24px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
}

.preset-colour-row strong{
  font-size:13px;
}

.preset-colour-row code{
  font-size:12px;
  color:rgba(36,49,38,.65);
}

.preset-colour-row em{
  font-size:11px;
  font-style:normal;
  color:rgba(31,77,47,.82);
  font-weight:800;
}


/* =========================================================
   V371 — compact cinematic hero + fixed mobile page header
   ========================================================= */
.app-bottom-nav{display:none!important;}
.app-floating-controls{display:none!important;}
@media (max-width:979px){
  :root{--mobile-sticky-head-h:74px;}
  .stage{padding-top:0!important;padding-left:0!important;padding-right:0!important;}
  .page{width:100%!important;border:0!important;border-radius:0!important;animation:none!important;}
  .page.page-home{padding:0!important;}
  .page-home .content{max-width:none!important;padding:0!important;}
  .page-home .home-experience-shell{gap:0!important;}

  /* Home cover: cinematic, but compact enough to keep the full accordion set visible. */
  .featured-recommendation-hero{padding:0!important;margin:0 0 18px!important;}
  .featured-recommendation-card{border-radius:0!important;box-shadow:none!important;}
  .featured-recommendation-card,
  .featured-recommendation-content{min-height:clamp(250px,32vh,310px)!important;}
  .featured-recommendation-content{
    padding:calc(38px + env(safe-area-inset-top)) 28px 26px!important;
    display:flex!important;
    align-items:flex-start!important;
    justify-content:flex-end!important;
    max-width:100%!important;
  }
  .featured-recommendation-card::after,
  .featured-recommendation-overlay{
    background:linear-gradient(180deg,rgba(7,20,15,.04) 0%,rgba(7,20,15,.18) 38%,rgba(7,20,15,.74) 100%)!important;
  }
  .featured-recommendation-kicker{
    display:block!important;
    align-self:flex-start!important;
    margin:0 0 8px!important;
    padding:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:rgba(255,255,255,.96)!important;
    font-size:clamp(.82rem,3vw,1rem)!important;
    font-weight:820!important;
    letter-spacing:-.01em!important;
    line-height:1.1!important;
    text-transform:none!important;
    backdrop-filter:none!important;
  }
  .featured-recommendation-content strong{
    display:block!important;
    margin:0!important;
    max-width:92%!important;
    font-size:clamp(1.9rem,7.6vw,2.65rem)!important;
    line-height:1!important;
    font-weight:780!important;
    letter-spacing:-.05em!important;
    text-shadow:0 3px 24px rgba(0,0,0,.42),0 1px 2px rgba(0,0,0,.22)!important;
  }
  .featured-recommendation-description{
    display:block!important;
    margin-top:10px!important;
    max-width:92%!important;
    font-size:clamp(.88rem,3.3vw,1.04rem)!important;
    line-height:1.34!important;
    font-weight:560!important;
    color:rgba(255,255,255,.96)!important;
    text-shadow:0 2px 14px rgba(0,0,0,.34)!important;
  }
  .featured-recommendation-cta{
    display:inline-flex!important;
    align-items:center!important;
    gap:7px!important;
    align-self:flex-start!important;
    margin-top:12px!important;
    padding:9px 15px!important;
    border-radius:999px!important;
    background:#eef2e9!important;
    color:#24422d!important;
    border:1px solid rgba(255,255,255,.58)!important;
    font-size:.88rem!important;
    font-weight:850!important;
    line-height:1!important;
    box-shadow:0 8px 20px rgba(0,0,0,.10)!important;
  }

  .home-hero,
  :root[data-guide-template] .home-hero,
  :root[data-hero-style] .home-hero,
  :root[data-guide-density] .home-hero{
    min-height:clamp(250px,32vh,310px)!important;
    height:clamp(250px,32vh,310px)!important;
    margin:0 0 18px!important;
    border-radius:0!important;
    padding:calc(38px + env(safe-area-inset-top)) 28px 26px!important;
    display:flex!important;
    align-items:flex-end!important;
    background-position:center center!important;
  }
  .home-hero-overlay{background:linear-gradient(180deg,rgba(7,20,15,.04) 0%,rgba(7,20,15,.18) 38%,rgba(7,20,15,.74) 100%)!important;}
  .home-hero-content{max-width:640px!important;transform:none!important;}
  .home-hero-kicker{font-size:clamp(.82rem,3vw,1rem)!important;margin:0 0 8px!important;}
  .home-hero h1{font-size:clamp(1.9rem,7.6vw,2.65rem)!important;line-height:1!important;font-weight:850!important;letter-spacing:-.05em!important;}
  .home-hero-subtitle{display:block!important;font-size:clamp(.88rem,3.3vw,1.04rem)!important;line-height:1.34!important;margin-top:10px!important;}

  .home-accordion-stack{width:calc(100% - 32px)!important;max-width:760px!important;margin-left:auto!important;margin-right:auto!important;padding-bottom:calc(96px + env(safe-area-inset-bottom))!important;}

  /* Subpages: fixed compact title/back row so guests can always return without scrolling. */
  .page:not(.page-home){padding:0 var(--screen-pad) calc(96px + env(safe-area-inset-bottom))!important;}
  .page:not(.page-home) .content{padding-top:calc(var(--mobile-sticky-head-h) + env(safe-area-inset-top) + 18px)!important;}
  .page:not(.page-home) .page-header{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    z-index:2100!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:12px!important;
    min-height:var(--mobile-sticky-head-h)!important;
    max-width:var(--shell-w)!important;
    margin:0 auto!important;
    padding:calc(10px + env(safe-area-inset-top)) var(--screen-pad) 10px!important;
    box-sizing:border-box!important;
    background:rgba(242,248,238,.88)!important;
    border-bottom:1px solid rgba(31,77,47,.08)!important;
    box-shadow:0 10px 28px rgba(31,77,47,.08)!important;
    backdrop-filter:blur(18px)!important;
    -webkit-backdrop-filter:blur(18px)!important;
  }
  .page:not(.page-home) .page-header h1{min-width:0!important;flex:1!important;margin:0!important;font-size:clamp(1.45rem,5.2vw,2rem)!important;line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .page-back-btn{display:inline-flex!important;flex:0 0 auto!important;width:48px!important;height:48px!important;border-radius:999px!important;background:rgba(255,255,255,.58)!important;box-shadow:none!important;}

  .persistent-footer{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
  .footer-menu-item .svg-icon-menu svg{width:25px!important;height:25px!important;}
  .footer-nav-item.is-menu-open{background:rgba(31,77,47,.08)!important;opacity:1!important;}
}


/* =========================================================
   V373 — compact editorial hero + quiet footer active states
   ========================================================= */
@media (max-width:979px){
  /* Keep the immersive home cover, but shorten it so every main accordion
     can be seen on a real phone above the persistent footer. */
  .featured-recommendation-card,
  .featured-recommendation-content,
  .home-hero,
  :root[data-guide-template] .home-hero,
  :root[data-hero-style] .home-hero,
  :root[data-guide-density] .home-hero{
    min-height:clamp(182px,22vh,210px)!important;
    height:clamp(182px,22vh,210px)!important;
  }
  .featured-recommendation-hero,
  .home-hero{
    margin-bottom:12px!important;
  }
  .featured-recommendation-content,
  .home-hero{
    padding:calc(18px + env(safe-area-inset-top)) 24px 15px!important;
  }

  /* Editorial text stack: eyebrow, title, description and CTA all share
     one clean left edge. */
  .featured-recommendation-kicker,
  .home-hero-kicker{
    margin:0 0 4px!important;
    padding:0!important;
    background:transparent!important;
    border-radius:0!important;
    color:rgba(255,255,255,.96)!important;
    font-size:clamp(.72rem,2.55vw,.86rem)!important;
    font-weight:720!important;
    letter-spacing:-.01em!important;
    line-height:1.05!important;
    text-shadow:0 2px 12px rgba(0,0,0,.34)!important;
    backdrop-filter:none!important;
  }
  .featured-recommendation-content strong,
  .home-hero h1{
    max-width:94%!important;
    font-size:clamp(1.48rem,6.25vw,2.02rem)!important;
    line-height:.98!important;
    letter-spacing:-.05em!important;
  }
  .featured-recommendation-description,
  .home-hero-subtitle{
    margin-top:6px!important;
    max-width:94%!important;
    font-size:clamp(.76rem,2.85vw,.9rem)!important;
    line-height:1.24!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }

  /* The interface is now confident enough for a text-only hero CTA. */
  .featured-recommendation-cta{
    margin-top:8px!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    color:rgba(255,255,255,.98)!important;
    font-size:.8rem!important;
    font-weight:780!important;
    line-height:1!important;
    text-shadow:0 2px 12px rgba(0,0,0,.35)!important;
  }

  .home-accordion-stack{
    gap:9px!important;
    width:calc(100% - 28px)!important;
  }
  .home-accordion-head,
  .home-accordion > summary{
    min-height:74px!important;
    padding:11px 14px!important;
  }
  .home-accordion-icon{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
  }
  .home-accordion-copy strong{font-size:.9rem!important;}
  .home-accordion-copy span{font-size:.72rem!important;margin-top:2px!important;}

  /* Footer: one quiet active language for Menu, Location, WiFi, Contact and Book. */
  .footer-nav-item{
    position:relative!important;
    opacity:.78!important;
    transition:opacity .22s ease, transform .22s ease, background-color .22s ease, color .22s ease!important;
  }
  .footer-nav-item.is-active,
  .footer-nav-item.is-menu-open{
    background:rgba(96,111,69,.075)!important;
    color:rgba(35,74,49,1)!important;
    opacity:1!important;
    transform:translateY(-1px)!important;
  }
  .footer-nav-item.is-active small,
  .footer-nav-item.is-menu-open small{
    font-weight:760!important;
  }
  .footer-nav-item.is-active .svg-icon,
  .footer-nav-item.is-menu-open .svg-icon{
    transform:translateY(-1px) scale(1.03)!important;
  }
}

/* =========================================================
   V374 — sticky title descender fix + desktop editorial feature hero
   ========================================================= */

/* Desktop/tablet feature hero should match the newer editorial mobile
   language: no eyebrow pill, no heavy CTA pill, consistent left edge. */
.featured-recommendation-kicker{
  margin:0 0 8px!important;
  padding:0!important;
  background:transparent!important;
  border-radius:0!important;
  color:rgba(255,255,255,.96)!important;
  font-size:clamp(.72rem,1.05vw,.9rem)!important;
  font-weight:760!important;
  letter-spacing:-.01em!important;
  line-height:1.12!important;
  text-transform:none!important;
  text-shadow:0 2px 12px rgba(0,0,0,.34)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.featured-recommendation-cta{
  margin-top:10px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:rgba(255,255,255,.98)!important;
  font-weight:800!important;
  text-shadow:0 2px 12px rgba(0,0,0,.35)!important;
}
.featured-recommendation-overlay{
  background:
    linear-gradient(180deg, rgba(7,20,15,.04) 0%, rgba(7,20,15,.20) 42%, rgba(7,20,15,.76) 100%),
    linear-gradient(90deg, rgba(7,20,15,.62) 0%, rgba(7,20,15,.34) 56%, rgba(7,20,15,.10) 100%)!important;
}
.featured-recommendation-content{
  padding:clamp(22px,3.2vw,34px)!important;
}
.featured-recommendation-description{
  margin-top:8px!important;
  line-height:1.32!important;
}

@media (min-width:980px){
  .featured-recommendation-card,
  .featured-recommendation-content{
    min-height:clamp(230px,25vw,315px)!important;
  }
  .featured-recommendation-content strong{
    font-size:clamp(2rem,4.1vw,3.15rem)!important;
    line-height:.98!important;
    letter-spacing:-.05em!important;
  }
}

@media (max-width:979px){
  /* Prevent descenders, especially the y in Days out, being clipped by the
     one-line ellipsis rule inside the fixed mobile page title bar. */
  .page:not(.page-home) .page-header{
    min-height:calc(var(--mobile-sticky-head-h) + 6px)!important;
    padding:calc(10px + env(safe-area-inset-top)) var(--screen-pad) 12px!important;
    overflow:visible!important;
  }
  .page:not(.page-home) .page-header h1{
    line-height:1.2!important;
    padding-bottom:2px!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  /* Keep enough top clearance below the slightly taller sticky header. */
  .page:not(.page-home) .content{
    padding-top:calc(var(--mobile-sticky-head-h) + env(safe-area-inset-top) + 22px)!important;
  }
}

/* Stage 20.4 — continuous mobile home canvas + slightly richer hero */
@media (max-width: 979px) {
  :root {
    --home-canvas: #f1f7ee;
  }

  body.is-home-route,
  body:has(.page-home),
  body.is-home-route #app,
  body:has(.page-home) #app,
  body.is-home-route .stage,
  body:has(.page-home) .stage,
  body.is-home-route .page-home,
  body:has(.page-home) .page-home,
  .page-home .content,
  .page-home .home-experience-shell {
    background: var(--home-canvas) !important;
  }

  /* Remove the light section-panel break below the accordion stack so the
     remaining viewport blends as one continuous soft sage canvas to the footer. */
  .page-home .content,
  .page-home .home-experience-shell,
  .page-home .home-accordion-stack {
    background-image: none !important;
    box-shadow: none !important;
  }

  /* Add a small amount of height back for a little more wow without returning
     to the earlier oversized cover. Applies to both home hero render paths. */
  .featured-recommendation-card,
  .featured-recommendation-content,
  .home-hero,
  :root[data-guide-template] .home-hero,
  :root[data-hero-style] .home-hero,
  :root[data-guide-density] .home-hero,
  .page-home .home-hero {
    min-height:clamp(202px,25vh,230px)!important;
    height:clamp(202px,25vh,230px)!important;
  }
}

/* =========================================================
   V381 — homepage-only canvas seam cleanup
   Keep the V380 footer styling, but remove the separate light
   accordion-stack band that appeared under Emergency on home.
   Inner pages intentionally remain unchanged.
   ========================================================= */
@media (max-width: 979px) {
  :root {
    --home-canvas: #f1f7ee;
  }

  body.is-home-route #app,
  body:has(.page-home) #app,
  body.is-home-route .stage,
  body:has(.page-home) .stage,
  body.is-home-route .page.page-home,
  body:has(.page-home) .page.page-home,
  .page.page-home,
  .page-home .content,
  .page-home .home-experience-shell {
    background: var(--home-canvas) !important;
    background-image: none !important;
  }

  .page.page-home {
    min-height: calc(100dvh - var(--bottom-nav-h, 76px) - env(safe-area-inset-bottom)) !important;
    padding-bottom: calc(var(--bottom-nav-h, 76px) + env(safe-area-inset-bottom)) !important;
  }

  .page-home .content,
  .page-home .home-experience-shell {
    min-height: inherit !important;
    box-shadow: none !important;
  }

  .page-home .home-accordion-stack {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    padding-bottom: 12px !important;
    margin-bottom: 0 !important;
  }

  .page-home .home-accordion-stack > :last-child {
    margin-bottom: 0 !important;
  }

  /* Preserve the previous footer styling after the failed seamless-footer test. */
  .persistent-footer {
    background: rgba(255,255,252,.92) !important;
    border: 1px solid rgba(31,73,41,.10) !important;
    border-bottom: 0 !important;
    box-shadow: 0 -10px 28px rgba(23,73,31,.10), 0 -1px 8px rgba(23,73,31,.05) !important;
    border-radius: 24px 24px 0 0 !important;
  }
}

/* =========================================================
   V384 — homepage structural canvas unification
   Keep V380 footer styling and inner-page backgrounds. The home
   route now uses the same canvas on every structural wrapper,
   including html and #app, so the area below Emergency no longer
   reveals a different background layer.
   ========================================================= */
@media (max-width: 979px) {
  :root {
    --home-canvas-color: #f1f7ee;
    --home-canvas: linear-gradient(90deg, #e2ebda 0%, #f1f7ee 12%, #f1f7ee 88%, #e2ebda 100%);
  }

  html:has(body.is-home-route),
  html:has(.page-home),
  body.is-home-route,
  body:has(.page-home),
  body.is-home-route #app,
  body:has(.page-home) #app,
  body.is-home-route .stage,
  body:has(.page-home) .stage,
  body.is-home-route .page.page-home,
  body:has(.page-home) .page.page-home,
  body.is-home-route .page-home .content,
  body:has(.page-home) .page-home .content,
  body.is-home-route .page-home .home-experience-shell {
    background-color: var(--home-canvas-color) !important;
    background-image: var(--home-canvas) !important;
    background-attachment: scroll !important;
    box-shadow: none !important;
  }

  body.is-home-route,
  body:has(.page-home) {
    padding-bottom: 0 !important;
  }

  body.is-home-route .stage,
  body:has(.page-home) .stage,
  body.is-home-route #app,
  body:has(.page-home) #app,
  body.is-home-route .page.page-home,
  body:has(.page-home) .page.page-home,
  body.is-home-route .page-home .content,
  body:has(.page-home) .page-home .content,
  body.is-home-route .page-home .home-experience-shell {
    min-height: 100dvh !important;
    height: auto !important;
    margin: 0 !important;
  }

  body.is-home-route .page.page-home,
  body:has(.page-home) .page.page-home,
  body.is-home-route .page-home .content,
  body:has(.page-home) .page-home .content,
  body.is-home-route .page-home .home-experience-shell {
    padding-bottom: calc(var(--bottom-nav-h, 84px) + env(safe-area-inset-bottom)) !important;
  }

  body.is-home-route .page-home .home-accordion-stack,
  body:has(.page-home) .page-home .home-accordion-stack {
    padding-bottom: 18px !important;
    margin-bottom: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  body.is-home-route .page-home .home-accordion-stack::before,
  body.is-home-route .page-home .home-accordion-stack::after,
  body:has(.page-home) .page-home .home-accordion-stack::before,
  body:has(.page-home) .page-home .home-accordion-stack::after,
  body.is-home-route .page-home .content::before,
  body.is-home-route .page-home .content::after,
  body:has(.page-home) .page-home .content::before,
  body:has(.page-home) .page-home .content::after,
  body.is-home-route .page-home .home-experience-shell::before,
  body.is-home-route .page-home .home-experience-shell::after,
  body:has(.page-home) .page-home .home-experience-shell::before,
  body:has(.page-home) .page-home .home-experience-shell::after {
    display: none !important;
    content: none !important;
  }
}


/* =========================================================
   V385 — final footer shape refinement
   Keep V384 styling, spacing, active states and background, but remove
   the rounded top corners so the bottom navigation reads as a fixed
   app dock rather than a floating tray.
   ========================================================= */
.persistent-footer{
  border-radius:0 !important;
}
@media (max-width:979px){
  .persistent-footer{
    border-radius:0 !important;
  }
}


/* v416.6 mobile page-shell fix */
@media (max-width: 979px) {
  body.is-home-route,
  body.is-home-route #app,
  body.is-home-route .stage,
  body.is-home-route .page.page-home {
    background: var(--home-canvas) !important;
    background-image: none !important;
  }

  body.is-home-route .page.page-home {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
}

/* =========================================================
   V416.7 — mobile home canvas root fix
   The old V384 block redefined --home-canvas as the Country Lodge
   gradient at mobile sizes. This final mobile-only layer restores
   preset-specific solid canvases and forces every structural wrapper
   to the same active canvas, while leaving actual cards/components intact.
   ========================================================= */
@media (max-width: 979px) {
  :root[data-guide-template="country-lodge"] { --home-canvas: #f1f7ee; }
  :root[data-guide-template="coastal-retreat"] { --home-canvas: #f7fbfd; }
  :root[data-guide-template="modern-apartment"] { --home-canvas: #f6f4f1; }
  :root[data-guide-template="luxury-villa"] { --home-canvas: #fff9f0; }
  :root[data-guide-template="boutique-stay"] { --home-canvas: #fbf6f1; }
  :root[data-guide-template="family-retreat"] { --home-canvas: #fff8ee; }
  :root[data-guide-template="wilderness-retreat"] { --home-canvas: #f5f0e7; }

  html:has(body.is-home-route),
  html:has(.page-home),
  body.is-home-route,
  body:has(.page-home),
  body.is-home-route #app,
  body:has(.page-home) #app,
  body.is-home-route .stage,
  body:has(.page-home) .stage,
  body.is-home-route .page,
  body:has(.page-home) .page,
  body.is-home-route .page.page-home,
  body:has(.page-home) .page.page-home,
  body.is-home-route .page-home,
  body:has(.page-home) .page-home,
  body.is-home-route .page-home .content,
  body:has(.page-home) .page-home .content,
  body.is-home-route .page-home .home-experience-shell,
  body:has(.page-home) .page-home .home-experience-shell,
  body.is-home-route .page-home .home-accordion-stack,
  body:has(.page-home) .page-home .home-accordion-stack {
    background-color: var(--home-canvas) !important;
    background-image: none !important;
    background: var(--home-canvas) !important;
  }

  body.is-home-route #app,
  body:has(.page-home) #app,
  body.is-home-route .stage,
  body:has(.page-home) .stage,
  body.is-home-route .page,
  body:has(.page-home) .page,
  body.is-home-route .page.page-home,
  body:has(.page-home) .page.page-home {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  body.is-home-route .page.page-home,
  body:has(.page-home) .page.page-home {
    padding: 0 0 calc(var(--bottom-nav-h, 84px) + env(safe-area-inset-bottom)) !important;
    overflow: visible !important;
  }
}

/* =========================================================
   V416.8 — definitive home page shell neutraliser
   The home screen is a full-canvas app surface, not the legacy
   desktop .page card. Apply outside media queries as Studio mobile
   preview can render inside a wider preview shell.
   ========================================================= */
body.is-home-route,
body:has(.page-home),
body.is-home-route #app,
body:has(.page-home) #app,
body.is-home-route .stage,
body:has(.page-home) .stage,
body.is-home-route #page.page,
body:has(.page-home) #page.page,
body.is-home-route .page,
body:has(.page-home) .page,
body.is-home-route .page.page-home,
body:has(.page-home) .page.page-home {
  background: var(--home-canvas) !important;
  background-color: var(--home-canvas) !important;
  background-image: none !important;
}

body.is-home-route #page.page,
body:has(.page-home) #page.page,
body.is-home-route .page,
body:has(.page-home) .page,
body.is-home-route .page.page-home,
body:has(.page-home) .page.page-home {
  border: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Home shell background is neutralised globally, but desktop/tablet layout
   still needs the original left padding so the fixed side menu does not
   overlap the hero and accordions. Only phones/tablet-portrait mobile layout
   get the full-bleed zero-padding treatment below. */
body.is-home-route #page.page.page-home,
body:has(.page-home) #page.page.page-home,
body.is-home-route .page.page-home,
body:has(.page-home) .page.page-home {
  overflow: visible !important;
}

@media (max-width: 979px) {
  body.is-home-route #page.page.page-home,
  body:has(.page-home) #page.page.page-home,
  body.is-home-route .page.page-home,
  body:has(.page-home) .page.page-home {
    padding-bottom: calc(var(--bottom-nav-h, 84px) + env(safe-area-inset-bottom)) !important;
  }
}

/* =========================================================
   V416.9 — final home route shell + preset canvas lock
   The visible home UI must not inherit the legacy app/page paper shell.
   Define the active preset canvas globally, then force every structural
   home wrapper to that canvas. Cards keep their own component surfaces.
   ========================================================= */
:root[data-guide-template="country-lodge"] { --home-canvas: #f1f7ee; }
:root[data-guide-template="coastal-retreat"] { --home-canvas: #f7fbfd; }
:root[data-guide-template="modern-apartment"] { --home-canvas: #f6f4f1; }
:root[data-guide-template="luxury-villa"] { --home-canvas: #fff9f0; }
:root[data-guide-template="boutique-stay"] { --home-canvas: #fbf6f1; }
:root[data-guide-template="family-retreat"] { --home-canvas: #fff8ee; }
:root[data-guide-template="wilderness-retreat"] { --home-canvas: #f5f0e7; }

html:has(body.is-home-route),
html:has(.page-home),
body.is-home-route,
body:has(.page-home),
body.is-home-route #app,
body:has(.page-home) #app,
body.is-home-route .stage,
body:has(.page-home) .stage,
body.is-home-route #page.page,
body:has(.page-home) #page.page,
body.is-home-route .page,
body:has(.page-home) .page,
body.is-home-route .page.page-home,
body:has(.page-home) .page.page-home,
body.is-home-route .page-home,
body:has(.page-home) .page-home,
body.is-home-route .page-home .content,
body:has(.page-home) .page-home .content,
body.is-home-route .page-home .home-experience-shell,
body:has(.page-home) .page-home .home-experience-shell,
body.is-home-route .page-home .home-accordion-stack,
body:has(.page-home) .page-home .home-accordion-stack {
  background: var(--home-canvas) !important;
  background-color: var(--home-canvas) !important;
  background-image: none !important;
}

body.is-home-route #page.page,
body:has(.page-home) #page.page,
body.is-home-route .page,
body:has(.page-home) .page,
body.is-home-route .page.page-home,
body:has(.page-home) .page.page-home {
  border: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  outline: 0 !important;
}

/* Home shell background is neutralised globally, but desktop/tablet layout
   still needs the original left padding so the fixed side menu does not
   overlap the hero and accordions. Only phones/tablet-portrait mobile layout
   get the full-bleed zero-padding treatment below. */
body.is-home-route #page.page.page-home,
body:has(.page-home) #page.page.page-home,
body.is-home-route .page.page-home,
body:has(.page-home) .page.page-home {
  overflow: visible !important;
}

body.is-home-route .page-home .content::before,
body.is-home-route .page-home .content::after,
body:has(.page-home) .page-home .content::before,
body:has(.page-home) .page-home .content::after,
body.is-home-route .page-home .home-experience-shell::before,
body.is-home-route .page-home .home-experience-shell::after,
body:has(.page-home) .page-home .home-experience-shell::before,
body:has(.page-home) .page-home .home-experience-shell::after,
body.is-home-route .page-home .home-accordion-stack::before,
body.is-home-route .page-home .home-accordion-stack::after,
body:has(.page-home) .page-home .home-accordion-stack::before,
body:has(.page-home) .page-home .home-accordion-stack::after {
  display: none !important;
  content: none !important;
  background: none !important;
  box-shadow: none !important;
}

@media (max-width: 979px) {
  body.is-home-route #page.page.page-home,
  body:has(.page-home) #page.page.page-home,
  body.is-home-route .page.page-home,
  body:has(.page-home) .page.page-home {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: calc(var(--bottom-nav-h, 84px) + env(safe-area-inset-bottom)) !important;
    min-height: 100dvh !important;
  }
}


/* =========================================================
   V506 — Hero height preset selector final target fix
   The active home hero is the featured recommendation component, not .home-hero.
   Keep cover/overlay styling intact; only make the selected --hero-height
   control the visible card/image/content height.
   ========================================================= */
.featured-recommendation-hero {
  min-height: 0 !important;
}
.featured-recommendation-card,
.featured-recommendation-image,
.featured-recommendation-overlay,
.featured-recommendation-content {
  min-height: var(--hero-height, clamp(202px, 25vh, 230px)) !important;
  height: var(--hero-height, clamp(202px, 25vh, 230px)) !important;
}
.featured-recommendation-image {
  object-fit: cover !important;
}
