.bg-kontakt {
    margin-bottom: 0;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 80vh;
    font-family: 'Hind', sans-serif;
    display: flex;
    overflow: hidden;
}

#conference-map {
    width: 100%;
    height: 100%;
    z-index: 1;
    flex-grow: 1;
}

.mobile-list-toggle {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 999;
    background: #5dbc00;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, background 0.2s;
}

.map-floating-sidebar {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 340px;
    max-height: calc(100% - 40px);
    background: transparent;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.map-list {
    overflow-y: auto;
    flex-grow: 1;
    padding: 5px 10px 5px 5px;
    pointer-events: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(93, 188, 0, 0.5) transparent;
}

.map-list::-webkit-scrollbar {
    width: 6px;
}

.map-list::-webkit-scrollbar-thumb {
    background-color: rgba(93, 188, 0, 0.5);
    border-radius: 10px;
}

.map-list-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.map-list-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.map-list-item.active-loc {
    border-color: #5dbc00;
    box-shadow: 0 8px 24px rgba(93, 188, 0, 0.2);
    transform: translateY(0);
}

.map-list-item-header {
    padding: 16px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.map-list-item.active-loc .map-list-item-header {
    border-left-color: #5dbc00;
    background-color: #fafdff;
}

.map-list-item h4 {
    margin: 0 0 4px 0;
    font-size: 1.15em;
    font-weight: 600;
    color: #222;
}

.map-list-item p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.map-list-item-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    background-color: #fafdff;
}

.map-list-item.active-loc .map-list-item-content {
    max-height: 300px;
    opacity: 1;
    padding: 0 16px 16px 16px;
}

.map-list-item-content img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

.map-item-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85em;
    color: #5dbc00;
    font-weight: 600;
    text-decoration: none;
}

.map-item-link:hover {
    text-decoration: underline;
}

.custom-map-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #666666 !important;
    font-weight: 700;
    text-shadow: none !important;
    padding: 0 !important;
    transition: color 0.3s ease;
}

.leaflet-tooltip-bottom.custom-map-tooltip::before {
    border-bottom-color: #666666 !important;
    transition: border-color 0.3s ease;
}

.leaflet-tooltip-top.custom-map-tooltip::before {
    border-top-color: #666666 !important;
    transition: border-color 0.3s ease;
}

.leaflet-tooltip-left.custom-map-tooltip::before {
    border-left-color: #666666 !important;
    transition: border-color 0.3s ease;
}

.leaflet-tooltip-right.custom-map-tooltip::before {
    border-right-color: #666666 !important;
    transition: border-color 0.3s ease;
}

.custom-map-tooltip.active-tooltip {
    color: #000000 !important;
}

.leaflet-tooltip-bottom.custom-map-tooltip.active-tooltip::before {
    border-bottom-color: #000000 !important;
}

.leaflet-tooltip-top.custom-map-tooltip.active-tooltip::before {
    border-top-color: #000000 !important;
}

.leaflet-tooltip-left.custom-map-tooltip.active-tooltip::before {
    border-left-color: #000000 !important;
}

.leaflet-tooltip-right.custom-map-tooltip.active-tooltip::before {
    border-right-color: #000000 !important;
}

.custom-map-pin>div:first-child {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.custom-map-pin.active-pin {
    z-index: 1000 !important;
}

.custom-map-pin.active-pin>div:first-child {
    background-color: #4c9700 !important;
    transform: scale(1.35) rotate(-45deg) !important;
    box-shadow: 0 4px 12px rgba(76, 151, 0, 0.5) !important;
}

@media (max-width: 992px) {
    .map-wrapper {
        display: block;
    }

    #conference-map {
        height: 60vh;
        min-height: 400px;
    }

    .mobile-list-toggle {
        display: block;
    }

    .map-floating-sidebar {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 380px;
        height: 100%;
        max-height: 100%;
        padding: 60px 10px 10px 10px;
        pointer-events: auto;
        z-index: 9;
    }

    .map-floating-sidebar.mobile-open {
        left: 0;
    }

    .map-list {
        padding: 5px;
    }
}