/* ==========================================================================
   DingWorks — site.css
   Palette taken from the logo: asphalt black, steel outline, chrome white,
   ding blue gradient. Saira (wide italic) for display, Barlow for text.
   ========================================================================== */
:root {
  --asphalt: #0D1013;
  --panel: #171C21;
  --panel-2: #1F262D;
  --panel-3: #262E36;
  --line: #2C343D;
  --steel: #5C636B;
  --muted: #A3ADB7;
  --text: #E4E9ED;
  --chrome: #F3F6F8;
  --blue: #00B4FF;
  --blue-deep: #0A7CFF;
  --blue-ink: #66D2FF;
  --ok: #3DDC97;
  --warn: #FFB020;
  --err: #FF6B6B;
  --gold: #FFC93C;
  --grad: linear-gradient(180deg, #19C6FF 0%, #0A8BFF 100%);
  --display: "Saira", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 18px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --slant: -11deg;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--asphalt);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--chrome); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--blue); color: var(--asphalt); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: var(--asphalt); padding: 8px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---- type ---------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; color: var(--chrome); line-height: 1.05; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.3rem; font-weight: 750; }
h4 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 1.22rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }
.num { font-variant-numeric: tabular-nums; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }

/* ---- header -------------------------------------------------------------- */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(13, 16, 19, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.masthead-inner { max-width: 1360px; margin: auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand img { width: 196px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; font-weight: 600; font-size: .98rem; }
.site-nav a { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: var(--r-sm); white-space: nowrap; }
.site-nav a:hover { color: var(--chrome); background: var(--panel-2); }
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav .nav-split { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.site-nav .btn { margin-left: 6px; }
.site-nav .nav-admin { color: var(--warn); }
.pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--blue); color: var(--asphalt); font-size: .75rem; font-weight: 800; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); width: 44px; height: 40px; color: var(--chrome); cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--asphalt); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px; gap: 2px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 10px; font-size: 1.05rem; }
  .site-nav .nav-split { width: auto; height: 1px; margin: 8px 0; }
  .site-nav .btn { margin: 8px 0 0; justify-content: center; }
  .brand img { width: 168px; }
}

/* ---- buttons: slanted like the wordmark --------------------------------- */
.btn {
  --bg: var(--panel-3); --fg: var(--chrome); --bd: var(--steel);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: italic 800 1rem/1 var(--display); font-stretch: 110%;
  color: var(--fg); background: var(--bg); border: 2px solid var(--bd);
  padding: .78em 1.35em; border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transform: skewX(var(--slant));
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn > * , .btn-label { display: inline-block; transform: skewX(calc(var(--slant) * -1)); }
.btn:hover { --bg: var(--panel-2); --bd: var(--chrome); color: var(--fg); }
.btn-blue { --bg: var(--blue); --fg: #031018; --bd: var(--blue); background: var(--grad); }
.btn-blue:hover { --bd: var(--chrome); color: #031018; filter: brightness(1.08); }
.btn-white { --bg: var(--chrome); --fg: var(--asphalt); --bd: var(--chrome); }
.btn-white:hover { --bg: #fff; --fg: var(--asphalt); }
.btn-ghost { --bg: transparent; --bd: var(--line); }
.btn-danger { --bg: transparent; --bd: #6b2b2b; --fg: var(--err); }
.btn-sm { font-size: .88rem; padding: .6em 1em; }
.btn-lg { font-size: 1.15rem; padding: .9em 1.6em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkish { background: none; border: 0; color: var(--blue-ink); font: inherit; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---- flashes ------------------------------------------------------------- */
.flashes { margin-top: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--r-sm); border-left: 4px solid var(--blue); background: var(--panel); }
.flash-success { border-color: var(--ok); }
.flash-error { border-color: var(--err); }
.flash-info { border-color: var(--blue); }

/* ---- forms --------------------------------------------------------------- */
label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--chrome); font-size: .97rem; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; margin-top: 4px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=search], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--chrome);
  background: var(--asphalt); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 13px; min-height: 46px;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 180, 255, .2); }
input[type=file] { color: var(--muted); font-size: .95rem; }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; }
.check { display: flex; align-items: flex-start; gap: 0; font-weight: 500; margin-bottom: 8px; cursor: pointer; }
.field { margin-bottom: 18px; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 16px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 6px; margin: 0 0 22px; }
legend { font: italic 800 1.1rem var(--display); font-stretch: 110%; color: var(--chrome); padding: 0 8px; }
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 36px); }
.form-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.err-text { color: var(--err); font-size: .9rem; }

/* ---- hero: the line board ------------------------------------------------ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--asphalt); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: clamp(40px, 7vw, 92px); }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.9rem); line-height: .95; margin-bottom: .35em; }
.hero h1 .ink { color: var(--blue); }
.hero .lede { color: #C3CBD2; margin-bottom: 28px; }
.lineboard { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-lg); overflow: hidden; background: #05070A; border: 2px solid var(--steel); box-shadow: 0 0 0 6px var(--asphalt), 0 0 0 8px var(--blue); }
.lineboard canvas { width: 100%; height: 100%; display: block; }
.lineboard figcaption { position: absolute; left: 0; bottom: 0; right: 0; display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; font-size: .9rem; color: var(--muted); background: rgba(13,16,19,.88); border-top: 1px solid var(--steel); }
.lineboard figcaption b { color: var(--chrome); font-weight: 600; }
.lineboard .status { font-weight: 700; color: var(--warn); }
.lineboard .status.fixed { color: var(--ok); }

/* search bar */
.searchbar { display: grid; grid-template-columns: 1fr auto auto; gap: 0; background: var(--chrome); border-radius: var(--r); padding: 6px; max-width: 620px; box-shadow: 0 0 0 2px var(--asphalt), 0 0 0 4px var(--steel); }
.searchbar input, .searchbar select { background: transparent; border: 0; color: var(--asphalt); min-height: 52px; font-size: 1.08rem; font-weight: 600; }
.searchbar input::placeholder { color: #6A747D; font-weight: 500; }
.searchbar input:focus, .searchbar select:focus { box-shadow: none; }
.searchbar select { border-left: 1.5px solid #CBD3D9; border-radius: 0; width: auto; padding-left: 14px; padding-right: 36px; background-color: transparent; background-image: linear-gradient(45deg, transparent 50%, #49525B 50%), linear-gradient(135deg, #49525B 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.searchbar select option { color: var(--asphalt); background: #fff; }
.searchbar .btn { margin-left: 4px; }
.searchbar:focus-within { box-shadow: 0 0 0 2px var(--asphalt), 0 0 0 4px var(--blue); }
.search-extra { margin-top: 14px; display: flex; gap: 18px; flex-wrap: wrap; font-size: .95rem; color: var(--muted); }
.search-extra button { background: none; border: 0; padding: 0; color: var(--blue-ink); font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .lineboard { aspect-ratio: 16 / 10; }
  .lineboard figcaption { font-size: .82rem; padding: 8px 12px; }
  .lineboard figcaption b { white-space: nowrap; }
}
@media (max-width: 560px) {
  .searchbar { grid-template-columns: 1fr auto; }
  .searchbar .btn { grid-column: 1 / -1; margin: 6px 0 0; }
}

/* ---- sections ------------------------------------------------------------ */
.section { padding-block: clamp(44px, 7vw, 84px); }
.section + .section { padding-top: 0; }
.section-alt { background: var(--panel); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

/* map band on home */
.mapband { position: relative; height: min(68vh, 620px); border-block: 1px solid var(--line); }
.mapband .map { position: absolute; inset: 0; }
.mapband-panel { position: absolute; z-index: 500; left: var(--gutter); top: 24px; width: min(360px, calc(100% - 2 * var(--gutter))); background: rgba(13,16,19,.92); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.mapband-panel h2 { font-size: 1.45rem; margin-bottom: .3em; }
.mapband-panel p { color: var(--muted); font-size: .97rem; }

/* stats strip */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.facts div { background: var(--asphalt); padding: 18px 20px; }
.facts b { display: block; font: italic 900 2rem/1 var(--display); color: var(--chrome); font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: .92rem; }

/* how it works — actual sequence, so numbers are earned */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; font: italic 900 2.6rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--blue); }
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--muted); margin: 0; }

/* ---- shop cards & lists ------------------------------------------------- */
.shop-list { display: grid; gap: 12px; }
.shop-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; position: relative; }
.shop-card.is-featured { border-color: #1C5F86; }
.shop-card.is-premium { border-color: var(--blue); box-shadow: inset 4px 0 0 var(--blue); }
.shop-card.is-active { outline: 2px solid var(--chrome); }
.shop-card h3 { font-size: 1.18rem; margin: 0 0 4px; }
.shop-card h3 a { color: var(--chrome); text-decoration: none; }
.shop-card h3 a::after { content: ""; position: absolute; inset: 0; }
.shop-card h3 a:hover { color: var(--blue); }
.shop-card .meta { color: var(--muted); font-size: .93rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.shop-card .right { text-align: right; font-size: .9rem; color: var(--muted); display: grid; gap: 6px; justify-items: end; }
.shop-card .dist { font: italic 800 1.15rem var(--display); color: var(--chrome); }
.shop-card .call { position: relative; z-index: 2; }
.avatar { width: 64px; height: 64px; border-radius: var(--r-sm); background: var(--panel-3); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font: italic 900 1.4rem var(--display); color: var(--blue); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 112px; height: 112px; font-size: 2.4rem; border-radius: var(--r); }
@media (max-width: 600px) { .shop-card { grid-template-columns: 52px 1fr; } .avatar { width: 52px; height: 52px; } .shop-card .right { grid-column: 1 / -1; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; align-items: center; gap: 14px; } }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 4px; background: var(--panel-3); color: var(--text); border: 1px solid var(--line); white-space: nowrap; }
.tag-blue { background: rgba(0, 180, 255, .12); color: var(--blue-ink); border-color: rgba(0, 180, 255, .35); }
.tag-premium { background: var(--grad); color: #031018; border-color: transparent; font-family: var(--display); font-style: italic; font-weight: 800; }
.tag-ok { background: rgba(61, 220, 151, .1); color: var(--ok); border-color: rgba(61, 220, 151, .3); }
.tag-warn { background: rgba(255, 176, 32, .1); color: var(--warn); border-color: rgba(255, 176, 32, .3); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.stars { --pct: 0%; display: inline-block; position: relative; font-size: 1rem; line-height: 1; letter-spacing: 2px; color: var(--panel-3); vertical-align: -1px; }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--pct); overflow: hidden; color: var(--gold); }
.rating { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .92rem; }
.rating b { color: var(--chrome); }

/* ---- search results page ------------------------------------------------ */
.results-layout { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); min-height: calc(100vh - 62px); }
.results-pane { padding: 20px var(--gutter) 40px; border-right: 1px solid var(--line); }
.results-map { position: sticky; top: 62px; height: calc(100vh - 62px); }
.results-map .map { height: 100%; }
.results-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .2em; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 18px; }
.filters select { width: auto; min-height: 40px; padding-block: 6px; font-size: .93rem; }
.filters .check { margin: 0; align-items: center; background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 0 12px; min-height: 40px; font-size: .93rem; }
.searchbar-compact { max-width: none; padding: 4px; }
.searchbar-compact input, .searchbar-compact select { min-height: 44px; font-size: 1rem; }
.map-toggle { display: none; }
@media (max-width: 900px) {
  .results-layout { grid-template-columns: 1fr; }
  .results-pane { border: 0; }
  .results-map { position: relative; top: 0; height: 52vh; order: -1; display: none; }
  .results-layout.show-map .results-map { display: block; }
  .map-toggle { display: inline-flex; }
}
.empty { text-align: center; padding: 40px 20px; border: 1.5px dashed var(--line); border-radius: var(--r); }
.empty h2, .empty h3 { margin-bottom: .3em; }
.empty p { color: var(--muted); max-width: 46ch; margin-inline: auto; }

/* ---- leaflet theme ------------------------------------------------------- */
.map { background: #0a0d10; }
.map.leaflet-container, .leaflet-container { font: inherit; background: #0a0d10; }
/* Free OpenStreetMap tiles are light; invert them into a dark map that matches the site */
.dw-darken .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.92) contrast(.88) saturate(.55); }
/* Map popups: a white card with near-black text, readable over the dark map */
.leaflet-container .dw-popup .leaflet-popup-content-wrapper { background: #FFFFFF; color: #14191E; border-radius: 12px; box-shadow: 0 10px 34px rgba(0,0,0,.55); padding: 0; }
.leaflet-container .dw-popup .leaflet-popup-tip { background: #FFFFFF; box-shadow: none; }
.leaflet-container .dw-popup .leaflet-popup-content { margin: 0; width: auto !important; min-width: 270px; max-width: 320px; font: 400 .95rem/1.45 var(--body); }
.leaflet-container .dw-popup a.leaflet-popup-close-button { color: #4B5560; font-size: 22px; width: 30px; height: 30px; top: 6px; right: 6px; }
.leaflet-container .dw-popup a.leaflet-popup-close-button:hover { color: #14191E; }
.dwp { padding: 16px 16px 14px; color: #14191E; }
.dwp-head { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding-right: 18px; margin-bottom: 12px; }
.dwp-logo { width: 52px; height: 52px; border-radius: 10px; background: #0D1013; display: grid; place-items: center; overflow: hidden; font: italic 900 1.5rem var(--display); color: #00B4FF; border: 1px solid #D5DBE1; }
.dwp-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.dwp-title h4 { margin: 0 0 3px; font: italic 800 1.12rem/1.15 var(--display); font-stretch: 108%; }
.dwp-title h4 a { color: #14191E; text-decoration: none; }
.dwp-title h4 a:hover { color: #0759B8; text-decoration: underline; }
.dwp-sub { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: .85rem; color: #4B5560; }
.dwp-rating { display: inline-flex; gap: 5px; align-items: center; color: #4B5560; }
.dwp-rating b { color: #14191E; }
.dwp .stars { color: #D5DBE1; font-size: .9rem; }
.dwp .stars::after { color: #E8A400; }
.dwp-norev { color: #4B5560; }
.dwp-tier { font: italic 800 .72rem/1 var(--display); padding: 3px 7px; border-radius: 4px; background: #E3F5FF; color: #064A7A; }
.dwp-tier.dwp-premium { background: linear-gradient(180deg, #19C6FF, #0A8BFF); color: #031018; }
.dwp-info { list-style: none; margin: 0; padding: 10px 0 2px; border-top: 1px solid #E4E8EC; display: grid; gap: 8px; }
.dwp-info li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; color: #14191E; font-size: .93rem; }
.dwp-info svg { width: 18px; height: 18px; color: #0A7CFF; margin-top: 1px; }
.dwp-info a { color: #0759B8; font-weight: 600; text-decoration: none; word-break: break-word; }
.dwp-info a:hover { text-decoration: underline; }
.dwp-info em { font-style: normal; color: #4B5560; font-size: .86rem; }
.dwp-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.dwp-tags span { font-size: .76rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: #EEF1F4; color: #2A323A; }
.dwp-tags .dwp-ok { background: #E3F8EE; color: #0B6B42; }
.dwp-actions { display: flex; gap: 6px; margin-top: 14px; }
.dwp-btn { flex: 1 1 auto; text-align: center; white-space: nowrap; font: italic 800 .82rem/1 var(--display); font-stretch: 100%; padding: 10px 8px; border-radius: 6px; text-decoration: none; background: #14191E; color: #FFFFFF !important; transform: skewX(-11deg); }
.dwp-btn:hover { background: #2A323A; }
.dwp-btn.dwp-primary { background: linear-gradient(180deg, #19C6FF, #0A8BFF); color: #031018 !important; }
.dwp-btn.dwp-primary:hover { filter: brightness(1.06); }
.dwp-loading { margin: 10px 0 0; color: #4B5560; font-size: .88rem; }
.dwp-loading a { color: #0759B8; font-weight: 600; }
.leaflet-control-zoom a, .leaflet-bar a { background: var(--panel); color: var(--chrome); border-color: var(--line) !important; }
.leaflet-control-zoom a:hover { background: var(--panel-3); color: var(--chrome); }
.leaflet-control-attribution { background: rgba(13,16,19,.75) !important; color: var(--muted); font-size: 11px; }
.leaflet-control-attribution a { color: var(--blue-ink); }
.dw-pin { width: 30px; height: 38px; }
.dw-pin svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.dw-you { width: 18px; height: 18px; border-radius: 50%; background: var(--chrome); border: 4px solid var(--blue); box-shadow: 0 0 0 6px rgba(0,180,255,.25); }
.leaflet-container .marker-cluster { background: rgba(0, 180, 255, .28); }
.leaflet-container .marker-cluster div { background: var(--blue); color: #031018; font: italic 800 13px/30px var(--display); }
.leaflet-container .marker-cluster-large { background: rgba(10, 124, 255, .35); }
.leaflet-container .marker-cluster-large div { background: var(--blue-deep); color: #fff; }
.map-legend { background: rgba(13,16,19,.9); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; font-size: .82rem; color: var(--muted); display: grid; gap: 4px; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

/* full map page */
.mappage { position: relative; height: calc(100vh - 62px); }
.mappage .map { position: absolute; inset: 0; }
.mappage-panel { position: absolute; z-index: 500; top: 16px; left: 16px; width: min(380px, calc(100% - 32px)); background: rgba(13,16,19,.94); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.mappage-panel h1 { font-size: 1.5rem; margin-bottom: 10px; }
.mappage-panel .searchbar { grid-template-columns: 1fr auto; }
.mappage-panel .searchbar select { display: none; }
.mappage-panel .radius-row { display: flex; gap: 10px; align-items: center; margin-top: 10px; color: var(--muted); font-size: .92rem; }
.mappage-panel .radius-row select { width: auto; min-height: 38px; padding-block: 4px; }
.mappage-count { margin-top: 10px; font-size: .92rem; color: var(--muted); }
.mappage-count b { color: var(--chrome); }

/* ---- shop page ----------------------------------------------------------- */
.shop-hero { background: var(--panel); border-bottom: 1px solid var(--line); padding-block: 32px; }
.shop-hero-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.shop-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 8px; }
.shop-hero .meta { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--muted); }
.shop-actions { display: grid; gap: 10px; min-width: 220px; }
@media (max-width: 820px) { .shop-hero-grid { grid-template-columns: auto 1fr; } .shop-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; } }
.shop-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-block: 36px 64px; }
@media (max-width: 900px) { .shop-body { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 20px; }
.panel h2 { font-size: 1.3rem; }
.panel dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .97rem; }
.panel dt { color: var(--muted); }
.panel dd { margin: 0; color: var(--chrome); word-break: break-word; }
.minimap { height: 220px; border-radius: var(--r-sm); overflow: hidden; margin-bottom: 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 30px; }
.gallery a { display: block; aspect-ratio: 4/3; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.review { border-top: 1px solid var(--line); padding: 18px 0; }
.review header { display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.review h4 { margin: 0; }
.review .reply { margin-top: 10px; padding: 12px 14px; background: var(--panel-2); border-radius: var(--r-sm); border-left: 3px solid var(--blue); font-size: .95rem; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2rem; color: var(--panel-3); cursor: pointer; margin: 0; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--blue); }

/* ---- generic cards / grids ---------------------------------------------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid-tight { gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.12rem; margin: 0; }
.card h3 a { color: var(--chrome); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { color: var(--blue); }
.card .thumb { aspect-ratio: 4 / 3; background: var(--panel-2); display: grid; place-items: center; overflow: hidden; color: var(--steel); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .price { font: italic 900 1.35rem var(--display); color: var(--chrome); }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: .88rem; }
.score { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--asphalt); border: 2px solid var(--blue); font: italic 900 1.25rem var(--display); color: var(--chrome); }

/* state / city lists */
.state-grid { columns: 4 200px; column-gap: 28px; }
.state-grid a { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; break-inside: avoid; }
.state-grid a:hover { color: var(--blue); }
.state-grid .count { color: var(--muted); font-variant-numeric: tabular-nums; }
.state-grid .zero { color: var(--steel); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.page-head { padding-block: 40px 26px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.page-head h1 { margin-bottom: .25em; }
.page-head .lede { margin: 0; }

/* tabs (segmented) */
.segmented { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; gap: 3px; flex-wrap: wrap; }
.segmented a { padding: 7px 14px; border-radius: 4px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .94rem; }
.segmented a[aria-current="true"] { background: var(--panel-3); color: var(--chrome); }
.segmented a:hover { color: var(--chrome); }

/* videos */
.video { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.yt { position: relative; aspect-ratio: 16/9; background: #000; cursor: pointer; display: block; width: 100%; border: 0; padding: 0; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 12px; background: rgba(13,16,19,.85); border: 2px solid var(--chrome); display: grid; place-items: center; }
.yt .play::after { content: ""; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent var(--chrome); margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .card-body { padding: 14px 16px 16px; }
.video h3 { font-size: 1.05rem; }

/* products */
.product-hero { display: grid; grid-template-columns: 360px 1fr; gap: 36px; align-items: start; }
@media (max-width: 820px) { .product-hero { grid-template-columns: 1fr; } }
.product-img { background: var(--chrome); border-radius: var(--r); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; padding: 20px; }
.product-img img { max-height: 100%; object-fit: contain; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }
.proscons ul { list-style: none; padding: 0; margin: 0; }
.proscons li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px solid var(--line); }
.proscons .pros li::before { content: "+"; position: absolute; left: 4px; color: var(--ok); font-weight: 800; }
.proscons .cons li::before { content: "–"; position: absolute; left: 4px; color: var(--err); font-weight: 800; }
.verdict { border-left: 4px solid var(--blue); padding: 14px 18px; background: var(--panel); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 1.08rem; }
.disclosure { font-size: .86rem; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; background: var(--panel); }

/* ---- ads ----------------------------------------------------------------- */
.ad { margin: 24px 0; }
.ad-label { display: block; font-size: .72rem; color: var(--steel); margin-bottom: 4px; letter-spacing: .02em; }
.ad-direct { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--chrome); color: var(--asphalt); border-radius: var(--r); padding: 16px 20px; text-decoration: none; position: relative; }
.ad-direct:hover { color: var(--asphalt); background: #fff; }
.ad-direct img { max-height: 56px; width: auto; }
.ad-direct strong { display: block; font: italic 800 1.2rem var(--display); color: var(--asphalt); }
.ad-direct span { font-size: .95rem; color: #39424A; }
.ad-direct .btn { --bg: var(--asphalt); --fg: var(--chrome); --bd: var(--asphalt); }
.ad-sidebar .ad-direct { grid-template-columns: 1fr; text-align: left; }
@media (max-width: 640px) { .ad-direct { grid-template-columns: 1fr; } }
.ad-house { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.ad-house strong { color: var(--chrome); }

/* ---- account / dashboard ------------------------------------------------- */
.dash { display: grid; grid-template-columns: 230px 1fr; gap: 36px; padding-block: 34px 70px; }
.dash-nav { display: grid; align-content: start; gap: 2px; position: sticky; top: 84px; }
.dash-nav a { padding: 9px 12px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-weight: 600; display: flex; justify-content: space-between; }
.dash-nav a:hover { background: var(--panel); }
.dash-nav a[aria-current="page"] { background: var(--panel-2); color: var(--blue); }
.dash-nav h2 { font-size: .95rem; color: var(--muted); margin: 18px 12px 6px; font-style: normal; font-family: var(--body); font-weight: 600; }
@media (max-width: 820px) { .dash { grid-template-columns: 1fr; } .dash-nav { position: static; grid-auto-flow: column; overflow-x: auto; } .dash-nav h2 { display: none; } }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
table.data td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:hover td { background: rgba(255,255,255,.015); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form select { width: auto; min-height: 36px; padding-block: 4px; font-size: .9rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 28px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: var(--muted); font-size: .9rem; }
.kpi b { display: block; font: italic 900 1.9rem/1.1 var(--display); color: var(--chrome); }
.kpi.alert b { color: var(--warn); }
a.kpi:hover { border-color: var(--steel); color: var(--text); }

/* quotes */
.quote-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.quote-photos a { aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.quote-photos img { width: 100%; height: 100%; object-fit: cover; }
.response { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 12px; }
.response .price { font: italic 900 1.6rem var(--display); color: var(--chrome); }
.dropzone { border: 2px dashed var(--steel); border-radius: var(--r); padding: 22px; text-align: center; color: var(--muted); background: var(--asphalt); }
.dropzone.drag { border-color: var(--blue); color: var(--chrome); }
.previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; justify-content: center; }
.previews img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: stretch; }
.tier { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.tier.hot { border-color: var(--blue); background: linear-gradient(180deg, rgba(0,180,255,.08), var(--panel) 40%); }
.tier h3 { font-size: 1.6rem; margin: 0; }
.tier .amt { font: italic 900 2.6rem/1 var(--display); color: var(--chrome); }
.tier .amt small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.tier ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.tier li { padding-left: 24px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 5px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.tier .btn { margin-top: auto; }

/* footer */
.footer { background: #090B0D; border-top: 1px solid var(--line); margin-top: 0; padding-top: 48px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h2, .footer-states h2 { font-size: 1.05rem; margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.footer-grid a:hover { color: var(--chrome); }
.footer-brand img { width: 230px; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); max-width: 34ch; }
.footer-states { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-states p { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; }
.footer-states a { color: var(--muted); text-decoration: none; }
.footer-states a:hover { color: var(--chrome); }
.footer-legal { padding-block: 22px 30px; color: var(--steel); font-size: .82rem; }
.footer-legal a { color: var(--steel); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* misc */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt2 { margin-top: 24px; } .mb2 { margin-bottom: 24px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); text-decoration: none; padding: 0 10px; }
.pager span { background: var(--blue); color: #031018; border-color: var(--blue); font-weight: 800; }
.cta-band { background: var(--grad); color: #031018; border-radius: var(--r-lg); padding: clamp(26px, 5vw, 44px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-band h2 { color: #031018; margin-bottom: .2em; }
.cta-band p { margin: 0; color: #08283A; font-weight: 500; max-width: 56ch; }
.cta-band .btn { --bg: var(--asphalt); --fg: var(--chrome); --bd: var(--asphalt); background: var(--asphalt); }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; } }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
code { background: var(--panel-2); padding: 2px 6px; border-radius: 4px; font-size: .9em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Tools for sale: search + Amazon catalog cards */
.tool-filters { align-items: center; }
.tool-filters .tool-search { width: min(420px, 100%); min-height: 44px; padding-block: 8px; font-size: 1rem; }
.tool-filters select { min-height: 44px; }
.tool-icon { color: var(--blue); opacity: .9; }
.tool-card .thumb { aspect-ratio: 16 / 10; background: radial-gradient(ellipse at 50% 45%, #2E3740 0%, var(--panel-2) 70%); padding: 6% 8%; }
.tool-card .thumb .tool-art { width: 100%; height: 100%; display: block; }
.tool-card .thumb img.tool-photo { object-fit: contain; background: #fff; padding: 12px; }
.tool-card h3 { font-size: 1.05rem; line-height: 1.2; }
.tool-brand { font-size: .78rem; font-weight: 700; color: var(--blue-ink); letter-spacing: .02em; }
.tool-card .tool-buy { margin-top: auto; align-self: flex-start; }
.tool-card .card-body { gap: 10px; }
