:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #eef2f6;
  --text: #101828;
  --muted: #667085;
  --line: #d0d5dd;
  --accent: #101828;
  --accent-2: #344054;
  --good: #067647;
  --warn: #b54708;
  --shadow: 0 16px 45px rgba(16, 24, 40, .10);
}

.notice { padding: 14px 18px; margin-top: 20px; background: #e8eef7; border-radius: 14px; line-height: 1.5; }
.tools { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:16px 0; }
.tools select { border:1px solid var(--line); border-radius:20px; padding:10px; max-width:100%; }
.tools a { color:var(--text); margin-left:auto; }
.demo { font-size:10px; background:#fff0d5; color:#945200; padding:3px 6px; border-radius:5px; }
.demo-note { background:#fff0d5; padding:12px; border-radius:10px; }
.favorite-btn { background:none; border:0; font-size:24px; color:#b54708; }
[aria-pressed="true"].ghost-btn { background:#101828; color:white; }
.navigation { display:block; text-align:center; text-decoration:none; }
#reportForm label, .admin label { display:grid; gap:6px; margin:12px 0; }
#reportForm input, textarea, .admin input, .admin select { width:100%; padding:12px; border:1px solid var(--line); border-radius:10px; font:inherit; }
textarea { min-height:90px; resize:vertical; }
.admin { max-width:1050px; }
.admin h1 { font-size:2.8rem; margin-top:40px; }
.admin h2 { margin:24px 0 16px; }
.admin-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 20px; }
.admin .checkbox { display:flex; align-items:center; }
.admin input[type="checkbox"] { width:20px; height:20px; }
.admin .full-btn { margin-top:14px; }
.price-marker span { display:block; white-space:nowrap; width:max-content; background:#101828; color:white; border-radius:18px; padding:7px 10px; font-weight:800; box-shadow:0 3px 10px #0003; }
.map-offer { display:block; padding:10px; background:white; border:0; text-align:left; color:#101828; }
.map-canvas { z-index:1; }
button:disabled { opacity:.55; cursor:wait; }
:focus-visible { outline:3px solid #2563eb; outline-offset:3px; }
@media(max-width:620px) { .admin-grid { grid-template-columns:1fr; } .tools { gap:7px; } .tools a { margin-left:0; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button { cursor: pointer; }

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: rgba(244, 246, 248, .9);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(208,213,221,.75);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .08em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px 10px 10px 2px;
  background: var(--accent);
  color: white;
  letter-spacing: 0;
}
.top-actions { display: flex; gap: 8px; }
.ghost-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 700;
}

main { width: min(1180px, 92vw); margin: 0 auto; padding-bottom: 48px; }
.hero {
  padding: 72px 0 34px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 42px;
  align-items: center;
}
.eyebrow {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .12em;
  font-size: .73rem;
}
h1 { font-size: clamp(2.4rem, 5vw, 5.2rem); line-height: .98; margin: 12px 0 18px; letter-spacing: -.055em; }
.hero-copy p { font-size: 1.08rem; line-height: 1.65; color: var(--muted); max-width: 600px; }

.search-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.search-card > label { display: block; font-weight: 800; margin-bottom: 10px; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-row input {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  font-size: 1rem;
}
.search-row input:focus, select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(52,64,84,.10); }
.primary-btn {
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  padding: 0 22px;
}
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 18px; }
.quick-chips button {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--accent-2);
}
.filters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.filters label { display: grid; gap: 7px; color: var(--muted); font-size: .85rem; }
.filters strong { color: var(--text); }
.filters input[type="range"] { width: 100%; accent-color: var(--accent); }
.filters select { width: 100%; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 9px; color: var(--text); }

.content-grid { display: grid; grid-template-columns: 1fr .88fr; gap: 22px; align-items: start; }
.results-panel, .map-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.results-panel { padding: 22px; }
.results-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 12px; }
h2 { margin: 5px 0 0; font-size: 1.55rem; letter-spacing: -.025em; }
.count-pill { background: var(--surface-soft); border: 1px solid var(--line); padding: 7px 10px; border-radius: 999px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.results-list { display: grid; gap: 10px; }
.result-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  transition: .18s ease;
  background: white;
}
.result-card:hover, .result-card.active { transform: translateY(-1px); border-color: #98a2b3; box-shadow: 0 10px 25px rgba(16,24,40,.07); }
.result-card h3 { margin: 0 0 5px; font-size: 1.03rem; }
.offer-name { color: var(--muted); margin-bottom: 9px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: .85rem; color: var(--muted); }
.verified { color: var(--good); font-weight: 700; }
.stale { color: var(--warn); font-weight: 700; }
.price-box { text-align: right; display: flex; flex-direction: column; align-items: end; justify-content: space-between; }
.price { font-size: 1.5rem; font-weight: 900; letter-spacing: -.03em; }
.detail-btn { border: 0; background: transparent; color: var(--accent); font-weight: 800; padding: 8px 0 0; }
.empty { text-align: center; padding: 46px 16px; color: var(--muted); }
.empty-icon { font-size: 2rem; }
.empty h3 { color: var(--text); margin-bottom: 4px; }
.hidden { display: none; }

.map-panel { position: sticky; top: 88px; }
.map-toolbar, .map-footer { padding: 16px 18px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.map-toolbar { border-bottom: 1px solid var(--line); }
.map-toolbar strong { display: block; margin-top: 4px; }
.map-toolbar > span, .map-footer { color: var(--muted); font-size: .82rem; }
.map-canvas { height: 520px; position: relative; overflow: hidden; background:
  linear-gradient(90deg, rgba(152,162,179,.10) 1px, transparent 1px),
  linear-gradient(rgba(152,162,179,.10) 1px, transparent 1px),
  #e9eef2;
  background-size: 42px 42px;
}
.river { position: absolute; width: 140%; height: 58px; background: #d1e4ed; transform: rotate(-15deg); left: -20%; top: 52%; border-radius: 50%; }
.road { position: absolute; height: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(152,162,179,.18); border-radius: 999px; transform-origin: left center; }
.road-a { width: 90%; left: 5%; top: 30%; transform: rotate(12deg); }
.road-b { width: 88%; left: 18%; top: 75%; transform: rotate(-28deg); }
.road-c { width: 72%; left: 40%; top: 10%; transform: rotate(70deg); }
.district { position: absolute; font-weight: 800; color: rgba(71,84,103,.45); font-size: .8rem; letter-spacing: .03em; }
.d1 { left: 24%; top: 31%; } .d2 { right: 14%; top: 35%; } .d3 { left: 38%; bottom: 17%; }
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(16,24,40,.20);
  z-index: 5;
}
.map-pin:hover, .map-pin.active { scale: 1.08; }
.user-pin {
  position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 50%; border: 6px solid rgba(255,255,255,.9); background: #2e90fa; color: transparent;
  box-shadow: 0 0 0 2px rgba(46,144,250,.3), 0 5px 16px rgba(16,24,40,.18);
  z-index: 6;
}
.map-footer { border-top: 1px solid var(--line); line-height: 1.45; }

.trust-strip { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trust-strip div { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 14px; display: flex; gap: 10px; align-items: center; color: var(--muted); }
.trust-strip strong { color: var(--text); }

.detail-dialog { border: 0; border-radius: 24px; padding: 0; width: min(540px, 92vw); box-shadow: 0 28px 90px rgba(16,24,40,.28); }
.detail-dialog::backdrop { background: rgba(16,24,40,.5); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: 14px; top: 12px; border: 0; background: var(--surface-soft); width: 34px; height: 34px; border-radius: 50%; font-size: 1.2rem; }
.dialog-body { padding: 30px; }
.dialog-body a { overflow-wrap: anywhere; }
.business-link { text-align: right; }
.submission-card { margin: 16px 0; overflow-wrap: anywhere; }
.submission-message { white-space: pre-wrap; }
.submission-card select { width: 100%; min-width: 0; }
#businessForm textarea { min-height: 150px; }
#businessStatus { margin-top: 14px; }
.dialog-body h3 { font-size: 1.5rem; margin: 7px 0; }
.dialog-price { font-size: 2.4rem; font-weight: 900; margin: 12px 0; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.dialog-grid div { background: var(--surface-soft); border-radius: 14px; padding: 12px; color: var(--muted); }
.dialog-grid strong { display: block; color: var(--text); margin-top: 3px; }
.full-btn { width: 100%; border: 0; border-radius: 14px; background: var(--accent); color: white; font-weight: 800; padding: 13px; }

@media (max-width: 900px) {
  .hero, .content-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .map-panel { position: static; }
  .map-canvas { height: 420px; }
}
@media (max-width: 620px) {
  .topbar { padding: 0 4vw; }
  .top-actions .ghost-btn:first-child { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  main { width: min(94vw, 1180px); }
  h1 { font-size: 2.65rem; }
  .search-row { grid-template-columns: 1fr; }
  .primary-btn { padding: 13px 18px; }
  .filters { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 1fr; }
  .price-box { align-items: start; text-align: left; }
  .trust-strip { grid-template-columns: 1fr; }
  .dialog-grid { grid-template-columns: 1fr; }
}

/* CenyGo identity: map pin and price tag. */
.brand { letter-spacing: -.035em; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; display: block; }
.brand-name { font-size: 24px; font-weight: 850; line-height: 1; }
.brand-go { color: #087f5b; }

.category-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0 0;position:relative;z-index:10}
.category-group{position:relative;min-width:0}
.category-trigger{width:100%;min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 10px;border:1px solid var(--line);border-radius:13px;background:white;color:var(--text);font-weight:750;text-align:left;font-size:13px}
.category-trigger[aria-expanded="true"]{border-color:#087f5b;background:#ecfdf5}
.subcategory-panel{position:absolute;top:100%;left:0;min-width:100%;width:260px;max-width:85vw;padding:8px;background:white;border:1px solid var(--line);border-radius:13px;box-shadow:0 14px 35px #10182820;display:grid;gap:3px}
.category-group:last-child .subcategory-panel{left:auto;right:0}
.subcategory-panel[hidden]{display:none}
.subcategory-panel button{padding:11px 12px;text-align:left;border:0;background:transparent;border-radius:8px;color:var(--text);font-size:14px}
.subcategory-panel button:hover,.subcategory-panel button[aria-pressed="true"]{background:#ecfdf5;color:#087f5b}
.category-trigger:focus-visible,.subcategory-panel button:focus-visible{outline:3px solid #087f5b;outline-offset:2px}
.category-selection{margin:8px 0 12px;min-height:18px;font-size:13px;color:#087f5b}
@media(max-width:600px){.category-nav{grid-template-columns:1fr}.category-trigger{font-size:15px;padding:14px}.subcategory-panel,.category-group:last-child .subcategory-panel{position:static;width:100%;max-width:100%;box-shadow:none;margin-top:4px}.subcategory-panel button{min-height:44px}}

/* Partner profiles and clearly separated paid placements. */
.sponsored-section{margin:18px 0 28px;padding:20px;border:1px solid #c5d9d3;border-radius:20px;background:#f0f8f5}.sponsored-section[hidden]{display:none}.sponsored-section h2{font-size:1.15rem;margin:0 0 8px}.sponsored-section p,.metrics-note{font-size:.85rem;color:#52655f;line-height:1.5}.sponsor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.sponsor-card{background:white;padding:18px;border-radius:12px;overflow-wrap:anywhere}.sponsor-card h3{margin:12px 0 6px}.sponsor-label{font-size:.75rem;font-weight:700;display:inline-block;background:#d9eee5;color:#16533d;border-radius:6px;padding:5px 8px}.profile-link{display:inline-block;margin:8px 0;color:#086948;font-size:.85rem}.partner-photo{width:100%;max-height:380px;object-fit:cover;border-radius:14px}.profile-description{white-space:pre-wrap;overflow-wrap:anywhere}.partner-promo{background:#edf8f2;padding:16px;border-radius:12px;margin:16px 0}.partner-promo p{white-space:pre-wrap}.profile-card h1{font-size:clamp(1.8rem,5vw,3rem);overflow-wrap:anywhere}.profile-card .tools a{text-decoration:none;display:inline-block;overflow-wrap:anywhere}.partners-admin{margin:32px 0}.partners-admin .result-card{margin-bottom:10px}.partners-admin .search-card{margin:18px 0}.metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px}.metrics-grid dt{font-size:.8rem;color:#52655f}.metrics-grid dd{font-size:1.5rem;font-weight:750;margin:4px 0}.partners-admin select{max-width:100%}.partners-admin .admin-grid>*{min-width:0}
