/* ==========================================================================
   River House Group — Galería Externa
   Sistema de diseño compartido (landing + páginas de propiedad)

   Paleta y tipografía tomadas de theriverhousegroup.com (Marcellus + Poppins,
   crema/terracota). Reemplazar tokens en :root cuando llegue el manual de
   marca oficial — ver sección 8 del brief.
   ========================================================================== */

:root {
  --cream: #F4F0EC;
  --cream-dark: #E8E0D6;
  --ink: #1E1F23;
  --ink-soft: #4F4F4F;
  --rust: #A4590E;
  --rust-dark: #5B3C0E;
  --line: #E2E2E2;
  --white: #FFFFFF;

  --font-display: 'Marcellus', Georgia, 'Times New Roman', serif;
  --font-body: 'Poppins', 'Helvetica Neue', Arial, sans-serif;

  --gap: clamp(10px, 1.6vw, 22px);
  --container: 1400px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 500;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* ---- Site header (property pages) ---- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 40px) clamp(20px, 5vw, 56px);
  color: var(--cream);
}

.site-header a.back {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  padding: 13px 18px;
  background: rgba(244, 240, 236, 0.84);
  backdrop-filter: blur(4px);
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(20, 20, 22, 0.14);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.site-header a.back:hover { background: rgba(244,240,236,0.94); transform: translateY(-1px); }

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Hero (property pages) ---- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,31,35,0.15) 0%, rgba(30,31,35,0.05) 40%, rgba(30,31,35,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(20px, 5vw, 56px) clamp(40px, 6vw, 72px);
  color: var(--cream);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1.02;
  margin: 0.3em 0 0.2em;
  letter-spacing: 0.01em;
}

.hero-location {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  font-weight: 300;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(18px, 3vw, 28px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
  animation: floatCue 2.6s ease-in-out infinite;
}
.scroll-cue .line { width: 1px; height: 26px; background: currentColor; opacity: 0.7; }

@keyframes floatCue {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---- Highlights strip (short brochure copy + bullet list) ---- */

.highlights {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(24px, 4vw, 40px);
  display: grid;
  gap: clamp(20px, 4vw, 40px);
}
@media (min-width: 800px) {
  .highlights { grid-template-columns: 1.3fr 1fr; align-items: start; }
}
.highlights-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
  max-width: 62ch;
}
.highlights-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.highlights-list li {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding-left: 1.3em;
  position: relative;
}
.highlights-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--rust);
  border-radius: 50%;
}

/* ---- Category filter ---- */

.category-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(244, 240, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.category-list {
  width: 100%;
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 0;
  scrollbar-width: none;
}
.category-list::-webkit-scrollbar { display: none; }

.category-list button {
  flex: 1 0 auto;
  min-width: max-content;
  min-height: clamp(82px, 7vw, 110px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 4px solid transparent;
  font-family: var(--font-body);
  font-size: clamp(0.76rem, 1vw, 0.95rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 18px clamp(16px, 2.2vw, 34px);
  white-space: nowrap;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
  scroll-snap-align: start;
}
.category-list button:last-child { border-right: 0; }
.category-list button small { font-size: 0.62rem; letter-spacing: 0.04em; opacity: 0.58; }
.category-list button:hover { color: var(--ink); background: rgba(255,255,255,0.48); }
.category-list button.active { color: var(--rust); border-bottom-color: var(--rust); background: var(--white); }

.gallery-download {
  width: 100%;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.8vw, 38px) clamp(18px, 4vw, 64px);
  background: var(--ink);
  color: var(--cream);
}
.gallery-download-copy { display: flex; flex-direction: column; gap: 6px; }
.gallery-download-copy small {
  color: rgba(244, 240, 236, 0.66);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.gallery-download-copy strong {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2.4rem);
  font-weight: 400;
}
.gallery-download-link {
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px clamp(22px, 3vw, 38px);
  border: 1px solid rgba(244, 240, 236, 0.52);
  color: var(--cream);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.gallery-download-link:hover { background: var(--cream); color: var(--ink); }
.gallery-download-link[hidden] { display: none; }
.gallery-download-link.is-disabled {
  cursor: default;
  opacity: 0.48;
  pointer-events: none;
}
.gallery-download-link.is-disabled:hover { background: transparent; color: var(--cream); }

/* ---- Masonry gallery ---- */
.experience-nav {
  padding: 28px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}
.experience-nav p { margin: 0 0 16px; color: var(--ink-soft); }
.experience-links { display: flex; flex-wrap: wrap; gap: 10px; }
.experience-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
  color: var(--ink);
}
.experience-links a:hover { border-color: var(--rust); color: var(--rust); }
.experience-links a:focus-visible, .gallery-photo:focus-visible,
.gallery-section-heading button:focus-visible, .category-list button:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: -3px;
}
.experience-nav[hidden], .gallery-section[hidden] { display: none; }
.subcategory-nav { background: rgba(255,255,255,0.5); }
.gallery-section { scroll-margin-top: 125px; border-bottom: 1px solid var(--line); }
.gallery-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 36px clamp(18px, 4vw, 64px) 0;
}
.gallery-section-heading h2 { margin: 0; font: 400 clamp(1.8rem, 3vw, 2.8rem)/1.15 var(--font-display); }
.gallery-section-heading p { margin: 8px 0 0; color: var(--ink-soft); font-size: 0.8rem; }
.gallery-section-heading .gallery-download-link { color: var(--ink); border-color: var(--line); }
.gallery-section-heading .gallery-download-link:hover { background: var(--ink); color: var(--cream); }
.gallery-section .gallery { padding-bottom: 30px; }
.gallery-subsection { scroll-margin-top: 125px; }
.gallery-subsection + .gallery-subsection { border-top: 1px solid var(--line); }
.gallery-subsection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin: 28px clamp(18px, 4vw, 64px) 0;
  padding: 24px 0 0;
}
.gallery-subsection-heading h3 { margin: 0; font: 400 clamp(1.4rem, 2.3vw, 2.1rem)/1.15 var(--font-display); }
.gallery-subsection-heading p { margin: 7px 0 0; color: var(--ink-soft); font-size: 0.8rem; }
.gallery-subsection-heading .gallery-download-link { color: var(--ink); border-color: var(--line); }
.gallery-subsection-heading .gallery-download-link:hover { background: var(--ink); color: var(--cream); }
.gallery-photo { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
@media (max-width: 540px) {
  .gallery-section-heading .gallery-download-link { width: 100%; }
  .gallery-subsection-heading .gallery-download-link { width: 100%; }
  .experience-links a { flex: 1 1 140px; justify-content: space-between; }
}

.gallery {
  width: 100%;
  padding: clamp(22px, 2.5vw, 38px) clamp(12px, 2vw, 30px) clamp(60px, 8vw, 100px);
  column-count: 1;
  column-gap: var(--gap);
}

@media (min-width: 640px) { .gallery { column-count: 2; } }
@media (min-width: 1024px) { .gallery { column-count: 3; } }
@media (min-width: 1600px) { .gallery { column-count: 4; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) {
  .gallery-item:hover img { transform: scale(1.025); }
}

.gallery-item.hidden { display: none; }

/* ---- Lightbox ---- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 20, 22, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(92vw, 1500px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s var(--ease);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-close {
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
  padding: 12px;
}
.lightbox-prev { left: clamp(6px, 2vw, 24px); }
.lightbox-next { right: clamp(6px, 2vw, 24px); }

.lightbox-counter {
  position: absolute;
  bottom: clamp(16px, 3vw, 28px);
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  opacity: 0.75;
}

/* ---- CTA ---- */

.cta {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 8vw, 88px) clamp(20px, 5vw, 56px);
  text-align: center;
}
.cta-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 1.4em;
}
.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 32px);
  justify-content: center;
}
.cta-links a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rust);
  color: var(--rust);
  transition: opacity 0.2s var(--ease);
}
.cta-links a:hover { opacity: 0.65; }

/* ---- Video facade (lite-embed) ---- */

.video-block {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
  cursor: pointer;
}
.video-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.video-block iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play svg { width: clamp(48px, 6vw, 68px); height: clamp(48px, 6vw, 68px); }
.video-play circle { fill: rgba(244,240,236,0.9); }
.video-play path { fill: var(--rust); }

/* ---- Trade portal landing ---- */

.portal-home { padding: clamp(28px, 4vw, 54px) clamp(20px, 4vw, 56px) clamp(24px, 4vw, 48px); }
.portal-intro { max-width: 760px; margin-bottom: clamp(24px, 3vw, 38px); }
.portal-intro h1 {
  margin: 0.18em 0 0.16em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1;
}
.portal-intro p { margin: 0; color: var(--ink-soft); font-size: clamp(0.9rem, 1.3vw, 1.05rem); line-height: 1.6; }
.portal-group-resource {
  width: min(100%, 560px);
  min-height: 76px;
  margin-top: 24px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--cream);
  background: var(--ink);
}
.portal-group-resource > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.portal-group-resource small { color: rgba(244,240,236,0.68); font-size: 0.58rem; letter-spacing: 0.13em; text-transform: uppercase; }
.portal-group-resource strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; }
.portal-group-resource-action { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }

.lodge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.lodge-card {
  position: relative;
  min-height: clamp(560px, 70vh, 720px);
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  isolation: isolate;
}
.lodge-card-image, .lodge-card-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.lodge-card-image { object-fit: cover; transition: transform 0.75s var(--ease); }
.lodge-card-shade {
  background:
    linear-gradient(180deg, rgba(16,18,18,0.46) 0%, rgba(16,18,18,0.08) 34%, transparent 48%),
    linear-gradient(180deg, rgba(22,24,24,0.02) 8%, rgba(22,24,24,0.25) 44%, rgba(22,24,24,0.92) 100%);
  z-index: 1;
}
.lodge-card-content { position: absolute; inset: auto 0 0; z-index: 2; padding: clamp(22px, 2.4vw, 34px); }
.lodge-card-logo {
  position: absolute;
  top: clamp(18px, 2vw, 28px);
  left: clamp(18px, 2vw, 28px);
  z-index: 2;
  width: min(52%, 220px);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.lodge-card-logo img {
  width: 100%;
  max-height: 88px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1) drop-shadow(0 2px 9px rgba(0,0,0,0.4));
  opacity: 0.94;
}
.lodge-location { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.82; }
.lodge-card h2 {
  margin: 0.34em 0 0.24em;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 3.2rem);
  font-weight: 400;
  line-height: 1.04;
}
.lodge-card p {
  margin: 0 0 22px;
  max-width: 42ch;
  min-height: 3.1em;
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  line-height: 1.55;
  opacity: 0.86;
}
.lodge-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.lodge-secondary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lodge-action {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.lodge-action-primary { background: rgba(244,240,236,0.88); color: var(--ink); backdrop-filter: blur(4px); }
.lodge-action-secondary { border: 1px solid rgba(244,240,236,0.72); color: var(--cream); }
.lodge-action-compact { min-height: 42px; padding: 9px 11px; font-size: 0.6rem; }
.lodge-action small { font-size: 0.55rem; letter-spacing: 0.05em; opacity: 0.72; }
.lodge-action.is-pending { cursor: default; opacity: 0.75; }
@media (hover: hover) {
  .lodge-card:hover .lodge-card-image { transform: scale(1.035); }
  .lodge-action-primary:hover { background: rgba(244,240,236,0.96); }
  .lodge-action-secondary:not(.is-pending):hover { background: rgba(244,240,236,0.13); }
}

@media (max-width: 900px) {
  .lodge-grid { grid-template-columns: 1fr; }
  .lodge-card { min-height: min(72vh, 650px); }
  .lodge-card p { min-height: 0; }
}
@media (max-width: 540px) {
  .portal-home { padding-top: 26px; }
  .portal-intro { margin-bottom: 22px; }
  .portal-intro h1 { font-size: 2.65rem; }
  .lodge-card { min-height: 610px; }
  .lodge-action { min-height: 48px; }
  .lodge-action-compact { min-height: 44px; }
}

/* ---- Lodge overview ---- */

.lodge-overview-hero { min-height: min(68svh, 720px); }
.site-property-logo {
  width: min(24vw, 230px);
  min-height: 76px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-property-logo img {
  width: 100%;
  max-height: 68px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 9px rgba(0,0,0,0.4));
  opacity: 0.94;
}
.lodge-announcement { background: var(--ink); color: var(--cream); }
.lodge-announcement-inner {
  min-height: 132px;
  display: grid;
  grid-template-columns: auto minmax(220px, 0.7fr) minmax(320px, 1.3fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-top: 28px;
  padding-bottom: 28px;
}
.lodge-announcement span { color: var(--rust-light, #c98a5d); font-size: 0.64rem; letter-spacing: 0.15em; text-transform: uppercase; }
.lodge-announcement strong { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 3.3rem); font-weight: 400; line-height: 1.05; }
.lodge-announcement p { margin: 0; color: rgba(244,240,236,0.76); font-size: clamp(0.78rem, 1vw, 0.9rem); line-height: 1.7; }
.lodge-feature { background: #a85c16; color: var(--cream); }
.lodge-feature-inner {
  min-height: 154px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding-top: 30px;
  padding-bottom: 30px;
}
.lodge-feature-copy { max-width: 820px; }
.lodge-feature span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.72);
  font-size: .64rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.lodge-feature strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
}
.lodge-feature p {
  max-width: 700px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(.82rem, 1vw, .95rem);
  line-height: 1.65;
}
.lodge-feature a {
  min-width: 210px;
  min-height: 54px;
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease;
}
.lodge-feature a:hover { background: #fff; color: #8b4810; }
.lodge-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.lodge-fact { min-height: 108px; padding: 22px clamp(14px, 2.2vw, 30px); border-right: 1px solid var(--line); }
.lodge-fact:last-child { border-right: 0; }
.lodge-fact span {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lodge-fact strong { font-family: var(--font-display); font-size: clamp(0.95rem, 1.35vw, 1.25rem); font-weight: 400; }
.lodge-fact.is-pending strong { color: #786e66; font-family: var(--font-body); font-size: 0.76rem; font-weight: 400; }

.lodge-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: clamp(34px, 7vw, 96px);
  padding-top: clamp(52px, 7vw, 92px);
  padding-bottom: clamp(42px, 6vw, 76px);
}
.lodge-intro h2 { margin: 0.35em 0 0; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 400; line-height: 1.1; }
.lodge-intro-details { min-width: 0; }
.lodge-intro-details > p { margin: 0; color: var(--ink-soft); font-size: clamp(0.9rem, 1.2vw, 1.02rem); line-height: 1.8; }
.lodge-intro-brochure {
  min-height: 92px;
  margin-top: clamp(26px, 4vw, 44px);
  padding: 18px clamp(18px, 2.5vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink);
  color: var(--cream);
}
.lodge-intro-brochure > span { display: flex; flex-direction: column; gap: 5px; }
.lodge-intro-brochure small { color: rgba(244,240,236,0.68); font-size: 0.59rem; letter-spacing: 0.13em; text-transform: uppercase; }
.lodge-intro-brochure strong { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 400; }
.lodge-intro-brochure b { font-size: 0.65rem; font-weight: 400; letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap; }

.lodge-section-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: clamp(10px, 1.4vw, 18px);
  padding-bottom: clamp(28px, 4vw, 48px);
}
.lodge-section-card {
  position: relative;
  min-height: clamp(320px, 44vw, 520px);
  overflow: hidden;
  color: var(--cream);
  background: var(--ink);
}
.lodge-section-card img, .lodge-section-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.lodge-section-card img { object-fit: cover; transition: transform 0.7s var(--ease); }
.lodge-section-overlay { background: linear-gradient(180deg, rgba(20,22,22,0.08), rgba(20,22,22,0.78)); }
.lodge-section-copy { position: absolute; inset: auto 0 0; padding: clamp(20px, 3vw, 34px); }
.lodge-section-copy strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3.5rem); font-weight: 400; }
.lodge-section-copy small { display: block; margin-top: 7px; font-size: 0.74rem; letter-spacing: 0.04em; opacity: 0.82; }
.lodge-section-copy b { display: block; margin-top: 20px; font-size: 1.2rem; font-weight: 300; }
@media (hover: hover) { .lodge-section-card:hover img { transform: scale(1.035); } }

.lodge-commercial-actions, .content-footer-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: clamp(58px, 8vw, 96px);
}
.commercial-button {
  min-width: 210px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}
.commercial-button.is-primary { background: var(--ink); color: var(--cream); }
.commercial-button.is-disabled { border-color: var(--line); color: #837b75; cursor: default; }

/* ---- Programs and rates ---- */

.subpage-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.subpage-back, .subpage-home {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border: 1px solid var(--ink);
}
.subpage-back { background: var(--ink); color: var(--cream); }
.content-page { padding-top: clamp(52px, 7vw, 92px); padding-bottom: 20px; }
.content-page-heading { max-width: 780px; margin-bottom: clamp(34px, 5vw, 60px); }
.content-page-heading h1 { margin: 0.12em 0 0.18em; font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6.6rem); font-weight: 400; line-height: 1; }
.content-page-heading p { margin: 0; color: var(--ink-soft); line-height: 1.65; }

.program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); margin-bottom: clamp(48px, 7vw, 86px); }
.program-card { display: grid; grid-template-columns: minmax(150px, 0.85fr) 1.15fr; min-height: 280px; background: var(--white); border: 1px solid var(--line); }
.program-card > img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.program-card-body { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(22px, 3vw, 36px); }
.program-duration { color: var(--rust); font-size: 0.63rem; letter-spacing: 0.12em; text-transform: uppercase; }
.program-card h2 { margin: 0.45em 0 0.5em; font-family: var(--font-display); font-size: clamp(1.45rem, 2.4vw, 2.2rem); font-weight: 400; }
.program-card p { margin: 0 0 22px; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.65; }
.program-download { margin-top: auto; padding-bottom: 4px; border-bottom: 1px solid var(--rust); color: var(--rust); font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase; }
.program-download.is-pending { border-color: var(--line); color: #847b74; }
.program-document-list { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: auto; }
.program-document-list .program-download { margin-top: 0; }
.program-resources { margin: 0 0 clamp(48px, 7vw, 86px); padding: clamp(26px, 4vw, 42px); border: 1px solid var(--line); background: var(--white); }
.program-resources h2 { margin: 0.35em 0 0.75em; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 400; }
.program-resources .program-document-list { margin-top: 0; }

.rates-page { min-height: calc(100svh - 72px); }
.rates-notice { max-width: 900px; margin: 0 auto clamp(48px, 7vw, 80px); padding: clamp(34px, 6vw, 76px); background: var(--white); border: 1px solid var(--line); text-align: center; }
.rates-status { display: inline-block; margin-bottom: 18px; color: var(--rust); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; }
.rates-notice h2 { margin: 0 0 0.55em; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 400; }
.rates-notice p { max-width: 620px; margin: 0 auto 14px; color: var(--ink-soft); line-height: 1.7; }
.rates-notice .rates-safety-note { font-size: 0.75rem; }
.rates-notice .commercial-button { margin-top: 20px; }
.rates-price { display: flex; flex-direction: column; gap: 5px; margin: -2px 0 22px; }
.rates-price strong { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.8rem); font-weight: 400; line-height: 1; }
.rates-price span, .rates-validity { color: var(--rust); font-size: 0.68rem; letter-spacing: 0.11em; text-transform: uppercase; }
.rates-notice.is-published { border-color: rgba(136, 76, 42, 0.42); }
.rates-detail { max-width: 1060px; margin: 0 auto clamp(48px, 7vw, 80px); padding: clamp(28px, 5vw, 58px); background: var(--white); border: 1px solid rgba(136, 76, 42, 0.42); }
.rates-detail-heading { text-align: center; }
.rates-detail-heading h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 400; }
.rates-unit { margin: 0; color: var(--rust); font-size: 0.68rem; letter-spacing: 0.11em; text-transform: uppercase; }
.rates-season-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: clamp(30px, 5vw, 48px) 0; background: var(--line); border: 1px solid var(--line); }
.rates-season { min-height: 86px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; background: var(--cream); }
.rates-season:last-child:nth-child(odd) { grid-column: 1 / -1; }
.rates-season strong { color: var(--rust); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; }
.rates-season span { color: var(--ink-soft); font-size: 0.8rem; line-height: 1.5; }
.rates-tables { display: grid; gap: 38px; }
.rates-table-section { min-width: 0; }
.rates-table-section h3 { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 400; }
.rates-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); }
.rates-table { width: 100%; min-width: 670px; border-collapse: collapse; text-align: left; }
.rates-table th, .rates-table td { padding: 15px 17px; border-bottom: 1px solid var(--line); }
.rates-table tr:last-child th, .rates-table tr:last-child td { border-bottom: 0; }
.rates-table thead th { background: var(--ink); color: var(--cream); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; }
.rates-table tbody th { width: 42%; font-size: 0.78rem; font-weight: 500; }
.rates-table tbody td { color: var(--ink-soft); font-size: 0.78rem; white-space: nowrap; }
.rates-booking-note { max-width: 720px; margin: 34px auto 10px; color: var(--ink-soft); line-height: 1.65; text-align: center; }
.rates-detail .rates-safety-note { max-width: 720px; margin: 8px auto 0; color: var(--ink-soft); font-size: 0.72rem; line-height: 1.6; text-align: center; }
.rates-documents { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }

@media (max-width: 920px) {
  .lodge-facts { grid-template-columns: repeat(3, 1fr); }
  .lodge-fact:nth-child(3) { border-right: 0; }
  .lodge-section-grid { grid-template-columns: 1fr; }
  .lodge-section-card { min-height: 340px; }
  .program-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .category-list button { min-width: 168px; min-height: 76px; }
  .gallery-download { align-items: stretch; flex-direction: column; }
  .gallery-download-link { width: 100%; }
  .site-header { align-items: flex-start; }
  .site-header a.back { min-height: 46px; padding: 11px 14px; font-size: 0.62rem; }
  .wordmark { padding-top: 13px; }
  .site-property-logo { width: 112px; min-height: 58px; padding: 8px 10px; }
  .site-property-logo img { max-height: 46px; }
  .lodge-announcement-inner { grid-template-columns: 1fr; gap: 10px; padding-top: 26px; padding-bottom: 28px; }
  .lodge-announcement p { margin-top: 5px; }
  .lodge-feature-inner { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; padding-bottom: 30px; }
  .lodge-feature a { width: 100%; }
  .lodge-intro-brochure { align-items: flex-start; flex-direction: column; gap: 12px; }
  .portal-group-resource { align-items: flex-start; flex-direction: column; gap: 12px; }
  .rates-season-grid { grid-template-columns: 1fr; }
  .rates-detail { padding-inline: 18px; }
  .lodge-overview-hero { min-height: 62svh; }
  .lodge-facts { grid-template-columns: repeat(2, 1fr); }
  .lodge-fact { min-height: 92px; }
  .lodge-fact:nth-child(3) { border-right: 1px solid var(--line); }
  .lodge-fact:nth-child(even) { border-right: 0; }
  .lodge-intro { grid-template-columns: 1fr; gap: 24px; }
  .lodge-section-card { min-height: 310px; }
  .program-card { grid-template-columns: 1fr; }
  .program-card > img { min-height: 230px; max-height: 280px; }
  .subpage-header { min-height: 70px; }
  .subpage-home { display: none; }
}
/* ---- Grounded RHG assistant -------------------------------------------- */
.rhg-assistant {
  position: fixed;
  right: clamp(16px, 2.2vw, 32px);
  bottom: clamp(16px, 2.2vw, 30px);
  z-index: 1000;
  font-family: 'Poppins', sans-serif;
}

/* The official RHG website embeds the portal in a full-height frame. Keep the
   entry point near the top there; activating it opens the full-page assistant,
   where normal viewport-fixed positioning takes over. */
.rhg-assistant.is-embedded {
  position: absolute;
  top: clamp(18px, 2.2vw, 32px);
  bottom: auto;
}

.rhg-assistant-launcher {
  min-width: 142px;
  height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: #253d35;
  color: #fff;
  box-shadow: 0 12px 34px rgba(19,35,30,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 500 13px/1 'Poppins', sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
}

.rhg-assistant-launcher-icon {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Marcellus', serif;
  font-size: 16px;
}

.rhg-assistant-launcher.is-open { display: none; }

.rhg-assistant-panel {
  width: min(390px, calc(100vw - 24px));
  height: min(650px, calc(100vh - 32px));
  border: 1px solid rgba(37,61,53,.18);
  border-radius: 20px;
  overflow: hidden;
  background: #f8f5ef;
  color: #22352f;
  box-shadow: 0 22px 60px rgba(19,35,30,.25);
}

.rhg-assistant-panel[hidden] { display: none; }

.rhg-assistant-header {
  min-height: 76px;
  padding: 16px 18px;
  background: #253d35;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rhg-assistant-header strong {
  display: block;
  font: 400 21px/1.2 'Marcellus', serif;
}

.rhg-assistant-header small {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.7);
  font-size: 10px;
  letter-spacing: .03em;
}

.rhg-assistant-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font: 300 26px/1 sans-serif;
  cursor: pointer;
}

.rhg-assistant-messages {
  height: calc(100% - 240px);
  min-height: 210px;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rhg-assistant-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(37,61,53,.07);
  font-size: 12px;
  line-height: 1.6;
}

.rhg-assistant-message p { margin: 0; }

.rhg-assistant-message.is-user {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: #dce5df;
}

.rhg-assistant-links {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.rhg-assistant-links a {
  color: #9a5f2a;
  font-weight: 500;
  text-decoration: none;
}

.rhg-assistant-suggestions {
  padding: 0 18px 12px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
}

.rhg-assistant-suggestions button {
  flex: 0 0 auto;
  max-width: 220px;
  padding: 8px 11px;
  border: 1px solid rgba(37,61,53,.18);
  border-radius: 999px;
  background: transparent;
  color: #334a42;
  font: 400 10px/1.3 'Poppins', sans-serif;
  cursor: pointer;
}

.rhg-assistant-form {
  margin: 0 14px;
  padding: 6px;
  border: 1px solid rgba(37,61,53,.18);
  border-radius: 14px;
  background: #fff;
  display: flex;
  gap: 6px;
}

.rhg-assistant-input {
  min-width: 0;
  flex: 1;
  padding: 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #22352f;
  font: 400 12px/1.4 'Poppins', sans-serif;
}

.rhg-assistant-send {
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #a66631;
  color: #fff;
  font: 500 11px/1 'Poppins', sans-serif;
  cursor: pointer;
}

.rhg-assistant-send:disabled { opacity: .55; cursor: wait; }

.rhg-assistant-note {
  margin: 8px 18px 0;
  color: #7a807d;
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 600px) {
  .rhg-assistant { right: 12px; bottom: 12px; }
  .rhg-assistant.is-embedded { top: 12px; bottom: auto; }
  .rhg-assistant-launcher { min-width: 128px; height: 50px; }
  .rhg-assistant-panel { width: calc(100vw - 24px); height: min(620px, calc(100vh - 24px)); }
}
