:root {
    --map-bg: transparent;
    --map-accent: #4cc9c2;
    --map-text-inactive: #94a3b8;
    --map-font-family: var(--font-body);
}

.map-embed-container {
    width: 100%;
    height: 750px; /* Przywrócona większa wysokość */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

#map-wrapper {
    position: relative;
    width: 130%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}









.target-labels-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.target-label {
    position: absolute;
    pointer-events: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-blue); /* Używamy koloru marki */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: default;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 100;
    border: 1px solid rgba(76, 201, 194, 0.15);
    animation: labelFloat 6s ease-in-out infinite;
}

@keyframes labelFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.target-label:nth-child(even) { animation-delay: -3s; }

/* Swapped positions based on latest request */
.target-label[data-target="zdrowie"] { top: 10%; left: 45%; }     
.target-label[data-target="nieruchomosci"] { top: 15%; left: 5%; } /* Swapped with moto */
.target-label[data-target="ubezpieczenia"] { top: 15%; right: 5%; }

.target-label[data-target="sport"] { top: 38%; left: -10%; margin-left: -15px; } /* 15px w lewo */
.target-label[data-target="seniorzy"] { top: 38%; right: -12%; margin-right: -15px; } /* 15px w prawo */


.target-label[data-target="finanse"] { top: 62%; left: -8%; }     
.target-label[data-target="moto"] { top: 62%; right: -10%; }      /* Swapped with nieruchomości */

.target-label[data-target="fitness"] { bottom: 14%; right: 28%; } /* Swapped with seniorzy */












.target-label:hover {
    color: var(--color-blue);
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--color-blue);
    transform: scale(1.05) translateY(-2px);
    z-index: 101;
}

.target-label.active {
    background: var(--color-blue);
    color: #fff;
    font-weight: 700;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 20px rgba(76, 201, 194, 0.5);
    border-color: var(--color-blue);
    animation-play-state: paused; /* Freeze float while active */
}

/* Auto-rotation highlight - gentler than hover/active */
.target-label.auto-active {
    background: rgba(76, 201, 194, 0.12);
    color: var(--color-blue);
    font-weight: 700;
    border-color: rgba(76, 201, 194, 0.6);
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 0 0 0 rgba(76, 201, 194, 0.4);
    animation: labelFloat 6s ease-in-out infinite, autoGlow 2s ease-in-out infinite;
    z-index: 101;
}

@keyframes autoGlow {
    0%   { box-shadow: 0 0 0px 0px rgba(76, 201, 194, 0.3); }
    50%  { box-shadow: 0 0 12px 4px rgba(76, 201, 194, 0.45); }
    100% { box-shadow: 0 0 0px 0px rgba(76, 201, 194, 0.3); }
}

#map {
    width: 100%;
    height: 100%;
    background: transparent;
}


.leaflet-container {
    background-color: transparent !important;
}

/* SUBTLE 2D PULSE - CENTERED */
.pulse-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    pointer-events: none;
}

.pulse-dot-core {
    width: 6px;
    height: 6px;
    background: var(--map-accent);
    border-radius: 50%;
    position: absolute;
    z-index: 2;
    box-shadow: 0 0 10px var(--map-accent);
}

.pulse-outline {
    background: transparent;
    border: 1.5px solid var(--map-accent);
    opacity: 0.6;
    border-radius: 50%;
    z-index: 1;
    animation: grow-subtle 2.5s infinite ease-in-out;
    box-sizing: border-box;
}

@keyframes grow-subtle {
    0% { 
        width: 8px; 
        height: 8px; 
        opacity: 0.7;
    }
    50% { 
        width: 24px;
        height: 24px; 
        opacity: 0.2;
    }
    100% { 
        width: 8px; 
        height: 8px; 
        opacity: 0.7;
    }
}

.leaflet-control-attribution {
    display: none !important;
}

@media (max-width: 768px) {
    #map-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .target-column {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .target-label {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    #map {
        width: 100%;
        min-height: 350px;
    }
}
