:root { --gold: #e2b56d; --gold2: #b8864b; --bright: #ffd36a; --ink: #0d0907; --panel: rgba(25, 17, 12, .96); --line: rgba(226, 181, 109, .26); --text: #e0cdb4; --muted: #9b856f; --hot: #e5533d; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font-family: 'Roboto', system-ui, sans-serif; overflow: hidden; }
a { color: var(--gold); text-decoration: none; }
button { font: inherit; cursor: pointer; }
#map { position: absolute; inset: 56px 0 0 0; background: #0d0907 radial-gradient(1200px 600px at 70% 10%, #1b110b, #070504); outline: none; }
.leaflet-container { font-family: inherit; background: #0d0907; }
.leaflet-tile-pane img { image-rendering: pixelated; image-rendering: crisp-edges; }
.leaflet-control-attribution { background: rgba(13, 9, 7, .75) !important; color: var(--muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--gold) !important; }

/* gorny pasek */
.mm-top { position: absolute; z-index: 1200; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: linear-gradient(180deg, #4a130b 0%, #2d0e09 55%, #1a0a06 100%); border-bottom: 1px solid var(--gold2); box-shadow: 0 4px 18px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 200, 120, .18); }
.mm-burger { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 9px; }
.mm-burger span { height: 2px; background: var(--gold); border-radius: 2px; display: block; }
.mm-brand { display: flex; align-items: center; gap: 8px; color: #fff; }
.mm-brand b { font-family: 'Uncial Antiqua', 'Cinzel', serif; font-weight: normal; font-size: 22px; letter-spacing: .06em; color: var(--bright); text-shadow: 0 0 9px rgba(255, 140, 30, .7), 1px 1px 2px #2a0c04; }
.mm-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; margin: 0; color: #f3dcae; white-space: nowrap; padding-left: 12px; border-left: 1px solid var(--line); }
.mm-search { position: relative; flex: 1 1 auto; max-width: 460px; margin-left: 8px; }
.mm-search input { width: 100%; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: rgba(10, 6, 4, .55); color: #fff3d6; padding: 0 12px; font-size: 14px; outline: none; }
.mm-search input:focus { border-color: var(--bright); box-shadow: 0 0 0 3px rgba(226, 181, 109, .18); }
.mm-sug { position: absolute; top: 42px; left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; max-height: 60vh; overflow: auto; box-shadow: 0 12px 30px rgba(0, 0, 0, .55); }
.mm-sug div { display: flex; align-items: center; gap: 10px; padding: 7px 12px; cursor: pointer; font-size: 13px; }
.mm-sug div:hover, .mm-sug div.on { background: rgba(226, 181, 109, .16); }
.mm-sug img { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; }
.mm-sug b { color: #fff; font-weight: 500; }
.mm-sug small { margin-left: auto; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.mm-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: #f3dcae; white-space: nowrap; font-size: 14px; }
.mm-btn:hover { border-color: var(--gold); color: #fff; }
.mm-btn.gold { background: linear-gradient(180deg, #ffe29a, #e0a437 55%, #b36d1a); color: #2a1204; font-weight: 700; border: none; box-shadow: 0 0 12px rgba(255, 170, 40, .35); }
.mm-btn.gold:hover { color: #2a1204; filter: brightness(1.1); }
.mm-btn.mm-dl { background: linear-gradient(180deg, #8a2a1a, #4a130b); border-color: #c4793a; font-weight: 700; }
.mm-full { display: none; }
.mm-back { font-size: 13px; white-space: nowrap; color: #d9b98a; }
.mm-dl { margin-left: auto; }

/* panel boczny */
.mm-panel { position: absolute; z-index: 1100; top: 56px; left: 0; bottom: 0; width: 310px; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s; }
.mm-panel.off { transform: translateX(-100%); }
.mm-ph { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-family: 'Uncial Antiqua', 'Cinzel', serif; font-size: 19px; color: var(--bright); text-shadow: 0 0 8px rgba(255, 140, 30, .6); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(122, 36, 24, .5), rgba(45, 14, 9, .2)); }
.mm-ph button { background: none; border: none; color: var(--muted); font-size: 22px; line-height: 1; }
.mm-pb { flex: 1; overflow: auto; padding: 4px 14px 14px; }
.mm-pb h4 { margin: 16px 0 8px; font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.mm-empty { font-size: 13px; color: var(--muted); line-height: 1.5; background: rgba(255, 255, 255, .03); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; }
.mm-empty b { color: #fff; font-weight: 500; }
.mm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-chip { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); border-radius: 18px; padding: 5px 11px; font-size: 12.5px; }
.mm-chip:hover { border-color: var(--gold); color: #fff; background: rgba(226, 181, 109, .14); }
.mm-toggle { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 14px; }
.mm-toggle input { display: none; }
.mm-toggle i { width: 36px; height: 20px; border-radius: 12px; background: rgba(255, 255, 255, .14); position: relative; transition: background .15s; flex: 0 0 36px; }
.mm-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.mm-toggle input:checked + i { background: linear-gradient(90deg, #b36d1a, #e2b56d); }
.mm-toggle input:checked + i::after { transform: translateX(16px); background: #2a1204; }
.mm-toggle small { margin-left: auto; color: var(--muted); font-size: 11px; }
.mm-note { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 8px 0 0; }
.mm-help { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; color: var(--muted); padding: 3px 0; }
.mm-help kbd { background: rgba(255, 255, 255, .08); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; color: #fff; font-size: 11px; font-family: inherit; }
.mm-pf { padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.mm-res-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mm-res-h img { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; background: rgba(0, 0, 0, .3); border-radius: 8px; padding: 2px; }
.mm-res-h b { display: block; color: #fff; font-size: 16px; }
.mm-res-h small { color: var(--muted); font-size: 12px; }
.mm-flr { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.mm-flr button { display: flex; justify-content: space-between; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.mm-flr button.on { border-color: var(--gold); background: rgba(226, 181, 109, .16); color: #fff; }
.mm-flr button b { color: var(--gold); }
.mm-clear { margin-top: 10px; font-size: 12px; background: none; border: none; color: var(--muted); text-decoration: underline; padding: 0; }

/* pietra */
.mm-floors { position: absolute; z-index: 1000; right: 12px; top: 50%; transform: translateY(-50%); width: 52px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.mm-fh { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: .14em; color: var(--gold); font-weight: 700; margin-bottom: 2px; }
.mm-fb { width: 36px; height: 24px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--gold); font-size: 11px; }
.mm-fl { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.mm-fl button { height: 22px; border-radius: 6px; border: 1px solid transparent; background: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.mm-fl button:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.mm-fl button.on { background: linear-gradient(180deg, #ffe29a, #e0a437 55%, #b36d1a); color: #2a1204; font-weight: 700; }
.mm-zoom { position: absolute; z-index: 1000; right: 12px; bottom: 30px; display: flex; flex-direction: column; gap: 6px; }
.mm-zoom button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--gold); font-size: 22px; line-height: 1; }
.mm-coords { position: absolute; z-index: 1000; left: 12px; bottom: 30px; display: flex; gap: 12px; align-items: baseline; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: 13px; color: var(--muted); }
.mm-panel:not(.off) ~ .mm-coords { left: 322px; }
.mm-coords b { color: #fff; font-variant-numeric: tabular-nums; }
.mm-coords em { color: var(--gold); font-style: normal; font-size: 12px; }
.mm-toast { position: absolute; z-index: 1300; left: 50%; bottom: 70px; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--gold); color: #fff; padding: 9px 18px; border-radius: 10px; font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }

/* markery */
.mm-label { background: none; border: none; box-shadow: none; color: #fff; font-family: 'Cinzel', serif; font-weight: 700; font-size: 13px; text-shadow: 0 0 3px #000, 0 0 3px #000, 1px 1px 2px #000; white-space: nowrap; pointer-events: none; }
.mm-label.small { font-family: 'Roboto', sans-serif; font-weight: 500; font-size: 11.5px; color: #ffe1a0; }
.mm-pin { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(180deg, #ffe29a, #d9962b); border: 2px solid #2a1204; box-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.mm-pin::after { content: ""; position: absolute; left: 4px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: #1b1200; }
.mm-pulse { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--bright); animation: mmp 1.6s ease-out infinite; }
@keyframes mmp { 0% { transform: scale(.35); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.leaflet-popup-content-wrapper { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; }
.leaflet-popup-tip { background: var(--panel); }
.leaflet-popup-content { margin: 10px 14px; font-size: 13px; line-height: 1.45; }
.leaflet-popup-content b { color: #fff; }
.leaflet-popup-content img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; float: left; margin-right: 10px; }
.leaflet-popup-content small { color: var(--muted); }

@media (max-width: 760px) {
  .mm-title, .mm-back, .mm-brand b, .mm-dl { display: none; }
  .mm-panel { width: min(88vw, 320px); }
  .mm-panel:not(.off) ~ .mm-coords { left: 12px; }
  .mm-coords { bottom: 12px; font-size: 12px; gap: 8px; }
  .mm-zoom { bottom: 12px; }
}

/* tryb osadzony (strona 'World Map' w ukladzie serwisu, ?embed=1): waski pasek, bez marki i linkow */
body.embed .mm-top { height: 44px; padding: 0 8px; gap: 8px; }
body.embed #map { inset: 44px 0 0 0; }
body.embed .mm-brand, body.embed .mm-title, body.embed .mm-back, body.embed .mm-dl { display: none; }
body.embed .mm-full { display: inline-flex; margin-left: auto; }
body.embed .mm-btn { height: 32px; padding: 0 12px; font-size: 13px; }
body.embed .mm-search input { height: 32px; }
body.embed .mm-sug { top: 38px; }
body.embed .mm-burger { width: 32px; height: 32px; }
body.embed .mm-panel { top: 44px; width: min(86vw, 290px); }
body.embed .mm-floors { right: 6px; width: 46px; }
body.embed .mm-zoom { right: 6px; bottom: 26px; }
body.embed .mm-zoom button { width: 34px; height: 34px; }
body.embed .mm-coords { left: 6px; bottom: 26px; padding: 5px 9px; font-size: 11.5px; gap: 9px; }
body.embed .mm-panel:not(.off) ~ .mm-coords { left: 6px; }
