/* =============================================================
   Mapa Nápadů – Frontend CSS
   ESTIBE - Ondrej Vitecek
   Inspirováno tématem Piráti Komunál 2.0
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@300;400;500;600&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css');

:root {
  --mp-black:     #1a1a2e;
  --mp-dark:      #16213e;
  --mp-navy:      #1e2a40;
  --mp-white:     #f0f4f8;
  --mp-gray:      #8892a4;
  --mp-border:    rgba(255,255,255,0.10);
  --mp-border-md: rgba(255,255,255,0.18);
  --mp-surface:   rgba(255,255,255,0.04);
  --mp-surface-2: rgba(255,255,255,0.06);

  --mp-gradient:       linear-gradient(90deg,  #d07cc7 0%, #e6a166 55%, #fcc604 100%);
  --mp-gradient-hover: linear-gradient(90deg,  #c060b8 0%, #d4884a 55%, #e8b200 100%);
  --mp-gradient-angle: linear-gradient(135deg, #d07cc7 0%, #e6a166 55%, #fcc604 100%);
  --mp-g0: #d07cc7;
  --mp-g1: #fcc604;

  --mp-orange:  #e8742e;
  --mp-cyan:    #ffad5a;
  --mp-green:   #00c896;
  --mp-red:     #e63946;

  --mp-font-head: 'Rajdhani', 'Barlow Condensed', sans-serif;
  --mp-font-body: 'Inter', 'DM Sans', sans-serif;

  --mp-r-sm: 4px;
  --mp-r-md: 8px;
  --mp-r-lg: 16px;
  --mp-r-xl: 32px;
  --mp-tr: 0.3s cubic-bezier(0.4,0,0.2,1);

  --mp-shadow-sm: 0 2px 8px  rgba(0,0,0,0.18);
  --mp-shadow-md: 0 8px 32px rgba(0,0,0,0.22);
}

/* ── Wrap — no header, border-radius ── */
.mp-wrap {
  font-family: 'Inter','DM Sans',sans-serif;
  color: #f0f4f8;
  background: #1a1a2e;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

/* ── Layout — full height, no header offset ── */
.mp-app {
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
}

/* ── Map wrapper ── */
.mp-mapwrap {
  position: relative;
  background: #fff;      /* bílé pozadí pod mapou – žádné tmavé prosvítání */
  isolation: isolate;    /* izolace od filtrů nadřazeného tématu */
}
#mp-map {
  width: 100%;
  height: 100%;
}
/* ── Mapa – přebití tmavých stylů tématu ── */

/* Leaflet kontejner – světlé pozadí, žádné filtry */
#mp-map,
.mp-mapwrap .leaflet-container {
  background: #e8e0d8 !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* Dlaždice – žádné přebarvení */
.mp-mapwrap .leaflet-tile-pane,
.mp-mapwrap .leaflet-tile-pane *,
.mp-mapwrap .leaflet-layer,
.mp-mapwrap .leaflet-layer *,
#mp-map .leaflet-tile,
#mp-map img {
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

/* Shadow pane – úplně skrytý, ale existuje (Leaflet ho potřebuje) */
.leaflet-shadow-pane {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Vlastní SVG pin wrapper – bez pozadí, bez rámečku, bez padding */
.mp-svgpin {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.mp-svgpin svg {
  display: block;
  overflow: visible;
}

/* Žádné pseudo-elementy jako překryv */
.mp-mapwrap .leaflet-container::before,
.mp-mapwrap .leaflet-container::after,
.mp-mapwrap .leaflet-tile-pane::before,
.mp-mapwrap .leaflet-tile-pane::after,
#mp-map::before,
#mp-map::after {
  display: none !important;
  content: none !important;
}

/* ── Floating "Přidat nápad" button — top-right corner of map ── */
.mp-btn-add {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .52rem 1.1rem;
  background: linear-gradient(90deg,#d07cc7 0%,#e6a166 55%,#fcc604 100%);
  color: #1a1a2e;
  border: none;
  border-radius: 4px;
  font-family: 'Rajdhani','Barlow Condensed',sans-serif;
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.mp-btn-add:hover {
  background: linear-gradient(90deg,#c060b8 0%,#d4884a 55%,#e8b200 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(208,124,199,.4);
}
.mp-btn-add i { font-size: 16px; }

/* ── Sidebar ── */
.mp-sidebar {
  background: #16213e;
  border-right: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mp-sidebar-top {
  padding: 1rem 1rem .8rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  position: relative;
}
.mp-sidebar-top::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,#d07cc7 0%,#e6a166 55%,#fcc604 100%);
}
.mp-sh {
  font-family: 'Rajdhani','Barlow Condensed',sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .6rem;
}
.mp-count { color: #8892a4; font-size: .85rem; font-weight: 400; }

/* Votes pill */
.mp-vpill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 32px;
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}
.mp-vpill.ok { background: rgba(252,198,4,.12); border: 1px solid rgba(252,198,4,.35); color: #fcc604; }
.mp-vpill.no { background: rgba(230,57,70,.12); border: 1px solid rgba(230,57,70,.35); color: #e63946; }

/* Filter tabs */
.mp-ftabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .65rem; }
.mp-ft {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 32px;
  font-size: .69rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  color: #8892a4;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  font-family: 'Inter','DM Sans',sans-serif;
}
.mp-ft i { font-size: 11px; }
.mp-ft.on, .mp-ft:hover { background: linear-gradient(90deg,#d07cc7 0%,#e6a166 55%,#fcc604 100%); color: #1a1a2e; border-color: transparent; }

/* Wishes list */
.mp-wlist { flex: 1; overflow-y: auto; padding: .65rem; }
.mp-wlist::-webkit-scrollbar { width: 3px; }
.mp-wlist::-webkit-scrollbar-track { background: #16213e; }
.mp-wlist::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 2px; }

/* ── Idea card ── */
.mp-wc {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: .85rem;
  margin-bottom: .5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.mp-wc::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,#d07cc7 0%,#e6a166 55%,#fcc604 100%);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mp-wc:hover, .mp-wc.on {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.mp-wc:hover::before, .mp-wc.on::before { transform: scaleX(1); }

/* Rank badge */
.mp-wrk {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.10);
  color: #8892a4;
  font-size: .65rem; font-family: 'Rajdhani','Barlow Condensed',sans-serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mp-wrk.g { background: linear-gradient(90deg,#d07cc7 0%,#e6a166 55%,#fcc604 100%); border: none; color: #1a1a2e; }
.mp-wrk.s { background: linear-gradient(135deg,#ccc,#999); border: none; color: #1a1a2e; }
.mp-wrk.b { background: linear-gradient(135deg,#cd7f32,#a0522d); border: none; color: #fff; }

/* Category badge */
.mp-wcat {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 32px;
  font-size: .66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 4px;
}
.mp-wcat i { font-size: 11px; }
.mp-cat-infrastructure { background: rgba(59,130,246,.15); color: #60a5fa; border: 1px solid rgba(59,130,246,.25); }
.mp-cat-greenery       { background: rgba(0,200,150,.15);  color: #00c896; border: 1px solid rgba(0,200,150,.25); }
.mp-cat-culture        { background: rgba(208,124,199,.15);color: #d07cc7; border: 1px solid rgba(208,124,199,.25); }
.mp-cat-sport          { background: rgba(232,116,46,.15); color: #e8742e; border: 1px solid rgba(232,116,46,.25); }
.mp-cat-safety         { background: rgba(252,198,4,.12);  color: #fcc604; border: 1px solid rgba(252,198,4,.25); }
.mp-cat-other          { background: rgba(255,255,255,0.05);    color: #8892a4; border: 1px solid rgba(255,255,255,0.10); }

.mp-wt {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: .01em;
  color: #f0f4f8 !important; padding-right: 28px;
  margin-bottom: 3px; line-height: 1.2;
}
.mp-wd {
  font-size: .76rem; color: #8892a4 !important; line-height: 1.45;
  margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mp-wf { display: flex; align-items: center; justify-content: space-between; }
.mp-wv { display: flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 600; color: #8892a4; }
.mp-wv i { font-size: 13px; color: #fcc604; }

.mp-bv {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 10px; border-radius: 32px;
  font-size: .69rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  color: #8892a4; font-family: 'Inter','DM Sans',sans-serif;
}
.mp-bv i { font-size: 11px; }
.mp-bv:hover:not(:disabled) { background: linear-gradient(90deg,#d07cc7 0%,#e6a166 55%,#fcc604 100%); color: #1a1a2e; border-color: transparent; }
.mp-bv.vd { background: rgba(0,200,150,.15); border-color: rgba(0,200,150,.35); color: #00c896; cursor: default; }
.mp-bv:disabled:not(.vd) { opacity: .35; cursor: default; }

/* ── Popup – pevné barvy + žádné bílé mezery ── */
.leaflet-popup-content-wrapper {
  background: #16213e !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 8px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.5) !important;
  color: #f0f4f8 !important;
}
.leaflet-popup-content-wrapper::before {
  content: '' !important;
  display: block !important;
  height: 3px !important;
  background: linear-gradient(90deg, #d07cc7 0%, #e6a166 55%, #fcc604 100%) !important;
}
/* Tip container – odstraní bílé pozadí pod trojúhelníkem */
.leaflet-popup-tip-container {
  overflow: visible !important;
  background: transparent !important;
  margin-top: -1px !important;
}
.leaflet-popup-tip-container .leaflet-popup-tip,
.leaflet-popup-tip {
  background: #16213e !important;
  box-shadow: none !important;
  border: none !important;
  margin: 0 auto !important;
  /* Odstraní Leaflet defaultní stín který tvoří bílý obrys */
  -webkit-box-shadow: none !important;
}
/* Obsah – žádné defaultní marginy Leafletu */
.leaflet-popup-content {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 200px !important;
  max-width: 260px !important;
  color: #f0f4f8 !important;
  line-height: normal !important;
}
/* Zavírací tlačítko */
.leaflet-popup-close-button {
  color: #8892a4 !important;
  font-size: 18px !important;
  padding: 4px 8px !important;
  top: 2px !important;
  right: 2px !important;
  background: transparent !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
.leaflet-popup-close-button:hover {
  color: #f0f4f8 !important;
  background: transparent !important;
}

/* Popup inner elements */
.mp-pimg { width: 100%; height: 120px; object-fit: cover; display: block; }
.mp-pbody {
  padding: 10px 12px 12px;
  background: #16213e !important;
  color: #f0f4f8 !important;
}
.mp-pt {
  font-family: 'Rajdhani', sans-serif;
  font-size: .95rem; font-weight: 700; letter-spacing: .01em;
  color: #f0f4f8 !important; margin: 4px 0;
}
.mp-pd { font-size: .75rem; color: #8892a4 !important; line-height: 1.4; margin-bottom: 8px; }
.mp-pf { display: flex; align-items: center; justify-content: space-between; }
.mp-wv { display: flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 600; color: #8892a4 !important; }
.mp-wv i { font-size: 13px; color: #fcc604 !important; }

/* ── Submit modal ── */
.mp-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; opacity: 0; pointer-events: none;
  transition: opacity .25s;
  backdrop-filter: blur(4px);
}
.mp-overlay.on { opacity: 1; pointer-events: all; }

.mp-modal {
  background: #16213e !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 16px;
  padding: 1.8rem;
  width: 96%; max-width: 660px; max-height: 95vh; overflow-y: auto;
  transform: translateY(16px); transition: transform .25s;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  color: #f0f4f8 !important;
}
.mp-modal::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg,#d07cc7 0%,#e6a166 55%,#fcc604 100%);
  border-radius: 16px 16px 0 0;
}
.mp-overlay.on .mp-modal { transform: translateY(0); }

.mp-mt {
  font-family: 'Rajdhani','Barlow Condensed',sans-serif;
  font-size: 1.8rem; font-weight: 700; letter-spacing: -.01em;
  color: #f0f4f8 !important; margin-bottom: 4px;
}
.mp-ms { font-size: .82rem; color: #8892a4 !important; margin-bottom: 1.3rem; }

.mp-bcl {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50%; width: 30px; height: 30px;
  cursor: pointer; color: #8892a4;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mp-bcl:hover { background: rgba(255,255,255,0.18); color: #f0f4f8; }
.mp-bcl i { font-size: 15px; }

.mp-mpick {
  height: 600px; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10); margin-top: 4px;
}
.mp-mhint { font-size: .72rem; color: #8892a4; margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.mp-mhint i { font-size: 12px; color: #d07cc7; }
.mp-coord { font-size: .72rem; color: #fcc604 !important; margin-top: 3px; font-weight: 600; }

.mp-fg { margin-bottom: .9rem; }
.mp-fg label {
  display: block; font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: #8892a4 !important; margin-bottom: 4px;
}
/* Formulářová pole – maximální specificita aby přebila téma */
#mp-wrap .mp-fg input,
#mp-wrap .mp-fg textarea,
#mp-wrap .mp-fg select,
.mp-modal .mp-fg input,
.mp-modal .mp-fg textarea,
.mp-modal .mp-fg select {
  width: 100% !important;
  padding: .6rem .8rem !important;
  background: #0d1527 !important;
  background-color: #0d1527 !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  border-radius: 4px !important;
  color: #f0f4f8 !important;
  font-family: 'Inter','DM Sans',sans-serif !important;
  font-size: .88rem !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
#mp-wrap .mp-fg input:focus,
#mp-wrap .mp-fg textarea:focus,
#mp-wrap .mp-fg select:focus,
.mp-modal .mp-fg input:focus,
.mp-modal .mp-fg textarea:focus,
.mp-modal .mp-fg select:focus {
  border-color: #e8742e !important;
  box-shadow: 0 0 0 2px rgba(232,116,46,.25) !important;
  outline: none !important;
}
#mp-wrap .mp-fg select option,
.mp-modal .mp-fg select option {
  background: #16213e !important;
  color: #f0f4f8 !important;
}
/* Placeholder */
#mp-wrap .mp-fg input::placeholder,
#mp-wrap .mp-fg textarea::placeholder,
.mp-modal .mp-fg input::placeholder,
.mp-modal .mp-fg textarea::placeholder {
  color: rgba(136,146,164,0.65) !important;
  opacity: 1 !important;
}
/* Select – vlastní šipka */
.mp-modal .mp-fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f0f4f8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right .6rem center !important;
  background-size: 16px !important;
  background-color: #0d1527 !important;
  padding-right: 2rem !important;
}
.mp-fg textarea { resize: vertical; min-height: 72px; }

.mp-bsub {
  width: 100%; padding: .78rem;
  background: linear-gradient(90deg,#d07cc7 0%,#e6a166 55%,#fcc604 100%); color: #1a1a2e;
  border: none; border-radius: 4px;
  font-family: 'Rajdhani','Barlow Condensed',sans-serif;
  font-size: 1.1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  margin-top: .4rem;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.mp-bsub:hover { background: linear-gradient(90deg,#c060b8 0%,#d4884a 55%,#e8b200 100%); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(208,124,199,.3); }
.mp-bsub i { font-size: 18px; }

.mp-iprev {
  max-width: 100%; max-height: 100px; border-radius: 4px;
  margin-top: 6px; display: none; object-fit: cover;
  border: 1px solid rgba(255,255,255,0.10);
}

/* ── Toast ── */
.mp-toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: #1e2a40; border: 1px solid rgba(255,255,255,0.18);
  color: #f0f4f8; padding: .65rem 1.4rem;
  border-radius: 32px; font-size: .88rem;
  z-index: 10000; transition: transform .25s;
  white-space: nowrap; display: flex; align-items: center; gap: 7px;
  pointer-events: none; backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}
.mp-toast.show { transform: translateX(-50%) translateY(0); }
.mp-toast::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,#d07cc7 0%,#e6a166 55%,#fcc604 100%); border-radius: inherit; }
.mp-toast.ok i { color: #00c896; }
.mp-toast.err i { color: #e63946; }

/* ── Žebříček (Leaderboard) ── */
.mp-zebricek {
  font-family: 'Inter','DM Sans',sans-serif;
  color: #f0f4f8;
  background: #1a1a2e;
  border-radius: 16px;
  padding: 1.5rem;
}
.mp-zb-head {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1.2rem; padding-bottom: .9rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  position: relative;
}
.mp-zb-head::after {
  content: ''; position: absolute; bottom: -1px; left: 0; width: 80px; height: 2px;
  background: linear-gradient(90deg,#d07cc7 0%,#e6a166 55%,#fcc604 100%);
}
.mp-zb-title {
  font-family: 'Rajdhani','Barlow Condensed',sans-serif;
  font-size: 1.6rem; font-weight: 700;
  letter-spacing: -.01em; color: #f0f4f8;
  display: flex; align-items: center; gap: .4rem;
}
.mp-zb-title i { font-size: 22px; color: #fcc604; }
.mp-zb-cat-badge {
  padding: 3px 10px; border-radius: 32px;
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  display: flex; align-items: center; gap: 4px;
}
.mp-zb-list { display: flex; flex-direction: column; gap: .55rem; }
.mp-zb-item {
  display: flex; align-items: stretch; gap: 0;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1); position: relative;
}
.mp-zb-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,#d07cc7 0%,#e6a166 55%,#fcc604 100%);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mp-zb-item:hover { border-color: rgba(255,255,255,0.18); transform: translateY(-2px); box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.mp-zb-item:hover::before { transform: scaleX(1); }
.mp-zb-rank {
  min-width: 50px; display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani','Barlow Condensed',sans-serif; font-size: 1.5rem; font-weight: 700;
  color: #8892a4;
  background: rgba(255,255,255,.03);
  border-right: 1px solid rgba(255,255,255,0.10);
  padding: .6rem .4rem; flex-shrink: 0;
}
.mp-zb-rank-1 .mp-zb-rank { background: linear-gradient(90deg,#d07cc7 0%,#e6a166 55%,#fcc604 100%); color: #1a1a2e; border: none; }
.mp-zb-rank-1 .mp-zb-rank i { font-size: 24px; }
.mp-zb-rank-2 .mp-zb-rank { color: #ccc; }
.mp-zb-rank-2 .mp-zb-rank i { font-size: 22px; color: #ccc; }
.mp-zb-rank-3 .mp-zb-rank { color: #cd7f32; }
.mp-zb-rank-3 .mp-zb-rank i { font-size: 22px; color: #cd7f32; }
.mp-zb-body {
  flex: 1; padding: .75rem 1rem;
  display: flex; flex-direction: column; gap: .3rem;
  justify-content: center; min-width: 0;
}
.mp-zb-top-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.mp-zb-item-title {
  font-family: 'Rajdhani','Barlow Condensed',sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: .01em;
  color: #f0f4f8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-zb-votes { display: flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 600; color: #8892a4; white-space: nowrap; flex-shrink: 0; }
.mp-zb-votes i { font-size: 13px; color: #fcc604; }
.mp-zb-desc { font-size: .74rem; color: #8892a4; line-height: 1.4; margin: 0; }
.mp-zb-bar { height: 3px; background: rgba(255,255,255,0.10); border-radius: 2px; overflow: hidden; margin-top: 5px; }
.mp-zb-bar-fill { height: 100%; background: linear-gradient(90deg,#d07cc7 0%,#e6a166 55%,#fcc604 100%); border-radius: 2px; transition: width .5s ease; }
.mp-zb-rank-2 .mp-zb-bar-fill { background: linear-gradient(90deg,#ccc,#999); }
.mp-zb-rank-3 .mp-zb-bar-fill { background: linear-gradient(90deg,#cd7f32,#a0522d); }
.mp-zb-img-wrap { width: 80px; flex-shrink: 0; }
.mp-zb-img { width: 80px; height: 100%; object-fit: cover; display: block; }
.mp-zb-empty { color: #8892a4; font-size: .9rem; font-style: italic; padding: .5rem 0; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .mp-app { grid-template-columns: 1fr; grid-template-rows: 50vh 320px; }
  .mp-mapwrap { order: 1; } .mp-sidebar { order: 2; height: 320px; }
  .mp-zb-img-wrap { display: none; }
  .mp-btn-add span { display: none; }
  .mp-btn-add { padding: .5rem .7rem; }
}

/* ── Záchranné styly pro případ nenačtení ikono-fontu ── */
.mp-wrap .ti,
.mp-wrap [class*="ti-"] {
  font-family: 'tabler-icons', 'Tabler Icons', sans-serif !important;
  font-style: normal !important;
  font-weight: normal !important;
  display: inline-block;
  speak: never;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

/* Ensure filter tab text is always visible even without icons */
.mp-ft { min-height: 26px; }

/* Select arrow – make visible on dark bg */
.mp-fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f0f4f8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.6rem center !important;
  background-size: 16px !important;
  padding-right: 2rem !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

