/* ============================================================
   Bilboat — assets/css/features.css
   ------------------------------------------------------------
   Styles for the newer feature sections only (hero map upgrade,
   #by-the-numbers, #verify-hub, #beach-live, stores finder,
   drive-time grid, tax estimator, video filmstrip).
   Base design system + guide-page styles stay in styles.css.
   Loaded by index.html only — guide pages don't need this file.
   ============================================================ */

/* ============================================================
   1) HERO MAP — cinematic draw-on + interactive pins + live chips
   ============================================================ */
figure.hero-map { margin: 0; cursor: pointer; }
.hm-stage { position: relative; }
.hm-svg { display: block; }

/* pins read as buttons */
.hm-pin, .hm-office { cursor: pointer; outline: none; }
.hm-pin:hover circle:last-child,
.hm-pin:focus-visible circle:last-child { r: 8.5; }
.hm-pin:focus-visible circle:last-child,
.hm-office:focus-visible > path { stroke: #F4B740; stroke-width: 3; }

/* header live chips */
.hm-live { margin-left: auto; display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.hm-live[hidden] { display: none; }
.hm-live + .hm-tag { margin-left: .6rem; }
.hm-head.has-live .hm-tag { display: none; } /* chips replace the italic tag once data lands */
.hm-live-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: #EAF1F8;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: .28rem .66rem; white-space: nowrap;
}
.hm-live-chip .ui-icon { color: #E4B58C; }
.hm-live-chip .ui-icon svg { width: 13px; height: 13px; stroke-width: 2; }
.hm-live-chip.hm-live-skeleton {
  color: transparent; min-width: 74px;
  background: linear-gradient(100deg, rgba(255,255,255,.08) 40%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.08) 60%);
  background-size: 200% 100%;
  animation: hmChipShimmer 1.4s linear infinite;
}
@keyframes hmChipShimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .hm-live-chip.hm-live-skeleton { animation: none; background: rgba(255,255,255,.1); }
}

/* ----- draw-on intro -----
   Hidden initial states apply ONLY under .hm-anim (features.js adds it when
   prefers-reduced-motion is NOT set). No JS / reduced motion = fully drawn map. */
.hm-anim .hm-d { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hm-anim .hm-f { opacity: 0; }
.hm-anim .hm-r { opacity: 0; transform: translateY(5px); }
.hm-anim .hm-pop { opacity: 0; transform: scale(.4); transform-origin: center; transform-box: fill-box; }
.hm-anim .hm-traveler { opacity: 0; }

.hm-anim.hm-drawn .hm-d { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease); }
.hm-anim.hm-drawn .hm-f { opacity: 1; transition: opacity .7s ease; }
.hm-anim.hm-drawn .hm-r { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s var(--ease); }
.hm-anim.hm-drawn .hm-pop { opacity: 1; transform: scale(1); transition: opacity .45s ease, transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.hm-anim.hm-drawn .hm-traveler { opacity: 1; transition: opacity .6s ease 2.4s; }

/* layer stagger */
.hm-anim.hm-drawn .hm-f-base { transition-delay: 0s; }
.hm-anim.hm-drawn .hm-d-coast { transition-delay: .2s; transition-duration: 1.25s; }
.hm-anim.hm-drawn .hm-d-water { transition-delay: .4s; }
.hm-anim.hm-drawn .hm-d-i95 { transition-delay: .55s; }
.hm-anim.hm-drawn .hm-d-a1a { transition-delay: .75s; }
.hm-anim.hm-drawn .hm-d-road { transition-delay: .95s; }
.hm-anim.hm-drawn .hm-d-canal { transition-delay: 1.15s; }
.hm-anim.hm-drawn .hm-f-late,
.hm-anim.hm-drawn .hm-f-route,
.hm-anim.hm-drawn .hm-r-route { transition-delay: 1.45s; }
.hm-anim.hm-drawn .hm-r { transition-delay: 1.6s; }
.hm-anim.hm-drawn .hm-pins .hm-pop:nth-child(1) { transition-delay: 1.8s; }
.hm-anim.hm-drawn .hm-pins .hm-pop:nth-child(2) { transition-delay: 1.9s; }
.hm-anim.hm-drawn .hm-pins .hm-pop:nth-child(3) { transition-delay: 2s; }
.hm-anim.hm-drawn .hm-pins .hm-pop:nth-child(4) { transition-delay: 2.1s; }
.hm-anim.hm-drawn .hm-office.hm-pop { transition-delay: 2.2s; }

/* ----- traveling dots (CSS offset-path; guarded twice) ----- */
.hm-traveler { visibility: hidden; }
@supports (offset-path: path("M0 0 H 1")) {
  .hm-traveler { visibility: visible; }
  .hm-traveler-beach {
    offset-path: path("M250 120 C 300 128 340 120 402 104");
    animation: hmTravel 8s ease-in-out 2.6s infinite;
  }
  .hm-traveler-shop {
    offset-path: path("M250 128 C 240 190 260 235 300 262");
    animation: hmTravel 11s ease-in-out 4.6s infinite;
  }
}
@keyframes hmTravel {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  46% { offset-distance: 100%; opacity: 1; }
  54% { offset-distance: 100%; opacity: 0; }
  60% { offset-distance: 0%; opacity: 0; }
  68% { offset-distance: 0%; opacity: 1; }
  100% { offset-distance: 100%; opacity: 1; }
}
/* An infinite loop under the global .001ms reduced-motion kill-switch would
   strobe — hide the dots entirely instead. */
@media (prefers-reduced-motion: reduce) {
  .hm-traveler { display: none !important; }
}

/* ----- pin tooltips (HTML overlay) ----- */
.hm-tips { position: absolute; inset: 0; pointer-events: none; }
.hm-tip {
  position: absolute; z-index: 5; pointer-events: auto;
  width: min(240px, 62vw);
  background: var(--paper, #FFFDF9);
  border: 1px solid var(--line, #E4DCCC);
  border-radius: 12px;
  box-shadow: var(--shadow-float, 0 18px 50px rgba(15,44,74,.16));
  padding: .8rem .95rem .85rem;
  font-size: .8rem; line-height: 1.5; color: var(--text, #4E5D6E);
  transform: translate(-50%, calc(-100% - 16px));
  opacity: 0; transition: opacity .2s ease, transform .25s var(--ease);
}
.hm-tip.below { transform: translate(-50%, 18px); }
.hm-tip.show { opacity: 1; }
.hm-tip::after { /* caret */
  content: ""; position: absolute; left: 50%; bottom: -6px;
  width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg);
  background: inherit; border-right: 1px solid var(--line, #E4DCCC); border-bottom: 1px solid var(--line, #E4DCCC);
}
.hm-tip.below::after { bottom: auto; top: -6px; border: 0; border-left: 1px solid var(--line, #E4DCCC); border-top: 1px solid var(--line, #E4DCCC); }
.hm-tip strong { display: block; font-family: var(--serif, serif); font-size: .92rem; color: var(--ink, #172A40); margin-bottom: .3rem; }
.hm-tip p { margin: 0 0 .5rem; }
.hm-tip a { font-weight: 800; font-size: .78rem; color: var(--clay-deep, #A05327); }
.hm-tip a:hover { text-decoration: underline; }

/* legend link chip */
.hm-open-tools { color: var(--sea-deep, #235350); font-weight: 800; }
.hm-open-tools:hover { border-color: var(--sea, #2F6B65); background: var(--sea-tint, #E9F1EF); }

/* ----- legend layer toggles (chips are <button>s now) ----- */
button.hm-chip { font-family: inherit; cursor: pointer; transition: opacity .2s ease, border-color .2s ease, background .2s ease, transform .2s var(--ease); }
button.hm-chip:hover { border-color: var(--sea, #2F6B65); transform: translateY(-1px); }
button.hm-chip:focus-visible { outline: 3px solid var(--sea, #2F6B65); outline-offset: 2px; }
.hm-toggle.off { opacity: .42; border-style: dashed; }
.hm-key-landmark { width: 9px; height: 9px; border-radius: 3px; background: #FFFDF9; border: 2px solid var(--sea, #2F6B65); display: inline-block; }
[data-hm-layer].hm-layer-off { display: none; }

/* ----- main drive routes: slow dash-crawl so they read as movement ----- */
.hm-droute { stroke-dasharray: 7 9; animation: hmDriveCrawl 1.6s linear infinite; }
.hm-droute-scenic { stroke-dasharray: 6 10; animation-duration: 2.4s; opacity: .9; }
@keyframes hmDriveCrawl { to { stroke-dashoffset: -16; } }
@media (prefers-reduced-motion: reduce) {
  .hm-droute { animation: none; }
}

/* ----- landmarks + cam: cursor, hover grow, intro stagger ----- */
.hm-lm, .hm-cam { cursor: pointer; outline: none; }
.hm-lm:hover circle:first-child, .hm-lm:focus-visible circle:first-child { r: 10.5; }
.hm-lm:focus-visible circle:first-child, .hm-cam:focus-visible > circle { stroke: #F4B740; stroke-width: 3; }
.hm-cam:hover > circle { r: 12.5; }
.hm-cam-dot { animation: hmCamPulse 1.6s ease infinite; }
@keyframes hmCamPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  .hm-cam-dot, .hm-cam-live-dot { animation: none !important; }
}
.hm-anim.hm-drawn .hm-landmarks .hm-pop { transition-delay: 2.3s; }
.hm-anim.hm-drawn .hm-cam.hm-pop { transition-delay: 2.45s; }

/* ----- live cam legend chip ----- */
.hm-chip-cam { color: #B0362C; font-weight: 800; }
.hm-chip-cam:hover { border-color: #E23B3B; background: #FDF1EF; }
.hm-cam-key {
  width: 8px; height: 8px; border-radius: 50%; background: #E23B3B; display: inline-block;
  box-shadow: 0 0 0 3px rgba(226,59,59,.18);
  animation: hmCamPulse 1.6s ease infinite;
}

/* ----- live cam modal ----- */
.hm-cam-modal { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.hm-cam-modal[hidden] { display: none; }
.hm-cam-backdrop { position: absolute; inset: 0; background: rgba(10, 32, 56, .82); backdrop-filter: blur(3px); cursor: pointer; }
.hm-cam-box {
  position: relative; width: min(920px, 96vw); cursor: default;
  background: #0F2C4A; border: 1px solid rgba(255,255,255,.16); border-radius: 16px;
  box-shadow: 0 40px 90px rgba(0,0,0,.5); overflow: hidden;
}
.hm-cam-head { display: flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem; color: #fff; }
.hm-cam-head strong { font-family: var(--serif, serif); font-weight: 600; font-size: 1rem; }
.hm-cam-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #E23B3B; flex: none; box-shadow: 0 0 0 3px rgba(226,59,59,.25); animation: hmCamPulse 1.6s ease infinite; }
.hm-cam-x {
  margin-left: auto; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 1.15rem; line-height: 1;
}
.hm-cam-x:hover { background: rgba(255,255,255,.22); }
.hm-cam-x:focus-visible { outline: 3px solid #7FB0AA; outline-offset: 2px; }
.hm-cam-frame { aspect-ratio: 16 / 9; background: #000; }
.hm-cam-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.hm-cam-note { font-size: .76rem; color: #8FA2B8; line-height: 1.5; margin: 0; padding: .7rem 1.1rem .85rem; }
.hm-cam-note a { color: #E4B58C; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 620px) {
  .hm-cam-modal { padding: .5rem; }
  .hm-cam-head strong { font-size: .88rem; }
}

@media (max-width: 620px) {
  .hm-live-chip { font-size: .66rem; padding: .24rem .5rem; }
  .hm-tip { width: min(210px, 68vw); font-size: .76rem; }
}

/* ============================================================
   2) VERIFY IT YOURSELF — official-source explorer + storm panel
   ============================================================ */
.verify-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
}
.verify-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.6rem 1.6rem 1.4rem; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.verify-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.verify-card h3 { font-size: 1.15rem; margin: .6rem 0 .45rem; }
.verify-card > p { font-size: .92rem; margin-bottom: 1rem; }
.verify-links { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .45rem; }
.verify-links a {
  display: flex; align-items: center; justify-content: space-between; gap: .7rem;
  padding: .62rem .8rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--sand); font-size: .85rem; font-weight: 700; color: var(--ink);
  transition: border-color .2s ease, background .2s ease, transform .2s var(--ease);
}
.verify-links a:hover { border-color: var(--sea); background: var(--sea-tint); transform: translateX(3px); }
.verify-links a small {
  flex: none; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sea-deep); background: #fff; border: 1px solid var(--line-cool);
  border-radius: 999px; padding: .18rem .5rem;
}
.verify-note { font-size: .78rem; color: var(--soft); margin: auto 0 0; line-height: 1.5; }

/* flood & hurricane readiness split panel */
.storm-panel {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.6rem, 4vw, 3rem);
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  background: linear-gradient(120deg, #0A2038 0%, #16405F 100%);
  color: #C7D3E2; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  position: relative; overflow: hidden;
}
.storm-panel::before { /* storm glow */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 280px at 92% -10%, rgba(127,176,170,.18), transparent 60%);
}
.storm-copy, .storm-links { position: relative; }
.storm-panel h3 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: .5rem 0 .7rem; }
.storm-panel p { font-size: .95rem; }
.storm-tool-link {
  background: none; border: 0; padding: 0; color: #E4B58C; font: inherit; font-weight: 800;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.storm-tool-link:hover { color: #F4B740; }
.storm-checklist { margin: 1rem 0; }
.storm-checklist li { color: #D7E1EC; font-size: .92rem; }
.storm-panel .verify-note { color: #8FA2B8; }
.storm-links { display: flex; flex-direction: column; gap: .9rem; justify-content: center; }
.storm-links .verify-links a { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #E8EEF6; }
.storm-links .verify-links a:hover { background: rgba(255,255,255,.12); border-color: #7FB0AA; }
.storm-links .verify-links a small { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #BCD7D2; }
.storm-links .btn { align-self: flex-start; }

@media (max-width: 1020px) { .verify-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .storm-panel { grid-template-columns: 1fr; } }

/* ============================================================
   3) BY THE NUMBERS — climate chart + census stat tiles
   ============================================================ */
.num-layout {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem); align-items: start;
}
.num-climate, .num-stats {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: clamp(1.4rem, 3vw, 2.1rem);
}
.num-climate h3, .num-stats h3 { font-size: var(--fs-h3); margin-bottom: 1.2rem; }

.climate-chart {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: .45rem;
  align-items: end; height: 190px; margin-bottom: 1.1rem;
}
.climate-col { display: flex; flex-direction: column; align-items: center; gap: .3rem; height: 100%; }
.climate-val { font-size: .68rem; font-weight: 800; color: var(--soft); }
.climate-bar { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.climate-bar i {
  display: block; width: 100%; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #7FB0AA, var(--sea-deep));
  transform: scaleY(1); transform-origin: bottom;
}
.climate-bar i.hot { background: linear-gradient(180deg, #E8A05C, var(--clay-deep)); }
.climate-mon { font-size: .66rem; font-weight: 700; letter-spacing: .04em; color: var(--soft); text-transform: uppercase; }
/* bars grow on reveal (hidden state exists only when JS added .reveal) */
.reveal .climate-bar i { transform: scaleY(0); transition: transform .7s var(--ease) calc(var(--i) * 55ms); }
.reveal.in-view .climate-bar i { transform: scaleY(1); }

.climate-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.climate-chip {
  font-size: .78rem; color: var(--text); background: var(--sand);
  border: 1px solid var(--line); border-radius: 999px; padding: .34rem .8rem;
}
.climate-chip strong { color: var(--sea-deep); font-weight: 800; }
.num-src { font-size: .74rem; color: var(--soft); line-height: 1.5; margin: 0; }
.num-src a { color: var(--sea-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.stats-table { display: grid; gap: .15rem; margin-bottom: 1rem; }
.stats-row {
  display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: .5rem;
  align-items: center; padding: .68rem .5rem; border-radius: var(--r-sm);
}
.stats-row:nth-child(even) { background: var(--sand); }
.stats-row-head { padding-bottom: .3rem; border-bottom: 1px solid var(--line); border-radius: 0; }
.stats-area { font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--sea-deep); text-align: right; }
.stats-metric { font-size: .84rem; font-weight: 700; color: var(--text); }
.stats-val { font-family: var(--serif); font-weight: 600; font-size: .98rem; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 1020px) { .num-layout { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .climate-chart { gap: .25rem; height: 150px; }
  .climate-val { font-size: .58rem; }
  .climate-mon { font-size: .56rem; }
  .stats-row { grid-template-columns: 1.1fr .9fr .9fr .9fr; padding: .55rem .35rem; }
  .stats-val { font-size: .84rem; }
  .stats-area { font-size: .62rem; }
}

/* ============================================================
   4) #BEACH-LIVE — dark band: webcam + live ocean chips
   ============================================================ */
.beach-live {
  position: relative;
  background:
    radial-gradient(720px 340px at 85% 0%, rgba(47,107,101,.28), transparent 60%),
    linear-gradient(165deg, #0A2038 0%, #0F2C4A 55%, #123A5C 100%);
  color: #C7D3E2;
  padding-top: 0; /* the wave divider owns the top edge */
}
.beach-live .wrap { padding-top: clamp(2.6rem, 5vw, 4rem); padding-bottom: 0; }
.beach-live h2 { color: #fff; }
.wave-into-navy { color: var(--sand-deep); } /* matches the section above (#by-the-numbers sits on --sand; area-videos alt uses sand-deep — divider color set to the actual previous band */

.bl-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem); align-items: start;
  padding-bottom: var(--section-pad);
}
.bl-cam { border: 1px solid rgba(255,255,255,.12); }
.bl-facade {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  background-size: cover; background-position: center; border: 0; cursor: pointer;
}
.bl-facade .play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
  border-radius: 50%; background: rgba(10,32,56,.78);
  border: 2px solid rgba(255,255,255,.7);
  transition: transform .25s var(--ease), background .2s ease;
}
.bl-facade .play::after {
  content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%,-50%);
  border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.bl-facade:hover .play, .bl-facade:focus-visible .play { transform: scale(1.1); background: var(--clay); }
.bl-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-offline {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: .5rem;
  align-items: center; justify-content: center; text-align: center; padding: 1rem;
  background: linear-gradient(180deg, rgba(10,32,56,.88), rgba(10,32,56,.96));
}
.yt-offline strong { color: #fff; font-family: var(--serif); font-size: 1.05rem; }
.yt-offline a { color: #E4B58C; font-weight: 800; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.yt-offline a:hover { color: #F4B740; }

.bl-side { display: flex; flex-direction: column; gap: 1rem; }
.bl-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.bl-chip {
  display: flex; flex-direction: column; gap: .15rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md); padding: .75rem .9rem;
}
.bl-k { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8FB8B2; }
.bl-v { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: #fff; }
.bl-chip.bl-skeleton .bl-v { color: rgba(255,255,255,.25); }
.bl-note { font-size: .76rem; color: #8FA2B8; margin: 0; line-height: 1.5; }
.bl-links { margin: 0; }
.bl-links a { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #E8EEF6; }
.bl-links a:hover { background: rgba(255,255,255,.12); border-color: #7FB0AA; transform: translateX(3px); }
.bl-links a small { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #BCD7D2; }
.bl-side .btn { align-self: flex-start; }

@media (max-width: 860px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bl-chips { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   5) YOUR STORES FINDER (Routes & Stores tab)
   ============================================================ */
.stores-finder { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px dashed var(--line); }
.store-picker { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 1rem; }
.store-chip { position: relative; }
.store-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.store-chip span {
  display: inline-block; padding: .5rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: .8rem; font-weight: 700; color: var(--navy);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease);
}
.store-chip:hover span { border-color: var(--sea); transform: translateY(-1px); }
.store-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.store-chip input:focus-visible + span { outline: 3px solid var(--sea); outline-offset: 2px; }
.stores-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.stores-hint { font-size: .8rem; color: var(--clay-deep); font-weight: 700; }
.stores-map-shell { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); margin-bottom: 1rem; }
#stores-map { height: 340px; }
.stores-results { display: grid; gap: .4rem; margin-bottom: .8rem; }
.store-row {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .75rem; background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: .86rem;
}
.store-row strong { color: var(--ink); }
.store-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, #BC6B3C); flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.store-meta { margin-left: auto; color: var(--soft); font-size: .8rem; text-align: right; }
.store-meta a { color: var(--sea-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   6) ADDRESS REPORT EXTRAS — drive-time grid + tax estimator
   ============================================================ */
.report-extras { display: grid; gap: 1.2rem; margin-top: 1.4rem; }
.drive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: .6rem 0; }
.drive-tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: .8rem .9rem; display: flex; flex-direction: column; gap: .1rem;
  box-shadow: var(--shadow-sm);
}
.drive-dest { font-size: .74rem; font-weight: 800; letter-spacing: .03em; color: var(--soft); text-transform: uppercase; }
.drive-mins { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--ink); }
.drive-mins small { font-size: .72rem; font-family: var(--sans); font-weight: 700; color: var(--soft); margin-left: .25rem; }
.drive-miles { font-size: .78rem; color: var(--soft); }
.drive-tile.est { border-style: dashed; }
.drive-tile.est .drive-mins::after { content: "≈"; font-size: .8rem; vertical-align: super; color: var(--clay-deep); margin-left: .15rem; }

.tax-block { border-top: 1px dashed var(--line); padding-top: 1.1rem; }
.tax-input-row { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin: .4rem 0 .6rem; }
.tax-price-wrap {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0 .3rem 0 .7rem; font-weight: 700; color: var(--soft);
}
.tax-price-wrap input { border: 0; background: transparent; padding: .62rem .4rem .62rem 0; width: 9ch; font: inherit; color: var(--ink); }
.tax-price-wrap input:focus-visible { outline: none; }
.tax-price-wrap:focus-within { outline: 3px solid var(--sea); outline-offset: 2px; }
.tax-homestead { display: inline-flex; align-items: center; gap: .45rem; font-size: .84rem; font-weight: 600; color: var(--text); }
.tax-answer { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; color: var(--ink); margin-top: .4rem; }
.tax-answer small { font-size: .85rem; font-family: var(--sans); font-weight: 700; color: var(--soft); }
.tax-assumption { font-size: .78rem; color: var(--soft); line-height: 1.5; margin: .3rem 0 0; }

@media (max-width: 860px) { .drive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .drive-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   7) VIDEO FILMSTRIP (#area-videos)
   ============================================================ */
.video-filters { margin: -0.6rem 0 1.5rem; }
.vcard[hidden] { display: none; }
.vcard { position: relative; }
.vcard .yt-facade { transition: transform .5s var(--ease); will-change: transform; }
.vcard:hover .yt-facade,
.vcard:focus-within .yt-facade { transform: scale(1.045); }
.vcard:hover { box-shadow: var(--shadow-float); }

@media (max-width: 860px) {
  /* horizontal filmstrip with scroll-snap on small screens */
  .video-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: .9rem; padding: .2rem .2rem .9rem;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  }
  .video-grid .vcard { flex: 0 0 min(320px, 82vw); scroll-snap-align: start; }
}

/* ============================================================
   8) GLOBAL ANIMATION POLISH
   ------------------------------------------------------------
   Everything here is transition/animation-only; the global
   reduced-motion kill-switch (styles.css) makes it all instant,
   and shimmer gets an explicit static override below.
   ============================================================ */

/* Local Tools: panels ease in when their tab opens */
.widget-panel:not([hidden]) { animation: bbPanelIn .24s var(--ease); }
@keyframes bbPanelIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

/* reveal variants: side entrances + clip reveal for known splits
   (hidden states exist only under .reveal, which script.js adds) */
.reveal .num-climate { opacity: 0; transform: translateX(-26px); }
.reveal .num-stats { opacity: 0; transform: translateX(26px); }
.reveal.in-view .num-climate,
.reveal.in-view .num-stats { opacity: 1; transform: none; transition: opacity .7s ease .1s, transform .7s var(--ease) .1s; }
.reveal .bl-cam { opacity: 0; clip-path: inset(0 14% 0 14% round 16px); }
.reveal.in-view .bl-cam { opacity: 1; clip-path: inset(0 0 0 0 round 16px); transition: opacity .6s ease, clip-path .9s var(--ease); }
.reveal .bl-side { opacity: 0; transform: translateY(18px); }
.reveal.in-view .bl-side { opacity: 1; transform: none; transition: opacity .6s ease .25s, transform .6s var(--ease) .25s; }
.reveal .storm-panel { opacity: 0; transform: scale(.975); }
.reveal.in-view .storm-panel { opacity: 1; transform: none; transition: opacity .6s ease .1s, transform .7s var(--ease) .1s; }

/* button sheen on primary CTAs (hover-only, no layout shift) */
.btn-orange, .btn-teal { overflow: hidden; }
.btn-orange::after, .btn-teal::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(110deg, transparent 42%, rgba(255,255,255,.28) 50%, transparent 58%);
  background-size: 230% 100%; background-position: 135% 0;
}
.btn-orange:hover::after, .btn-teal:hover::after { animation: bbSheen .75s ease; }
@keyframes bbSheen {
  0% { opacity: 1; background-position: 135% 0; }
  100% { opacity: 0; background-position: -35% 0; }
}

/* standardized loading shimmer for live widgets */
.wx-skeleton {
  position: relative; overflow: hidden; border-radius: var(--r-sm);
  background: linear-gradient(100deg, var(--sand-deep) 40%, #FBF7EE 50%, var(--sand-deep) 60%);
  background-size: 200% 100%;
  animation: bbShimmer 1.5s linear infinite;
}
@keyframes bbShimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .wx-skeleton, .hm-live-chip.hm-live-skeleton { animation: none !important; }
}
