.mhd-marker-icon {
  width: 36px;
  height: 36px;
  background: #ffffff; 
  border: 3px solid #ee0000;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}


.mhd-symbol {
  font-size: 18px;
  line-height: 1;
  color: #ee0000;
}


.mhd-marker:hover .mhd-marker-icon {
  background: #ffeca1;
  border-color: #ffcd00;
  transform: translateY(-4px) scale(1.05);
}

.mhd-marker:hover .mhd-symbol {
  color: #000000; 
}
/* Ovládací prvky mapy: zaoblená bílá tlačítka s tenkým okrajem, ploché (bez stínů a animací) */
.map-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #d4d4d4 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #111 !important;
  line-height: 1;
  cursor: pointer !important;
  transition: none;
}

.map-close-btn:hover,
.map-close-btn:focus {
  border-radius: 12px !important;
  background: #f4f4f4 !important;
  color: #111 !important;
}

.map-close-btn svg {
  display: block;
  pointer-events: none;
}

/* Přiblížení +/−: jedna zaoblená bílá karta, tlačítka od sebe dělí tenká čára */
.map-container .leaflet-bar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d4d4d4;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

/* !important: Leaflet načítá vlastní CSS až za styly pluginu a `.leaflet-touch .leaflet-bar a` má stejnou specificitu */
.map-container .leaflet-bar a,
.map-container .leaflet-bar a:hover,
.map-container .leaflet-bar a:first-child,
.map-container .leaflet-bar a:last-child {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  border: none !important;
  border-radius: 0 !important;
  background: #fff;
  color: #111;
  font: 300 26px/1 var(--spoje-font, inherit) !important;
  line-height: 40px !important;
  text-decoration: none;
  transition: none;
}

.map-container .leaflet-bar a + a {
  border-top: 1px solid #e3e3e3 !important;
}

.map-container .leaflet-bar a:hover {
  background: #f4f4f4;
}

.map-container .leaflet-bar a.leaflet-disabled {
  background: #fff;
  color: #bbb;
  cursor: not-allowed;
}

.map-container .leaflet-top.leaflet-left {
  top: 4px;
  left: 4px;
}

.map-container .leaflet-control {
  margin: 8px;
}

@keyframes markerPop {
  0% {
    transform: translateY(20px) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translateY(-10px) scale(1);
    opacity: 1;
  }
}

.custom-marker {
  z-index: 1000 !important;
}


.user-location-icon .pulse-marker {
  width: 20px;
  height: 20px;
  background: #00b341;
  border-radius: 50%;
  position: relative;
}



.map-container {
  position: relative;
  width: 100%;
  height: 80vh;
  min-width: 250px;
  min-height: 300px;
  max-height: 500px;
}

.map-container.hidden-map,
.map-container.hidden {
  display: none !important;
}

.map-container:not(.hidden):not(.hidden-map) {
  display: block;
}

.map-container:not(.hidden-map) #map,
.map-container:not(.hidden-map) #results-map {
  width: 100% !important;
  height: 100% !important;
}



.info-box {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 10px;
  font-size: 14px;
  padding: 10px 15px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 60%;
  min-width: 200px;
  max-height: none;
  overflow: visible;
  text-align: center;
}

.info-box strong {
  font-size: 16px;
  color: #333;
  display: block;
  margin-bottom: 8px;
}

.info-box .lines {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  margin-bottom: 10px;
  padding: 0 5px;
  width: 100%;
  box-sizing: border-box;
}

.info-box .line-badge {
  background-color: #eee;
  color: #333;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.info-box button {
  background-color: #ee0000;
  color: #fff;
  border: none;
  border-radius: 13px;
  padding: 8px 12px;
  width: 90%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.info-box button:hover {
  background-color: #810000;
  border-radius: 13px;
}
.marker-hidden {
  display: none !important;
}


@media screen and (min-width: 1100px) {
  .info-box {
    max-width: 20%;
  }
  .map-container {
    width: 100%;
    max-height: 100%;
  }
}
.view {
  align-self: center;
  padding: 50px;
  max-width: 1200px;
  display: flex;
  justify-content: center;
}
.info-box {
  position: absolute;
  bottom: auto; /* s top: 10% by se okno natáhlo přes celou mapu a objevil by se svislý posuvník */
  height: auto;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  z-index: 1000;
}
