:root {
  --bg: #080b0e;
  --panel: rgba(14, 19, 24, 0.78);
  --panel-edge: rgba(255, 255, 255, 0.09);
  --ink: #eef3f5;
  --ink-dim: #8b98a1;
  --ink-faint: #5b6770;
  --accent: #34dac4;
  --accent-soft: rgba(52, 218, 196, 0.16);
  --ok: #4fd486;
  --no: #e0625a;
  --shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.65);
  --radius: 16px;
  --font-display: "Bricolage Grotesque", serif;
  --font-ui: "Instrument Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font-ui); background: var(--bg); color: var(--ink); overflow: hidden; -webkit-font-smoothing: antialiased; }
#map { position: fixed; inset: 0; }
#map::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 200px 40px rgba(0,0,0,0.45); }
.glass { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.op-search { position: fixed; top: 22px; left: 22px; width: min(420px, calc(100vw - 44px)); z-index: 20; padding: 16px; animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.op-brand { display: flex; align-items: baseline; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 13px; }
.op-brand .dot { color: var(--accent); }
.op-brand .sub { font-family: var(--font-mono); font-weight: 500; font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink-faint); margin-left: auto; padding-bottom: 2px; }
.op-search-row { display: flex; gap: 8px; }
.op-search input { flex: 1; background: rgba(0,0,0,0.35); border: 1px solid var(--panel-edge); border-radius: 10px; color: var(--ink); font-family: var(--font-ui); font-size: 14px; padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.op-search input::placeholder { color: var(--ink-faint); }
.op-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.op-search button { flex: 0 0 auto; width: 44px; background: var(--accent); color: #04221d; border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; transition: filter .15s, transform .05s; }
.op-search button:hover { filter: brightness(1.08); }
.op-search button:active { transform: scale(.96); }
#suggestions { list-style: none; margin-top: 8px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .2s ease, opacity .15s; }
#suggestions.open { max-height: 260px; overflow-y: auto; opacity: 1; }
#suggestions li { padding: 10px 12px; font-size: 13px; color: var(--ink-dim); border-radius: 8px; cursor: pointer; transition: background .12s, color .12s; }
#suggestions li:hover { background: var(--accent-soft); color: var(--ink); }
#suggestions .op-sugg-loading, #suggestions .op-sugg-empty { cursor: default; color: var(--ink-faint); }
.op-readout { position: fixed; bottom: 22px; left: 22px; width: min(360px, calc(100vw - 44px)); z-index: 20; padding: 16px 18px; animation: rise .5s .08s cubic-bezier(.2,.7,.2,1) both; }
.op-readout h2 { font-family: var(--font-mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink-faint); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.op-readout h2::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.op-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 12px; }
.op-field label { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 3px; }
.op-field .val { font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
.op-field .val.dms { font-size: 12px; color: var(--ink-dim); }
.op-addr { font-size: 12.5px; color: var(--ink-dim); line-height: 1.4; margin-bottom: 14px; min-height: 1.4em; }
.op-check { width: 100%; background: var(--accent); color: #04221d; border: none; border-radius: 10px; font-family: var(--font-ui); font-size: 14px; font-weight: 600; padding: 12px; cursor: pointer; transition: filter .15s, transform .05s; }
.op-check:hover { filter: brightness(1.08); }
.op-check:disabled { opacity: .6; cursor: default; }
.op-results { position: fixed; top: 22px; right: 22px; bottom: 22px; width: min(380px, calc(100vw - 44px)); z-index: 25; display: flex; flex-direction: column; padding: 0; transform: translateX(calc(100% + 30px)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.op-results.open { transform: translateX(0); }
.op-results-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--panel-edge); display: flex; align-items: flex-start; justify-content: space-between; }
.op-results-head h2 { font-family: var(--font-display); font-size: 19px; letter-spacing: -.01em; }
.op-results-head .coord { font-family: var(--font-mono); font-size: 11px; color: var(--accent); margin-top: 4px; }
.op-close { background: none; border: none; color: var(--ink-faint); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; transition: color .15s; }
.op-close:hover { color: var(--ink); }
.op-results-body { overflow-y: auto; padding: 16px 20px 20px; }
.op-card { border: 1px solid var(--panel-edge); border-radius: 12px; padding: 15px 16px; margin-bottom: 12px; background: rgba(0,0,0,0.22); }
.op-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.op-prov { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.op-badge { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.op-badge.ok { color: var(--ok); background: rgba(79,212,134,0.13); border: 1px solid rgba(79,212,134,0.3); }
.op-badge.no { color: var(--no); background: rgba(224,98,90,0.12); border: 1px solid rgba(224,98,90,0.28); }
.op-badge.err { color: #e7b54e; background: rgba(231,181,78,0.12); border: 1px solid rgba(231,181,78,0.3); }
.op-card-meta { display: flex; gap: 8px; margin-bottom: 12px; }
.op-zone, .op-src { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 6px; color: var(--ink-dim); background: rgba(255,255,255,0.05); }
.op-src { text-transform: uppercase; color: var(--ink-faint); }
.op-products { list-style: none; }
.op-products li { font-size: 13px; color: var(--ink); padding: 7px 0; border-top: 1px solid var(--panel-edge); display: flex; align-items: center; gap: 8px; }
.op-products li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.op-products li.op-none { color: var(--ink-faint); }
.op-products li.op-none::before { background: var(--ink-faint); }
.op-err { font-size: 12.5px; color: #e7b54e; line-height: 1.4; }
.op-pin { width: 20px; height: 28px; cursor: grab; }
.op-pin:active { cursor: grabbing; }
.op-pin-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid #04221d; box-shadow: 0 0 0 3px rgba(52,218,196,0.35), 0 4px 8px rgba(0,0,0,0.5); }
.op-pin-stem { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 2px; height: 14px; background: linear-gradient(var(--accent), rgba(52,218,196,0.2)); }
.op-toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 80px); z-index: 40; max-width: 440px; background: rgba(20,12,12,0.92); border: 1px solid rgba(224,98,90,0.35); color: var(--ink); font-size: 13px; line-height: 1.4; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transition: transform .3s, opacity .3s; backdrop-filter: blur(12px); }
.op-toast.show { transform: translate(-50%, 0); opacity: 1; }
.mapboxgl-ctrl-group { background: var(--panel) !important; border: 1px solid var(--panel-edge) !important; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 560px) { .op-readout { width: calc(100vw - 44px); } .op-results { width: calc(100vw - 44px); top: auto; height: 62vh; } }
