/* ==================================================
   GEBMANN – TESTOVACIA MAPA
   Shortcode: [gebmann_map_test]
   ================================================== */

/* MAPA */

.gebmann-map-test {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 85vh;
    overflow: visible !important;
}

/* ==================================================
   JEDNOTNÉ OBRÁZKOVÉ BODY
   ================================================== */

.gebmann-map-test .gebmann-test-image-marker {
    width: 55px;
    height: 55px;
    cursor: pointer;
}

/*
 * Animujeme vnútorný obrázok.
 * Vonkajší marker musí zostať bez transformácie,
 * pretože Mapbox ju používa na určenie polohy.
 */

.gebmann-map-test .gebmann-test-image-marker img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;

    opacity: 0;
    transform: translateY(-12px) scale(0);
    transform-origin: center bottom;

    transition:
        opacity 0.35s ease,
        transform 0.55s cubic-bezier(.2, .9, .25, 1.35);
}

.gebmann-map-test .gebmann-test-image-marker.is-visible img {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==================================================
   POPUP
   ================================================== */

.gebmann-map-test .mapboxgl-popup {
    z-index: 9999 !important;
}

.gebmann-map-test .mapboxgl-popup-content {
    width: 250px;
    padding: 0 !important;
    border-radius: 8px !important;
    overflow: hidden;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .22) !important;
}

.gebmann-map-test .gebmann-popup {
    padding: 18px;
    font-family: inherit;
}

/* MESTO */

.gebmann-map-test .gebmann-popup__city {
    margin-bottom: 14px;
    padding-right: 20px;

    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #111111;
}

/* STAV PROJEKTU V POPUPE */

.gebmann-map-test .gebmann-popup__status {
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.gebmann-map-test .gebmann-popup__status--current {
    color: #299447;
}

.gebmann-map-test .gebmann-popup__status--future {
    color: #d5a600;
}

/* PROJEKTY */

.gebmann-map-test .gebmann-popup__project {
    margin-bottom: 7px;
    font-size: 14px;
    line-height: 1.4;
    color: #555555;
}

.gebmann-map-test .gebmann-popup__projects-list {
    margin: 8px 0 14px;
}

.gebmann-map-test .gebmann-popup__project-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 7px;
}

.gebmann-map-test .gebmann-popup__project-item:last-child {
    margin-bottom: 0;
}

.gebmann-map-test .gebmann-popup__bullet {
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1.15;
    color: #555555;
}

.gebmann-map-test .gebmann-popup__project-name {
    font-size: 14px;
    line-height: 1.35;
    color: #555555;
}

.gebmann-map-test .gebmann-popup__project-date {
    margin-top: 2px;
    font-size: 12px;
    color: #777777;
}

/* PROFESIA */

.gebmann-map-test .gebmann-popup__workers {
    margin-bottom: 14px;
    font-size: 13px;
    color: #222222;
}

.gebmann-map-test .gebmann-popup__workers--current strong {
    color: #299447;
}

.gebmann-map-test .gebmann-popup__workers--future strong {
    color: #d5a600;
}

/* DELIACA ČIARA */

.gebmann-map-test .gebmann-popup__divider {
    height: 1px;
    margin: 16px 0;
    background: #dddddd;
}

/* TLAČIDLO */

.gebmann-map-test .gebmann-popup__button {
    display: block;
    padding: 10px 14px;
    border-radius: 5px;

    background: #111111 !important;
    color: #ffffff !important;

    text-decoration: none !important;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.gebmann-map-test .gebmann-popup__button:hover {
    background: #333333 !important;
    color: #ffffff !important;
}

/* ZATVÁRACIE X */

.gebmann-map-test .mapboxgl-popup-close-button {
    top: 5px !important;
    right: 7px !important;
    padding: 3px 7px !important;
    font-size: 20px !important;
    color: #777777 !important;
}

/* ŠÍPKA POPUPU */

.gebmann-map-test .mapboxgl-popup-tip {
    border-top-color: #ffffff !important;
}

/* POPUP MÔŽE PREČNIEVAŤ */

.gebmann-map-test .mapboxgl-canvas-container {
    overflow: visible !important;
}

/* ==================================================
   MOBIL
   ================================================== */

@media (max-width: 767px) {

    .gebmann-map-test {
        width: 100%;
        height: 100vh;
        min-height: 100vh;
    }

    .gebmann-map-test .gebmann-test-image-marker {
        width: 34px;
        height: 34px;
    }
}

/* ============================================
   PINY A POPUPY NAD OSTATNÝMI PRVKAMI
   ============================================ */

/* Samotná mapa */
.gebmann-map-test {
    z-index: 10;
}

/* Piny */
.gebmann-map-test .mapboxgl-marker {
    z-index: 100 !important;
}

/* Pin pri prejdení myšou */
.gebmann-map-test .mapboxgl-marker:hover {
    z-index: 200 !important;
}

/* Vyskakovacie okná */
.gebmann-map-test .mapboxgl-popup {
    z-index: 9999 !important;
}
/* ============================================
   GEBMANN – JEDNOTNÝ DIZAJN POPUPU
   ============================================ */
.gebmann-map-test .mapboxgl-popup-content {
    background: rgba(27, 26, 26, 0.94) !important;
    color: #fff !important;
    border-radius: 10px !important;
}
.gebmann-map-test .gebmann-popup { color: #fff; padding: 20px; }
.gebmann-map-test .gebmann-popup__city {
    color: #fff; margin-bottom: 10px;
}
.gebmann-map-test .gebmann-popup__workers,
.gebmann-map-test .gebmann-popup__workers strong {
    color: #639386 !important;
    font-size: 14px;
    line-height: 1.5;
}
.gebmann-map-test .gebmann-popup__workers { margin-bottom: 18px; }
.gebmann-map-test .gebmann-popup__projects-heading {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.gebmann-map-test .gebmann-popup__projects-list { margin: 0 0 20px; }
.gebmann-map-test .gebmann-popup__project-name {
    color: #fff;
    font-weight: 400;
    text-transform: uppercase;
}
.gebmann-map-test .gebmann-popup__bullet { color: #fff; }
.gebmann-map-test .gebmann-popup__divider { background: rgba(255,255,255,.25); }
.gebmann-map-test .gebmann-popup__button {
    background: #639386 !important;
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    transition: background .25s ease, color .25s ease;
}
.gebmann-map-test .gebmann-popup__button:hover {
    background: #fff !important;
    color: #639386 !important;
}
.gebmann-map-test .mapboxgl-popup-close-button { color: #fff !important; }
.gebmann-map-test .mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip,
.gebmann-map-test .mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip,
.gebmann-map-test .mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip {
    border-top-color: rgba(27,26,26,.94) !important;
}
.gebmann-map-test .mapboxgl-popup-anchor-top .mapboxgl-popup-tip,
.gebmann-map-test .mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip,
.gebmann-map-test .mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip {
    border-bottom-color: rgba(27,26,26,.94) !important;
}
.gebmann-map-test .mapboxgl-popup-anchor-left .mapboxgl-popup-tip { border-right-color: rgba(27,26,26,.94) !important; }
.gebmann-map-test .mapboxgl-popup-anchor-right .mapboxgl-popup-tip { border-left-color: rgba(27,26,26,.94) !important; }
