/* ============================================================
   Rivendell Resort — "Wow" design layer
   Loaded last so it enhances/overrides the base resort styles.
   Content & images unchanged — this is pure look & feel.
   ============================================================ */

:root {
   --riv-forest-900: #0c1c1a;
   --riv-forest-800: #10241f;
   --riv-forest-700: #132b28;
   --riv-teal: #2f6f73;
   --riv-teal-soft: #4f9296;
   --riv-bronze: #b7794b;
   --riv-gold: #d8b083;
   --riv-gold-bright: #eccf9a;
   --riv-cream: #f7f4ed;
   --riv-ink: #25332f;
   --riv-muted: #5d6864;
   --riv-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
   --riv-sans: "Raleway", "Segoe UI", sans-serif;
   --riv-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Global type refinements ---------- */
.resort-page {
   background: var(--riv-cream);
   -webkit-font-smoothing: antialiased;
}

.resort-hero h1,
.resort-copy-panel h3,
.heading-title .title,
.resort-gallery-preview .title,
.resort-visit-body strong,
.resort-review-card strong,
.resort-gallery-frame span {
   font-family: var(--riv-display);
   letter-spacing: 0.5px;
}

/* Decorative section headings with an elven gold divider */
.heading-title {
   position: relative;
}

.heading-title .title {
   font-weight: 600;
   position: relative;
   display: inline-block;
   padding-bottom: 22px;
}

.heading-title .title:before {
   content: "";
   position: absolute;
   left: 50%;
   bottom: 0;
   width: 120px;
   height: 2px;
   transform: translateX(-50%);
   background: linear-gradient(90deg, transparent, var(--riv-bronze), var(--riv-gold-bright), var(--riv-bronze), transparent);
}

.heading-title .title:after {
   content: "\2726"; /* four-point star, elvish flourish */
   position: absolute;
   left: 50%;
   bottom: -11px;
   transform: translateX(-50%);
   color: var(--riv-gold);
   font-size: 14px;
   background: inherit;
   line-height: 1;
   text-shadow: 0 0 12px rgba(216, 176, 131, 0.7);
   animation: rivTwinkle 3.2s ease-in-out infinite;
}

@keyframes rivTwinkle {
   0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(0.9); }
   50%      { opacity: 1;    transform: translateX(-50%) scale(1.15); }
}

/* ============================================================
   INTRO ANIMATION — golden ring draws, mist clears
   ============================================================ */
.riv-intro {
   position: fixed;
   inset: 0;
   z-index: 99999;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-direction: column;
   background:
      radial-gradient(1200px 800px at 50% 38%, rgba(47, 111, 115, 0.35), transparent 60%),
      radial-gradient(900px 700px at 50% 120%, rgba(183, 121, 75, 0.25), transparent 60%),
      linear-gradient(180deg, #0a1614 0%, #0c1c1a 55%, #08110f 100%);
   overflow: hidden;
   transition: opacity 1s var(--riv-ease), visibility 1s var(--riv-ease);
}

/* drifting mist inside the intro */
.riv-intro:before,
.riv-intro:after {
   content: "";
   position: absolute;
   inset: -20%;
   background:
      radial-gradient(closest-side, rgba(255, 255, 255, 0.08), transparent 70%) 15% 30% / 55% 55% no-repeat,
      radial-gradient(closest-side, rgba(216, 176, 131, 0.07), transparent 70%) 80% 60% / 60% 60% no-repeat;
   animation: rivMistDrift 16s linear infinite;
   pointer-events: none;
}
.riv-intro:after { animation-duration: 24s; animation-direction: reverse; opacity: 0.7; }

@keyframes rivMistDrift {
   0%   { transform: translate3d(-4%, 0, 0) scale(1); }
   50%  { transform: translate3d(4%, -2%, 0) scale(1.08); }
   100% { transform: translate3d(-4%, 0, 0) scale(1); }
}

.riv-intro-inner {
   position: relative;
   width: 300px;
   height: 300px;
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 2;
}

.riv-intro-ring {
   position: absolute;
   inset: 0;
   width: 300px;
   height: 300px;
   transform: rotate(-90deg);
   filter: drop-shadow(0 0 14px rgba(216, 176, 131, 0.55));
}

.riv-intro-ring circle {
   fill: none;
   stroke-linecap: round;
}

.riv-intro-ring .riv-ring-track {
   stroke: rgba(216, 176, 131, 0.14);
   stroke-width: 1.5;
}

.riv-intro-ring .riv-ring-draw {
   stroke: url(#rivGoldGrad);
   stroke-width: 2.5;
   stroke-dasharray: 880;
   stroke-dashoffset: 880;
   animation: rivRingDraw 0.65s var(--riv-ease) 0.05s forwards;
}

@keyframes rivRingDraw {
   to { stroke-dashoffset: 0; }
}

/* rotating faint runes ring */
.riv-intro-runes {
   position: absolute;
   inset: 26px;
   border-radius: 50%;
   border: 1px dashed rgba(216, 176, 131, 0.25);
   animation: rivSpin 18s linear infinite;
}
.riv-intro-runes.rev { inset: 44px; animation-duration: 12s; animation-direction: reverse; border-color: rgba(79, 146, 150, 0.3); }

@keyframes rivSpin { to { transform: rotate(360deg); } }

.riv-intro-logo {
   position: relative;
   z-index: 3;
   width: 150px;
   height: auto;
   opacity: 0;
   transform: scale(0.7);
   filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.5));
   animation: rivLogoIn 0.45s var(--riv-ease) 0.25s forwards;
}

@keyframes rivLogoIn {
   0%   { opacity: 0; transform: scale(0.7); }
   60%  { opacity: 1; transform: scale(1.06); }
   100% { opacity: 1; transform: scale(1); }
}

.riv-intro-tagline {
   position: relative;
   z-index: 2;
   margin-top: 34px;
   color: var(--riv-gold-bright);
   font-family: var(--riv-sans);
   font-size: 13px;
   letter-spacing: 6px;
   text-transform: uppercase;
   opacity: 0;
   transform: translateY(10px);
   animation: rivFadeUp 0.35s var(--riv-ease) 0.48s forwards;
}

.riv-intro-sub {
   position: relative;
   z-index: 2;
   margin-top: 10px;
   color: rgba(255, 255, 255, 0.6);
   font-family: var(--riv-display);
   font-style: italic;
   font-size: 20px;
   opacity: 0;
   animation: rivFadeUp 0.35s var(--riv-ease) 0.6s forwards;
}

@keyframes rivFadeUp {
   to { opacity: 1; transform: translateY(0); }
}

/* golden sweep line */
.riv-intro-sweep {
   position: absolute;
   top: 0; bottom: 0;
   width: 40%;
   background: linear-gradient(90deg, transparent, rgba(236, 207, 154, 0.12), transparent);
   transform: translateX(-120%);
   animation: rivSweep 0.8s var(--riv-ease) 0.4s forwards;
   z-index: 1;
   pointer-events: none;
}
@keyframes rivSweep { to { transform: translateX(320%); } }

/* dismissal — added by JS, with CSS-only fallback after delay */
.riv-intro.riv-intro--done {
   opacity: 0;
   visibility: hidden;
}

/* lock scroll while intro plays */
body.riv-loading {
   overflow: hidden;
}

/* ============================================================
   HERO — cinematic reveal, mist, parallax-ready
   ============================================================ */
.resort-hero {
   min-height: 100vh;
   display: flex;
   align-items: center;
   padding: 160px 0 120px;
}

.resort-hero-overlay {
   background:
      linear-gradient(90deg, rgba(8, 20, 18, 0.85) 0%, rgba(8, 20, 18, 0.5) 45%, rgba(8, 20, 18, 0.15) 100%),
      linear-gradient(0deg, rgba(8, 20, 18, 0.7) 0%, transparent 45%);
}

/* soft drifting mist over the hero photo */
.resort-hero:after {
   content: "";
   position: absolute;
   inset: 0;
   z-index: 0;
   pointer-events: none;
   background:
      radial-gradient(closest-side, rgba(255, 255, 255, 0.06), transparent 70%) 10% 85% / 60% 45% no-repeat,
      radial-gradient(closest-side, rgba(255, 255, 255, 0.05), transparent 70%) 85% 20% / 50% 40% no-repeat;
   animation: rivMistDrift 22s ease-in-out infinite;
}

.resort-hero .container { z-index: 2; }

/* entrance animation for hero copy (kicks in after intro) */
.resort-hero-copy > * {
   opacity: 0;
   transform: translateY(26px);
}
body.riv-ready .resort-hero-copy > * {
   animation: rivHeroIn 1s var(--riv-ease) forwards;
}
body.riv-ready .resort-hero-copy h1 { animation-delay: 0.15s; }
body.riv-ready .resort-hero-copy p  { animation-delay: 0.45s; }
body.riv-ready .resort-hero-copy .resort-actions { animation-delay: 0.7s; }

@keyframes rivHeroIn {
   to { opacity: 1; transform: translateY(0); }
}

.resort-hero h1 {
   font-size: 108px;
   font-weight: 600;
   letter-spacing: 1px;
   text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
   background: linear-gradient(180deg, #ffffff 0%, #f4e6cf 60%, var(--riv-gold) 100%);
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
}

.resort-hero p {
   font-family: var(--riv-display);
   font-style: italic;
   font-size: 27px;
   color: rgba(255, 255, 255, 0.92);
}

.resort-hero p:before {
   content: "\2726";
   color: var(--riv-gold);
   margin-right: 12px;
   font-style: normal;
   font-size: 15px;
   vertical-align: middle;
}

/* Elegant glowing buttons */
.resort-page .button {
   position: relative;
   overflow: hidden;
   border-radius: 2px;
   font-family: var(--riv-sans);
   letter-spacing: 1px;
   background: linear-gradient(135deg, var(--riv-bronze), #9c5f34);
   border: 1px solid rgba(236, 207, 154, 0.5);
   box-shadow: 0 10px 30px rgba(156, 95, 52, 0.35);
   transition: transform 0.4s var(--riv-ease), box-shadow 0.4s var(--riv-ease), background 0.4s var(--riv-ease);
   z-index: 0;
}

.resort-page .button:before {
   content: "";
   position: absolute;
   top: 0; left: -75%;
   width: 50%; height: 100%;
   background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
   transform: skewX(-20deg);
   transition: left 0.6s var(--riv-ease);
   z-index: -1;
}

.resort-page .button:hover {
   transform: translateY(-3px);
   background: linear-gradient(135deg, var(--riv-teal), #245356);
   box-shadow: 0 16px 40px rgba(47, 111, 115, 0.45);
   border-color: rgba(236, 207, 154, 0.7);
}

.resort-page .button:hover:before { left: 130%; }

.resort-text-link {
   border-radius: 2px;
   backdrop-filter: blur(3px);
   background: rgba(255, 255, 255, 0.05);
   transition: transform 0.4s var(--riv-ease), border-color 0.4s var(--riv-ease), color 0.4s var(--riv-ease), background 0.4s var(--riv-ease);
}
.resort-text-link:hover {
   transform: translateY(-3px);
   background: rgba(216, 176, 131, 0.12);
}

/* scroll cue at bottom of hero */
.resort-hero .riv-scroll-cue {
   position: absolute;
   left: 50%;
   bottom: 26px;
   transform: translateX(-50%);
   z-index: 3;
   width: 26px;
   height: 42px;
   border: 2px solid rgba(255, 255, 255, 0.6);
   border-radius: 14px;
   opacity: 0;
}
body.riv-ready .resort-hero .riv-scroll-cue { animation: rivFadeUp 1s var(--riv-ease) 1.2s forwards; }
.resort-hero .riv-scroll-cue:before {
   content: "";
   position: absolute;
   left: 50%;
   top: 8px;
   width: 4px; height: 8px;
   border-radius: 3px;
   background: var(--riv-gold-bright);
   transform: translateX(-50%);
   animation: rivScrollDot 1.8s ease-in-out infinite;
}
@keyframes rivScrollDot {
   0%   { opacity: 0; transform: translate(-50%, 0); }
   40%  { opacity: 1; }
   100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* ============================================================
   HEADER — glass on scroll
   ============================================================ */
.resort-header .menu-list-items {
   background: linear-gradient(180deg, rgba(9, 20, 18, 0.7) 0%, rgba(9, 20, 18, 0.25) 60%, rgba(9, 20, 18, 0)) !important;
   border-bottom: 1px solid rgba(236, 207, 154, 0.12);
   transition: background 0.45s var(--riv-ease), box-shadow 0.45s var(--riv-ease),
      backdrop-filter 0.45s var(--riv-ease), border-color 0.45s var(--riv-ease);
}
.resort-header.riv-scrolled .menu-list-items {
   background: rgba(9, 20, 18, 0.9) !important;
   backdrop-filter: blur(14px);
   border-bottom-color: rgba(236, 207, 154, 0.28);
   box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
}

/* Elegant link typography */
.resort-header .mega-menu .menu-links > li > a {
   font-family: var(--riv-sans);
   font-weight: 600;
   font-size: 13px;
   letter-spacing: 1.6px;
   text-transform: uppercase;
   color: rgba(255, 255, 255, 0.88);
   transition: color 0.3s var(--riv-ease);
   overflow: visible;
}
.resort-header .mega-menu .menu-links > li:hover > a,
.resort-header .mega-menu .menu-links > li.active > a {
   color: #ffffff !important;
   background: transparent !important;
   box-shadow: none !important;
}

/* Recolor the template's pill (:before) into a slim gold underline that grows */
.resort-header .mega-menu .menu-links > li > a:before {
   background: linear-gradient(90deg, var(--riv-bronze), var(--riv-gold-bright), var(--riv-bronze)) !important;
   height: 2px !important;
   top: auto !important;
   bottom: 6px !important;
   left: 14px !important;
   right: 14px !important;
   width: auto !important;
   border-radius: 2px !important;
   box-shadow: 0 0 10px rgba(236, 207, 154, 0.6);
   transform-origin: center;
}
.resort-header .mega-menu .menu-links > li.active > a:before {
   box-shadow: 0 0 14px rgba(236, 207, 154, 0.8);
}
/* small gold star before the active link */
.resort-header .mega-menu .menu-links > li.active > a:after {
   content: "\2726";
   color: var(--riv-gold-bright);
   font-size: 9px;
   margin-left: 8px;
   vertical-align: middle;
   opacity: 0.9;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.riv-reveal {
   opacity: 0;
   transform: translateY(40px);
   transition: opacity 0.9s var(--riv-ease), transform 0.9s var(--riv-ease);
   will-change: opacity, transform;
}
.riv-reveal.riv-in {
   opacity: 1;
   transform: none;
}
.riv-reveal.riv-delay-1 { transition-delay: 0.12s; }
.riv-reveal.riv-delay-2 { transition-delay: 0.24s; }
.riv-reveal.riv-delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
   .riv-reveal { opacity: 1 !important; transform: none !important; }
   .riv-intro { display: none !important; }
   .resort-hero-copy > * { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   HOUSES GALLERY — glowing frames, zoom, gold border
   ============================================================ */
.resort-gallery-preview { background: linear-gradient(180deg, #ffffff, #f7f4ed); }

.resort-gallery-frame {
   aspect-ratio: 3 / 4;
   min-height: 420px;
   max-height: 540px;
   border: 1px solid rgba(47, 111, 115, 0.14);
   border-radius: 10px;
   box-shadow: 0 18px 44px rgba(20, 40, 36, 0.14);
   transition: transform 0.5s var(--riv-ease), box-shadow 0.5s var(--riv-ease), border-color 0.5s var(--riv-ease);
}

/* cinematic bottom scrim so the actions always read clearly */
.resort-gallery-frame:after {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(180deg,
      rgba(8, 20, 18, 0) 42%,
      rgba(8, 20, 18, 0.35) 62%,
      rgba(8, 20, 18, 0.88) 100%);
   opacity: 0.9;
   transition: opacity 0.5s var(--riv-ease);
   z-index: 0;
   pointer-events: none;
}

.resort-gallery-frame:hover {
   transform: translateY(-8px);
   border-color: rgba(216, 176, 131, 0.85);
   box-shadow: 0 26px 60px rgba(20, 40, 36, 0.28), 0 0 0 1px rgba(216, 176, 131, 0.4);
}
.resort-gallery-frame:hover:after { opacity: 0.9; }

.resort-gallery-frame img {
   transition: transform 0.9s var(--riv-ease), filter 0.6s var(--riv-ease);
   filter: saturate(0.95);
}
.resort-gallery-frame:hover img {
   transform: scale(1.08);
   filter: saturate(1.08);
}

.resort-gallery-frame span {
   background: linear-gradient(180deg, rgba(10, 22, 20, 0.75), rgba(10, 22, 20, 0));
   font-weight: 600;
   text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

/* House action cluster — always visible, grouped neatly at the bottom */
.resort-gallery-frame .resort-gallery-info-button,
.resort-gallery-frame .resort-gallery-book {
   position: absolute;
   left: 50%;
   transform: translateX(-50%);
   opacity: 1;
   z-index: 2;
   width: calc(100% - 40px);
   max-width: 260px;
   text-align: center;
   border-radius: 4px;
   transition: transform 0.4s var(--riv-ease), background 0.4s var(--riv-ease),
      box-shadow 0.4s var(--riv-ease), border-color 0.4s var(--riv-ease);
}

.resort-gallery-info-button {
   bottom: 76px;
   min-width: 0;
   padding: 11px 22px;
   font-size: 14px;
   letter-spacing: 1.5px;
   text-transform: uppercase;
   background: rgba(12, 22, 20, 0.4);
   backdrop-filter: blur(6px);
   border: 1.5px solid rgba(236, 207, 154, 0.8);
}

.resort-gallery-book {
   bottom: 20px;
   min-width: 0;
   padding: 13px 22px;
   font-size: 18px;
   border: 1px solid rgba(236, 207, 154, 0.55);
   box-shadow: 0 12px 28px rgba(12, 22, 20, 0.5);
}

.resort-gallery-frame:hover .resort-gallery-info-button,
.resort-gallery-frame:focus-within .resort-gallery-info-button {
   transform: translate(-50%, -3px);
   background: rgba(47, 111, 115, 0.92);
   border-color: rgba(236, 207, 154, 1);
}

.resort-gallery-frame:hover .resort-gallery-book,
.resort-gallery-frame:focus-within .resort-gallery-book {
   transform: translate(-50%, -3px);
   box-shadow: 0 18px 36px rgba(12, 22, 20, 0.6);
}

/* House name — elegant plate at the top */
.resort-gallery-frame span {
   padding: 22px 16px 30px;
   font-size: 27px;
   letter-spacing: 0.5px;
   background: linear-gradient(180deg, rgba(10, 22, 20, 0.82) 0%, rgba(10, 22, 20, 0.35) 65%, rgba(10, 22, 20, 0));
}

/* ============================================================
   REVIEWS — glass cards that lift
   ============================================================ */
.resort-reviews { background: linear-gradient(180deg, #edf3ef, #e4ede8); }

.resort-review-card {
   border: 1px solid rgba(47, 111, 115, 0.14);
   border-radius: 8px;
   box-shadow: 0 12px 34px rgba(20, 40, 36, 0.08);
   transition: transform 0.5s var(--riv-ease), box-shadow 0.5s var(--riv-ease), border-color 0.5s var(--riv-ease);
   overflow: hidden;
}
.resort-review-card:before {
   content: "\201C";
   position: absolute;
   top: 6px; right: 20px;
   font-family: var(--riv-display);
   font-size: 90px;
   line-height: 1;
   color: rgba(183, 121, 75, 0.14);
}
.resort-review-card:hover {
   transform: translateY(-6px);
   border-color: rgba(216, 176, 131, 0.7);
   box-shadow: 0 22px 50px rgba(20, 40, 36, 0.16);
}
.resort-review-author img {
   border: 2px solid var(--riv-gold);
   box-shadow: 0 4px 12px rgba(183, 121, 75, 0.3);
}

/* ============================================================
   SPLIT "what you can do" — parallax panels, gold accents
   ============================================================ */
.resort-image-panel {
   position: relative;
   overflow: hidden;
}
.resort-image-panel:before {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(180deg, rgba(8, 20, 18, 0.05), rgba(8, 20, 18, 0.25));
   z-index: 1;
   transition: opacity 0.6s var(--riv-ease);
}

.resort-copy-panel {
   position: relative;
}
.resort-copy-panel h3 {
   font-weight: 600;
   position: relative;
   padding-left: 0;
}
.resort-copy-panel h3:before {
   content: "";
   display: block;
   width: 56px;
   height: 2px;
   margin-bottom: 20px;
   background: linear-gradient(90deg, var(--riv-bronze), var(--riv-gold-bright));
}
.resort-dark-panel {
   background:
      radial-gradient(600px 400px at 20% 0%, rgba(47, 111, 115, 0.3), transparent 70%),
      #10241f;
}

/* ============================================================
   VISITS — image zoom cards
   ============================================================ */
.resort-visits { background: linear-gradient(180deg, #edf3ef, #e4ede8); }

.resort-visit-card {
   border-radius: 8px;
   border: 1px solid rgba(47, 111, 115, 0.1);
   transition: transform 0.5s var(--riv-ease), box-shadow 0.5s var(--riv-ease), border-color 0.5s var(--riv-ease);
}
.resort-visit-card:hover {
   transform: translateY(-6px);
   border-color: rgba(216, 176, 131, 0.7);
   box-shadow: 0 24px 54px rgba(20, 40, 36, 0.18);
}
.resort-visit-image {
   transition: transform 0.9s var(--riv-ease);
}
.resort-visit-card:hover .resort-visit-image {
   transform: scale(1.08);
}
.resort-visit-body strong { font-weight: 600; }

/* ============================================================
   BOOK CTA — glowing band
   ============================================================ */
.resort-book-section {
   background:
      radial-gradient(700px 300px at 50% 50%, rgba(47, 111, 115, 0.18), transparent 70%),
      linear-gradient(180deg, #edf3ef, #e4ede8);
   padding: 60px 0;
}

/* ============================================================
   MAP + FOOTER
   ============================================================ */
.resort-map-link { border-radius: 2px; }

.resort-footer {
   background:
      radial-gradient(700px 300px at 50% -40%, rgba(47, 111, 115, 0.25), transparent 70%),
      #0c1c1a;
   position: relative;
}
.resort-footer:before {
   content: "";
   position: absolute;
   top: 0; left: 0; right: 0;
   height: 2px;
   background: linear-gradient(90deg, transparent, var(--riv-bronze), var(--riv-gold-bright), var(--riv-bronze), transparent);
}
.resort-footer strong { font-family: var(--riv-display); font-size: 22px; }
.resort-social-links a {
   transition: transform 0.35s var(--riv-ease), color 0.35s var(--riv-ease);
}
.resort-social-links a:hover { transform: translateY(-4px) scale(1.15); }

/* back to top */
#back-to-top .top {
   border-radius: 50%;
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
   .resort-hero h1 { font-size: 74px; }
   .resort-hero p { font-size: 22px; }
}
@media (max-width: 767px) {
   .resort-hero { min-height: 90vh; }
   .resort-hero h1 { font-size: 52px; }
   .resort-hero p { font-size: 19px; }
   .riv-intro-inner { width: 240px; height: 240px; }
   .riv-intro-ring { width: 240px; height: 240px; }
   .riv-intro-logo { width: 118px; }
}

/* ============================================================
   DESIGN UPDATE v2 — deeper polish across the page
   ============================================================ */

/* Gold scroll-progress bar */
.riv-progress {
   position: fixed;
   top: 0;
   left: 0;
   height: 3px;
   width: 0;
   z-index: 100000;
   background: linear-gradient(90deg, var(--riv-bronze), var(--riv-gold-bright), var(--riv-teal-soft));
   box-shadow: 0 0 14px rgba(236, 207, 154, 0.7);
   transition: width 0.1s linear;
   pointer-events: none;
}

/* Small uppercase eyebrow above the main section headings */
.resort-gallery-preview .heading-title:before,
.resort-reviews .heading-title:before,
.resort-section-heading .heading-title:before,
.resort-visits .heading-title:before {
   display: block;
   margin-bottom: 14px;
   color: var(--riv-bronze);
   font-family: var(--riv-sans);
   font-size: 12px;
   font-weight: 700;
   letter-spacing: 4px;
   text-transform: uppercase;
}
.resort-gallery-preview .heading-title:before { content: "The Houses"; }
.resort-reviews .heading-title:before { content: "Kind Words"; }
.resort-section-heading .heading-title:before { content: "The Valley"; }
.resort-visits .heading-title:before { content: "Nearby"; }

/* ---------- "What you can do" — editorial split panels ---------- */
.resort-copy-panel { position: relative; overflow: hidden; }

.riv-panel-num {
   position: absolute;
   top: 30px;
   right: 7%;
   font-family: var(--riv-display);
   font-size: 130px;
   font-weight: 600;
   line-height: 1;
   letter-spacing: -4px;
   color: rgba(47, 111, 115, 0.09);
   pointer-events: none;
   z-index: 0;
}
.resort-dark-panel .riv-panel-num { color: rgba(236, 207, 154, 0.12); }

.resort-copy-panel h3,
.resort-copy-panel p { position: relative; z-index: 1; }

/* thin gold frame that draws in on the photo when its row is hovered */
.resort-image-panel:after {
   content: "";
   position: absolute;
   inset: 20px;
   border: 1px solid rgba(236, 207, 154, 0.55);
   z-index: 2;
   opacity: 0;
   transform: scale(1.04);
   transition: opacity 0.6s var(--riv-ease), transform 0.6s var(--riv-ease);
   pointer-events: none;
}
.resort-split:hover .resort-image-panel:after {
   opacity: 1;
   transform: scale(1);
}

/* ---------- Places to visit — immersive overlay cards ---------- */
.resort-visit-card {
   position: relative;
   display: block;
   height: 320px;
   border-radius: 12px;
   overflow: hidden;
   border: 1px solid rgba(47, 111, 115, 0.14);
}
.resort-visit-image {
   position: absolute;
   inset: 0;
   height: 100%;
   min-height: 0;
   z-index: 0;
}
.resort-visit-card:after {
   content: "";
   position: absolute;
   inset: 0;
   z-index: 1;
   background: linear-gradient(180deg, rgba(8, 20, 18, 0) 35%, rgba(8, 20, 18, 0.4) 60%, rgba(8, 20, 18, 0.92) 100%);
   transition: opacity 0.5s var(--riv-ease);
}
.resort-visit-body {
   position: absolute;
   left: 0;
   right: 0;
   bottom: 0;
   z-index: 2;
   padding: 24px 24px 22px;
}
.resort-visit-body strong,
.resort-visit-body a strong { color: #ffffff; }
.resort-visit-body > a { color: #ffffff; }
.resort-visit-body span { color: rgba(255, 255, 255, 0.82); }
.resort-visit-map-link {
   color: var(--riv-gold-bright) !important;
   margin-top: 12px;
}
.resort-visit-map-link:hover { color: #ffffff !important; }
.resort-visit-card:hover .resort-visit-image { transform: scale(1.09); }

/* ---------- Reviews — refined glass cards ---------- */
.resort-review-card {
   padding-top: 34px;
}
.resort-review-card:before {
   top: 10px;
   right: 24px;
   font-size: 110px;
}
.resort-review-author {
   padding-bottom: 16px;
   border-bottom: 1px solid rgba(47, 111, 115, 0.12);
}
.resort-review-card p { position: relative; z-index: 1; }
.resort-review-card:after {
   content: "";
   position: absolute;
   left: 0;
   top: 0;
   bottom: 0;
   width: 3px;
   background: linear-gradient(180deg, var(--riv-bronze), var(--riv-gold-bright));
   transform: scaleY(0);
   transform-origin: top;
   transition: transform 0.5s var(--riv-ease);
}
.resort-review-card:hover:after { transform: scaleY(1); }

/* ---------- Book CTA — dramatic forest band ---------- */
.resort-book-section {
   position: relative;
   overflow: hidden;
   background:
      radial-gradient(800px 340px at 50% 50%, rgba(47, 111, 115, 0.4), transparent 70%),
      linear-gradient(180deg, #10241f, #0c1c1a);
   padding: 84px 0;
}
.resort-book-section:before,
.resort-book-section:after {
   content: "";
   position: absolute;
   left: 50%;
   transform: translateX(-50%);
   width: 200px;
   height: 2px;
   background: linear-gradient(90deg, transparent, var(--riv-gold), transparent);
}
.resort-book-section:before { top: 34px; }
.resort-book-section:after { bottom: 34px; }
.resort-book-section .button {
   font-size: 20px;
   padding: 18px 54px;
}

/* subtle drifting mist reused on the book band */
.resort-book-section .container { position: relative; z-index: 1; }

/* ---------- Map — framed + rounded ---------- */
.resort-map-section { padding: 0 0 0; }
.resort-map-section iframe {
   filter: saturate(0.9) contrast(1.02);
}

/* ---------- Footer refinement ---------- */
.resort-footer { padding: 40px 0; }
.resort-social-links a {
   border: 1px solid rgba(236, 207, 154, 0.28);
   border-radius: 50%;
   width: 42px;
   height: 42px;
}
.resort-social-links a:hover {
   border-color: var(--riv-gold);
   color: var(--riv-gold-bright);
}

/* reduced motion: neutralise the new transforms */
@media (prefers-reduced-motion: reduce) {
   .resort-review-card:after,
   .resort-image-panel:after { transition: none; }
}

@media (max-width: 767px) {
   .riv-panel-num { font-size: 92px; top: 20px; }
   .resort-visit-card { height: 280px; }
   .resort-book-section { padding: 60px 0; }
}

/* ============================================================
   MODERN v3 — contemporary restyle (loaded last, wins)
   Clean white + emerald palette, geometric sans, flat rounded
   cards, ornamentation removed. Overrides the earlier layers.
   ============================================================ */
:root {
   --riv-display: "Space Grotesk", "Inter", sans-serif;
   --riv-sans: "Inter", "Segoe UI", sans-serif;
   --riv-accent: #1f7a63;
   --riv-accent-dark: #145843;
   --riv-accent-light: #8fe3c9;
   --riv-accent-soft: #e8f2ee;
   --riv-ink: #16211d;
   --riv-muted: #5c6b66;
   --riv-line: rgba(22, 33, 29, 0.09);
}

.resort-page {
   background: #ffffff;
   color: var(--riv-ink);
   font-family: var(--riv-sans);
   letter-spacing: 0;
}

/* ---------- Headings: modern, tight, no gold flourish ---------- */
.heading-title .title {
   font-family: var(--riv-display);
   font-weight: 600;
   letter-spacing: -0.8px;
   padding-bottom: 20px;
}
.heading-title .title:before {
   width: 56px;
   height: 3px;
   border-radius: 3px;
   background: var(--riv-accent) !important;
}
.heading-title .title:after { display: none !important; }   /* remove ✦ */

/* eyebrows recolored to accent, tighter */
.resort-gallery-preview .heading-title:before,
.resort-reviews .heading-title:before,
.resort-section-heading .heading-title:before,
.resort-visits .heading-title:before {
   color: var(--riv-accent);
   font-family: var(--riv-sans);
   font-weight: 600;
   letter-spacing: 2.5px;
   margin-bottom: 12px;
}

/* ---------- Buttons: solid emerald pills, flat ---------- */
.resort-page .button {
   background: var(--riv-accent) !important;
   border: none !important;
   border-radius: 999px !important;
   color: #fff !important;
   font-family: var(--riv-sans);
   font-weight: 600;
   letter-spacing: 0.2px;
   box-shadow: 0 10px 26px rgba(20, 90, 70, 0.22) !important;
}
.resort-page .button:before { display: none !important; }   /* remove shimmer */
.resort-page .button:hover,
.resort-page .button:focus {
   background: var(--riv-accent-dark) !important;
   transform: translateY(-2px);
   box-shadow: 0 16px 32px rgba(20, 90, 70, 0.3) !important;
}

.resort-text-link {
   border-radius: 999px;
   border: 1.5px solid rgba(255, 255, 255, 0.55);
   font-family: var(--riv-sans);
   font-weight: 600;
   background: rgba(255, 255, 255, 0.06);
}
.resort-text-link:hover,
.resort-text-link:focus {
   border-color: #fff;
   color: #fff;
   background: rgba(255, 255, 255, 0.16);
}

/* ---------- Hero: clean white type, softer overlay ---------- */
/* frame Arwen's house (tall photo — cabin sits ~52% down) */
.resort-hero { background-position: center 52%; }

.resort-hero-overlay {
   background:
      linear-gradient(90deg, rgba(10, 22, 19, 0.72) 0%, rgba(10, 22, 19, 0.35) 45%, rgba(10, 22, 19, 0.08) 100%),
      linear-gradient(0deg, rgba(10, 22, 19, 0.6) 0%, transparent 42%);
}
.resort-hero h1 {
   background: none;
   -webkit-text-fill-color: #ffffff;
   color: #ffffff;
   font-family: var(--riv-display);
   font-weight: 600;
   letter-spacing: -2.5px;
   text-shadow: 0 6px 34px rgba(0, 0, 0, 0.4);
}
.resort-hero p {
   font-family: var(--riv-sans);
   font-style: normal;
   font-weight: 400;
   font-size: 21px;
   color: rgba(255, 255, 255, 0.9);
}
.resort-hero p:before { display: none; }

/* ---------- Header / nav: clean, no star, accent underline ---------- */
.resort-header .mega-menu .menu-links > li > a {
   font-family: var(--riv-sans);
   text-transform: none;
   letter-spacing: 0.2px;
   font-size: 15px;
   font-weight: 500;
}
.resort-header .mega-menu .menu-links > li > a:before {
   background: var(--riv-accent) !important;
   box-shadow: none !important;
   bottom: 4px !important;
}
.resort-header .mega-menu .menu-links > li.active > a:after { display: none !important; }

/* ---------- Section backgrounds: crisp neutrals ---------- */
.resort-gallery-preview { background: #ffffff; }
.resort-reviews { background: #f5f7f6; }
.resort-visits { background: #f5f7f6; }

/* ---------- House cards: flat, rounder ---------- */
.resort-gallery-frame {
   border: none;
   border-radius: 20px;
   box-shadow: 0 12px 34px rgba(20, 40, 36, 0.12);
}
.resort-gallery-frame:hover {
   border: none;
   box-shadow: 0 24px 54px rgba(20, 40, 36, 0.2);
}
.resort-gallery-frame span { font-weight: 600; letter-spacing: -0.3px; }
.resort-gallery-info-button {
   border-radius: 999px;
   border: 1.5px solid rgba(255, 255, 255, 0.8);
   background: rgba(255, 255, 255, 0.12);
   font-family: var(--riv-sans);
   letter-spacing: 0.5px;
}
.resort-gallery-frame:hover .resort-gallery-info-button,
.resort-gallery-frame:focus-within .resort-gallery-info-button {
   background: rgba(255, 255, 255, 0.22);
   border-color: #fff;
}

/* ---------- Reviews: flat cards, emerald accents ---------- */
.resort-review-card {
   border: none;
   border-radius: 20px;
   box-shadow: 0 12px 30px rgba(20, 40, 36, 0.08);
}
.resort-review-card:before { color: rgba(31, 122, 99, 0.12); }
.resort-review-card:after { background: var(--riv-accent); }
.resort-review-author img { border-color: var(--riv-accent); box-shadow: none; }
.resort-review-read-more,
.resort-review-close { color: var(--riv-accent); }
.resort-review-read-more:hover,
.resort-review-close:hover { color: var(--riv-accent-dark); }

/* ---------- Editorial panels: modern numerals + accent rule ---------- */
.riv-panel-num {
   font-family: var(--riv-display);
   font-weight: 700;
   letter-spacing: -6px;
   color: rgba(31, 122, 99, 0.1);
}
.resort-dark-panel .riv-panel-num { color: rgba(255, 255, 255, 0.13); }
.resort-copy-panel h3 { font-family: var(--riv-display); font-weight: 600; letter-spacing: -0.8px; }
.resort-copy-panel h3:before { background: var(--riv-accent); }
.resort-image-panel:after { border-color: rgba(255, 255, 255, 0.6); }
.resort-dark-panel {
   background:
      radial-gradient(600px 400px at 20% 0%, rgba(31, 122, 99, 0.35), transparent 70%),
      #12241f;
}

/* ---------- Visit cards ---------- */
.resort-visit-card { border: none; border-radius: 20px; }
.resort-visit-body strong { letter-spacing: -0.3px; }
.resort-visit-map-link { color: var(--riv-accent-light) !important; }
.resort-visit-map-link:hover { color: #ffffff !important; }

/* ---------- Book CTA + footer ---------- */
.resort-book-section {
   background:
      radial-gradient(800px 340px at 50% 50%, rgba(31, 122, 99, 0.4), transparent 70%),
      linear-gradient(180deg, #12241f, #0d1a17);
}
.resort-book-section:before,
.resort-book-section:after {
   background: linear-gradient(90deg, transparent, var(--riv-accent-light), transparent);
}
.resort-footer {
   background:
      radial-gradient(700px 300px at 50% -40%, rgba(31, 122, 99, 0.28), transparent 70%),
      #0d1a17;
}
.resort-footer:before {
   background: linear-gradient(90deg, transparent, var(--riv-accent), transparent);
}
.resort-footer strong { font-family: var(--riv-display); font-weight: 600; }
.resort-social-links a { border-color: rgba(255, 255, 255, 0.22); }
.resort-social-links a:hover { border-color: var(--riv-accent-light); color: var(--riv-accent-light); }
.resort-footer a:hover, .resort-footer a:focus { color: var(--riv-accent-light); }

/* ---------- Misc accents ---------- */
.riv-progress {
   background: var(--riv-accent);
   box-shadow: 0 0 12px rgba(31, 122, 99, 0.5);
}
.resort-visit-map-link, .resort-review-read-more { font-family: var(--riv-sans); }
a:focus, a:hover { color: var(--riv-accent); }

/* intro: neutral modern text */
.riv-intro-tagline { color: #ffffff; letter-spacing: 5px; font-family: var(--riv-sans); }
.riv-intro-sub { color: rgba(255, 255, 255, 0.6); font-family: var(--riv-sans); font-style: normal; }

/* Fix: keep house-card buttons centered on hover (the generic
   .button:hover lift was dropping their translateX(-50%) centering) */
.resort-gallery-frame:hover .resort-gallery-info-button,
.resort-gallery-frame:hover .resort-gallery-book,
.resort-gallery-frame:focus-within .resort-gallery-info-button,
.resort-gallery-frame:focus-within .resort-gallery-book,
.resort-page .resort-gallery-info-button:hover,
.resort-page .resort-gallery-book:hover {
   transform: translate(-50%, -3px) !important;
}
