.mappoint-grid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.mappoint-map-wrapper {
  border-radius: 20px;
  width: 100%;
  height: 500px;
  overflow: scroll;
  position: relative;
  background: transparent;

  /* Skrytie scrollbaru pre Chrome, Edge a Safari */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE a starý Edge */
}

.mappoint-map-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}



.mappoint-card {
    display: flex;
    width: 80px;
    text-align: center;
    
    border-radius: 8px;
    padding: 3px;
    cursor: pointer;
    transition: transform 0.2s;
    justify-content: center;
    flex-direction: column;
    align-items: center;
background: #f0f8ffd6;
    /* aby fungovala nad mapou */
    position: absolute;
}

.mappoint-card::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid  #f0f8ffd6; /* rovnaká ako pozadie .mappoint-card */
}

.mappoint-card:hover {
    transform: scale(1.05);
}

.mappoint-card img {
    width: 70px;
    background:transparent;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    margin-bottom: 5px;
}


.mappoint-card h2 {
    font-size: 8px;
    color: white!important;
    background-color: #333;
    margin: 0;
    line-height: 1.2;
	text-shadow: none !important;
	font-family: arial!important;
	padding: 3px;
	border-radius:5px
}

.mappoint-coord {
    font-size: 10px;
    color: #aaa;
    margin-bottom: 4px;
}
.mappoint-map-inner {
    margin: 0 auto;
    width: 1000px; /* pevne definované */
  height: 600px;
  position: relative;
  transform-origin: top left;
  transform: scale(1); /* meníš cez JS */
}

.mappoint-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
	 user-drag: none;
  -webkit-user-drag: none;
}

.mappoint-map-wrapper.dragging {
    cursor: grabbing;
    user-select: none;
}
.mappoint-map-wrapper {
    cursor: grab;
}

.mappoint-hidden-content {
    margin-top: 30px;
}
#moja-mapa {
    position: relative;
  }

.mappoint-detail {
	 opacity: 0;
  transition: opacity 0.4s ease;
  height: 100%;
  font-size: 90%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: rgb(248, 182, 186);
  padding: 20px;
  color: #0d0d0d;
  max-height: 100%;
  overflow-y: auto;
  border: 2px dotted black;
border-radius:20px;
  /* Firefox scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #c94c57 #ff9098; /* palec a pozadie */
}

.mappoint-detail.show {
  opacity: 1;
  pointer-events: auto;
}

/* WebKit prehliadače (Chrome, Safari, Edge) */
.mappoint-detail::-webkit-scrollbar {
  width: 10px;
}

.mappoint-detail::-webkit-scrollbar-track {
  background: #ffe3e5; /* pozadie */
  border-radius: 10px;
}

.mappoint-detail::-webkit-scrollbar-thumb {
  background-color: #c94c57; /* "palec" */
  border-radius: 10px;
  border: 2px solid #ffe3e5; /* lem okolo palca */
}



.mappoint-detail p,
.mappoint-detail h2,.mappoint-detail h1,.mappoint-detail h3,.mappoint-detail h4,.mappoint-detail h5,
.mappoint-detail strong,
.mappoint-detail a {
  
  color:black!important;
  margin-top:0px!important;
    margin-bottom:0px!important;
	 padding-bottom:5px!important;
	 padding-top:0px!important;
	 text-shadow:none!important;
}

.mappoint-detail h2 {
	 font-size: 200% !important;
}

.mappoint-detail-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    font-size: 50%;
}

.mappoint-detail-inner * {
    font-size: 1em !important;
}

.mappoint-detail-thumb {
    flex: 0 0 auto;
    max-width: 100px;
}

.mappoint-detail-thumb img {
    width: 200px;
    height: 80px;
    object-fit: contain;
   
	margin-bottom:20px
}
.mappoint-zoom-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .mappoint-zoom-controls button {
    font-size: 18px;
    padding: 6px 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .mappoint-zoom-controls button:hover {
    background: rgba(0,0,0,0.9);
  }

.mappoint-close {
    position: absolute;
    width: 50px;
    top: 10px;
    right: 10px;
    font-size: 26px;
    background: none;
    border: none;
    color: #707070;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 10;
    transition: transform 0.2s ease;
}

.mappoint-close:hover {
    transform: scale(1.2);
    color: #333;
}

.mappoint-pan-controls {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.mappoint-pan-controls .horizontal-buttons {
  display: flex;
  gap: 5px;
}

.mappoint-pan-controls button {
  font-size: 18px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.mappoint-pan-controls button:hover {
  background: rgba(0,0,0,0.9);
}
