:root {
  --bg:#03080d; --panel:#08131d; --gold:#f5c14c; --text:#fff1cc; --muted:#c8a86c; --line:rgba(245,193,76,.25); --cyan:#40e7da; --red:#ff5a72; --shadow:0 22px 60px rgba(0,0,0,.38);
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; color:var(--text); background:radial-gradient(circle at top,#102233 0,#081018 28%,var(--bg) 70%); }
a { color:inherit; text-decoration:none; }
button,input,select { font:inherit; }
.wrap { width:min(1520px,96vw); margin:0 auto; padding:24px 0 56px; }
header { display:flex; gap:18px; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; margin-bottom:18px; }
h1 { margin:0; font-family:Georgia,'Times New Roman',serif; font-size:clamp(2.3rem,5vw,4.4rem); line-height:.95; color:var(--gold); text-shadow:0 0 18px rgba(245,193,76,.35),0 2px 0 #000; }
.note { margin:.55rem 0 0; color:var(--muted); max-width:900px; line-height:1.45; }
.promo { display:flex; gap:10px; flex-wrap:wrap; }
.promo-chip { padding:8px 11px; border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.03); color:var(--muted); font-size:13px; }
.controls { position:sticky; top:0; z-index:30; display:grid; grid-template-columns:repeat(5,minmax(150px,1fr)); gap:10px; padding:12px; margin:8px 0 18px; border:1px solid var(--line); border-radius:20px; background:rgba(4,10,16,.94); backdrop-filter:blur(12px); box-shadow:var(--shadow); }
.controls #searchInput { grid-column:1 / -1; }
.controls #resetBtn { min-width:94px; }
.controls input,.controls select,.controls button { width:100%; min-height:46px; border-radius:14px; border:1px solid rgba(245,193,76,.28); background:#09141d; color:var(--text); padding:10px 12px; outline:none; }
.controls input:focus,.controls select:focus,.controls button:focus { box-shadow:0 0 0 3px rgba(245,193,76,.18); }
.controls button { cursor:pointer; font-weight:700; background:linear-gradient(180deg,#ffd569,#f09a1b); color:#1f1100; border-color:#ffd56b; }

.controls select.multi-source { display:none; }
.multi-filter { position:relative; width:100%; min-width:0; }
.controls .multi-filter-button { width:100%; min-height:46px; border-radius:14px; border:1px solid rgba(245,193,76,.28); background:#09141d; color:var(--text); padding:10px 38px 10px 12px; outline:none; text-align:left; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:650; position:relative; }
.controls .multi-filter-button::after { content:'▾'; position:absolute; right:12px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:12px; }
.multi-filter.open .multi-filter-button { box-shadow:0 0 0 3px rgba(245,193,76,.18); }
.multi-filter-menu { display:none; position:absolute; z-index:80; top:calc(100% + 6px); left:0; right:0; max-height:320px; overflow:auto; padding:8px; border:1px solid rgba(245,193,76,.38); border-radius:16px; background:rgba(5,12,18,.98); box-shadow:0 20px 55px rgba(0,0,0,.48); }
.multi-filter.open .multi-filter-menu { display:block; }
.multi-filter-actions { display:flex; gap:8px; align-items:center; justify-content:space-between; padding:4px 4px 8px; border-bottom:1px solid rgba(245,193,76,.18); margin-bottom:6px; color:var(--muted); font-size:12px; }
.multi-filter-clear { width:auto !important; min-height:0 !important; padding:4px 8px !important; border-radius:999px !important; border:1px solid var(--line) !important; background:rgba(255,255,255,.04) !important; color:var(--text) !important; cursor:pointer; font-size:12px !important; font-weight:700 !important; }
.multi-filter-option { display:flex; gap:8px; align-items:center; padding:8px 7px; border-radius:10px; color:var(--text); cursor:pointer; font-size:13px; line-height:1.2; }
.multi-filter-option:hover { background:rgba(245,193,76,.09); }
.multi-filter-option input { width:16px; min-height:16px; height:16px; accent-color:var(--gold); flex:0 0 auto; padding:0; border-radius:4px; }
.multi-filter-option.hidden { display:none; }
.multi-filter-empty { display:none; padding:10px 7px; color:var(--muted); font-size:13px; }
.multi-filter-empty.show { display:block; }

.summary { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:18px; }
.summary-pill { padding:8px 11px; border-radius:999px; border:1px solid var(--line); background:rgba(255,255,255,.03); color:var(--muted); font-size:13px; }
.tabs { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.tab-btn { border:1px solid var(--line); background:rgba(255,255,255,.04); color:var(--text); padding:10px 14px; border-radius:999px; cursor:pointer; font-weight:700; }
.tab-btn.active { background:linear-gradient(180deg,#ffd569,#f09a1b); color:#1f1100; border-color:#ffd56b; }
.tab-panel { display:none; }
.tab-panel.active { display:block; }
.explore-grid { display:grid; grid-template-columns:minmax(420px,1.15fr) minmax(360px,.95fr); gap:18px; align-items:start; }
.panel { border:1px solid var(--line); border-radius:22px; overflow:hidden; background:linear-gradient(180deg,rgba(9,17,26,.96),rgba(5,12,18,.96)); box-shadow:var(--shadow); }
.panel-head { padding:14px 16px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; gap:14px; align-items:center; }
.panel-head h2 { margin:0; font-size:18px; color:#ffeab5; }
.panel-head p { margin:4px 0 0; color:var(--muted); font-size:13px; }
.graphic-wrap { padding:12px; }
.graphic-area { position:relative; border-radius:18px; overflow:hidden; border:1px solid var(--line); background:#03090e; aspect-ratio:1 / 1; }
.graphic-area img { display:block; width:100%; height:100%; object-fit:cover; pointer-events:none; }
.hotspot { position:absolute; z-index:5; display:block; border-radius:8px; background:rgba(255,255,255,.001); outline:1px solid transparent; transition:.15s ease; }
.hotspot span { position:absolute; left:-9999px; }
.hotspot:hover::after,.hotspot:focus::after { content:attr(title); position:absolute; left:0; bottom:100%; transform:translateY(-4px); white-space:nowrap; max-width:260px; overflow:hidden; text-overflow:ellipsis; padding:5px 8px; border-radius:999px; background:rgba(3,8,13,.96); color:#ffeab7; border:1px solid rgba(245,193,76,.55); font:700 12px/1.1 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; box-shadow:0 8px 20px rgba(0,0,0,.35); pointer-events:none; }
.hotspot:hover,.hotspot:focus { background:rgba(245,193,76,.09); outline-color:rgba(245,193,76,.7); box-shadow:0 0 0 1px rgba(245,193,76,.65), inset 0 0 0 1px rgba(245,193,76,.45); }
.hotspot.hidden { display:none; }
.graphic-caption { padding:12px 2px 2px; color:var(--muted); font-size:13px; line-height:1.45; }
.list-panel { display:flex; flex-direction:column; min-height:300px; }
.list-tools { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; padding:14px 16px 0; }
.small-btn { display:inline-flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.04); color:var(--text); padding:8px 12px; cursor:pointer; }
.small-select { min-height:38px; border:1px solid var(--line); border-radius:999px; background:#09141d; color:var(--text); padding:8px 12px; }
.cards { display:grid; gap:10px; max-height:78vh; overflow:auto; padding:14px 16px 16px; }
.restaurant-card { display:grid; grid-template-columns:48px 1fr; gap:12px; align-items:start; padding:12px; border-radius:16px; border:1px solid rgba(255,255,255,.08); background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02)); }
.restaurant-card.hidden { display:none; }
.restaurant-card.flash { box-shadow:0 0 0 2px rgba(245,193,76,.55); }
.rank-badge { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; color:var(--gold); font-weight:800; background:#08131b; border:1px solid var(--line); font-variant-numeric:tabular-nums; }
.card-main { min-width:0; }
.card-title-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.restaurant-name { font-family:Georgia,'Times New Roman',serif; font-size:22px; line-height:1.05; color:#ffeab7; }
.meta-line { margin-top:4px; color:var(--muted); font-size:14px; }
.booking-tag { font-size:12px; font-weight:850; padding:4px 8px; border-radius:999px; border:1px solid rgba(255,255,255,.16); color:#091018; }
.booking-tag.near { background:#ff6b6b; color:#1b0202; }
.booking-tag.very-hard { background:#ff9f43; color:#1e0d00; }
.booking-tag.hard { background:#ffd166; color:#1e1500; }
.booking-tag.moderate-hard { background:#c7f36b; color:#152000; }
.booking-tag.moderate { background:#74f0b4; color:#001b10; }
.booking-tag.easy-moderate { background:#7bdff2; color:#00171c; }
.booking-tag.easy { background:#b8f7d4; color:#00180b; }
.booking-line { margin-top:6px; color:#d9bd81; font-size:13px; line-height:1.35; }
.price-tag { font-size:12px; font-weight:850; padding:4px 8px; border-radius:999px; border:1px solid rgba(245,193,76,.38); color:#ffeab7; background:rgba(245,193,76,.10); }
.dress-tag { font-size:12px; font-weight:850; padding:4px 8px; border-radius:999px; border:1px solid rgba(64,231,218,.38); color:#dffdfa; background:rgba(64,231,218,.10); }
.dress-line { margin-top:6px; color:#c9d8d6; font-size:13px; line-height:1.35; }
.english-tag { font-size:12px; font-weight:850; padding:4px 8px; border-radius:999px; border:1px solid rgba(190,150,255,.42); color:#eadcff; background:rgba(190,150,255,.10); }
.english-line { margin-top:6px; color:#d8c9ff; font-size:13px; line-height:1.35; }
.dietary-tag { font-size:12px; font-weight:850; padding:4px 8px; border-radius:999px; border:1px solid rgba(147,245,140,.42); color:#e8ffe4; background:rgba(147,245,140,.10); }
.dietary-line { margin-top:6px; color:#d6f8d0; font-size:13px; line-height:1.35; }
.dot { opacity:.65; padding:0 6px; }
.tier-tag { font-size:12px; font-weight:900; color:#091018; padding:4px 8px; border-radius:999px; min-width:34px; text-align:center; }
.tier-tag.splus { background:var(--gold); }
.tier-tag.s { background:var(--cyan); }
.tier-tag.sminus { background:var(--red); color:#130408; }
.tier-tag.unranked { background:#9fb0bf; color:#061018; }
.actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.action { padding:7px 10px; border-radius:999px; border:1px solid var(--line); background:rgba(255,255,255,.03); color:var(--text); font-size:13px; }
.action.primary { background:linear-gradient(180deg,#ffd569,#f09a1b); border-color:#ffd56b; color:#1f1100; font-weight:800; }
.empty { display:none; margin:0 16px 16px; padding:20px; border:1px dashed var(--line); border-radius:16px; color:var(--muted); text-align:center; }
.empty.show { display:block; }
.city-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:14px; }
.city-card { padding:14px; border-radius:18px; border:1px solid var(--line); background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02)); }
.city-card.hidden { display:none; }
.city-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; flex-wrap:wrap; }
.city-head h3 { margin:0; font-size:24px; font-family:Georgia,'Times New Roman',serif; color:#ffe7aa; }
.city-head p { margin:6px 0 0; color:var(--muted); }
.city-buttons { display:flex; gap:8px; flex-wrap:wrap; }
.city-filter-btn { padding:7px 10px; border-radius:999px; border:1px solid var(--line); background:rgba(255,255,255,.04); color:var(--text); cursor:pointer; }
.city-tiers { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.city-pill { padding:6px 9px; border-radius:999px; border:1px solid var(--line); background:rgba(255,255,255,.03); color:var(--muted); font-size:13px; }
.city-restaurants { display:flex; gap:8px; flex-wrap:wrap; }
.mini-link { padding:7px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.03); color:#ffeab7; font-size:13px; }
.mini-link span { color:var(--muted); }
.map-layout { display:grid; grid-template-columns:minmax(540px,1.25fr) minmax(290px,.75fr); gap:18px; align-items:start; }
.map-card { padding:16px; }
.world-map { width:100%; height:auto; display:block; border-radius:18px; background:radial-gradient(circle at 50% 50%, #0f2030 0, #08121b 70%); border:1px solid var(--line); }
.world-base { opacity:.82; }
.map-grid line { stroke:rgba(255,255,255,.09); stroke-width:1; }
.map-grid .major { stroke:rgba(245,193,76,.15); }
.region-label { fill:rgba(255,255,255,.22); font-size:22px; font-weight:700; letter-spacing:.05em; }
.marker { cursor:pointer; }
.marker circle { fill:rgba(64,231,218,.82); stroke:rgba(245,193,76,.9); stroke-width:2; }
.marker text { fill:#fff4d0; font-size:12px; font-weight:700; text-anchor:middle; dominant-baseline:middle; pointer-events:none; }
.marker.hidden { display:none; }
.map-help { margin-top:10px; color:var(--muted); font-size:13px; }
.map-detail { padding:16px; }
.map-detail h3 { margin:0; font-size:24px; font-family:Georgia,'Times New Roman',serif; color:#ffe7aa; }
.map-detail p { color:var(--muted); margin:.55rem 0 1rem; }
.map-placeholder { color:var(--muted); padding:18px; border:1px dashed var(--line); border-radius:16px; text-align:center; }
.detail-pills { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 12px; }
@media (max-width:1320px) { .controls { grid-template-columns:repeat(3,minmax(150px,1fr)) minmax(94px,.7fr); } .controls #searchInput { grid-column:1 / -1; } }
@media (max-width:1080px) { .explore-grid, .map-layout { grid-template-columns:1fr; } .cards { max-height:none; } }
@media (max-width:900px) { .controls { position:static; grid-template-columns:1fr 1fr; } .controls #searchInput { grid-column:1/-1; } .controls #resetBtn { grid-column:1/-1; } }
@media (max-width:620px) { .controls { grid-template-columns:1fr; } .controls #searchInput,.controls #resetBtn { grid-column:1/-1; } .restaurant-card { grid-template-columns:1fr; } .rank-badge { width:38px; height:38px; } }

.restaurant-map { width:100%; min-height:680px; height:clamp(560px,72vh,900px); border-radius:18px; overflow:hidden; border:1px solid var(--line); background:#07111a; box-shadow:inset 0 0 0 1px rgba(255,255,255,.03); }
.map-toolbar { display:flex; gap:10px; flex-wrap:wrap; margin:0 0 12px; }
.map-shortcuts { flex:1 1 100%; display:flex; gap:8px; align-items:center; flex-wrap:wrap; padding-top:2px; }
.map-shortcuts-label { color:var(--muted); font-size:13px; font-weight:800; }
.map-city-zoom-buttons { display:flex; gap:8px; flex-wrap:wrap; align-items:center; min-width:0; }
.city-zoom-btn { width:auto; min-height:34px; border-radius:999px; border:1px solid var(--line); background:rgba(255,255,255,.04); color:var(--text); padding:7px 10px; cursor:pointer; font-size:12px; font-weight:800; }
.city-zoom-btn:hover,.city-zoom-btn.active { background:rgba(245,193,76,.14); border-color:rgba(245,193,76,.55); color:#ffeab7; }
.map-shortcuts-empty { color:var(--muted); font-size:13px; }
.leaflet-container { background:#07111a; color:#1f1100; font:inherit; }
.leaflet-control-zoom a { background:#09141d; color:#ffeab7; border-color:rgba(245,193,76,.35); }
.leaflet-control-zoom a:hover { background:#132332; color:#fff1cc; }
.leaflet-control-attribution { background:rgba(3,8,13,.78); color:#d9bd81; }
.leaflet-control-attribution a { color:#ffeab7; }
.restaurant-marker-icon { background:transparent; border:0; }
.map-pin { min-width:31px; height:31px; display:grid; place-items:center; border-radius:999px; color:#081018; font-size:12px; font-weight:950; border:2px solid rgba(255,244,208,.95); box-shadow:0 8px 22px rgba(0,0,0,.42),0 0 0 2px rgba(3,8,13,.75); }
.map-pin.splus { background:var(--gold); }
.map-pin.s { background:var(--cyan); }
.map-pin.sminus { background:var(--red); color:#130408; }
.map-pin.unranked { background:#9fb0bf; color:#061018; font-size:10px; }
.leaflet-popup-content-wrapper,.leaflet-popup-tip { background:#07111a; color:var(--text); border:1px solid rgba(245,193,76,.32); box-shadow:0 18px 50px rgba(0,0,0,.45); }
.leaflet-popup-content { margin:12px 14px; min-width:230px; }
.map-popup-title { font-family:Georgia,'Times New Roman',serif; color:#ffeab7; font-size:18px; line-height:1.15; }
.map-popup-meta { color:var(--muted); margin:4px 0 10px; font-size:13px; }
.map-popup-actions { display:flex; gap:7px; flex-wrap:wrap; margin-top:10px; }
.map-popup-actions a,.map-popup-actions button { border:1px solid var(--line); background:rgba(255,255,255,.04); color:var(--text); border-radius:999px; padding:6px 9px; cursor:pointer; font-size:12px; }
.map-popup-actions a.primary { background:linear-gradient(180deg,#ffd569,#f09a1b); border-color:#ffd56b; color:#1f1100; font-weight:800; }
.map-detail .city-restaurants { display:grid; grid-template-columns:1fr; gap:8px; }
.map-detail .mini-link { display:block; line-height:1.25; }
.map-context-actions { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 12px; }
@media (max-width:1080px) { .restaurant-map { min-height:560px; height:68vh; } }
@media (max-width:620px) { .restaurant-map { min-height:460px; height:62vh; } .map-toolbar .small-btn { width:100%; justify-content:center; } .map-shortcuts { align-items:stretch; } .map-city-zoom-buttons { display:grid; grid-template-columns:1fr 1fr; } .city-zoom-btn { width:100%; } }


.active-filters { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:-8px 0 18px; min-height:32px; }
.active-filter-chip { border:1px solid rgba(245,193,76,.32); border-radius:999px; background:rgba(245,193,76,.08); color:#ffeab7; padding:7px 10px; cursor:pointer; font-size:13px; }
.active-filter-chip:hover { background:rgba(245,193,76,.15); }
.active-filter-empty { color:var(--muted); font-size:13px; padding:7px 2px; }
.app-status { color:var(--muted); font-size:13px; padding:8px 2px; align-self:center; }
.cards.compact { gap:6px; }
.cards.compact .restaurant-card { grid-template-columns:40px 1fr; padding:8px 10px; }
.cards.compact .rank-badge { width:34px; height:34px; font-size:13px; }
.cards.compact .restaurant-name { font-size:18px; }
.cards.compact .meta-line { font-size:12px; margin-top:2px; }
.cards.compact .booking-line,
.cards.compact .dress-line,
.cards.compact .english-line,
.cards.compact .dietary-line,
.cards.compact .actions { display:none; }
.restaurant-cluster-icon { background:transparent; border:0; }
.map-cluster-pin { min-width:74px; max-width:92px; height:38px; display:grid; grid-template-columns:30px 1fr; gap:4px; align-items:center; padding:3px 8px 3px 4px; border-radius:999px; color:#081018; background:linear-gradient(180deg,#ffd569,#f09a1b); border:2px solid rgba(255,244,208,.95); box-shadow:0 8px 22px rgba(0,0,0,.42),0 0 0 2px rgba(3,8,13,.75); }
.map-cluster-pin b { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:rgba(8,16,24,.15); font-size:13px; }
.map-cluster-pin em { font-style:normal; font-size:11px; font-weight:900; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Modular/performance upgrade additions */
.restaurant-card { content-visibility:auto; contain-intrinsic-size:118px; }
.audit-panel { padding-bottom:16px; }
.audit-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:10px; padding:16px; }
.audit-stat { border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.035); padding:12px; }
.audit-stat b { display:block; color:#ffeab7; font-size:22px; line-height:1.1; }
.audit-stat span { display:block; color:var(--muted); font-size:12px; margin-top:4px; }
.audit-issues { margin:0 16px 16px; padding:14px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.025); color:var(--muted); max-height:46vh; overflow:auto; white-space:pre-wrap; line-height:1.45; }
.audit-ok { color:#c7f36b; }
.audit-warning { color:#ffd166; }
.detail-drawer { position:fixed; inset:0; z-index:200; display:none; }
.detail-drawer.open { display:block; }
.detail-drawer-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.62); backdrop-filter:blur(3px); }
.detail-drawer-panel { position:absolute; top:0; right:0; width:min(560px,96vw); height:100%; overflow:auto; background:linear-gradient(180deg,rgba(9,17,26,.99),rgba(5,12,18,.99)); border-left:1px solid var(--line); box-shadow:-24px 0 65px rgba(0,0,0,.46); padding:20px; }
.detail-close { position:sticky; top:0; float:right; width:40px; height:40px; border-radius:50%; border:1px solid var(--line); background:#09141d; color:var(--text); cursor:pointer; font-size:26px; line-height:1; z-index:1; }
.detail-title { margin:0 46px 6px 0; font-family:Georgia,'Times New Roman',serif; color:#ffeab7; font-size:30px; line-height:1.05; }
.detail-subtitle { margin:0 0 14px; color:var(--muted); }
.detail-section { margin:14px 0; padding:12px; border:1px solid rgba(255,255,255,.08); border-radius:16px; background:rgba(255,255,255,.03); }
.detail-section h4 { margin:0 0 8px; color:#ffeab7; font-size:14px; text-transform:uppercase; letter-spacing:.06em; }
.detail-kv { display:grid; grid-template-columns:150px 1fr; gap:7px 12px; font-size:14px; }
.detail-kv dt { color:var(--muted); }
.detail-kv dd { margin:0; color:var(--text); }
.detail-links { display:flex; gap:8px; flex-wrap:wrap; }
.detail-button { cursor:pointer; }
@media (max-width:620px) { .detail-kv { grid-template-columns:1fr; } .detail-kv dt { margin-top:6px; } }
