:root {
  --ink: #183435;
  --ink-2: #224647;
  --paper: #fff1df;
  --paper-2: #ead9c4;
  --white: #fff8ed;
  --muted: #776b5e;
  --line: rgba(31, 43, 42, 0.17);
  --accent: #2f8881;
  --accent-dark: #1f6f6b;
  --warning: #d86f35;
  --danger: #b8463b;
  --sans: Inter, "Segoe UI", "Microsoft YaHei UI", sans-serif;
  --display: "Arial Narrow", "Aptos Display", "Microsoft YaHei UI", sans-serif;
  --gutter: clamp(20px, 4.5vw, 76px);
  --header: 76px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; width: 100%; }
.skip-link { position: fixed; z-index: 100; left: 10px; top: 8px; padding: 10px 14px; color: var(--white); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.app-header {
  position: sticky; z-index: 50; top: 0; height: var(--header); padding: 0 var(--gutter);
  display: grid; grid-template-columns: auto minmax(330px, 1fr) minmax(240px, 0.7fr) auto auto;
  gap: clamp(18px, 3vw, 44px); align-items: center; color: var(--white); background: rgba(24, 52, 53, 0.96);
  border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(18px);
}
.app-brand { display: flex; gap: 11px; align-items: center; min-width: max-content; }
.app-brand > span:last-child { display: grid; gap: 2px; }
.app-brand strong { font-size: 20px; letter-spacing: .12em; }
.app-brand small { color: rgba(255,255,255,.5); font-size: 8px; letter-spacing: .18em; }
.app-brand-mark { width: 30px; height: 30px; display: grid; align-content: center; gap: 4px; transform: rotate(-8deg); }
.app-brand-mark i { display: block; height: 4px; border-radius: 9px; background: var(--accent); }
.app-brand-mark i:nth-child(1) { width: 19px; margin-left: 1px; }
.app-brand-mark i:nth-child(2) { width: 25px; margin-left: 5px; }
.app-brand-mark i:nth-child(3) { width: 17px; margin-left: 2px; }
.app-nav { display: flex; justify-content: center; gap: clamp(16px, 2vw, 34px); font-size: 13px; }
.app-nav a { position: relative; padding: 28px 0 25px; color: rgba(255,255,255,.7); white-space: nowrap; }
.app-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 3px; background: var(--accent); transition: right .2s ease; }
.app-nav a:hover, .app-nav a.is-active { color: #fff; }
.app-nav a:hover::after, .app-nav a.is-active::after { right: 0; }
.global-search { height: 40px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 0 12px; color: rgba(255,255,255,.55); border-bottom: 1px solid rgba(255,255,255,.28); transition: border-color .2s ease; }
.global-search:focus-within { border-color: var(--accent); }
.global-search input { min-width: 0; color: #fff; background: transparent; border: 0; outline: 0; }
.global-search input::placeholder { color: rgba(255,255,255,.45); }
.global-search kbd { font-size: 10px; font-family: inherit; }
.city-control { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.76); font-size: 12px; white-space: nowrap; }
.city-control i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(47,136,129,.14); }

.language-control { position: relative; justify-self: end; }
.language-trigger {
  min-width: 68px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  color: var(--white); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.language-trigger:hover, .language-trigger:focus-visible { background: rgba(47,136,129,.22); border-color: rgba(255,255,255,.5); outline: 0; }
.language-trigger:active { transform: scale(.97); }
.language-trigger span { font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.language-globe { color: var(--accent); font-size: 15px; line-height: 1; }
.language-trigger i { width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.language-control.is-open .language-trigger i { transform: rotate(225deg) translate(-1px,-1px); }
.language-menu {
  position: absolute; z-index: 90; top: calc(100% + 10px); right: 0; width: 154px; padding: 7px;
  color: var(--ink); background: rgba(255,248,237,.98); border: 1px solid var(--line); box-shadow: 0 18px 54px rgba(24,52,53,.2);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.language-control.is-open .language-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.language-menu button { width: 100%; min-height: 40px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.language-menu button:hover, .language-menu button:focus-visible, .language-menu button.is-active { background: rgba(47,136,129,.12); outline: 0; }
.language-menu small { color: var(--muted); font-size: 9px; letter-spacing: .12em; }

#workspace { min-height: calc(100svh - var(--header)); animation: page-in .42s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

.workspace-head { min-height: 295px; padding: 62px var(--gutter) 48px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr); gap: 50px; align-items: end; color: var(--white); background: var(--ink); }
.workspace-head .kicker, .section-kicker { margin: 0 0 14px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.workspace-head h1 { margin: 0; max-width: 900px; font-family: var(--display); font-size: clamp(48px, 6vw, 88px); line-height: .94; letter-spacing: -.045em; }
.workspace-head > p { max-width: 360px; margin: 0 0 8px; color: rgba(255,255,255,.63); font-size: 14px; line-height: 1.8; }
.workspace-head.compact { min-height: 220px; padding-top: 48px; }
.workspace-head.compact h1 { font-size: clamp(42px, 5vw, 68px); }

.toolbar { position: sticky; z-index: 20; top: var(--header); min-height: 66px; padding: 0 var(--gutter); display: flex; gap: 12px; align-items: center; background: rgba(243,238,228,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.filter { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; }
.filter.is-active { color: var(--white); border-color: var(--ink); background: var(--ink); }
.toolbar-note { margin-left: auto; color: var(--muted); font-size: 12px; }

.catalog-filters {
  position: sticky;
  z-index: 20;
  top: var(--header);
  padding: 0 var(--gutter);
  background: rgba(243, 238, 228, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.filter-line {
  min-height: 64px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.filter-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .14em;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-filters .filter {
  min-width: 58px;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.catalog-filters .filter:hover {
  border-color: var(--ink);
}

.player-range {
  display: flex;
  align-items: center;
  gap: 9px;
}

.player-range label {
  height: 38px;
  padding: 0 9px 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-left: 1px solid var(--line);
}

.player-range label span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.player-range select {
  width: 68px;
  padding: 6px 4px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: 0;
}

.player-range select:focus {
  border-color: var(--accent-dark);
}

.player-range i {
  color: var(--muted);
  font-style: normal;
}

.range-apply {
  height: 36px;
  padding: 0 14px;
  color: #fff;
  background: var(--accent-dark);
  border: 0;
  cursor: pointer;
}

.filter-status {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.filter-status p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.filter-status p strong {
  margin-right: 3px;
  color: var(--ink);
  font: 900 18px var(--display);
}

.filter-status button {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  cursor: pointer;
}

.filter-empty {
  min-height: 360px;
  padding: 70px 0;
  display: grid;
  align-content: center;
  justify-items: start;
  border-bottom: 1px solid var(--line);
}

.filter-empty > span {
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}

.filter-empty h2 {
  margin: 14px 0 12px;
  font: 900 clamp(34px, 5vw, 64px)/1 var(--display);
  letter-spacing: -.05em;
}

.filter-empty p {
  margin: 0;
  color: var(--muted);
}

.filter-empty button {
  margin-top: 30px;
  padding: 11px 16px;
  color: #fff;
  background: var(--ink);
  border: 0;
  cursor: pointer;
}

.content { padding: 54px var(--gutter) 90px; }
.content.narrow { width: min(100%, 1100px); margin: 0 auto; }
.section-title { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.section-title h2 { margin: 0; font-family: var(--display); font-size: clamp(32px, 4vw, 52px); line-height: 1; }
.section-title p { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.result-list, .catalog-list, .store-list, .archive-list, .review-list { border-top: 1px solid var(--ink); }
.result-row, .catalog-row, .store-row, .archive-row, .review-row { position: relative; display: grid; align-items: center; gap: clamp(16px, 3vw, 44px); border-bottom: 1px solid var(--line); transition: background .2s ease, padding .2s ease; }
.result-row:hover, .catalog-row:hover, .store-row:hover, .archive-row:hover, .review-row:hover { background: rgba(255,255,255,.58); }
.result-row { grid-template-columns: 78px minmax(190px, 1.2fr) minmax(110px, .5fr) minmax(150px, .7fr) 40px; padding: 17px 8px; }
.result-row img { width: 62px; height: 78px; object-fit: cover; border-radius: 3px; }
.row-main { min-width: 0; }
.row-main strong { display: block; margin-bottom: 7px; font-size: 18px; }
.row-main span, .row-meta { color: var(--muted); font-size: 12px; }
.row-state { justify-self: start; padding: 6px 10px; color: var(--accent-dark); background: rgba(47,136,129,.13); border-radius: 999px; font-size: 11px; font-weight: 700; }
.row-arrow { justify-self: end; font-size: 22px; transition: transform .2s ease; }
.result-row:hover .row-arrow, .catalog-row:hover .row-arrow, .store-row:hover .row-arrow { transform: translate(3px, -3px); }

.catalog-row { grid-template-columns: minmax(180px, .72fr) minmax(220px, 1fr) minmax(250px, 1.2fr) 44px; min-height: 230px; padding: 24px 8px; overflow: hidden; }
.catalog-media { align-self: stretch; min-height: 180px; overflow: hidden; background: var(--paper-2); }
.catalog-media img { height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.catalog-row:hover .catalog-media img { transform: scale(1.035); }
.catalog-index { color: var(--muted); font-size: 11px; letter-spacing: .14em; }
.catalog-copy h2 { margin: 12px 0 8px; font-family: var(--display); font-size: clamp(30px, 3vw, 48px); line-height: 1; }
.catalog-copy p, .catalog-detail p { color: var(--muted); line-height: 1.7; }
.catalog-detail dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 20px; }
.catalog-detail dt { color: var(--muted); font-size: 10px; }
.catalog-detail dd { margin: 5px 0 0; font-size: 13px; }

.search-stage { padding: 44px var(--gutter) 34px; background: var(--ink); color: var(--white); }
.search-stage form { display: grid; grid-template-columns: 1fr auto; gap: 15px; max-width: 1050px; margin: 0 auto; border-bottom: 2px solid var(--accent); }
.search-stage input { width: 100%; padding: 15px 0; color: #fff; background: transparent; border: 0; outline: 0; font-family: var(--display); font-size: clamp(32px, 5vw, 68px); }
.search-stage button { padding: 0 8px; color: var(--accent); background: transparent; border: 0; font-size: 30px; cursor: pointer; }
.result-summary { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; color: var(--muted); font-size: 12px; }

.primary-button, .secondary-button { min-height: 42px; padding: 0 17px; border-radius: 2px; cursor: pointer; }
.primary-button { color: var(--ink); background: var(--accent); border: 1px solid var(--accent); font-weight: 750; }
.secondary-button { background: transparent; border: 1px solid var(--line); }

.nearby-page { overflow: clip; }
.nearby-intro {
  min-height: calc(100svh - var(--header));
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(540px, 1.18fr);
  color: var(--white);
  background: var(--ink);
}
.nearby-intro-copy {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 8vw, 118px) var(--gutter) 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nearby-intro-copy::after {
  content: "NEAR";
  position: absolute;
  left: var(--gutter);
  bottom: 20px;
  color: rgba(255,255,255,.025);
  font: 900 clamp(100px, 16vw, 240px)/.75 var(--display);
  letter-spacing: -.08em;
  pointer-events: none;
}
.nearby-intro-copy .section-kicker { color: var(--accent); }
.nearby-intro-copy h1 {
  max-width: 720px;
  margin: 23px 0 28px;
  font: 900 clamp(54px, 6.5vw, 104px)/.9 var(--display);
  letter-spacing: -.065em;
}
.nearby-intro-copy h1 em { color: var(--accent); font-style: normal; }
.nearby-intro-copy > p:not(.section-kicker) {
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,.6);
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.8;
}
.nearby-location-control {
  position: relative;
  z-index: 2;
  max-width: 590px;
  margin-top: clamp(46px, 7vh, 78px);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.nearby-location-control div { display: grid; gap: 7px; }
.nearby-location-control div span { color: rgba(255,255,255,.44); font-size: 10px; letter-spacing: .1em; }
.nearby-location-control div strong { font-size: clamp(19px, 2vw, 27px); }
.nearby-location-control button {
  min-height: 42px;
  padding: 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(47,136,129,.46);
  cursor: pointer;
}
.nearby-location-control button span { margin-left: 10px; }
.nearby-privacy {
  position: relative;
  z-index: 2;
  max-width: 590px;
  margin-top: 22px;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 11px;
  align-items: start;
  color: rgba(255,255,255,.45);
  font-size: 10px;
  line-height: 1.7;
}
.nearby-privacy i { width: 7px; height: 7px; margin-top: 4px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px rgba(47,136,129,.13); }

.nearby-map {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #244344;
  border-left: 1px solid rgba(255,255,255,.1);
  isolation: isolate;
}
.nearby-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 43% 42%, rgba(47,136,129,.2), transparent 28%), radial-gradient(circle at 78% 18%, rgba(216,111,53,.14), transparent 25%), linear-gradient(145deg, rgba(47,136,129,.07), transparent 45%);
}
.nearby-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 80px 80px;
}
.map-coordinate {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 30px;
  display: flex;
  gap: 22px;
  color: rgba(255,255,255,.42);
  font-size: 9px;
  letter-spacing: .14em;
}
.nearby-map .map-grid {
  position: absolute;
  inset: -14%;
  opacity: .45;
  background-image: linear-gradient(28deg, transparent 48%, rgba(255,255,255,.14) 49%, rgba(255,255,255,.14) 50%, transparent 51%), linear-gradient(112deg, transparent 47%, rgba(255,255,255,.08) 48%, rgba(255,255,255,.08) 49%, transparent 50%);
  background-size: 165px 130px, 220px 170px;
  transform: rotate(-4deg) scale(1.18);
}
.map-orbits { position: absolute; left: 43%; top: 42%; width: 32vw; aspect-ratio: 1; transform: translate(-50%,-50%); }
.map-orbits i { position: absolute; inset: 0; border: 1px solid rgba(47,136,129,.2); border-radius: 50%; animation: map-pulse 5s ease-in-out infinite; }
.map-orbits i:nth-child(2) { inset: 22%; animation-delay: .7s; }.map-orbits i:nth-child(3) { inset: 42%; animation-delay: 1.4s; }
.nearby-map .map-road { position: absolute; left: -12%; right: -12%; height: 17px; border: 2px solid rgba(255,255,255,.28); border-left: 0; border-right: 0; }
.nearby-map .road-one { top: 49%; transform: rotate(-13deg); }.nearby-map .road-two { top: 30%; transform: rotate(21deg); opacity: .45; }
.nearby-map .map-label { position: absolute; z-index: 2; color: rgba(255,255,255,.35); font-size: 9px; letter-spacing: .16em; }
.nearby-map .map-label.one { left: 15%; top: 20%; }.nearby-map .map-label.two { right: 15%; top: 35%; }.nearby-map .map-label.three { left: 45%; bottom: 22%; }
.nearby-map .pin {
  position: absolute;
  z-index: 4;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(24,52,53,.9);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%;
  box-shadow: 0 16px 35px rgba(0,0,0,.2);
  cursor: pointer;
  transform: scale(.92);
  transition: .28s cubic-bezier(.2,.7,.2,1);
  animation: pin-in .55s both;
}
.nearby-map .pin::after { content: ""; position: absolute; inset: -8px; border: 1px solid rgba(47,136,129,.24); border-radius: 50%; }
.nearby-map .pin span { font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.nearby-map .pin:hover, .nearby-map .pin.is-active { color: var(--ink); background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.nearby-map .pin.p1 { left: 37%; top: 34%; }.nearby-map .pin.p2 { left: 67%; top: 23%; animation-delay: .12s; }.nearby-map .pin.p3 { left: 58%; top: 62%; animation-delay: .22s; }
.map-focus {
  position: absolute;
  z-index: 5;
  left: 32px;
  bottom: 34px;
  width: min(430px, calc(100% - 64px));
  padding: 23px 25px;
  color: var(--ink);
  background: rgba(255,250,241,.94);
  box-shadow: 0 28px 80px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}
.map-focus div { display: grid; gap: 9px; }
.map-focus div span { color: var(--accent-dark); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.map-focus div strong { font-size: clamp(20px, 2.2vw, 30px); }
.map-focus p { margin: 18px 0 20px; color: var(--muted); font-size: 11px; }
.map-focus a { display: flex; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 750; }
.map-focus a span { color: var(--accent-dark); }
.map-legend { position: absolute; z-index: 4; right: 28px; bottom: 32px; display: grid; gap: 8px; color: rgba(255,255,255,.42); font-size: 9px; }
.map-legend span { display: flex; gap: 8px; align-items: center; }
.map-legend i { width: 7px; height: 7px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; }
.map-legend span:first-child i { background: var(--accent); border-color: var(--accent); }

.nearby-directory { padding: clamp(70px, 8vw, 120px) var(--gutter); }
.nearby-directory-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(30px, 7vw, 120px);
  align-items: end;
  margin-bottom: 55px;
}
.nearby-directory-head h2 { margin: 16px 0 0; font: 900 clamp(48px, 6vw, 88px)/.92 var(--display); letter-spacing: -.06em; }
.nearby-directory-head > p { max-width: 430px; margin: 0; color: var(--muted); line-height: 1.8; }
.nearby-filter { min-height: 58px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.nearby-filter button { padding: 8px 12px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 99px; cursor: pointer; }
.nearby-filter button:hover, .nearby-filter button.is-active { color: var(--white); background: var(--ink); }
.nearby-filter > span { margin-left: auto; color: var(--muted); font-size: 10px; }
.nearby-store-list { border-bottom: 1px solid var(--ink); }
.nearby-store {
  position: relative;
  min-height: 168px;
  display: grid;
  grid-template-columns: 55px minmax(240px, 1.2fr) minmax(170px, .72fr) minmax(160px, .62fr) 34px;
  gap: clamp(18px, 3vw, 50px);
  align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: padding .3s ease, background .3s ease, opacity .2s ease;
}
.nearby-store[hidden] { display: none; }
.nearby-store::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .3s ease; }
.nearby-store:hover, .nearby-store.is-active { padding-right: 18px; padding-left: 18px; background: rgba(255,250,241,.72); }
.nearby-store:hover::before, .nearby-store.is-active::before { transform: scaleY(1); }
.nearby-store-index { align-self: start; color: var(--accent-dark); font: 900 12px var(--display); letter-spacing: .1em; }
.nearby-store-main p { margin: 0 0 11px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.nearby-store-main h3 { margin: 0 0 12px; font: 900 clamp(24px, 2.5vw, 38px)/1 var(--display); letter-spacing: -.035em; }
.nearby-store-main > span { color: var(--muted); font-size: 11px; line-height: 1.6; }
.nearby-store-state { display: grid; gap: 8px; align-content: center; }
.nearby-store-state span, .nearby-store-state small { color: var(--muted); font-size: 10px; }
.nearby-store-state strong { font-size: 13px; }
.nearby-store-distance { display: grid; gap: 10px; text-align: right; }
.nearby-store-distance strong { font: 900 clamp(22px, 2.4vw, 34px) var(--display); }
.nearby-store-distance span { color: var(--muted); font-size: 10px; }
.nearby-clue { min-height: 120px; display: grid; grid-template-columns: .55fr 1fr auto; gap: 24px; align-items: center; padding: 24px 8px; border-bottom: 1px solid var(--line); }
.nearby-clue > span { font-weight: 800; }.nearby-clue p { margin: 0; color: var(--muted); font-size: 11px; }
.nearby-clue button { padding: 0 0 7px; color: var(--accent-dark); background: transparent; border: 0; border-bottom: 1px solid rgba(27,109,105,.32); cursor: pointer; }
.nearby-clue button span { margin-left: 10px; }

.nearby-boundary { padding: clamp(80px, 10vw, 150px) var(--gutter); color: var(--white); background: var(--ink); }
.nearby-boundary .section-kicker { color: var(--accent); }
.nearby-boundary h2 { max-width: 980px; margin: 22px 0 70px; font: 900 clamp(50px, 7vw, 104px)/.9 var(--display); letter-spacing: -.065em; }
.nearby-boundary > div { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.nearby-boundary > div span, .nearby-boundary > div p { margin: 0; padding: 22px 18px; border-right: 1px solid rgba(255,255,255,.12); }
.nearby-boundary > div span { color: var(--accent); font-size: 10px; font-weight: 800; }
.nearby-boundary > div p { color: rgba(255,255,255,.55); font-size: 11px; }
.nearby-boundary > div p:last-child { border-right: 0; }

@keyframes pin-in { from { opacity: 0; transform: translateY(16px) scale(.72); } }
@keyframes map-pulse { 0%,100% { opacity: .35; transform: scale(.98); } 50% { opacity: .9; transform: scale(1.025); } }

.empty-state { min-height: 420px; display: grid; place-items: center; padding: 60px 20px; text-align: center; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.empty-state .symbol { width: 90px; height: 90px; margin: 0 auto 30px; display: grid; place-items: center; color: var(--accent-dark); border: 1px solid var(--line); border-radius: 50%; font-size: 34px; }
.empty-state h2 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(36px, 5vw, 60px); }
.empty-state p { max-width: 520px; margin: 0 auto 24px; color: var(--muted); line-height: 1.7; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.archive-row { grid-template-columns: 70px minmax(220px, 1fr) minmax(120px, .45fr) minmax(180px, .7fr) 44px; min-height: 108px; padding: 18px 8px; }
.archive-row time { color: var(--muted); font-family: var(--display); font-size: 25px; }
.archive-row h3 { margin: 0 0 6px; font-size: 18px; }
.archive-row p { margin: 0; color: var(--muted); font-size: 12px; }
.archive-price { font-family: var(--display); font-size: 28px; }

.detail-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); min-height: 510px; color: var(--white); background: var(--ink); }
.detail-copy { padding: 72px var(--gutter); align-self: end; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; color: rgba(255,255,255,.48); font-size: 11px; }
.detail-copy h1 { max-width: 820px; margin: 0 0 22px; font-family: var(--display); font-size: clamp(52px, 7vw, 98px); line-height: .9; }
.detail-copy > p { max-width: 670px; color: rgba(255,255,255,.62); line-height: 1.8; }
.detail-media { position: relative; min-height: 360px; overflow: hidden; }
.detail-media img { height: 100%; object-fit: cover; }
.detail-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), transparent 28%); }
.fact-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.fact-strip div { padding: 22px; border-right: 1px solid var(--line); }
.fact-strip div:last-child { border-right: 0; }
.fact-strip span { color: var(--muted); font-size: 10px; }
.fact-strip strong { display: block; margin-top: 8px; }

.availability-table { border-top: 1px solid var(--ink); }
.availability-row { display: grid; grid-template-columns: minmax(180px,1fr) 120px 130px 160px; gap: 18px; align-items: center; padding: 18px 8px; border-bottom: 1px solid var(--line); }
.availability-row strong small { display: block; margin-top: 5px; color: var(--muted); font-weight: 400; }
.freshness { color: var(--muted); font-size: 11px; }
.expired { color: var(--warning); }

.flow-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.form-layout { display: grid; grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); }
.steps { position: sticky; top: calc(var(--header) + 90px); align-self: start; border-top: 1px solid var(--ink); }
.steps div { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 15px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; }
.steps .is-active { color: var(--ink); font-weight: 750; }
.steps b { color: var(--accent-dark); }
.form-section { margin-bottom: 46px; }
.form-section h2 { margin: 0 0 22px; font-family: var(--display); font-size: 34px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field span { color: var(--muted); font-size: 11px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); outline: 0; }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-dark); }
.upload-zone { min-height: 130px; display: grid; place-items: center; margin-top: 16px; color: var(--muted); border: 1px dashed rgba(31,43,42,.3); background: rgba(255,250,241,.38); }

.admin-shell { display: grid; grid-template-columns: 230px minmax(0,1fr); min-height: calc(100svh - var(--header)); }
.admin-nav { padding: 32px 22px; color: var(--white); background: var(--ink-2); }
.admin-nav strong { display: block; margin-bottom: 28px; color: var(--accent); font-size: 12px; letter-spacing: .12em; }
.admin-nav a { display: block; padding: 13px 0; color: rgba(255,255,255,.6); border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px; }
.admin-nav a.is-active { color: #fff; }
.admin-main { padding: 42px clamp(22px,4vw,60px) 80px; background: #eee6d9; }
.admin-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.admin-heading h1 { margin: 0; font-family: var(--display); font-size: 48px; }
.review-row { grid-template-columns: 32px minmax(180px,1fr) 120px 110px 170px; padding: 18px 6px; font-size: 12px; }
.review-row strong { font-size: 14px; }
.review-actions { display: flex; justify-content: flex-end; gap: 7px; }
.review-actions button { padding: 7px 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.review-actions .approve { color: var(--white); background: var(--accent-dark); border-color: var(--accent-dark); }

.prototype-states { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); }
.prototype-states strong { display: block; margin-bottom: 12px; font-size: 11px; letter-spacing: .1em; }
.prototype-states nav { display: flex; flex-wrap: wrap; gap: 8px; }
.prototype-states a { padding: 7px 10px; color: var(--muted); border: 1px solid var(--line); font-size: 10px; }

.app-footer { min-height: 150px; padding: 34px var(--gutter); display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: center; color: rgba(255,255,255,.58); background: var(--ink); }
.app-footer div { display: grid; gap: 7px; }
.app-footer strong { color: #fff; font-size: 19px; letter-spacing: .1em; }
.app-footer span, .app-footer small { font-size: 10px; }
.app-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; font-size: 11px; }
.app-footer small { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; padding: 12px 18px; color: var(--white); background: var(--ink); box-shadow: 0 12px 40px rgba(0,0,0,.24); opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1120px) {
  .app-header { grid-template-columns: auto 1fr auto auto; }
  .global-search { display: none; }
  .filter-line { grid-template-columns: 64px 1fr; padding: 12px 0; }
  .player-range { grid-column: 2; justify-self: start; }
  .catalog-row { grid-template-columns: 200px 1fr 1fr 36px; }
  .nearby-intro { grid-template-columns: minmax(330px, .82fr) minmax(500px, 1.18fr); }
  .nearby-intro-copy { padding-right: 38px; }
  .nearby-store { grid-template-columns: 46px minmax(240px, 1.2fr) minmax(145px, .72fr) minmax(120px, .55fr) 28px; gap: 22px; }
}

@media (max-width: 820px) {
  :root { --header: 118px; }
  .app-header { height: auto; min-height: var(--header); grid-template-columns: 1fr auto auto; grid-template-rows: 64px auto; gap: 0 14px; padding: 0 20px; }
  .app-brand { grid-column: 1; }
  .city-control { grid-column: 2; }
  .language-control { grid-column: 3; }
  .app-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 24px; overflow-x: auto; scrollbar-width: none; }
  .app-nav::-webkit-scrollbar { display: none; }
  .app-nav a { padding: 14px 0 13px; }
  .workspace-head { min-height: 260px; grid-template-columns: 1fr; gap: 20px; padding-top: 48px; }
  .workspace-head > p { max-width: 620px; }
  .toolbar { top: var(--header); overflow-x: auto; }
  .toolbar-note { display: none; }
  .catalog-filters { position: static; }
  .catalog-row { grid-template-columns: 135px 1fr 34px; min-height: 175px; }
  .catalog-detail { display: none; }
  .catalog-media { min-height: 130px; }
  .nearby-intro { grid-template-columns: 1fr; }
  .nearby-map { min-height: 540px; order: -1; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nearby-intro-copy { min-height: 650px; padding-top: 74px; }
  .map-orbits { width: 64vw; }
  .nearby-directory-head { grid-template-columns: 1fr; gap: 24px; }
  .nearby-directory-head > p { max-width: 620px; }
  .nearby-store { grid-template-columns: 44px minmax(0, 1fr) minmax(130px, .45fr) 28px; min-height: 176px; }
  .nearby-store-state { grid-column: 2; }
  .nearby-store-distance { grid-column: 3; grid-row: 1 / span 2; }
  .nearby-clue { grid-template-columns: 1fr auto; }
  .nearby-clue p { grid-column: 1; grid-row: 2; }
  .nearby-clue button { grid-column: 2; grid-row: 1 / span 2; }
  .nearby-boundary > div { grid-template-columns: auto 1fr; }
  .nearby-boundary > div span, .nearby-boundary > div p { border-bottom: 1px solid rgba(255,255,255,.12); }
  .nearby-boundary > div p { border-right: 0; }
  .nearby-boundary > div span:nth-last-of-type(1), .nearby-boundary > div p:last-child { border-bottom: 0; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-media { order: -1; max-height: 420px; }
  .detail-media::after { background: linear-gradient(0deg, var(--ink), transparent 35%); }
  .detail-copy { padding-top: 36px; }
  .form-layout { grid-template-columns: 1fr; }
  .steps { position: static; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .steps div { display: block; padding: 10px; border: 1px solid var(--line); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { display: flex; gap: 20px; overflow-x: auto; padding: 16px 20px; }
  .admin-nav strong { display: none; }
  .admin-nav a { min-width: max-content; border-bottom: 0; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .app-brand small { display: none; }
  .city-control span { display: none; }
  .language-trigger { min-width: 45px; padding: 0 9px; }
  .language-globe, .language-trigger i { display: none; }
  .workspace-head { min-height: 225px; padding-top: 38px; padding-bottom: 36px; }
  .workspace-head h1 { font-size: 48px; }
  .catalog-filters { padding-right: 20px; padding-left: 20px; }
  .filter-line { grid-template-columns: 1fr; gap: 10px; padding: 16px 0; }
  .filter-options { flex-wrap: nowrap; padding-bottom: 3px; overflow-x: auto; scrollbar-width: none; }
  .filter-options::-webkit-scrollbar { display: none; }
  .catalog-filters .filter { min-width: max-content; }
  .player-range { grid-column: 1; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; gap: 7px; }
  .player-range label { padding: 0; border-left: 0; }
  .player-range select { width: 100%; }
  .range-apply { grid-column: 1 / -1; }
  .filter-status { align-items: flex-start; padding: 12px 0; }
  .filter-status p { line-height: 1.7; }
  .content { padding-top: 38px; padding-bottom: 68px; }
  .section-title { grid-template-columns: 1fr; }
  .result-row { grid-template-columns: 58px 1fr 30px; gap: 13px; padding: 14px 0; }
  .result-row img { width: 50px; height: 65px; }
  .result-row .row-meta, .result-row .row-state { display: none; }
  .catalog-row { grid-template-columns: 106px 1fr 26px; gap: 15px; padding: 16px 0; }
  .catalog-media { min-height: 120px; }
  .catalog-copy h2 { font-size: 29px; }
  .archive-row { grid-template-columns: 48px 1fr auto; gap: 14px; }
  .archive-row .archive-price, .archive-row .row-meta { display: none; }
  .nearby-map { min-height: 430px; }
  .map-coordinate, .map-legend { display: none; }
  .map-orbits { left: 50%; width: 88vw; }
  .nearby-map .pin { width: 40px; height: 40px; }
  .nearby-map .pin.p1 { left: 24%; top: 27%; }
  .nearby-map .pin.p2 { left: 68%; top: 18%; }
  .nearby-map .pin.p3 { left: 57%; top: 49%; }
  .map-focus { left: 20px; bottom: 20px; width: calc(100% - 40px); padding: 18px 20px; }
  .map-focus p { margin: 12px 0 14px; }
  .nearby-intro-copy { min-height: 620px; padding: 64px 20px 44px; }
  .nearby-intro-copy::after { left: 20px; font-size: 118px; }
  .nearby-intro-copy h1 { font-size: 53px; }
  .nearby-location-control { grid-template-columns: 1fr; gap: 14px; margin-top: 44px; }
  .nearby-location-control button { justify-self: start; }
  .nearby-directory { padding-right: 20px; padding-left: 20px; }
  .nearby-directory-head { margin-bottom: 38px; }
  .nearby-directory-head h2 { font-size: 47px; }
  .nearby-filter { min-height: 62px; overflow-x: auto; scrollbar-width: none; }
  .nearby-filter::-webkit-scrollbar { display: none; }
  .nearby-filter button { min-width: max-content; }
  .nearby-filter > span { display: none; }
  .nearby-store { grid-template-columns: 30px minmax(0, 1fr) 22px; min-height: 0; gap: 12px; padding: 24px 0; }
  .nearby-store:hover, .nearby-store.is-active { padding-right: 8px; padding-left: 8px; }
  .nearby-store-main h3 { font-size: 27px; }
  .nearby-store-main > span { display: block; max-width: 260px; }
  .nearby-store-state { grid-column: 2; margin-top: 5px; }
  .nearby-store-distance { grid-column: 2; grid-row: auto; display: flex; align-items: baseline; gap: 10px; text-align: left; }
  .nearby-store-distance strong { font-size: 23px; }
  .nearby-store > span:last-child { grid-column: 3; grid-row: 1 / span 3; }
  .nearby-clue { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .nearby-clue p, .nearby-clue button { grid-column: 1; grid-row: auto; }
  .nearby-clue button { justify-self: start; margin-top: 8px; }
  .nearby-boundary { padding-right: 20px; padding-left: 20px; }
  .nearby-boundary h2 { margin-bottom: 52px; font-size: 43px; line-height: .94; }
  .nearby-boundary > div span, .nearby-boundary > div p { padding: 18px 10px; }
  .fact-strip { grid-template-columns: 1fr 1fr; }
  .fact-strip div:nth-child(2) { border-right: 0; }
  .fact-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .availability-row { grid-template-columns: 1fr auto; gap: 10px; }
  .availability-row .freshness, .availability-row .row-meta { grid-column: 1 / -1; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .review-row { grid-template-columns: 26px 1fr; }
  .review-row > :not(:nth-child(1)):not(:nth-child(2)) { grid-column: 2; }
  .review-actions { justify-content: flex-start; }
  .app-footer { grid-template-columns: 1fr; }
  .app-footer nav { justify-content: flex-start; line-height: 2; }
  .app-footer small { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
