/**
 * Mapa poboček - Public Styles
 */

.mapa-pobocek-public {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.mapa-pobocek-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

#mapa-cr-public {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: none;
}

/* Markers */
.marker-public {
    cursor: pointer;
    transition: all 0.3s ease;
}

.marker-public circle {
    transition: all 0.3s ease;
}

.marker-public:hover circle,
.marker-public.active circle {
    r: 12;
    fill: #0066cc;
    stroke-width: 3;
}

/* Tooltip */
.mapa-tooltip {
    position: absolute;
    background: white;
    border-radius: 8px;
    padding: 15px;
    pointer-events: auto;
    z-index: 1000;
    min-width: 200px;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: default;
}

.mapa-tooltip.visible {
    opacity: 1;
}

.tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tooltip-nazev {
    font-size: 16px;
    color: #333;
}

.tooltip-link {
    color: #CC0000;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tooltip-link:hover {
    text-decoration: underline;
}

/* Pobocky buttons */
.pobocky-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.pobocka-btn {
    background-color: #0066cc;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pobocka-btn:hover,
.pobocka-btn.active {
    background-color: #CC0000;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.no-pobocky {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

/* Map Only (samostatná mapa bez markerů) */
.mapa-pobocek-map-only {
    max-width: 1200px;
    margin: 40px auto;
}

.mapa-pobocek-map-only .mapa-wrapper {
    width: 100%;
    position: relative;
}

.mapa-pobocek-map-only svg {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .mapa-pobocek-public {
        margin: 40px auto;
    }

    .pobocky-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .pobocka-btn {
        text-align: center;
    }

    .mapa-tooltip {
        min-width: 150px;
        padding: 10px;
    }

    .tooltip-nazev {
        font-size: 14px;
    }

    .tooltip-link {
        font-size: 12px;
    }
}
