/* Cottages at the Frontier: full-width hero slider and the Cottage Tour.
   Used by index_temp.html (November 2026 preview). Script: assets/js/home-tour.js */

:root {
  --cf-green: #326632;
  --cf-green-dark: #275317;
  --cf-ink: #213a1b;
  --cf-cream: #f6f3ea;
  --cf-glass: rgba(255, 255, 255, .84);
  --cf-stack: 230px; /* top bar + header + title bar; set by the script */
}

/* Keep the page from jumping when the header turns fixed: the space it leaves
   matches its full height, so the scroll position never moves under it. */
.scrolled-offset { margin-top: var(--cf-header-h, 120px) !important; }
/* Shrink with a transition when it docks, but come back in one step, so the page
   above the scroll position never changes height (no scroll-anchoring bounce). */
#header:not(.fixed-top) { transition: none; }

/* ------------------------------------------------------------------ Hero */

#hero.hero-full {
  max-width: none;
  width: 100%;
  height: min(calc(100svh - var(--cf-stack)), 100vw, 1100px);
  background: #dfe6d8;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}
@media (max-height: 500px) { #hero.hero-full { height: min(100vw, 520px); } }

/* One photo at a time on screen, with no big GPU layers: the soft edge of a change is a narrow masked
   strip (.hs-feather), not a mask over a whole wider-than-the-window slide (that went blank in Brave). */
.hs-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  visibility: hidden;
  z-index: 1;
}
.hs-slide.is-active { visibility: visible; z-index: 2; }
.hs-slide.is-entering, .hs-slide.is-fade { visibility: visible; z-index: 3; }
.hs-photo { position: absolute; inset: 0; overflow: hidden; }
.hs-feather {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent);
  mask-image: linear-gradient(90deg, #000, transparent);
}
.hs-feather.rev { -webkit-mask-image: linear-gradient(270deg, #000, transparent); mask-image: linear-gradient(270deg, #000, transparent); }
.hs-feather .hs-photo { right: auto; }
.hs-feather:empty { display: none; }
.hs-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transform-origin: 50% 70%;
  -webkit-user-drag: none;
  user-select: none;
}

.hs-controls {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; align-items: center; gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 6px 24px rgba(20, 40, 15, .22);
}
.hs-btn {
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--cf-green-dark);
  display: grid; place-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s;
}
.hs-btn:hover { background: rgba(50, 102, 50, .12); }
.hs-btn svg { width: 22px; height: 22px; }
.hs-dots { display: flex; gap: 2px; padding: 0 4px; }
.hs-dot {
  width: 24px; height: 24px;
  border: 0; padding: 0; background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.hs-dot::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(39, 83, 23, .35);
  transition: background .3s, transform .3s;
}
.hs-dot[aria-current="true"]::before { background: var(--cf-green-dark); transform: scale(1.35); }
.hs-btn:focus-visible, .hs-dot:focus-visible { outline: 3px solid #1d5bd6; outline-offset: 1px; }

@media (max-width: 767px) {
  .hs-controls { bottom: 12px; padding: 3px; gap: 0; }
  .hs-btn { width: 36px; height: 36px; }
  .hs-btn.hs-prev, .hs-btn.hs-next { display: none; }
  .hs-dot { width: 22px; }
}

/* ------------------------------------------------------------- The tour */

.ct-section {
  background: linear-gradient(180deg, #fff 0%, var(--cf-cream) 14%, var(--cf-cream) 86%, #fff 100%);
  padding: 0 0 76px;
  color: var(--cf-ink);
  font-family: 'DM Sans', sans-serif;
  text-wrap: pretty;
}
.ct-head { max-width: 1040px; margin: 0 auto 26px; padding: 0 20px; text-align: center; }
.ct-head h2 {
  font-family: 'ImpRoman', serif;
  font-weight: 400;
  color: var(--cf-green);
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 14px;
}
.ct-head p { font-size: 20px; line-height: 1.6; margin: 0; }

.ct-frame { position: relative; }
.ct-shell {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.ct-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - 230px);
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  background: #d9ded3;
  box-shadow: 0 22px 60px -18px rgba(25, 45, 18, .45), 0 2px 6px rgba(25, 45, 18, .15);
  perspective: 1400px;
  touch-action: pan-y;
  isolation: isolate;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ct-stage:focus-visible { box-shadow: 0 0 0 4px #1d5bd6, 0 22px 60px -18px rgba(25, 45, 18, .45); }

.ct-view {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.ct-scene {
  position: absolute; inset: 0;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.ct-scene-inner {
  position: absolute;
  /* left, top, width, height set by the script so the photo covers the stage */
}
.ct-scene-inner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.ct-scene.is-drifting .ct-scene-inner { animation: ct-drift 16s cubic-bezier(.25, .1, .25, 1) forwards; }
@keyframes ct-drift { from { transform: scale(1); } to { transform: scale(1.045); } }

/* Hotspots */
.ct-spot {
  position: absolute;
  z-index: 2;
  border: 0; padding: 0; margin: 0;
  background: none;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  color: var(--cf-green-dark);
  font: inherit;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .35s;
}
.ct-hide-spots .ct-spot { opacity: 0; pointer-events: none; }
.ct-spot-core {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  border: 2px solid #fff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .3), inset 0 0 0 3px rgba(50, 102, 50, .16);
  display: grid; place-items: center;
  transition: transform .25s cubic-bezier(.3, .7, .4, 1.4), background .2s;
}
.ct-spot-core svg { width: 26px; height: 26px; }
.ct-spot::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .9);
  animation: ct-pulse 2.4s cubic-bezier(.2, .6, .35, 1) infinite;
  pointer-events: none;
}
@keyframes ct-pulse {
  0% { transform: scale(1); opacity: .9; }
  70%, 100% { transform: scale(1.85); opacity: 0; }
}
.ct-spot-label {
  position: absolute;
  top: 50%; left: calc(100% + 10px);
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--cf-green-dark);
  color: #fff;
  font-size: 17px; font-weight: 600; line-height: 22px;
  padding: 8px 15px 8px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: background .2s, transform .25s;
}
.ct-spot.is-left .ct-spot-label { left: auto; right: calc(100% + 10px); }
.ct-spot:hover .ct-spot-core, .ct-spot:focus-visible .ct-spot-core { transform: scale(1.1); background: #fff; }
.ct-spot:hover .ct-spot-label, .ct-spot:focus-visible .ct-spot-label { background: #1b3d10; }
.ct-spot:focus-visible { outline: none; }
.ct-spot:focus-visible .ct-spot-core { box-shadow: 0 0 0 4px #1d5bd6, 0 6px 22px rgba(0, 0, 0, .3); }
.ct-spot.is-next::before { border-color: #fff; }

/* Caption card */
.ct-caption {
  position: absolute;
  left: 22px; bottom: 22px;
  z-index: 4;
  width: min(470px, calc(100% - 44px));
  padding: 18px 22px 20px;
  border-radius: 16px;
  background: var(--cf-glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 34px rgba(20, 40, 15, .25);
  transition: opacity .35s, transform .35s;
}
.ct-caption.is-changing { opacity: 0; transform: translateY(6px); }
.ct-step { font-size: 16px; line-height: 1.3; color: #3f5c36; margin: 0 0 4px; font-weight: 500; }
.ct-title {
  font-family: 'ImpRoman', serif;
  font-weight: 400;
  color: var(--cf-green);
  font-size: 31px; line-height: 1.15;
  margin: 0 0 6px;
}
.ct-text { font-size: 18px; line-height: 1.5; margin: 0; color: var(--cf-ink); }
.ct-apply {
  display: inline-block;
  margin-top: 14px;
  padding: 11px 22px 11px;
  border-radius: 999px;
  background: var(--cf-green-dark);
  color: #fff !important;
  font-weight: 600; font-size: 18px; line-height: 22px;
  text-decoration: none;
  user-select: none;
  box-shadow: 0 4px 0 #173409;
  transition: transform .15s, box-shadow .15s;
}
.ct-apply:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #173409; }
.ct-apply:active { transform: translateY(3px); box-shadow: 0 1px 0 #173409; }

/* Mini map: floor plan inside, site map outside */
.ct-map {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 4;
  width: 250px;
  padding: 8px 8px 7px;
  border-radius: 14px;
  background: var(--cf-glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(20, 40, 15, .25);
  transition: opacity .4s;
}
.ct-map-pic { position: relative; border-radius: 8px; overflow: hidden; }
.ct-map-pic img { display: block; width: 100%; height: auto; transition: opacity .45s; }
.ct-map-pic img.is-off { position: absolute; inset: 0; opacity: 0; }
.ct-map-label { font-size: 15px; line-height: 1.2; font-weight: 600; color: var(--cf-green-dark); margin: 6px 4px 0; display: flex; justify-content: space-between; gap: 8px; }
.ct-map-label span:last-child { font-weight: 500; color: #3f5c36; }
.ct-you {
  position: absolute;
  width: 0; height: 0;
  transition: left .9s cubic-bezier(.65, 0, .35, 1), top .9s cubic-bezier(.65, 0, .35, 1), opacity .4s;
}
.ct-you-cone {
  position: absolute;
  left: -34px; top: -34px;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: conic-gradient(from -32deg, rgba(29, 91, 214, .55) 0deg 64deg, transparent 64deg);
  -webkit-mask-image: radial-gradient(circle, #000 20%, rgba(0, 0, 0, .25) 70%, transparent 71%);
  mask-image: radial-gradient(circle, #000 20%, rgba(0, 0, 0, .25) 70%, transparent 71%);
  transition: transform .9s cubic-bezier(.65, 0, .35, 1), opacity .4s;
}
.ct-you-dot {
  position: absolute;
  left: -7px; top: -7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #1d5bd6;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.ct-you.no-cone .ct-you-cone { opacity: 0; }
.ct-you.is-aerial .ct-you-dot { display: none; }
.ct-map-pic .ct-aerial {
  position: absolute; inset: 0;
  border: 3px dashed rgba(29, 91, 214, .8);
  border-radius: 8px;
  opacity: 0;
  transition: opacity .4s;
}
.ct-map-pic.is-aerial .ct-aerial { opacity: 1; }

/* Buttons on the stage */
.ct-tools {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 4;
  display: flex; gap: 8px;
}
.ct-tool, .ct-arrow {
  border: 0;
  background: var(--cf-glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  color: var(--cf-green-dark);
  box-shadow: 0 6px 20px rgba(20, 40, 15, .25);
  cursor: pointer;
  font: inherit;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, transform .2s, opacity .3s;
}
.ct-tool {
  height: 44px;
  border-radius: 999px;
  padding: 0 18px 0 14px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 600; line-height: 1;
}
.ct-tool.is-icon { width: 44px; padding: 0; justify-content: center; }
.ct-tool svg { width: 20px; height: 20px; flex: none; }
.ct-tool:hover, .ct-arrow:hover { background: #fff; }
.ct-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  transform: translateY(-50%);
}
.ct-arrow svg { width: 26px; height: 26px; }
.ct-arrow.is-prev { left: 18px; }
.ct-arrow.is-next { right: 18px; }
.ct-arrow:hover { transform: translateY(-50%) scale(1.06); }
.ct-arrow[disabled] { opacity: 0; pointer-events: none; }
.ct-tool:focus-visible, .ct-arrow:focus-visible, .ct-dot:focus-visible, .ct-start-btn:focus-visible, .ct-apply:focus-visible { outline: 3px solid #1d5bd6; outline-offset: 2px; }

.ct-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  z-index: 5;
  background: rgba(255, 255, 255, .25);
  opacity: 0;
  transition: opacity .3s;
}
.ct-progress span { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.ct-playing .ct-progress { opacity: 1; }

/* Start card */
.ct-start {
  position: absolute; inset: 0;
  z-index: 6;
  display: grid; place-items: center;
  transition: opacity .5s, visibility .5s;
}
.ct-start-card {
  text-align: center;
  padding: 28px 34px 30px;
  border-radius: 20px;
  background: var(--cf-glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 18px 50px rgba(20, 40, 15, .35);
  max-width: calc(100% - 40px);
}
.ct-start-card h3 {
  font-family: 'ImpRoman', serif; font-weight: 400;
  color: var(--cf-green); font-size: 36px; line-height: 1.1; margin: 0 0 8px;
}
.ct-start-card p { font-size: 19px; line-height: 1.5; margin: 0 0 20px; }
.ct-start-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ct-start-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px;
  padding: 0 26px 0 20px;
  border-radius: 999px;
  border: 0;
  font: inherit; font-size: 19px; font-weight: 600; line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.ct-start-btn svg { width: 22px; height: 22px; }
.ct-start-btn.is-primary { background: var(--cf-green-dark); color: #fff; box-shadow: 0 4px 0 #173409; }
.ct-start-btn.is-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #173409; }
.ct-start-btn.is-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #173409; }
.ct-start-btn.is-plain { background: #fff; color: var(--cf-green-dark); box-shadow: 0 0 0 2px var(--cf-green-dark) inset, 0 4px 0 #173409; }
.ct-start-btn.is-plain:hover { transform: translateY(-1px); }
.ct-started .ct-start { opacity: 0; visibility: hidden; pointer-events: none; }
.ct-frame:not(.ct-started) .ct-caption,
.ct-frame:not(.ct-started) .ct-map,
.ct-frame:not(.ct-started) .ct-tools,
.ct-frame:not(.ct-started) .ct-arrow,
.ct-frame:not(.ct-started) .ct-spot { opacity: 0; pointer-events: none; }

/* Loading */
.ct-loading {
  position: absolute; left: 50%; top: 50%;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  z-index: 5;
  opacity: 0;
  animation: ct-spin .9s linear infinite;
  transition: opacity .2s;
  pointer-events: none;
}
.ct-is-loading .ct-loading { opacity: 1; }
@keyframes ct-spin { to { transform: rotate(360deg); } }

/* Route: one dot per stop */
.ct-route {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 34px;
  margin: 22px auto 0;
  padding: 0 8px;
  flex-wrap: wrap;
}
.ct-leg { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ct-leg-name { font-size: 17px; font-weight: 600; color: var(--cf-green-dark); line-height: 1.2; }
.ct-dots { display: flex; align-items: center; position: relative; }
.ct-dots::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 50%;
  height: 2px; margin-top: -1px;
  background: rgba(39, 83, 23, .25);
}
.ct-dot {
  position: relative;
  width: 30px; height: 30px;
  border: 0; padding: 0; background: none;
  display: grid; place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.ct-dot::before {
  content: "";
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(39, 83, 23, .55);
  transition: transform .3s, background .3s, box-shadow .3s;
}
.ct-dot.is-seen::before { background: #b9cfae; }
.ct-dot[aria-current="step"]::before { background: var(--cf-green-dark); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--cf-green-dark); transform: scale(1.15); }
.ct-dot:hover::before { transform: scale(1.3); }
.ct-peek {
  position: absolute;
  bottom: calc(100% + 10px); left: 50%;
  width: 190px;
  transform: translate(-50%, 6px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(20, 40, 15, .3);
  padding: 6px 6px 8px;
  opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  pointer-events: none;
  z-index: 10;
}
.ct-peek img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.ct-peek span { display: block; font-size: 15.5px; font-weight: 600; color: var(--cf-ink); line-height: 1.25; margin-top: 6px; text-align: center; }
.ct-dot:hover .ct-peek, .ct-dot:focus-visible .ct-peek { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Full screen */
.ct-shell:fullscreen { max-width: none; padding: 0; background: #141c11; display: flex; flex-direction: column; justify-content: center; }
.ct-shell:fullscreen .ct-frame, .ct-shell.is-expanded .ct-frame { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ct-shell:fullscreen .ct-stage { flex: 1; aspect-ratio: auto; max-height: none; min-height: 0; border-radius: 0; }
.ct-shell:fullscreen .ct-route { padding: 14px 8px 16px; margin: 0; }
.ct-shell:fullscreen .ct-leg-name { color: #fff; }
.ct-shell:fullscreen .ct-dots::before { background: rgba(255, 255, 255, .3); }
.ct-shell.is-expanded {
  position: fixed; inset: 0; z-index: 100000;
  max-width: none; padding: 0;
  background: #141c11;
  display: flex; flex-direction: column;
}
.ct-shell.is-expanded .ct-stage { flex: 1; aspect-ratio: auto; max-height: none; min-height: 0; border-radius: 0; }
.ct-shell.is-expanded .ct-route { padding: 12px 8px calc(12px + env(safe-area-inset-bottom)); margin: 0; }
.ct-shell.is-expanded .ct-leg-name { color: #fff; }
.ct-expanded-lock { overflow: hidden; }

.ct-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tablets */
@media (max-width: 1100px) {
  .ct-map { width: 200px; }
  .ct-title { font-size: 28px; }
  .ct-caption { width: min(420px, calc(100% - 44px)); }
}

/* Phones: the caption moves under the photo */
@media (max-width: 767px) {
  .ct-section { padding: 0 0 52px; }
  .ct-head h2 { font-size: 32px; }
  .ct-head p { font-size: 19px; }
  .ct-shell { padding: 0 12px; }
  .ct-stage { aspect-ratio: 1 / 1; min-height: 0; max-height: calc(100svh - 150px); border-radius: 16px 16px 0 0; }
  .ct-caption {
    position: relative;
    left: auto; bottom: auto;
    width: auto;
    border-radius: 0 0 16px 16px;
    background: #fff;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: 0 16px 40px -16px rgba(25, 45, 18, .4);
    padding: 16px 18px 18px;
  }
  .ct-frame:not(.ct-started) .ct-caption { opacity: 1; pointer-events: auto; }
  .ct-shell.is-expanded .ct-caption { border-radius: 0; box-shadow: none; }
  .ct-title { font-size: 26px; }
  .ct-text { font-size: 18px; }
  .ct-map { width: 128px; top: 10px; right: 10px; padding: 5px 5px 4px; border-radius: 10px; }
  .ct-map-label { font-size: 13px; margin-top: 3px; }
  .ct-map-label span:last-child { display: none; }
  .ct-you-cone { left: -22px; top: -22px; width: 44px; height: 44px; }
  .ct-you-dot { left: -5px; top: -5px; width: 10px; height: 10px; border-width: 2px; }
  .ct-tools { top: 10px; left: 10px; gap: 6px; }
  .ct-tool { height: 40px; font-size: 16px; padding: 0 14px 0 11px; }
  .ct-tool.is-icon { width: 40px; }
  .ct-tool .ct-tool-word { display: none; }
  .ct-tool.is-play { width: 40px; padding: 0; justify-content: center; }
  .ct-arrow { width: 44px; height: 44px; }
  .ct-arrow, .ct-arrow:hover { top: auto; bottom: 10px; transform: none; }
  .ct-arrow.is-prev { left: 10px; } .ct-arrow.is-next { right: 10px; }
  .ct-arrow svg { width: 22px; height: 22px; }
  .ct-spot { width: 46px; height: 46px; }
  .ct-spot-core svg { width: 22px; height: 22px; }
  .ct-spot-label { font-size: 16px; line-height: 20px; padding: 7px 12px; }
  .ct-start-card { padding: 20px 18px 22px; }
  .ct-start-card h3 { font-size: 28px; }
  .ct-start-card p { font-size: 18px; margin-bottom: 16px; }
  .ct-start-btn { height: 48px; font-size: 18px; padding: 0 20px 0 16px; }
  .ct-route { gap: 10px 20px; margin-top: 18px; }
  .ct-leg-name { font-size: 16px; }
  .ct-dot { width: 22px; height: 28px; }
  .ct-dot::before { width: 11px; height: 11px; }
  .ct-peek { display: none; }
  .ct-shell.is-expanded .ct-stage { aspect-ratio: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-scene.is-drifting .ct-scene-inner { animation: none; }
  .ct-spot::before { animation: none; opacity: 0; }
  .ct-you, .ct-you-cone { transition: none; }
}

.ct-scene.is-arriving .ct-spot,
.ct-scene.is-leaving .ct-spot { opacity: 0; pointer-events: none; }

/* --------------------------------------------------------- Photo Gallery
   A row that scrolls sideways (trackpad, swipe, drag or the arrows); a photo opens the lightbox. */
.cg { --cg-h: clamp(230px, 20vw, 340px); margin-top: 46px; }
.cg-head { margin-bottom: 26px; }
.cg-wrap { position: relative; max-width: 1600px; margin: 0 auto; padding: 0 24px; }
.cg-row {
  display: flex; gap: 14px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
  overscroll-behavior-x: contain;
  /* room for the photos' shadows (they reach 24px down and 14px sideways);
     the negative margins keep the photos where they were */
  padding: 6px 16px 34px;
  margin: 0 -12px -18px;
  scrollbar-width: none;
  cursor: grab;
  outline: none;
  -webkit-user-select: none; user-select: none;
}
.cg-row::-webkit-scrollbar { display: none; }
.cg-row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.cg-row.is-dragging .cg-item { pointer-events: none; }
.cg-row:focus-visible { box-shadow: 0 0 0 3px #1d5bd6; border-radius: 16px; }
.cg-item {
  flex: none;
  height: var(--cg-h);
  padding: 0; border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #dfe4d8;
  box-shadow: 0 10px 26px -12px rgba(25, 45, 18, .45);
  scroll-snap-align: start;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
}
.cg-item img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  -webkit-user-drag: none;
  transition: transform .5s cubic-bezier(.2, .6, .3, 1);
}
.cg-item:hover img { transform: scale(1.04); }
.cg-item:focus-visible { outline: 3px solid #1d5bd6; outline-offset: 2px; }
.cg-arrow {
  position: absolute; top: calc(6px + var(--cg-h) / 2); z-index: 2;
  width: 54px; height: 54px; margin-top: -27px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--cf-glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  color: var(--cf-green-dark);
  box-shadow: 0 6px 20px rgba(20, 40, 15, .28);
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .25s, transform .2s, background .2s;
}
.cg-arrow svg { width: 26px; height: 26px; }
.cg-arrow:hover { background: #fff; transform: scale(1.06); }
.cg-arrow:focus-visible { outline: 3px solid #1d5bd6; outline-offset: 2px; }
.cg-arrow.is-prev { left: 8px; }
.cg-arrow.is-next { right: 8px; }
.cg-arrow[disabled] { opacity: 0; pointer-events: none; }
.cg-bar {
  width: min(420px, 60%); height: 4px;
  margin: 10px auto 0;
  border-radius: 4px;
  background: rgba(39, 83, 23, .15);
  overflow: hidden;
}
.cg-bar span { display: block; height: 100%; width: 20%; border-radius: 4px; background: var(--cf-green-dark); transform-origin: 0 50%; }
@media (max-width: 767px) {
  .cg { --cg-h: 230px; }
  .cg-wrap { padding: 0 12px; }
  .cg-row { gap: 10px; }
  .cg-arrow { width: 42px; height: 42px; margin-top: -21px; }
  .cg-arrow svg { width: 22px; height: 22px; }
  .cg-arrow.is-prev { left: 4px; } .cg-arrow.is-next { right: 4px; }
}

/* The lightbox: light frosted glass (as on mdcamping.com and hiddenvalleyarchbold.com) */
html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(246, 243, 234, .96);
  color: var(--cf-ink);
  font-family: 'DM Sans', sans-serif;
  overscroll-behavior: contain;
  -webkit-user-select: none; user-select: none;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lightbox { background: rgba(246, 243, 234, .8); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
}
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; grid-template-columns: minmax(0, 1fr); }
.lightbox > * { min-width: 0; }
.lightbox::backdrop { background: transparent; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: clamp(60px, 6vw, 80px) clamp(12px, 7vw, 110px) 12px; }
.lb-img {
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 18px 48px rgba(25, 45, 18, .32);
  -webkit-user-drag: none;
  transition: opacity .2s;
}
.lb-img.is-loading { opacity: .35; }
.lb-bar { display: block; }
.lb-caption {
  margin: 0; padding: 4px 20px 10px;
  text-align: center;
  font-size: 19px; line-height: 1.4; font-weight: 500;
  color: var(--cf-green-dark);
  -webkit-user-select: text; user-select: text;
}
.lb-count { font-weight: 400; color: #3f5c36; }
.lb-thumbs { display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 4px 16px 18px; scrollbar-width: thin; }
.lb-thumb { flex: none; width: 78px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; opacity: .6; cursor: pointer; transition: opacity .2s; -webkit-tap-highlight-color: transparent; }
.lb-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.lb-thumb:hover { opacity: .9; }
.lb-thumb[aria-current] { opacity: 1; border-color: var(--cf-green-dark); }
.lb-btn {
  position: absolute;
  display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--cf-green-dark); color: #fff;
  box-shadow: 0 4px 0 #173409;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .14s ease, box-shadow .14s ease, background-color .15s;
}
.lb-btn svg { width: 26px; height: 26px; }
.lb-btn:hover { background: #2f651c; transform: translateY(-2px); box-shadow: 0 6px 0 #173409; }
.lb-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #173409; }
.lb-btn:focus-visible, .lb-thumb:focus-visible { outline: 3px solid #1d5bd6; outline-offset: 2px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev, .lb-next { top: 50%; margin-top: -60px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
/* Phones: the arrows sit beside the caption, never over the photo */
@media (max-width: 767px) {
  .lb-stage { padding: 64px 10px 10px; }
  .lb-bar { display: flex; align-items: center; gap: 10px; padding: 0 12px 6px; }
  .lb-bar .lb-btn { position: static; flex: none; width: 46px; height: 46px; margin: 0; }
  .lb-caption { flex: 1; padding: 0; font-size: 17px; }
  .lb-close { top: 10px; right: 10px; width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .cg-item img, .lb-img, .lb-btn { transition: none; }
  .cg-item:hover img { transform: none; }
}
