/* ============================================================
   Burggraaf Partners Map — Frontend styles
   Colors: primary #951b80 | secondary #342E8E
   ============================================================ */

:root {
    --bpm-primary:         #951b80;
    --bpm-primary-dark:    #7a1669;
    --bpm-secondary:       #342E8E;
    --bpm-secondary-dark:  #272270;
}

/* ---- Map container ---- */
.bpm-map-container {
    width: 100%;
    position: relative;
    z-index: 0;
}

/* ---- Custom marker ---- */
.bpm-marker-icon {
    width: 36px;
    height: 36px;
    position: relative;
}

.bpm-marker-icon svg {
    width: 36px;
    height: 44px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}

/* ---- Cluster ---- */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(149, 27, 128, .25) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: var(--bpm-primary) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 40px;
}

/* ---- Popup ---- */
.leaflet-popup-content-wrapper {
    border-radius: 10px !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.2) !important;
    min-width: 260px;
    max-width: 320px;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: auto !important;
}

.leaflet-popup-tip {
    background: #fff !important;
}

.leaflet-popup-close-button {
    top: 8px !important;
    right: 10px !important;
    color: #666 !important;
    font-size: 20px !important;
    z-index: 10;
}

.leaflet-popup-close-button:hover {
    color: var(--bpm-primary) !important;
}

/* ---- Popup inner ---- */
.bpm-popup {
    font-family: inherit;
}

.bpm-popup__image {
    width: 90%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    display: block;
    background: #fff;
    padding: 20px 0;
    box-sizing: border-box;
}

.bpm-popup__image-placeholder {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, var(--bpm-secondary) 0%, var(--bpm-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    font-size: 32px;
}

.bpm-popup__body {
    padding: 14px 16px 0;
}

.bpm-popup__name {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1d;
}

.bpm-popup__address {
    margin: 0 0 12px;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.bpm-popup__divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 0 0 10px;
}

.bpm-popup__contact {
    padding: 0 16px 14px;
}

.bpm-popup__contact a {
    display: block;
    font-size: 13px;
    color: var(--bpm-secondary) !important;
    text-decoration: none !important;
    margin-bottom: 4px;
    word-break: break-all;
}

.bpm-popup__contact a:hover {
    text-decoration: underline !important;
    color: var(--bpm-secondary-dark) !important;
}

.bpm-popup__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 16px 16px;
    padding: 10px 16px;
    background: var(--bpm-primary);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s;
}

.bpm-popup__btn:hover {
    background: var(--bpm-primary-dark) !important;
    color: #fff !important;
}

.bpm-popup__btn .bpm-arrow {
    margin-left: 6px;
}
