/* poi-engine/poi.css — High-contrast obsidian dark/light palette matching /live/germany/ */

.poi-page {
  --poi-bg: #09090b;
  --poi-card: #121214;
  --poi-sub-bg: #18181b;
  --poi-hover: #222226;
  --poi-card-b: rgba(255, 255, 255, .10);
  --poi-card-b-strong: rgba(255, 255, 255, .20);
  --poi-text: #fafafa;
  --poi-dim: #d4d4d8;
  --poi-muted: #a1a1aa;
  --poi-soft: rgba(255, 255, 255, .045);
  --poi-pill-bg: #18181b;
  --poi-accent: #38bdf8;
  --poi-accent-bg: #0284c7;
  --poi-good: #34d399;
  --poi-good-bg: rgba(16, 185, 129, .14);
  --poi-good-b: rgba(52, 211, 153, .35);
  --poi-warn: #fbbf24;
  --poi-bad: #fb7185;
  --poi-hero-bg: radial-gradient(900px 380px at 18% 0%, rgba(56, 189, 248, .10), transparent 65%),
                 radial-gradient(760px 360px at 84% 12%, rgba(16, 185, 129, .09), transparent 65%),
                 linear-gradient(180deg, #07080b 0%, #0c0e14 60%, #09090b 100%);
  background: var(--poi-bg);
  color: var(--poi-text);
}

.fp-light .poi-page, html.fp-light .poi-page {
  --poi-bg: #f6f7f9;
  --poi-card: #ffffff;
  --poi-sub-bg: #f1f3f7;
  --poi-hover: #e8edf5;
  --poi-card-b: rgba(15, 23, 42, .11);
  --poi-card-b-strong: rgba(15, 23, 42, .22);
  --poi-text: #0f172a;
  --poi-dim: #334155;
  --poi-muted: #526075;
  --poi-soft: rgba(15, 23, 42, .04);
  --poi-pill-bg: #ffffff;
  --poi-accent: #0284c7;
  --poi-accent-bg: #0284c7;
  --poi-good: #059669;
  --poi-good-bg: rgba(16, 185, 129, .11);
  --poi-good-b: rgba(5, 150, 105, .32);
  --poi-warn: #b45309;
  --poi-bad: #e11d48;
  --poi-hero-bg: radial-gradient(900px 380px at 18% 0%, rgba(2, 132, 199, .10), transparent 65%),
                 radial-gradient(760px 360px at 84% 12%, rgba(16, 185, 129, .08), transparent 65%),
                 linear-gradient(180deg, #e8eef7 0%, #f1f5fb 65%, #f6f7f9 100%);
  background: var(--poi-bg);
  color: var(--poi-text);
}

.poi-page main { background: var(--poi-bg); color: var(--poi-text); }

/* Lab top bar */
.poi-ad-wrap { margin: 22px auto; }
.poi-ad-wrap .fp-ad { margin: 0 auto; }
.poi-hubnav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.poi-hubnav a { color: #d4d4d8; text-decoration: none; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); font-size: 12px; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.poi-hubnav a:hover { color: #fff; border-color: #38bdf8; }
.poi-hubnav a[aria-current="page"] { background: #0284c7; color: #fff; border-color: #38bdf8; }

/* Dark obsidian Hero (high readability, subtle watermark silhouette + dark scrim) */
.poi-hero { position: relative; overflow: hidden; padding: 30px 0 34px; background: var(--poi-hero-bg); border-bottom: 1px solid var(--poi-card-b); color: var(--poi-text); }
.poi-hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: .14; color: #94a3b8; }
.fp-light .poi-hero-bg { opacity: .12; color: #334155; }
.poi-hero-bg svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.poi-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(9,9,11,0) 40%, rgba(9,9,11,.72) 100%); z-index: 1; }
.fp-light .poi-hero::after { background: linear-gradient(180deg, rgba(246,247,249,0) 45%, rgba(246,247,249,.65) 100%); }
.poi-hero .wrap { position: relative; z-index: 2; }
.poi-hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.poi-hero .hcrumb { color: var(--poi-muted); font-size: 13px; }
.poi-hero .hcrumb a { color: var(--poi-dim); text-decoration: none; }
.poi-hero .hcrumb a:hover { color: var(--poi-accent); }
.poi-langs { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; background: var(--poi-card); padding: 4px; border-radius: 999px; border: 1px solid var(--poi-card-b-strong); }
.poi-langs a { text-decoration: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--poi-dim); min-height: 28px; display: inline-flex; align-items: center; }
.poi-langs a:hover { color: var(--poi-text); background: var(--poi-hover); }
.poi-langs a[aria-current="page"] { background: var(--poi-accent-bg); color: #fff; }
.poi-hero h1 { font-size: clamp(1.65rem, 3.1vw, 2.45rem); line-height: 1.14; margin: 0 0 10px; letter-spacing: -.02em; color: var(--poi-text); }
.poi-hero h1 .acc { color: var(--poi-accent); }
.poi-hero .sub { font-size: 1rem; max-width: 74ch; color: var(--poi-dim); margin: 0 0 16px; line-height: 1.55; }

.poi-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 12px; margin-top: 16px; }
.poi-kpi { background: var(--poi-card); border: 1px solid var(--poi-card-b); border-radius: 12px; padding: 14px 16px; }
.poi-kpi-k { font-size: 11.5px; color: var(--poi-muted); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 5px; font-weight: 700; }
.poi-kpi-v { font-size: 1.4rem; font-weight: 800; margin: 0; font-variant-numeric: tabular-nums; color: var(--poi-text); }
.poi-kpi-s { font-size: 12px; color: var(--poi-dim); margin: 4px 0 0; }

/* Germany-style Interactive Map + Ranking Split Panel */
.poi-de-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 16px; align-items: stretch; }
.poi-panel { background: var(--poi-card); border: 1px solid var(--poi-card-b); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.poi-panel-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.poi-panel-h h2, .poi-panel-h h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--poi-text); letter-spacing: -.01em; }
.poi-panel-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--poi-muted); }
.poi-seg { display: inline-flex; border-radius: 9px; overflow: hidden; border: 1px solid var(--poi-card-b-strong); background: var(--poi-sub-bg); flex-shrink: 0; }
.poi-seg button { border: 0; background: transparent; color: var(--poi-dim); padding: 6px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; min-height: 32px; transition: background .15s, color .15s; }
.poi-seg button + button { border-left: 1px solid var(--poi-card-b); }
.poi-seg button:hover { color: var(--poi-text); background: var(--poi-hover); }
.poi-seg button[aria-pressed="true"] { background: var(--poi-accent-bg); color: #fff; }
.poi-meta-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.poi-meta-pill { font-size: 11.5px; font-weight: 600; color: var(--poi-dim); background: var(--poi-sub-bg); border: 1px solid var(--poi-card-b); padding: 3px 9px; border-radius: 6px; }

.poi-legend { display: flex; flex-direction: column; gap: 5px; margin-top: auto; }
.poi-legend-bar { height: 7px; border-radius: 999px; background: linear-gradient(90deg, #10b981 0%, #14b8a6 30%, #f59e0b 68%, #f43f5e 100%); }
.poi-legend-labels { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--poi-muted); font-variant-numeric: tabular-nums; gap: 8px; }

.poi-rank-list { display: flex; flex-direction: column; border-top: 1px solid var(--poi-card-b); }
.poi-rank-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 8px; border-bottom: 1px solid var(--poi-card-b); cursor: pointer; background: transparent; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; color: inherit; transition: background .12s; }
.poi-rank-row:hover { background: var(--poi-hover); }
.poi-rank-row:last-child { border-bottom: 0; }
.poi-rank-l { display: flex; align-items: center; gap: 8px; min-width: 0; }
.poi-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.poi-rank-name { font-size: 13.5px; font-weight: 700; color: var(--poi-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poi-rank-meta { font-size: 11.5px; color: var(--poi-muted); display: block; }
.poi-rank-r { text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.poi-rank-p { font-size: 14px; font-weight: 800; color: var(--poi-text); }
.poi-rank-d { font-size: 11.5px; font-weight: 700; display: block; }

.poi-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.poi-tile { background: var(--poi-sub-bg); border: 1px solid var(--poi-card-b); border-radius: 10px; padding: 11px 12px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.poi-tile:hover { border-color: var(--poi-card-b-strong); background: var(--poi-hover); }
.poi-tile-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--poi-text); }
.poi-tile-cc { font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: var(--poi-card); border: 1px solid var(--poi-card-b); color: var(--poi-dim); }
.poi-tile-val { font-size: 1.15rem; font-weight: 800; color: var(--poi-good); font-variant-numeric: tabular-nums; }
.poi-tile-sub { font-size: 11.5px; color: var(--poi-muted); }

/* Sections */
.poi-sec { padding: 28px 0; }
.poi-sec + .poi-sec { border-top: 1px solid var(--poi-card-b); }
.poi-sec h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 0 0 6px; letter-spacing: -.01em; color: var(--poi-text); }
.poi-sec-sub { color: var(--poi-dim); margin: 0 0 18px; font-size: .95rem; max-width: 76ch; }

/* Controls */
.poi-ctrl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.poi-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.poi-pill { border: 1px solid var(--poi-card-b); background: var(--poi-pill-bg); color: var(--poi-dim); padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; gap: 6px; transition: border-color .15s, background .15s, color .15s; }
.poi-pill:hover { border-color: var(--poi-accent); color: var(--poi-text); }
.poi-pill[aria-pressed="true"] { background: var(--poi-accent-bg); color: #fff; border-color: var(--poi-accent); }
.poi-pill small { opacity: .8; font-weight: 500; }
.poi-filters-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.poi-search { padding: 8px 13px; border-radius: 10px; border: 1px solid var(--poi-card-b-strong); background: var(--poi-card); color: var(--poi-text); font-size: 14px; min-width: 240px; min-height: 38px; }
.poi-search::placeholder { color: var(--poi-muted); }
.poi-sort { padding: 8px 11px; border-radius: 10px; border: 1px solid var(--poi-card-b-strong); background: var(--poi-card); color: var(--poi-text); font-size: 13px; min-height: 38px; }

/* Directory table */
.poi-tbl-wrap { overflow-x: auto; border: 1px solid var(--poi-card-b); border-radius: 14px; background: var(--poi-card); }
.poi-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.poi-tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--poi-muted); padding: 11px 13px; border-bottom: 1px solid var(--poi-card-b); white-space: nowrap; background: var(--poi-sub-bg); }
.poi-tbl td { padding: 11px 13px; border-bottom: 1px solid var(--poi-card-b); vertical-align: middle; color: var(--poi-text); }
.poi-tbl tbody tr:last-child td { border-bottom: 0; }
.poi-tbl tbody tr:hover { background: var(--poi-hover); }
.poi-name { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--poi-text); }
.poi-sub { display: block; font-size: 12px; color: var(--poi-muted); margin-top: 2px; font-weight: 400; }
.poi-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--poi-sub-bg); color: var(--poi-dim); border: 1px solid var(--poi-card-b); letter-spacing: .02em; }
.poi-badge-guide { background: rgba(56,189,248,.16); color: var(--poi-accent); border-color: rgba(56,189,248,.4); }
.poi-badge-alt { background: var(--poi-good-bg); color: var(--poi-good); border-color: var(--poi-good-b); }
.poi-badge-warn { background: rgba(245,158,11,.15); color: var(--poi-warn); border-color: rgba(245,158,11,.35); }
.poi-price { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; white-space: nowrap; color: var(--poi-text); }
.poi-pct { display: inline-block; font-size: 12px; font-weight: 700; margin-left: 5px; font-variant-numeric: tabular-nums; }
.poi-pct-good { color: var(--poi-good); }
.poi-pct-bad { color: var(--poi-bad); }
.poi-pct-flat { color: var(--poi-muted); }
.poi-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 700; text-decoration: none; border: 1px solid var(--poi-card-b-strong); background: var(--poi-sub-bg); color: var(--poi-text); min-height: 36px; white-space: nowrap; }
.poi-btn:hover { border-color: var(--poi-accent); color: var(--poi-accent); }
.poi-btn-p { background: var(--poi-accent-bg); color: #fff; border-color: var(--poi-accent); }
.poi-btn-p:hover { filter: brightness(1.08); color: #fff; }

/* Arbitrage / Featured cards */
.poi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.poi-card { background: var(--poi-card); border: 1px solid var(--poi-card-b); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.poi-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.poi-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; color: var(--poi-text); }
.poi-card h3 a { color: inherit; text-decoration: none; }
.poi-card h3 a:hover { color: var(--poi-accent); }
.poi-duel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.poi-side { padding: 10px; border-radius: 10px; background: var(--poi-sub-bg); border: 1px solid var(--poi-card-b); }
.poi-side.is-win { border-color: var(--poi-good-b); background: var(--poi-good-bg); }
.poi-side-h { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 5px; color: var(--poi-text); }
.poi-side-row { display: flex; justify-content: space-between; font-size: 13px; margin: 2px 0; font-variant-numeric: tabular-nums; color: var(--poi-dim); }
.poi-side-row strong { color: var(--poi-text); }
.poi-verdict { font-size: 13.5px; font-weight: 700; padding: 10px 13px; border-radius: 10px; background: var(--poi-good-bg); color: #6ee7b7; border: 1px solid var(--poi-good-b); line-height: 1.45; }
.fp-light .poi-verdict { color: #065f46; }
.poi-verdict.is-flat { background: var(--poi-sub-bg); color: var(--poi-dim); border-color: var(--poi-card-b); }

/* Map box (Protomaps Leaflet dark/light compliant) */
.map-box { isolation: isolate; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--poi-card-b); height: 420px; background: #0c0e14; }
.poi-de-grid .map-box { height: 440px; }
.fp-light .map-box { background: #e2e8f0; }
.map-box .leaflet-bar a { background: #18181b; color: #fafafa; border-color: rgba(255,255,255,.18); }
.fp-light .map-box .leaflet-bar a { background: #fff; color: #0f172a; border-color: rgba(15,23,42,.15); }
.map-box .leaflet-popup-content-wrapper, .map-box .leaflet-popup-tip { background: #121214; color: #fafafa; border: 1px solid rgba(255,255,255,.18); }
.map-box .leaflet-popup-content a { color: #38bdf8; }
.fp-light .map-box .leaflet-popup-content-wrapper, .fp-light .map-box .leaflet-popup-tip { background: #fff; color: #0f172a; border-color: rgba(15,23,42,.14); }
.fp-light .map-box .leaflet-popup-content a { color: #0284c7; }

/* Search Simulator */
.poi-sim-box { background: var(--poi-card); border: 1px solid var(--poi-card-b); border-radius: 14px; padding: 18px; }
.poi-sim-form { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.poi-sim-form input { flex: 1; min-width: 240px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--poi-card-b-strong); background: var(--poi-sub-bg); color: var(--poi-text); font-size: 15px; }
.poi-sim-form input::placeholder { color: var(--poi-muted); }
.poi-sim-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.poi-sim-chip { border: 1px solid var(--poi-card-b); background: var(--poi-sub-bg); color: var(--poi-dim); padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; }
.poi-sim-chip:hover { border-color: var(--poi-accent); color: var(--poi-text); }
.poi-sim-out { border-top: 1px solid var(--poi-card-b); padding-top: 14px; }

.poi-empty { padding: 28px; text-align: center; color: var(--poi-muted); font-size: 14px; }
.poi-foot-note { font-size: 12px; color: var(--poi-muted); margin-top: 14px; line-height: 1.5; }

/* Freshness timestamp & internal station links */
.poi-ago { display: inline-block; font-size: 11px; color: var(--poi-muted); font-variant-numeric: tabular-nums; margin-top: 2px; line-height: 1.3; }
.poi-st-link { color: var(--poi-text); text-decoration: none; font-weight: 700; border-bottom: 1px dotted rgba(56,189,248,.55); transition: color .15s, border-color .15s; }
.poi-st-link:hover { color: var(--poi-accent); border-bottom-color: var(--poi-accent); }

/* FAQ accordion & LLM bar */
.poi-faq { display: grid; gap: 10px; max-width: 82ch; }
.poi-faq details { background: var(--poi-card); border: 1px solid var(--poi-card-b); border-radius: 12px; padding: 12px 16px; }
.poi-faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; color: var(--poi-text); }
.poi-faq summary::-webkit-details-marker { display: none; }
.poi-faq summary::after { content: '+'; font-size: 18px; color: var(--poi-accent); font-weight: 600; flex-shrink: 0; }
.poi-faq details[open] summary::after { content: '−'; }
.poi-faq details p { margin: 10px 0 2px; color: var(--poi-dim); font-size: 14px; line-height: 1.55; }
.poi-llmbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 0 28px; font-size: 12px; color: var(--poi-muted); border-top: 1px solid var(--poi-card-b); }
.poi-llmbar a { color: var(--poi-accent); text-decoration: none; font-weight: 700; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--poi-card-b); background: var(--poi-card); }
.poi-llmbar a:hover { border-color: var(--poi-accent); }

@media (max-width: 960px) {
  .poi-de-grid { grid-template-columns: 1fr; }
  .poi-de-grid .map-box { height: 360px; }
}
@media (max-width: 760px) {
  .poi-tbl thead { display: none; }
  .poi-tbl, .poi-tbl tbody, .poi-tbl tr, .poi-tbl td { display: block; width: 100%; }
  .poi-tbl tr { border-bottom: 1px solid var(--poi-card-b); padding: 10px 12px; }
  .poi-tbl td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .poi-tbl td::before { content: attr(data-label); font-size: 11px; text-transform: uppercase; color: var(--poi-muted); font-weight: 700; flex-shrink: 0; }
  .poi-tbl td:first-child { display: block; padding-bottom: 6px; }
  .poi-tbl td:first-child::before { display: none; }
  .poi-duel { grid-template-columns: 1fr; }
  .poi-tiles { grid-template-columns: 1fr; }
  .map-box { height: 320px; }
}
