/* /wedding-venue/ — Wildmere Hall. Ivory, deep green and antique gold; an elegant display serif.
   This file loads before demo.css, so rules that must beat `.dm-page h2` etc. start with `.wv-page`. */
@font-face { font-family: "Gilda Display"; src: url(/assets/fonts/gilda-display.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url(/assets/fonts/libre-franklin-normal-300-700.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url(/assets/fonts/spline-sans-mono-normal-400-600.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }

.wv-page {
  --f-display: "Gilda Display", Georgia, serif; --f-body: "Libre Franklin", system-ui, sans-serif; --f-mono: "Spline Sans Mono", ui-monospace, monospace; --h-weight: 400;
  --pg-bg: #f7f3ea; --pg-ink: #1f2a22; --green: #2f4a3a; --gold: #b08d4f; --muted: #66706a; --line: rgba(31, 42, 34, .12);
  --bar-bg: #1f2a22; --bar-fg: #f7f3ea; --tag: #d9bd84; --btn-bg: #b08d4f; --btn-fg: #fff; --order-bg: #1f2a22;
}
.wv-page h1, .wv-page h2, .wv-page h3 { letter-spacing: -.01em; }
.wv-page h2 em { font-style: normal; color: var(--gold); }
.wv-page .dm-bar__name { font: 400 1.35rem var(--f-display); }
.wv-page .dm-eyebrow { color: var(--gold); letter-spacing: .18em; }

/* ---------- the tour ---------- */
.wv-stage { position: relative; height: calc(100svh - 74px - var(--bar-h)); min-height: 440px; overflow: hidden; background: #1a1f1b; cursor: grab; touch-action: pan-y; outline: none; user-select: none; -webkit-user-select: none; }
.wv-stage.is-drag { cursor: grabbing; }
.wv-stage.is-full { position: fixed; inset: 0; z-index: 200; height: 100vh; }
.wv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wv-stage.is-nogl .wv-canvas { display: none; }

.wv-spots { position: absolute; inset: 0; pointer-events: none; }
.wv-spot { position: absolute; left: 0; top: 0; pointer-events: auto; border: 0; padding: 0; background: none; cursor: pointer; will-change: transform; }
.wv-spot--go { display: grid; justify-items: center; gap: 6px; translate: -50% -50%; }
.wv-spot__arrow { width: 54px; height: 54px; border-radius: 50%; background: rgba(247, 243, 234, .22); border: 2px solid rgba(255, 255, 255, .9); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35); position: relative; transition: transform .25s, background .25s; }
.wv-spot__arrow::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-top: 3px solid #fff; border-left: 3px solid #fff; transform: translateY(3px) rotate(45deg); }
.wv-spot__label { padding: .3rem .7rem; border-radius: 999px; background: rgba(20, 26, 22, .78); color: #fff; font: 500 .82rem var(--f-body); white-space: nowrap; }
.wv-spot--go:hover .wv-spot__arrow, .wv-spot--go:focus-visible .wv-spot__arrow { transform: scale(1.12); background: rgba(176, 141, 79, .55); }
.wv-spot--info { width: 34px; height: 34px; translate: -50% -50%; border-radius: 50%; background: #f7f3ea; color: var(--green); font: 400 1.4rem/34px var(--f-body);
  box-shadow: 0 0 0 4px rgba(247, 243, 234, .35), 0 4px 14px rgba(0, 0, 0, .35); transition: scale .2s, background .2s; }   /* never transition transform: it's set every frame */
.wv-spot--info::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(247, 243, 234, .7); animation: wv-ping 2.4s ease-out infinite; }
@keyframes wv-ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
.wv-spot--info:hover, .wv-spot--info.is-open { scale: 1.15; background: var(--gold); color: #fff; }
.wv-spot:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 999px; }

.wv-fade { position: absolute; inset: 0; pointer-events: none; }
.wv-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; }
.wv-where { margin: 0; padding: .55rem .9rem; border-radius: 14px; background: rgba(20, 26, 22, .72); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: auto; }
.wv-where__k { display: block; font: 500 .62rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tag); }
.wv-where__n { font: 400 1.35rem var(--f-display); }
.wv-where__s { display: block; font-size: .8rem; opacity: .75; }
.wv-tools { display: flex; gap: 6px; pointer-events: auto; }
.wv-btn { min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 0; background: rgba(247, 243, 234, .92); color: var(--pg-ink); font: 600 .85rem var(--f-body); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.wv-btn--icon { width: 40px; padding: 0; font-size: 1.1rem; }
.wv-btn.is-on { background: var(--gold); color: #fff; }
.wv-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* the floor plan */
.wv-plan { position: absolute; left: 14px; bottom: 14px; width: min(270px, 42vw); margin: 0; padding: 10px 10px 6px; border-radius: 16px; background: rgba(247, 243, 234, .9);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.wv-plan svg { display: block; width: 100%; height: auto; }
.wv-plan__room rect { fill: #fff; stroke: #9aa39c; stroke-width: 1.2; transition: fill .3s; }
.wv-plan__room.is-lawn rect { fill: #e2ecd9; }
.wv-plan__room text { font: 600 8.5px var(--f-body); fill: #3d4a41; text-anchor: middle; pointer-events: none; }
.wv-plan__room { cursor: pointer; outline: none; }
.wv-plan__room:hover rect, .wv-plan__room:focus-visible rect { fill: #f3e7cf; }
.wv-plan__room.is-here rect { fill: #e9d6ad; stroke: var(--gold); stroke-width: 2; }
.wv-plan__cone { fill: rgba(176, 141, 79, .35); stroke: var(--gold); stroke-width: 1; pointer-events: none; }
.wv-plan__me { fill: var(--green); stroke: #fff; stroke-width: 1.5; pointer-events: none; }
.wv-plan figcaption { margin-top: 2px; font: 500 .62rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }

.wv-hint { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; margin: 0; padding: .55rem 1rem; border-radius: 999px; background: rgba(20, 26, 22, .78); color: #fff; font-size: .86rem;
  white-space: nowrap; pointer-events: none; transition: opacity .6s; }
.wv-hint b { color: var(--tag); font-weight: 600; }
.wv-hint.is-gone { opacity: 0; }
.wv-load { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; padding: .6rem 1rem; border-radius: 999px; background: rgba(20, 26, 22, .8); color: #fff; font-size: .9rem; pointer-events: none; transition: opacity .3s; }
.wv-stage.is-ready .wv-load:not(.is-on) { opacity: 0; }

.wv-card { position: absolute; right: 14px; bottom: 14px; width: min(320px, calc(100% - 28px)); padding: 18px 20px; border-radius: 18px; background: #f7f3ea; color: var(--pg-ink); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.wv-page .wv-card__t { margin: 0 2rem .4rem 0; font: 400 1.45rem/1.15 var(--f-display); }
.wv-card__d { margin: 0 0 .9rem; color: var(--muted); font-size: .95rem; }
.wv-card__cta { font-weight: 600; color: var(--green); }
.wv-card__x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(31, 42, 34, .08); color: inherit; font-size: 1.2rem; cursor: pointer; }

.wv-menu { position: absolute; top: 70px; right: 14px; bottom: 14px; width: min(320px, calc(100% - 28px)); overflow: auto; padding: 10px; border-radius: 18px; background: rgba(247, 243, 234, .96); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.wv-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wv-menu button { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; width: 100%; padding: 6px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.wv-menu button:hover, .wv-menu button:focus-visible { background: rgba(176, 141, 79, .15); outline: none; }
.wv-menu img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; }
.wv-menu b { display: block; font: 400 1.05rem var(--f-display); }
.wv-menu small { color: var(--muted); font-size: .78rem; }
.wv-page [hidden] { display: none !important; }

/* ---------- below the tour ---------- */
.wv-page .wv-rooms h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 1rem; }
.wv-lead { max-width: 46rem; margin: 0 0 2.4rem; color: var(--muted); font-size: 1.1rem; }
.wv-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.wv-room { display: grid; gap: .25rem; text-decoration: none; color: inherit; }
.wv-room img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin-bottom: .5rem; transition: transform .4s; }
.wv-room:hover img { transform: scale(1.02); }
.wv-page .wv-room h3 { font-size: 1.45rem; }
.wv-room p { margin: 0; color: var(--muted); font-size: .92rem; }
.wv-room span { margin-top: .2rem; font-weight: 600; font-size: .88rem; color: var(--green); }
.wv-book { padding-top: 0; }
.wv-page .dm-order h3 { font: 400 1.9rem var(--f-display); }

@media (max-width: 700px) {
  .wv-stage { height: 78svh; }
  .wv-plan { width: 150px; padding: 6px 6px 2px; }
  .wv-plan figcaption { display: none; }
  .wv-where__n { font-size: 1.1rem; }
  .wv-where__s { display: none; }
  .wv-hint { bottom: auto; top: 88px; white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 28px); font-size: .8rem; }
  .wv-spot__arrow { width: 46px; height: 46px; }
  .wv-card { left: 14px; right: 14px; width: auto; bottom: 14px; }
  .wv-tools .wv-btn:not(.wv-btn--icon) { padding: 0 .8rem; }
}
@media (prefers-reduced-motion: reduce) { .wv-spot--info::before { animation: none; } }
