/* ============================================================
   SongMap map styles — extracted from home-map-v2.php
   Do NOT add PHP here; this file is served as static CSS.
   ============================================================ */

/* ── Variables ── */
:root {
  --c-primary:  #0F172A;
  --c-blue:     #2563EB;
  --c-accent:   #38BDF8;
  --c-bg:       #FFFFFF;
  --c-bg2:      #F8FAFC;
  --c-text:     #1E293B;
  --c-muted:    #94A3B8;
  --c-border:   #E2E8F0;
  --glass:      rgba(255,255,255,0.88);
  --glass-dark: rgba(15,23,42,0.72);
  --blur:       blur(18px);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 4px 24px rgba(0,0,0,.13);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.20);
  --r-pill:     999px;
  --r-lg:       16px;
  --r-md:       12px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; font-family: system-ui, -apple-system, sans-serif; background: var(--c-primary); }

/* ── Map ── */
#map { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; }

/* ── Navbar ── */
#navbar {
  position: fixed; top: 14px; left: 14px; right: 14px; z-index: 200;
  display: flex; align-items: center; gap: 8px; height: 52px;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,0.7); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 0 10px 0 16px;
  transition: top .3s;
}

/* Logo */
#nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
#nav-logo svg { flex-shrink: 0; }
.nl-name { font-size: 18px; font-weight: 900; color: var(--c-primary); letter-spacing: -.5px; line-height: 1; }
.nl-sub  { font-size: 9px; color: var(--c-muted); letter-spacing: .3px; }
#nav-divider { width: 1px; height: 24px; background: var(--c-border); flex-shrink: 0; margin: 0 2px; }

/* Lang switcher */
#lang-wrap { position: relative; flex-shrink: 0; }
#lang-btn {
  width: 36px; height: 36px; padding: 0;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-md);
  cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
#lang-btn:hover, #lang-btn.open { background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.2); }
#lang-dd {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); display: none; z-index: 300; overflow: hidden;
  min-width: 152px; padding: 4px 0;
}
#lang-dd.open { display: block; }
.lang-opt {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px; text-decoration: none;
  font-size: 13px; font-weight: 500; color: var(--c-text);
  transition: background .1s; white-space: nowrap;
}
.lang-opt:hover { background: var(--c-bg2); }
.lang-opt.active { color: var(--c-blue); font-weight: 700; }
.lang-flag { font-size: 14px; line-height: 1; }

/* Search */
#search-wrap { flex: 1; position: relative; min-width: 0; }
#search-inner { display: flex; align-items: center; gap: 6px; padding: 0 12px; height: 36px; background: var(--c-bg2); border: 1px solid var(--c-border); border-radius: var(--r-pill); transition: border-color .15s, box-shadow .15s; }
#search-inner:focus-within { border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
#search-inner .s-icon { color: var(--c-muted); font-size: 13px; flex-shrink: 0; }
#search-input { flex: 1; border: none; outline: none; background: transparent; font-size: 13px; font-family: inherit; color: var(--c-text); min-width: 0; }
#search-input::placeholder { color: var(--c-muted); }
#search-clear { background: none; border: none; cursor: pointer; color: var(--c-muted); font-size: 14px; line-height: 1; padding: 0 2px; display: none; flex-shrink: 0; }
#search-loc { background: none; border: none; cursor: pointer; color: var(--c-muted); font-size: 15px; padding: 0 2px; flex-shrink: 0; }
#search-loc:hover { color: var(--c-blue); }
#period-wrap { position: relative; border-left: 1px solid var(--c-border); padding-left: 6px; margin-left: 2px; flex-shrink: 0; }
#period-btn { background: none; border: none; cursor: pointer; font-size: 11px; font-weight: 600; color: var(--c-blue); padding: 2px 4px; white-space: nowrap; }
#period-dd {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 400;
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); min-width: 160px; display: none;
}
#period-dd.open { display: block; }
.pdd-item { padding: 9px 16px; cursor: pointer; font-size: 13px; color: var(--c-text); }
.pdd-item:hover { background: var(--c-bg2); }
.pdd-item.active { color: var(--c-blue); font-weight: 600; }
.pdd-custom { color: var(--c-muted); font-style: italic; }
#genre-dd {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 400;
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); min-width: 230px; max-height: 360px;
  display: none; flex-direction: column; overflow: hidden;
}
#genre-dd.open { display: flex; }
#genre-selected {
  display: none; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 8px 12px; border-bottom: 1px solid var(--c-border); flex-shrink: 0;
}
.gs-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  background: var(--c-bg2); border-radius: var(--r-pill); font-size: 11px; color: var(--c-text);
}
.gs-chip .gs-x { cursor: pointer; color: var(--c-muted); font-weight: 700; padding: 0 2px; }
.gs-chip .gs-x:hover { color: var(--c-text); }
.gs-clear {
  background: none; border: none; cursor: pointer; font-size: 11px;
  color: var(--c-blue); padding: 2px 4px; font-weight: 600;
}
#genre-list { overflow-y: auto; flex: 1; min-height: 0; padding: 4px 0; }
#genre-footer { border-top: 1px solid var(--c-border); padding: 8px 12px; flex-shrink: 0; }
.genre-opt { display: flex; align-items: center; gap: 8px; padding: 7px 14px; cursor: pointer; font-size: 13px; }
.genre-opt:hover { background: var(--c-bg2); }
.genre-opt input { accent-color: var(--c-blue); }
.genre-opt .genre-name { flex: 1; }
.genre-opt .genre-count { color: var(--c-muted); font-size: 12px; }
#search-dd {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 400;
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); max-height: 360px; overflow-y: auto; display: none;
}
.sd-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; border-bottom: 1px solid var(--c-bg2); transition: background .1s; }
.sd-item:last-child { border-bottom: none; }
.sd-item:hover { background: var(--c-bg2); }
.sd-thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: var(--c-bg2); flex-shrink: 0; }
.sd-name { font-size: 13px; font-weight: 600; color: var(--c-text); }
.sd-meta { font-size: 11px; color: var(--c-muted); margin-top: 1px; }
.sd-empty { padding: 20px; text-align: center; color: var(--c-muted); font-size: 13px; }
.sd-more  { padding: 10px 14px; text-align: center; font-size: 13px; font-weight: 600; color: var(--c-blue); cursor: pointer; border-top: 1px solid var(--c-bg2); }
.sd-more:hover { background: #eff6ff; border-radius: 0 0 var(--r-lg) var(--r-lg); }
/* Search results in panel */
.sr-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--c-border); }
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: var(--c-bg2); }
.sr-thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--c-bg2); flex-shrink: 0; }
.sr-body { flex: 1; min-width: 0; }
.sr-name { font-size: 13px; font-weight: 600; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-meta { font-size: 11px; color: var(--c-muted); }
.sr-type { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 10px; flex-shrink: 0; }
.sr-type-artist { background: #ede9fe; color: #7c3aed; }
.sr-type-event  { background: #dbeafe; color: #2563EB; }
.sr-type-venue  { background: #dcfce7; color: #16a34a; }

/* Nav icon buttons */
.nav-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border); background: transparent; cursor: pointer;
  font-size: 16px; transition: background .15s, border-color .15s, color .15s; color: var(--c-text);
}
.nav-icon:hover  { background: #eff6ff; border-color: var(--c-blue); color: var(--c-blue); }
.nav-icon.active { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }

/* ── Social bar — bottom left ── */
#social-bar {
  position: fixed; bottom: 80px; left: 14px; z-index: 100;
  display: flex; flex-direction: column; gap: 6px;
}
.soc-btn {
  width: 38px; height: 38px; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.5);
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--c-text); font-size: 16px; transition: all .15s;
}
.soc-btn:hover { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }

/* Help button */
#help-btn {
  position: fixed; top: 106px; left: 14px; z-index: 190;
  width: 38px; height: 38px; border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.5);
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm); cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all .15s; color: var(--c-text);
}
#help-btn:hover { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
@keyframes bulb-blink {
  0%,100% { opacity: 1; } 50% { opacity: 0.25; }
}
#help-btn.blinking { animation: bulb-blink 1.2s ease-in-out infinite; }

/* Info bar */
#info-bar {
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 190;
  max-width: 50%; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,0.7); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 10px 16px;
  display: none; align-items: center; gap: 12px;
  font-size: 13px; color: var(--c-text); line-height: 1.4;
}
#info-bar.visible { display: flex; }
#info-bar-close {
  background: none; border: none; cursor: pointer;
  color: var(--c-muted); font-size: 18px; line-height: 1; padding: 0 2px; flex-shrink: 0;
}
#info-bar-close:hover { color: var(--c-text); }

/* Help modal */
#help-modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.35); display: none; align-items: center; justify-content: center;
}
#help-modal.open { display: flex; }
#help-modal-inner {
  background: var(--c-bg); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: 28px 32px; max-width: 480px; width: 90%; position: relative;
}
#help-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; cursor: pointer; font-size: 20px; color: var(--c-muted);
}
#help-modal h2 { font-size: 18px; font-weight: 800; margin: 0 0 12px; color: var(--c-primary); }
#help-modal p { font-size: 13px; color: var(--c-text); line-height: 1.6; margin: 0 0 10px; }

/* Page modal */
#page-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 510; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
#page-modal-overlay.open { opacity: 1; pointer-events: auto; }
#page-modal-window {
  position: fixed; top: 50%; left: 50%; z-index: 511;
  transform: translate(-50%, -48%) scale(0.97);
  width: min(800px, calc(100vw - 32px)); max-height: 90vh;
  background: var(--c-bg); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
#page-modal-window.open {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
#page-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--c-border); flex-shrink: 0;
}
#page-modal-title { font-size: 17px; font-weight: 700; color: var(--c-text); line-height: 1.3; }
#page-modal-close {
  background: none; border: none; cursor: pointer; font-size: 20px;
  color: var(--c-muted); flex-shrink: 0; margin-left: 12px; padding: 0; line-height: 1;
}
#page-modal-close:hover { color: var(--c-text); }
#page-modal-body {
  flex: 1; overflow-y: auto; padding: 24px 28px; font-size: 14px; color: var(--c-text); line-height: 1.75;
}
#page-modal-body::-webkit-scrollbar { width: 4px; }
#page-modal-body::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }
#page-modal-body h1 { font-size: 22px; font-weight: 800; margin: 0 0 16px; }
#page-modal-body h2 { font-size: 18px; font-weight: 700; margin: 20px 0 10px; }
#page-modal-body h3 { font-size: 15px; font-weight: 700; margin: 16px 0 8px; }
#page-modal-body p { margin-bottom: 14px; }
#page-modal-body a { color: var(--c-blue); text-decoration: none; }
#page-modal-body a:hover { text-decoration: underline; }
#page-modal-body img { max-width: 100%; border-radius: var(--r-md); margin: 8px 0; display: block; }
#page-modal-body ul, #page-modal-body ol { padding-left: 20px; margin-bottom: 14px; }
#page-modal-body li { margin-bottom: 4px; }
#page-modal-loading { padding: 40px; text-align: center; color: var(--c-muted); }
@media (max-width: 768px) {
  #page-modal-window {
    top: 0; left: 0; right: 0; bottom: 0; width: 100%; max-height: 100%;
    transform: translateY(24px); border-radius: 0;
  }
  #page-modal-window.open { transform: translateY(0); }
}

/* ── NUTS / Country bubbles ── */
.nuts-bubble {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%; border: 2.5px solid rgba(255,255,255,.9);
  box-shadow: 0 2px 12px rgba(0,0,0,.25); cursor: pointer;
  color: #fff; font-family: system-ui, sans-serif; line-height: 1;
  transition: transform .15s, box-shadow .15s; user-select: none;
}
.nuts-bubble:hover { transform: scale(1.13); box-shadow: 0 4px 20px rgba(0,0,0,.35); }
.nb-count { font-weight: 700; }
.nb-label { font-size: 9px; opacity: .85; margin-top: 1px; }
.nuts-bubble--overlay { border-color: rgba(255,255,255,.55); }

/* ── Events panel (right, appears at NUTS3 zoom) ── */
#events-panel {
  position: fixed; top: 78px; right: 14px; z-index: 150;
  width: 320px; max-height: calc(100vh - 94px);
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,.7); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transform: translateX(calc(100% + 28px)); transition: transform .3s ease;
  overflow: hidden;
}
#events-panel.open { transform: translateX(0); }
#ep-header {
  padding: 11px 14px 10px; border-bottom: 1px solid var(--c-border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
}
#ep-title { font-size: 12px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .6px; }
#ep-count { font-size: 12px; color: var(--c-muted); }
#ep-close { background: none; border: none; cursor: pointer; color: var(--c-muted); font-size: 16px; line-height: 1; padding: 0 2px; }
#ep-close:hover { color: var(--c-text); }
#ep-list { flex: 1; overflow-y: auto; }
#ep-list::-webkit-scrollbar { width: 3px; }
#ep-list::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }
.ep-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  border-bottom: 1px solid var(--c-bg2); cursor: pointer; transition: background .1s;
}
.ep-item:last-child { border-bottom: none; }
.ep-item:hover { background: rgba(37,99,235,.06); }
.ep-item.active { background: rgba(37,99,235,.1); border-left: 3px solid var(--c-blue); padding-left: 11px; }
.ep-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--c-bg2); flex-shrink: 0; }
.ep-body { flex: 1; min-width: 0; }
.ep-name { font-size: 13px; font-weight: 600; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-meta { font-size: 11px; color: var(--c-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-genre { display: inline-block; font-size: 10px; font-weight: 600; color: var(--c-blue); background: #eff6ff; border-radius: 6px; padding: 1px 6px; margin-top: 3px; }
.ep-empty { padding: 24px 14px; text-align: center; color: var(--c-muted); font-size: 13px; }
#ep-pag { padding: 8px 10px; border-top: 1px solid var(--c-border); display: flex; align-items: center; justify-content: center; gap: 3px; flex-shrink: 0; }
.pag-btn { padding: 4px 9px; border: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text); border-radius: 8px; cursor: pointer; font-size: 12px; font-family: inherit; min-width: 28px; text-align: center; transition: all .1s; }
.pag-btn.cur { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.pag-btn:hover:not(.cur) { background: var(--c-bg2); }
.pag-info { font-size: 11px; color: var(--c-muted); padding: 0 4px; }

.ed-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px; background: var(--c-blue); color: #fff; border-radius: var(--r-md);
  text-decoration: none; font-size: 14px; font-weight: 700; border: none; cursor: pointer; font-family: inherit;
  transition: background .15s; width: 100%;
}
.ed-btn-primary:hover { background: #1d4ed8; }
.ed-btn-secondary {
  display: flex; align-items: center; justify-content: center;
  padding: 10px; border: 1px solid var(--c-border); background: var(--c-bg2); color: var(--c-text);
  border-radius: var(--r-md); text-decoration: none; font-size: 13px; font-weight: 600; transition: all .15s;
}
.ed-btn-secondary:hover { border-color: var(--c-blue); color: var(--c-blue); background: #eff6ff; }

/* ── Hamburger menu ── */
#menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 490;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
#menu-overlay.open { opacity: 1; pointer-events: auto; }
#menu-panel {
  position: fixed;
  top: 70px;
  right: 14px;
  left: auto;
  z-index: 500;
  width: min(320px, calc(100vw - 28px));
  max-height: min(82vh, 600px);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow-y: auto;
  transform: translateY(-8px) scale(0.97);
  opacity: 0; pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}
#menu-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
#mp-header {
  padding: 16px; border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.mp-logo-name { font-size: 22px; font-weight: 900; color: var(--c-blue); letter-spacing: -.5px; }
.mp-logo-sub  { font-size: 10px; color: var(--c-muted); }
#mp-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--c-muted);
  padding: 4px;
  line-height: 1;
}
#mp-close:hover { color: var(--c-text); }
#mp-nav { padding: 8px 0; border-bottom: 1px solid var(--c-border); }
.mp-link {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px;
  text-decoration: none; color: var(--c-text); font-size: 14px; transition: background .1s;
}
.mp-link:hover { background: var(--c-bg2); color: var(--c-blue); }
.mp-link .mp-icon { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; color: var(--c-muted); }
.mp-link:hover .mp-icon { color: var(--c-blue); }
.mp-section-title { font-size: 10px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .6px; padding: 10px 18px 4px; }
#mp-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 18px 14px; border-bottom: 1px solid var(--c-border); }
.mp-lang {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 6px; border: 1px solid var(--c-border); border-radius: 10px;
  text-decoration: none; font-size: 13px; font-weight: 600; color: var(--c-text);
  background: var(--c-bg2); transition: all .15s;
}
.mp-lang:hover, .mp-lang.active { background: #eff6ff; border-color: var(--c-blue); color: var(--c-blue); }
.mp-lang.active { pointer-events: none; }
#mp-social { display: flex; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--c-border); }
.mp-soc { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--c-border); background: var(--c-bg2); display: flex; align-items: center; justify-content: center; font-size: 18px; text-decoration: none; transition: all .15s; }
.mp-soc:hover { background: #eff6ff; border-color: var(--c-blue); }
#mp-footer { margin-top: auto; padding: 14px 18px; font-size: 11px; color: var(--c-muted); line-height: 2; }
#mp-footer a { color: var(--c-muted); text-decoration: none; }
#mp-footer a:hover { color: var(--c-blue); }

/* ── MapLibre popup override ── */
.sm-popup .maplibregl-popup-content {
  padding: 10px 28px 10px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: none;
  font-size: 13px;
  font-family: system-ui, sans-serif;
}
.sm-popup .maplibregl-popup-close-button {
  font-size: 18px;
  color: #888;
  background: none;
  border: none;
  padding: 2px 6px;
  line-height: 1;
  top: 4px;
  right: 4px;
  width: auto;
  height: auto;
}
.sm-popup .maplibregl-popup-tip { display: none; }
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { display: none; }
.pu-name { font-weight: 700; font-size: 13px; color: var(--c-primary); margin-bottom: 3px; }
.pu-name-link { cursor: pointer; }
.pu-name-link:hover { color: var(--c-blue); text-decoration: underline; }
.pu-meta { font-size: 11px; color: var(--c-muted); line-height: 1.6; }
.pu-venue-title { font-size: 11px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 7px; }
.pu-venue-title.pu-name-link:hover { color: var(--c-blue); }
.pu-ev-item { display: flex; gap: 8px; padding: 5px 0; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.pu-ev-item:last-child { border-bottom: none; }
.pu-ev-item:hover .pu-ev-name { color: var(--c-blue); }
.pu-ev-date { font-size: 11px; color: var(--c-muted); white-space: nowrap; flex-shrink: 0; }
.pu-ev-name { font-size: 12px; font-weight: 600; color: var(--c-text); }

/* ── Zoom breadcrumb ── */
#breadcrumb {
  position: fixed; top: 78px; left: 14px; z-index: 100;
  display: flex; align-items: center; gap: 6px; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
#breadcrumb.visible { opacity: 1; pointer-events: auto; }
.bc-btn {
  display: flex; align-items: center; gap: 5px; padding: 6px 12px;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,.7); border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm); font-size: 12px; font-weight: 600; color: var(--c-text);
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.bc-btn:hover { background: #eff6ff; border-color: var(--c-blue); color: var(--c-blue); }
.bc-sep { font-size: 12px; color: var(--c-muted); }
.bc-label { font-size: 12px; color: var(--c-muted); padding: 4px 8px; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid rgba(255,255,255,.7); border-radius: var(--r-pill); box-shadow: var(--shadow-sm); }

/* ── Info panel (blog + event/artist/venue detail) ── */
#info-panel {
  position: fixed; top: 78px; right: 14px; z-index: 150;
  width: 320px; max-height: calc(100vh - 94px);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transition: width 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}
#info-panel.ip-expanded { width: 520px; }
#info-panel.ip-hidden   { transform: translateX(calc(100% + 28px)); }
#ip-header {
  padding: 11px 14px 10px; border-bottom: 1px solid var(--c-border);
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
}
#ip-back {
  display: none; flex-shrink: 0; margin-left: auto;
  background: none; border: none; cursor: pointer;
  color: var(--c-muted); font-size: 18px; line-height: 1; padding: 0 2px;
}
#ip-back:hover { color: var(--c-text); }
#ip-title { font-size: 12px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .6px; flex: 1; }
#ip-close { background: none; border: none; cursor: pointer; color: var(--c-muted); font-size: 16px; line-height: 1; padding: 0 2px; }
#ip-close:hover { color: var(--c-text); }
#ip-stats {
  display: flex; justify-content: space-around;
  padding: 10px 8px 8px; border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}
#ip-stats:empty { display: none; }
.ip-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.ip-stat-n { font-size: 17px; font-weight: 700; color: var(--c-accent); line-height: 1.1; }
.ip-stat-l { font-size: 10px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .4px; }
#ip-list { flex: 1; overflow-y: auto; }
#ip-list::-webkit-scrollbar { width: 3px; }
#ip-list::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }
.ip-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--c-bg2); cursor: pointer; transition: background .1s;
}
.ip-item:last-child { border-bottom: none; }
.ip-item:hover { background: rgba(37,99,235,.06); }
.ip-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--c-bg2); flex-shrink: 0; }
.ip-body { flex: 1; min-width: 0; }
.ip-name { font-size: 13px; font-weight: 600; color: var(--c-text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ip-meta { font-size: 11px; color: var(--c-muted); margin-top: 3px; }
#ip-detail { flex: 1; overflow-y: auto; display: none; }
#ip-detail::-webkit-scrollbar { width: 3px; }
#ip-detail::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }
.ipd-img {
    width: 100%;
    max-height: 280px;
    min-height: 120px;
    object-fit: contain;
    object-position: center;
    background: #f0f0f0;
    display: block;
}
.ipd-body { padding: 16px 16px 24px; }
.ipd-tag { display: inline-block; font-size: 10px; font-weight: 700; color: var(--c-blue); background: #eff6ff; border-radius: 6px; padding: 2px 8px; margin-bottom: 8px; }
.ipd-title { font-size: 17px; font-weight: 800; color: var(--c-primary); line-height: 1.3; margin-bottom: 8px; }
.ipd-meta { font-size: 11px; color: var(--c-muted); margin-bottom: 12px; }
.ipd-content { font-size: 13px; color: var(--c-text); line-height: 1.65; }
.ipd-content p { margin-bottom: 10px; }
.ipd-content a { color: var(--c-blue); }
.ipd-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 7px; font-size: 13px; color: var(--c-text); }
.ipd-row .ipd-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.ipd-price { font-size: 14px; font-weight: 700; color: #059669; margin: 10px 0; }
.ipd-btns { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ipd-artists { border-top: 1px solid var(--c-border); margin-top: 14px; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.ipd-artist { display: flex; align-items: center; gap: 10px; }
.ipd-artist-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--c-bg2); flex-shrink: 0; }
.ipd-artist-name { font-size: 13px; font-weight: 600; color: var(--c-text); margin-bottom: 4px; }
.ipd-socials { display: flex; flex-wrap: wrap; gap: 4px; }
.ipd-social-link {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; background: var(--c-bg2); border: 1px solid var(--c-border);
  border-radius: 6px; font-size: 11px; font-weight: 500; color: var(--c-text);
  text-decoration: none; transition: all .1s;
}
.ipd-social-link:hover { background: #eff6ff; border-color: var(--c-blue); color: var(--c-blue); }
.ip-empty { padding: 24px 14px; text-align: center; color: var(--c-muted); font-size: 13px; }

/* ── Event detail — extended sections ── */
.ipd-hero { max-height: 280px; }
.ipd-description { font-size: 13px; color: var(--c-text); line-height: 1.65; }
.ipd-map-link { font-size: 12px; color: var(--c-blue); text-decoration: none; }
.ipd-map-link:hover { text-decoration: underline; }
.ipd-section { border-top: 1px solid var(--c-border); margin-top: 14px; padding-top: 12px; }
.ipd-section-title { font-size: 11px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.ipd-section-title.collapsible { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; margin-bottom: 0; }
.ipd-section-title.collapsible:hover { color: var(--c-text); }
.ipd-collapse-icon { font-size: 16px; font-weight: 400; line-height: 1; flex-shrink: 0; }
.ipd-collapsible-body { overflow: hidden; }
.ipd-collapsible-body.collapsed { display: none; }
.ipd-collapsible-body:not(.collapsed) { margin-top: 10px; }
.ipd-load-more { font-size: 12px; color: var(--c-primary); cursor: pointer; padding: 6px 0 2px; text-align: center; }
.ipd-load-more:hover { text-decoration: underline; }

/* Tickets dropdown */
.ipd-ticket-list { display: none; margin-top: 8px; border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; }
.ipd-ticket-list.open { display: block; }
.ipd-ticket-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid var(--c-bg2); font-size: 13px; text-decoration: none; color: var(--c-text); transition: background .1s; }
.ipd-ticket-item:last-child { border-bottom: none; }
.ipd-ticket-item:hover { background: var(--c-bg2); }
.ipd-ticket-provider { font-weight: 600; }
.ipd-ticket-price { font-size: 12px; color: #059669; font-weight: 700; }
/* Artist detail */
.ipd-artist-detail { display: flex; gap: 12px; margin-bottom: 14px; }
.ipd-artist-detail:last-child { margin-bottom: 0; }
.ipd-artist-img-lg { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--c-bg2); flex-shrink: 0; }
.ipd-artist-info { flex: 1; min-width: 0; }
.ipd-artist-name-lg { font-size: 14px; font-weight: 700; color: var(--c-primary); margin-bottom: 4px; }
.ipd-artist-clickable { cursor: pointer; }
.ipd-artist-name-lg.ipd-artist-clickable:hover { color: var(--c-blue); text-decoration: underline; }
.ipd-artist-img-lg.ipd-artist-clickable:hover { opacity: 0.8; }
.ipd-bio { font-size: 12px; color: var(--c-muted); line-height: 1.55; margin-bottom: 6px; }
.ipd-sub-title { font-size: 10px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .5px; margin: 8px 0 4px; }
/* Venue / similar events list */
.ipd-ev-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--c-bg2); cursor: pointer; }
.ipd-ev-item:last-child { border-bottom: none; }
.ipd-ev-item:hover .ipd-ev-name { color: var(--c-blue); }
.ipd-ev-date { font-size: 11px; color: var(--c-muted); min-width: 72px; flex-shrink: 0; }
.ipd-ev-name { font-size: 13px; color: var(--c-text); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ipd-ev-venue { font-size: 11px; color: var(--c-muted); flex-shrink: 0; white-space: nowrap; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
/* Hotel CTA */
.ipd-hotel-btn { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; background: linear-gradient(135deg, #1a56db 0%, #4f46e5 100%); color: #fff; border-radius: var(--r-md); text-decoration: none; font-size: 13px; font-weight: 600; transition: opacity .15s; }
.ipd-hotel-btn:hover { opacity: .88; }
.ipd-hotel-note { font-size: 10px; color: var(--c-muted); margin-top: 5px; text-align: right; }
/* Ticket collab */
.ipd-collab { margin-top: 8px; font-size: 12px; color: var(--c-muted); }
.ipd-collab a { color: var(--c-blue); text-decoration: none; }
.ipd-collab a:hover { text-decoration: underline; }
/* Selected venue pin on map */
.selected-pin {
  width: 20px; height: 20px; border-radius: 50%;
  background: #ef4444; border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(239,68,68,.7), 0 2px 8px rgba(0,0,0,.3);
  animation: pin-pulse 1.6s ease-out infinite;
}
@keyframes pin-pulse {
  0%   { box-shadow: 0 0 0 3px rgba(239,68,68,.7), 0 2px 8px rgba(0,0,0,.3); }
  100% { box-shadow: 0 0 0 14px rgba(239,68,68,0), 0 2px 8px rgba(0,0,0,.3); }
}

/* ── MapLibre nav control ── */
.maplibregl-ctrl-bottom-right { bottom: 50px !important; right: 14px !important; }

/* ── Style switcher — oddělený panel vlevo od zoom +/- ── */
#style-switcher {
  position: fixed;
  bottom: 120px;
  right: 66px;
  z-index: 100;
}
#style-toggle {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.95);
  border: none; border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0,0,0,.1);
  padding: 0 9px; height: 29px; cursor: pointer;
  font-size: 11px; font-weight: 600; color: #333;
  white-space: nowrap;
}
#style-toggle:hover { background: #fff; box-shadow: 0 0 0 2px var(--c-blue); }
#style-dd {
  position: absolute; bottom: calc(100% + 4px); right: 0;
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  min-width: 140px; display: none; overflow: hidden;
}
#style-dd.open { display: block; }
.style-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; cursor: pointer; font-size: 12px; color: var(--c-text);
}
.style-opt:hover { background: var(--c-bg2); }
.style-opt.active { color: var(--c-blue); font-weight: 600; }
.style-preview { width: 22px; height: 15px; border-radius: 4px; border: 1px solid rgba(0,0,0,.1); flex-shrink: 0; }
.style-grey  { background: linear-gradient(135deg, #a3a3a3 50%, #cccccc 50%); }
.style-light { background: linear-gradient(135deg, #f5f0e8 50%, #b8d4e8 50%); }
.style-dark  { background: linear-gradient(135deg, #1a1a2e 50%, #22223a 50%); }
.style-color { background: linear-gradient(135deg, #c8dbb0 50%, #a0c8e8 50%); }

/* ── Mobile blog toggle (plovoucí tlačítko nad mapou) ── */
#ip-mobile-toggle {
  display: none; position: fixed; bottom: 14px; left: 14px; z-index: 290;
  align-items: center; gap: 6px; padding: 10px 16px;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,.7); border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg); font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--c-text); cursor: pointer;
}
#ip-mobile-close {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--c-muted); font-size: 16px; line-height: 1; padding: 0 2px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  html, body { overflow: hidden; }
  body { padding-top: 56px; }
  #map { position: relative; height: calc(100vh - 56px); width: 100%; }
  #navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200; border-radius: 0;
    border-top: none; border-left: none; border-right: none;
    border-bottom: 1px solid var(--c-border); height: 56px;
  }
  .nl-sub, #nav-divider, #genre-wrap { display: none; }
  #social-bar { display: none; }
  #mobile-content { display: none; }
  #events-panel {
    display: none; position: fixed; top: auto; left: 0; right: 0; bottom: 0;
    transform: none !important; width: 100%; max-height: 55vh;
    border-radius: 16px 16px 0 0; border: 1px solid var(--c-border); border-bottom: none;
    box-shadow: 0 -8px 30px rgba(0,0,0,.18); background: var(--c-bg); z-index: 300;
  }
  #events-panel.open { display: flex; }
  #info-panel {
    display: none; position: fixed !important; top: auto !important;
    left: 0; right: 0 !important; bottom: 0; width: 100% !important;
    max-height: 60vh !important; min-height: 0; transform: none !important;
    border-radius: 16px 16px 0 0; border: 1px solid var(--c-border); border-bottom: none;
    box-shadow: 0 -8px 30px rgba(0,0,0,.18); background: var(--c-bg); z-index: 300;
  }
  #info-panel.ip-mobile-open { display: flex; }
  #info-panel.ip-hidden { display: none; }
  #info-panel.ip-expanded {
    display: flex; position: fixed !important; top: 0 !important; left: 0 !important;
    right: 0 !important; bottom: 0 !important; width: 100% !important;
    max-height: 100vh !important; min-height: 0 !important; border-radius: 0;
    z-index: 400; border: none;
  }
  #info-panel.ip-expanded #ip-mobile-close { display: none; }
  #ip-mobile-close { display: block; }
  #ip-mobile-toggle { display: flex; }
}
.sm-pin-wrapper { cursor: pointer; }

.sm-pin {
    width: 22px;
    height: 22px;
    border: 2.5px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    transition: transform 0.15s;
    position: relative;
}

.sm-pin:hover { transform: scale(1.2); }

/* Kapkový tvar pinu */
.sm-pin-single {
    background: #2563EB;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    width: 22px;
    height: 22px;
}

.sm-pin-single:hover {
    transform: rotate(-45deg) scale(1.2);
}

/* Kulatý pin pro group */
.sm-pin-group {
    background: #7c3aed;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-pin-group:hover {
    transform: rotate(-45deg) scale(1.2);
}

.sm-pin-count {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    transform: rotate(45deg); /* Kompenzace rotace rodiče */
}

#sm-version {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
    background: rgba(255,255,255,0.7);
    color: #666;
    font-size: 10px;
    padding: 2px 6px;
    pointer-events: none;
}
