:root {
  color-scheme: dark;
  --bg: #06100e;
  --bg-soft: #0a1714;
  --panel: rgba(14, 29, 25, .78);
  --panel-solid: #0d1d19;
  --line: rgba(213, 255, 234, .12);
  --line-strong: rgba(213, 255, 234, .22);
  --text: #f2f8f5;
  --muted: #91a79e;
  --lime: #c9ff4d;
  --mint: #55f0b0;
  --orange: #ff9a62;
  --danger: #ff6f82;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
  --radius: 26px;
  --radius-small: 16px;
  --max-width: 1480px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #edf3ef;
  --bg-soft: #e4ede8;
  --panel: rgba(255, 255, 255, .8);
  --panel-solid: #f8fbf9;
  --line: rgba(11, 37, 29, .1);
  --line-strong: rgba(11, 37, 29, .2);
  --text: #0b211b;
  --muted: #60736b;
  --shadow: 0 24px 80px rgba(21, 57, 45, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ambient { position: fixed; z-index: -1; width: 42rem; height: 42rem; border-radius: 50%; filter: blur(90px); opacity: .16; pointer-events: none; }
.ambient-one { top: -24rem; right: -12rem; background: var(--lime); }
.ambient-two { bottom: -28rem; left: -18rem; background: #20b8ff; opacity: .1; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 18px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 12px 42px rgba(0,0,0,.13);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-size: 1.05rem; letter-spacing: -.02em; }
.brand b { font-weight: 820; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #07100e; background: var(--lime); box-shadow: 0 0 32px rgba(201,255,77,.22); }
.brand-mark svg { width: 23px; height: 23px; stroke-width: 2.4; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.notify-button { display: inline-flex; align-items: center; gap: 8px; height: 39px; padding: 0 13px; border: 1px solid rgba(201,255,77,.28); border-radius: 12px; color: var(--lime); background: rgba(201,255,77,.07); font-size: .76rem; font-weight: 800; transition: .2s ease; }
.notify-button:hover { transform: translateY(-1px); border-color: rgba(201,255,77,.55); background: rgba(201,255,77,.12); }
.notify-button.is-active { color: #07100e; border-color: transparent; background: var(--lime); }
.notify-button.is-busy { opacity: .55; pointer-events: none; }
.notify-button svg { width: 17px; height: 17px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(85,240,176,.1), 0 0 16px var(--mint); animation: pulse 2s ease-in-out infinite; }
.icon-button, .view-button { display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); background: transparent; transition: .2s ease; }
.icon-button { width: 39px; height: 39px; border-radius: 12px; }
.icon-button:hover, .view-button:hover, .view-button.is-active { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.06); }

main { width: min(calc(100% - 48px), var(--max-width)); margin: 0 auto; }
.hero { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; min-height: 500px; padding: 78px 4vw 44px; }
.eyebrow { display: inline-block; color: var(--mint); font-size: .73rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin: 20px 0 20px; font-size: clamp(3.5rem, 7vw, 7.8rem); line-height: .88; letter-spacing: -.072em; font-weight: 830; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--text) 55%, transparent); }
.hero p { max-width: 620px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.25rem); }
.hero-orbit { position: relative; width: min(33vw, 420px); aspect-ratio: 1; justify-self: center; }
.orbit-ring { position: absolute; inset: 8%; border: 1px solid var(--line); border-radius: 50%; }
.ring-one { animation: spin 16s linear infinite; }
.ring-two { inset: 25%; border-style: dashed; animation: spin 11s linear infinite reverse; }
.radar-core { position: absolute; inset: 36%; display: grid; place-items: center; border-radius: 28px; color: #06100e; background: var(--lime); box-shadow: 0 0 100px rgba(201,255,77,.22); transform: rotate(-8deg); }
.radar-core svg { width: 52%; height: 52%; stroke-width: 2; }
.orbit-dot { position: absolute; width: 13px; height: 13px; border: 3px solid var(--bg); border-radius: 50%; background: var(--mint); box-shadow: 0 0 25px var(--mint); }
.dot-one { top: 12%; left: 48%; }.dot-two { right: 12%; bottom: 26%; background: var(--orange); }.dot-three { left: 15%; bottom: 19%; width: 9px; height: 9px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { position: relative; overflow: hidden; min-height: 170px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.stat-card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -60px; bottom: -60px; border: 1px solid var(--line-strong); border-radius: 50%; }
.accent-card { color: #07100e; border-color: transparent; background: var(--lime); }
.accent-card .stat-label, .accent-card small { color: rgba(7,16,14,.65); }
.stat-label { display: block; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.stat-card strong { display: block; margin: 12px 0 0; font-size: clamp(2.6rem, 4vw, 4.4rem); line-height: 1; letter-spacing: -.06em; }
.stat-card small { color: var(--muted); }

.control-panel { position: sticky; z-index: 15; top: 90px; margin: 18px 0 80px; padding: 10px; border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(24px); }
.control-panel form { display: grid; grid-template-columns: minmax(260px, 1.7fr) repeat(4, minmax(145px, .75fr)) auto; gap: 8px; }
.control-panel input, .control-panel select { width: 100%; height: 48px; border: 1px solid transparent; border-radius: 14px; outline: none; color: var(--text); background: color-mix(in srgb, var(--panel-solid) 86%, transparent); transition: .2s ease; }
.control-panel select { padding: 0 38px 0 14px; }
.control-panel input:focus, .control-panel select:focus { border-color: rgba(201,255,77,.5); box-shadow: 0 0 0 4px rgba(201,255,77,.08); }
.search-field { position: relative; }
.search-field svg { position: absolute; z-index: 2; left: 15px; top: 14px; color: var(--muted); }
.search-field input { padding: 0 48px 0 44px; }
.search-field kbd { position: absolute; right: 13px; top: 12px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: transparent; }
.filter-button { height: 48px; padding: 0 20px; border: 0; border-radius: 14px; color: #07100e; background: var(--lime); font-weight: 850; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease; }
.filter-button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201,255,77,.17); }

.results-section { min-height: 600px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2, .coverage-strip h2 { margin: 7px 0 0; font-size: clamp(1.8rem, 3vw, 3.2rem); letter-spacing: -.045em; }
.view-actions { display: flex; align-items: center; gap: 8px; }
.view-actions > span { margin-right: 8px; color: var(--muted); font-size: .78rem; }
.view-button { width: 38px; height: 38px; border-radius: 11px; }

.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.listing-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 18px 55px rgba(0,0,0,.16); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.listing-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 26px 70px rgba(0,0,0,.27); }
.card-visual { position: relative; display: flex; align-items: flex-end; min-height: 205px; padding: 22px; overflow: hidden; isolation: isolate; }
.card-visual::before { content: ""; position: absolute; z-index: -1; inset: -35%; background: radial-gradient(circle at 60% 30%, rgba(255,255,255,.25), transparent 25%), linear-gradient(135deg, rgba(255,255,255,.1), transparent 55%); transform: rotate(-12deg); }
.tone-0 { background: #2c5f4f; }.tone-1 { background: #764936; }.tone-2 { background: #315a73; }.tone-3 { background: #645074; }.tone-4 { background: #5d5b31; }.tone-5 { background: #3f5360; }
.place-monogram { position: absolute; right: -8px; bottom: -55px; color: rgba(255,255,255,.11); font-size: 14rem; line-height: 1; font-weight: 900; }
.place-name { position: relative; z-index: 1; color: #fff; font-size: .85rem; font-weight: 750; letter-spacing: .04em; }
.status-badge { position: absolute; top: 16px; left: 16px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; background: rgba(3,12,9,.36); backdrop-filter: blur(12px); font-size: .68rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.status-badge.is-new { color: #07100e; border-color: transparent; background: var(--lime); }
.status-badge.is-offline { background: rgba(110,19,33,.7); }
.favorite-button { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: #fff; background: rgba(3,12,9,.32); backdrop-filter: blur(12px); }
.favorite-button svg { fill: transparent; }
.favorite-button.is-saved { color: var(--lime); border-color: rgba(201,255,77,.5); }
.favorite-button.is-saved svg { fill: currentColor; }
.card-content { padding: 22px; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 13px; color: var(--muted); font-size: .7rem; }
.card-meta span { max-width: 58%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-card h3 { min-height: 2.65em; margin: 0; font-size: 1.18rem; line-height: 1.3; letter-spacing: -.02em; }
.address { display: flex; align-items: flex-start; gap: 7px; min-height: 43px; margin: 13px 0 20px; color: var(--muted); font-size: .84rem; }
.address svg { flex: 0 0 auto; width: 16px; margin-top: 2px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.price { font-size: 1.1rem; letter-spacing: -.025em; }
.source-link { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); font-size: .78rem; font-weight: 800; text-decoration: none; }
.source-link svg { width: 16px; transition: transform .2s ease; }.source-link:hover svg { transform: translateX(3px); }
.source-link.is-disabled { color: var(--muted); }

.listing-grid.list-view { grid-template-columns: 1fr; }
.list-view .listing-card { display: grid; grid-template-columns: 245px 1fr; }
.list-view .card-visual { min-height: 180px; }
.list-view .listing-card h3 { min-height: 0; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 42px 0 90px; }
.pagination a, .pagination > span { padding: 11px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); text-decoration: none; }
.pagination a:hover { color: var(--text); border-color: var(--line-strong); }
.pagination .is-disabled { opacity: .35; }
.empty-state { margin: 40px 0 90px; padding: 70px 30px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; background: var(--panel); }
.empty-state h1, .empty-state h3 { margin: 14px 0 6px; }.empty-state p { color: var(--muted); }.empty-state a { color: var(--lime); font-weight: 800; }
.empty-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto; border-radius: 20px; color: #07100e; background: var(--lime); font-size: 1.8rem; }
.fatal-state { margin-top: 120px; }

.coverage-strip { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; margin: 40px 0 80px; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--line); border-radius: 34px; background: linear-gradient(135deg, var(--panel-solid), color-mix(in srgb, var(--panel-solid) 40%, transparent)); }
.place-cloud { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.place-cloud span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .78rem; }
footer { display: flex; justify-content: space-between; gap: 20px; width: min(calc(100% - 48px), var(--max-width)); margin: 0 auto; padding: 25px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
footer > span:first-child { color: var(--text); font-weight: 850; } footer a { color: var(--muted); }
.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; max-width: min(390px, calc(100% - 32px)); padding: 14px 17px; border: 1px solid var(--line-strong); border-radius: 15px; color: var(--text); background: var(--panel-solid); box-shadow: var(--shadow); opacity: 0; transform: translateY(18px); pointer-events: none; transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: none; }

.reveal { opacity: 0; transform: translateY(18px); animation: reveal .55s ease forwards; }
.listing-card:nth-child(2n) { animation-delay: .05s; }.listing-card:nth-child(3n) { animation-delay: .1s; }
@keyframes reveal { to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .5; transform: scale(.82); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .control-panel form { grid-template-columns: 1.5fr repeat(2, 1fr); }
  .filter-button { grid-column: span 1; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-header, main, footer { width: min(calc(100% - 28px), var(--max-width)); }
  .hero { grid-template-columns: 1fr; min-height: 530px; padding: 70px 4px 30px; }
  .hero-orbit { position: absolute; z-index: -1; right: -24%; width: 420px; opacity: .42; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .control-panel { position: relative; top: auto; margin-bottom: 55px; }
  .control-panel form { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .coverage-strip { grid-template-columns: 1fr; }
  .place-cloud { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .site-header { margin-top: 8px; }.live-pill { display: none; }.notify-button span { display: none; }.notify-button { width: 39px; padding: 0; justify-content: center; }
  .hero { min-height: 470px; }.hero h1 { font-size: clamp(3.35rem, 18vw, 5.2rem); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.stat-card { min-height: 145px; padding: 18px; }.stat-card strong { font-size: 2.7rem; }
  .control-panel form { grid-template-columns: 1fr; }.search-field { grid-column: auto; }.filter-button { width: 100%; }
  .section-heading { align-items: flex-start; flex-direction: column; }.view-actions > span { display: none; }
  .listing-grid { grid-template-columns: 1fr; }.list-view .listing-card { display: block; }.listing-card h3 { min-height: 0; }
  .pagination { gap: 5px; }.pagination a, .pagination > span { padding: 9px; font-size: .74rem; }
  footer { flex-direction: column; }
}

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