/* ========================================
   MAP STYLES (Leaflet)
   Style dla mapy i markerów
   ======================================== */

/* Styl dla pulsujących markerów */
.leaflet-div-icon {
    background: transparent;
    border: none;
}

.pulsing-dot {
    width: 12px;
    height: 12px;
    background-color: var(--rusty-beacon);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    position: relative;
}

.pulsing-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--rusty-beacon);
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { width: 100%; height: 100%; opacity: 1; }
    100% { width: 300%; height: 300%; opacity: 0; }
}

/* Leaflet Tooltip Custom Style */
.map-tooltip {
    background: #0f1114 !important;
    border: 1px solid #3b424d !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
    font-family: var(--font-liquid) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

.leaflet-tooltip-top:before {
    border-top-color: #0f1114 !important;
}

.leaflet-tooltip-bottom:before {
    border-bottom-color: #0f1114 !important;
}

.leaflet-tooltip-left:before {
    border-left-color: #0f1114 !important;
}

.leaflet-tooltip-right:before {
    border-right-color: #0f1114 !important;
}

/* Styl głównej etykiety apartamentów */
.main-label-tooltip {
    background: #fff !important;
    border: 1px solid #ccc !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    border-radius: 4px !important;
}

.main-label-tooltip::before {
    display: none;
}

/* Editorial Map Container */
.editorial-map-container {
    width: 100%;
    height: 65vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

#map-leaflet {
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

.map-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
    pointer-events: none;
    z-index: 400;
}

/* Location map header */
.location-map-header {
    margin-top: 8rem;
    position: relative;
    width: 100%;
}

.location-map-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 1rem;
}

.location-map-label {
    font-family: var(--font-liquid);
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
}

.location-map-coords {
    font-family: var(--font-mono, monospace);
    font-size: 0.8rem;
    color: #aaa;
    letter-spacing: 1px;
}

/* Map grayscale hover effect */
.editorial-map-container {
    filter: grayscale(100%) contrast(90%);
    transition: filter 0.7s ease;
}

.editorial-map-container:hover {
    filter: grayscale(0%) contrast(100%);
}

/* Alternative tooltip style (white bg) */
.leaflet-tooltip.map-tooltip,
.leaflet-tooltip.main-label-tooltip {
    background-color: #ffffff;
    border: 1px solid #1a1a1a;
    color: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
