/* =========================================
   PROPERTY LOCATION MAP
   ========================================= */

#plm-map {
    width: 100%;
    height: 650px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 15px;
}

/* Mobile height */
@media (max-width: 768px) {
    #plm-map {
        height: 500px;
    }
}

/* =========================================
   CONTROLS
   ========================================= */

.plm-controls {
    margin-bottom: 10px;
}

#plm-nearme {
    background: #1e73be;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s ease;
}

#plm-nearme:hover {
    background: #155a96;
}

/* =========================================
   POPUP CARD
   ========================================= */

.plm-popup {
    width: 220px;
    font-family: Arial, sans-serif;
}

.plm-popup img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.plm-popup h4 {
    margin: 0 0 4px;
    font-size: 15px;
}

.plm-popup .price {
    color: #1e73be;
    font-weight: bold;
    font-size: 14px;
}

/* =========================================
   CUSTOM MARKER ICON
   ========================================= */

.plm-marker {
    background: transparent;
    border: none;
}

/* =========================================
   CLUSTER CUSTOM TWEAKS
   (keeps default colours but modernises)
   ========================================= */

.marker-cluster-small {
    background-color: rgba(46, 204, 113, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(39, 174, 96, 0.9);
}

.marker-cluster-medium {
    background-color: rgba(241, 196, 15, 0.6);
}

.marker-cluster-medium div {
    background-color: rgba(243, 156, 18, 0.9);
}

.marker-cluster-large {
    background-color: rgba(231, 76, 60, 0.6);
}

.marker-cluster-large div {
    background-color: rgba(192, 57, 43, 0.9);
}

/* smoother circles */
.marker-cluster {
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(255,255,255,0.4);
    font-weight: bold;
}

/* =========================================
   LEAFLET POPUP POLISH
   ========================================= */

.leaflet-popup-content-wrapper {
    border-radius: 10px;
}

.leaflet-popup-tip {
    background: #fff;
}

/* =========================================
   MOBILE IMPROVEMENTS
   ========================================= */

@media (max-width: 600px) {

    .plm-popup {
        width: 180px;
    }

    .plm-popup img {
        height: 100px;
    }
}