/* Mapa představení */
.mapa-pred { position: relative; margin: 0 0 1.5em; font-family: inherit; }
.mapa-pred__map { width: 100%; border-radius: 10px; overflow: hidden; z-index: 0; background: #e8eef0; }
.mapa-pred__empty { margin: .75em 0 0; opacity: .75; }

/* Legenda / filtr */
.mapa-pred__legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.mapa-pred__legend[hidden] { display: none; }
.mapa-pred__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid #d0d0d0; border-radius: 999px;
  background: #fff; color: #222; font: inherit; font-size: 14px; line-height: 1.2;
  cursor: pointer; opacity: .45; transition: opacity .15s, box-shadow .15s;
}
.mapa-pred__chip.is-on { opacity: 1; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.mapa-pred__chip small { opacity: .6; font-size: 12px; }
.mapa-pred__chip:focus-visible { outline: 2px solid #1f5f8b; outline-offset: 2px; }

.mapa-pred__dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; }

/* Špendlík */
.mapa-pred__pin-wrap { background: none; border: 0; }
.mapa-pred__pin {
  position: absolute; left: 2px; top: 0;
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.4);
}
.mapa-pred__pin b {
  position: absolute; inset: 4px; border-radius: 50%;
  transform: rotate(45deg); background: #fff; color: #222;
  font: 700 12px/18px system-ui, sans-serif; text-align: center;
}

/* Popup – pevná šířka a reset stylů šablony, aby se popup nezužoval */
.mapa-pred .leaflet-popup-content-wrapper { padding: 0; border-radius: 10px; overflow: hidden; }
.mapa-pred .leaflet-popup-content { margin: 0 !important; width: 290px !important; max-width: calc(100vw - 80px); }
.mapa-pred .mapa-pred__popup,
.mapa-pred .mapa-pred__popup * { box-sizing: border-box; letter-spacing: normal; text-transform: none; }
.mapa-pred .mapa-pred__popup { width: 100%; font-size: 14px !important; line-height: 1.35 !important; color: #222; }
.mapa-pred .mapa-pred__img { display: block; width: 100%; max-width: none; height: 110px; object-fit: cover; margin: 0; border-radius: 0; }
.mapa-pred .mapa-pred__head { padding: 10px 14px 6px; }
.mapa-pred .mapa-pred__head h3 { margin: 0 !important; padding: 0; font-size: 16px !important; line-height: 1.25 !important; font-weight: 700; }
.mapa-pred .mapa-pred__sub { font-size: 12px; color: #555; margin-top: 2px; }
.mapa-pred .mapa-pred__adr { font-size: 12px; color: #777; margin-top: 2px; }

.mapa-pred .mapa-pred__list { list-style: none !important; margin: 0 !important; padding: 0 14px 10px !important; max-height: 230px; overflow-y: auto; }
.mapa-pred .mapa-pred__list li { display: flex; gap: 10px; padding: 8px 0 !important; margin: 0 !important; border-top: 1px solid #eee; list-style: none !important; font-size: 14px !important; line-height: 1.35 !important; }
.mapa-pred .mapa-pred__list li::before { content: none !important; }
.mapa-pred .mapa-pred__list .mapa-pred__dot { margin-top: 4px; }
.mapa-pred .mapa-pred__info { flex: 1; min-width: 0; }
.mapa-pred .mapa-pred__hra { display: block; font-weight: 700; color: #222 !important; text-decoration: none; }
.mapa-pred .mapa-pred__hra:hover { text-decoration: underline; }
.mapa-pred .mapa-pred__kdy { font-size: 13px !important; color: #444; margin-top: 1px; }
.mapa-pred .mapa-pred__akce { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; }

.mapa-pred .mapa-pred__stav { font-size: 11px !important; line-height: 1.4 !important; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: #eee; color: #333; }
.mapa-pred .mapa-pred__stav--prodej          { background: #e3f3e5; color: #1b5e20; }
.mapa-pred .mapa-pred__stav--pred_vyprodanim { background: #fff1d6; color: #8a5300; }
.mapa-pred .mapa-pred__stav--vyprodano       { background: #fbe1e1; color: #a11; }
.mapa-pred .mapa-pred__stav--brzyprodej      { background: #e4eef8; color: #1f4f7a; }

.mapa-pred .mapa-pred__btn {
  font-size: 12px !important; line-height: 1.4 !important; font-weight: 700; padding: 3px 10px; border-radius: 4px;
  background: #EC4622; color: #fff !important; text-decoration: none;
}
.mapa-pred__btn:hover { filter: brightness(1.1); }

@media (max-width: 600px) {
  .mapa-pred__map { height: 460px !important; }
  .mapa-pred .mapa-pred__img { height: 80px; }
  .mapa-pred .mapa-pred__list { max-height: 170px; }
  .mapa-pred__chip { font-size: 13px; padding: 5px 10px; }
}
