/* ── Override Leaflet default div-icon (removes blue border + white bg) ── */
.leaflet-div-icon {
    background: none !important;
    border: none !important;
}

/* ── Marker price badge ── */
.boxmarker {
    background-color: var(--primary-color, #86a21b);
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-weight: 700;
    padding: 2px 5px;
    text-align: center;
    white-space: nowrap;
    width: auto !important;
}

.leaflet-marker-icon.boxmarker {
    border-radius: 4px !important;
    outline: none !important;
    height: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.leaflet-marker-icon.boxmarker .mark-price {
    font-size: 12px !important;
    line-height: 1.4 !important;
    background: none !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-width: 0 !important;
    color: inherit !important;
}

/* Prevent focus/active outline on marker icons */
.leaflet-div-icon:focus,
.leaflet-div-icon:active,
.leaflet-marker-icon:focus,
.leaflet-marker-icon:active {
    outline: none !important;
}

/* ── Leaflet popup container ── */
.leaflet-popup-content-wrapper {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 0 !important;
    background-color: #fff !important;
    color: #050b20 !important;
}

.leaflet-popup-content {
    margin: 0.5rem !important;
    width: auto !important;
    min-width: 348px !important;
    font-size: 13px;
    line-height: 1.4;
    color: #050b20 !important;
}

.leaflet-popup-content p {
    margin: 0;
}

.leaflet-popup-content a {
    color: #050b20 !important;
}

.leaflet-popup-close-button {
    color: #050b20 !important;
}

/* ── Dark mode popup ── */
.is_dark .leaflet-popup-content-wrapper {
    background-color: #1c1c1c !important;
    color: #fff !important;
}

.is_dark .leaflet-popup-content {
    color: #fff !important;
}

.is_dark .leaflet-popup-content a {
    color: #fff !important;
}

.is_dark .leaflet-popup-close-button {
    color: #fff !important;
}

.is_dark .leaflet-popup-tip {
    background-color: #1c1c1c !important;
}

/* ── Cluster icons ── */
.marker-cluster {
    border-radius: 50%;
    text-align: center;
    color: #fff;
    font-weight: 700;
}

.marker-cluster div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.marker-cluster-small {
    background-color: rgba(134, 162, 27, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(134, 162, 27, 0.8);
}

.marker-cluster-medium {
    background-color: rgba(134, 162, 27, 0.5);
}

.marker-cluster-medium div {
    background-color: rgba(134, 162, 27, 0.7);
}

.marker-cluster-large {
    background-color: rgba(134, 162, 27, 0.4);
}

.marker-cluster-large div {
    background-color: rgba(134, 162, 27, 0.6);
}

/* ── Mobile gesture overlay ── */
.leaflet-gesture-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leaflet-gesture-overlay.active {
    opacity: 1;
}
