/* ============================
   ZÁKLADNÍ MAPA A HOTSPOTY
   ============================ */
.hotspotmap-container {
    position: relative;
}

.hotspotmap-image {
    width: 100%;
    height: auto;
}

.hotspotmap-marker,
.hotspotmap-marker-wc {
    position: absolute;
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: 600;
}

.hotspotmap-marker {
    border: solid 4px white;
    cursor: pointer;
    box-shadow: 0px 0px 0.5rem;
    transition: transform 0.3s, background-color 0.3s;
}

.hotspotmap-marker:hover {
    transform: scale(1.2);
    background-color: #59bc87;
}

/* Mobilní a tablet responsivita */
@media (min-width:797px) and (max-width: 1023.9px) {
    .hotspotmap-marker,
    .hotspotmap-marker-wc {
        font-size: 14px;
        width: 24px;
        height: 24px;
        border-width: 2px;
    }
}
@media (max-width: 766.9px) {
    .hotspotmap-marker,
    .hotspotmap-marker-wc {
        font-size: 10px;
        width: 18px;
        height: 18px;
        border-width: 2px;
    }
}

/* ============================
   POPUP
   ============================ */
.hotspotmap-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

.hotspotmap-popup-content {
    position: relative;
    background-color: #ffffff;
    text-align: center;
    max-width: 90vw;
}

.hotspotmap-popup-content img {
    max-width: 100%;
    max-height: 90vh;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* ============================
   CAROUSEL – prefix im-
   ============================ */
.im-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.im-carousel img {
    display: none;
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.im-carousel img.im-active {
    display: block;
}

.im-carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.im-carousel-prev,
.im-carousel-next {
    font-size: 48px;
    color: white;
    cursor: pointer;
    padding: 0 20px;
    pointer-events: auto;
}

/* Swipe hint pro mobil */
@media (max-width: 768px) {
    .im-carousel {
        touch-action: pan-y;
    }
}

.hotspotmap-popup-description {
    margin: 8px 0;
    font-weight: 500;
}

.hotspotmap-popup-close {
    position: absolute;
    top: 32px;
    right: 32px;
    font-size: 24px;
    cursor: pointer;
    background-color: white;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
