/* State landing pages: coverage map hero + regions. Uses vf-* from examples.css. */
.st-hero { position: relative; padding: 140px 0 56px; overflow: hidden; isolation: isolate; }
.st-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 35%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 30% 35%, #000 30%, transparent 75%); opacity: .5; }
.st-hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.st-hero h1 { font-size: clamp(2.5rem, 1.3rem + 3.8vw, 4.8rem); margin-bottom: 1.3rem; }
.st-hero .lead { margin: 0 0 2rem; max-width: 34rem; }
.st-hero .actions { justify-content: flex-start; }
.crumbs--left { justify-content: flex-start; }

/* Map */
.st-map { position: relative; margin: 0; padding: 44px 26px 22px; border-radius: 26px; border: 1px solid var(--line-2); background: radial-gradient(ellipse at 50% 40%, rgba(61,224,255,.08), transparent 65%), #0b0d12; }
.st-map svg { display: block; width: 100%; height: auto; max-height: min(60vh, 560px); margin: 0 auto; overflow: visible; }
.st-map-hud { position: absolute; inset: 12px; pointer-events: none; font: 600 .64rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; color: rgba(255,255,255,.8); }
.st-map-hud .vf-c { width: 26px; height: 26px; }
.st-tag { position: absolute; display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .55rem; border-radius: 7px; background: rgba(8,9,12,.6); }
.st-tag--tl { top: 4px; left: 34px; }
.st-tag--tr { top: 4px; right: 34px; color: var(--lime); }
.st-shape { opacity: 0; animation: stFill 1s .6s ease forwards; }
.st-edge { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(212,255,58,.55)); stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: stDraw 1.8s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes stDraw { to { stroke-dashoffset: 0; } }
@keyframes stFill { to { opacity: 1; } }
.st-pin { opacity: 0; animation: stPin .5s ease forwards; transition: opacity .35s; }
.st-pin:nth-child(4n) { animation-delay: 1.3s; } .st-pin:nth-child(4n+1) { animation-delay: 1.45s; }
.st-pin:nth-child(4n+2) { animation-delay: 1.6s; } .st-pin:nth-child(4n+3) { animation-delay: 1.75s; }
@keyframes stPin { from { opacity: 0; } to { opacity: 1; } }
.st-dot { fill: var(--lime); stroke: #0b0d12; stroke-width: 2; }
.st-ping { fill: none; stroke: var(--lime); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: stPing 2.4s ease-out infinite; }
.st-pin:nth-child(odd) .st-ping { animation-delay: 1.2s; }
@keyframes stPing { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.st-pin text { font: 600 11px/1 var(--sans); fill: rgba(255,255,255,.88); paint-order: stroke; stroke: #0b0d12; stroke-width: 3px; stroke-linejoin: round; }
.st-map[data-active]:not([data-active="all"]) .st-pin { opacity: .18 !important; }
.st-map[data-active="upstate"] .st-pin[data-region="upstate"],
.st-map[data-active="piedmont"] .st-pin[data-region="piedmont"],
.st-map[data-active="midlands"] .st-pin[data-region="midlands"],
.st-map[data-active="lowcountry"] .st-pin[data-region="lowcountry"],
.st-map[data-active="grandstrand"] .st-pin[data-region="grandstrand"],
.st-map[data-active="metro"] .st-pin[data-region="metro"],
.st-map[data-active="north"] .st-pin[data-region="north"],
.st-map[data-active="central"] .st-pin[data-region="central"],
.st-map[data-active="coastal"] .st-pin[data-region="coastal"],
.st-map[data-active="south"] .st-pin[data-region="south"] { opacity: 1 !important; }
.st-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: 18px; }
.st-chips button { padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); font: 500 .84rem/1 var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.st-chips button:hover { color: var(--text); }
.st-chips button[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: #0a0b0f; }

/* Facts strip */
.st-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); }
.st-facts div { padding: 22px 24px; display: flex; flex-direction: column; gap: .3rem; }
.st-facts div + div { border-left: 1px solid var(--line); }
.st-facts strong { font: 700 1.7rem/1 var(--display); letter-spacing: -.03em; }
.st-facts span { font: 600 .66rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* Regions */
.st-regions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.st-region { padding: 24px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, background .3s, transform .3s; }
.st-region.on { border-color: var(--lime); background: rgba(212,255,58,.07); transform: translateY(-4px); }
.st-region-no { font: 600 .62rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .16em; color: var(--lime); }
.st-region h3 { font-size: 1.2rem; margin: .7rem 0 .4rem; }
.st-region p { color: var(--muted); font-size: .9rem; margin-bottom: .9rem; }
.st-region ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.st-region li { padding: .3rem .6rem; border-radius: 999px; background: var(--panel-2); font-size: .8rem; }

/* Featured tour */
.st-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.st-feat-media { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); }
.st-feat-frame { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.st-feat-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .4s; filter: brightness(.75); }
.st-feat-frame:hover img { transform: scale(1.05); filter: brightness(.9); }
.st-feat-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.3rem; border-radius: 999px; background: var(--lime); color: #0a0b0f; font: 700 1rem/1 var(--display); box-shadow: 0 0 0 0 rgba(212,255,58,.5); animation: vfPulse 2.4s ease-out infinite; }
iframe.st-feat-frame { cursor: auto; }
.st-featured h2 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem); margin-bottom: 1rem; }
.st-featured .sub { margin-bottom: 1.4rem; }

/* Industry links */
.st-industries { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; max-width: 920px; margin: 0 auto; }
.st-industries a { padding: .65rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); text-decoration: none; color: var(--text); font-weight: 500; transition: border-color .2s, color .2s; }
.st-industries a:hover { border-color: var(--lime); color: var(--lime); }

/* Real tour pins */
.st-tour rect { fill: var(--cyan); stroke: #0b0d12; stroke-width: 1.5; filter: drop-shadow(0 0 5px rgba(61,224,255,.8)); transition: transform .2s; }
.st-tour { cursor: pointer; opacity: 0; animation: stPin .5s 2s ease forwards; }
.st-tour:hover rect, .st-tour:focus rect { fill: #fff; }
.st-map[data-active]:not([data-active="all"]):not([data-active="tours"]) .st-tour { opacity: .15 !important; }
.st-map[data-active="tours"] .st-pin { opacity: .18 !important; }
.st-map[data-active="tours"] .st-tour rect { transform: rotate(45deg) scale(1.35); }
.st-chips .st-chip-tours[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); }
.st-legend { display: flex; justify-content: center; gap: 1.2rem; margin: 12px 0 0; font: 600 .66rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.st-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.st-lg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.st-lg-tour { width: 8px; height: 8px; background: var(--cyan); transform: rotate(45deg); }

/* Local tours strip */
.st-local { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.st-local a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 10px 10px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .25s, transform .25s; }
.st-local a:hover { border-color: rgba(61,224,255,.6); transform: translateY(-4px); }
.st-local img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: .5rem; }
.st-local-ind { font: 600 .62rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); padding: 0 4px; }
.st-local strong { font: 600 .98rem/1.25 var(--display); letter-spacing: -.01em; padding: 0 4px; }

@media (max-width: 1100px) { .st-regions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) {
  .st-hero { padding-top: 120px; }
  .st-hero-grid, .st-featured { grid-template-columns: 1fr; gap: 40px; }
  .st-facts { grid-template-columns: 1fr 1fr; }
  .st-facts div:nth-child(3) { border-left: 0; }
  .st-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .st-regions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .st-map { padding: 40px 12px 16px; }
  .st-pin text { font-size: 13px; }
  .st-regions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .st-edge { animation: none; stroke-dashoffset: 0; }
  .st-shape, .st-pin { animation: none; opacity: 1; }
  .st-ping, .st-feat-play { animation: none; }
}
