/* ============================================================
   Previo Locations Map – Style
   Paleta: identyczna z Previo Map Sidebar (pmsb-style.css)
     #d49f58  – akcent (złoto/brąz)
     #b8893e  – ciemniejszy złoty (hover pinezki)
     #0d2038  – granat (hover CTA)
     #000000  – tekst
   ============================================================ */

/* ---------- Wrapper mapy ---------- */
.plm-map-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
    border: 1px solid #d49f58;
    background: #F4EFE8;
}

/* Wysokość jest ustawiana inline przez shortcode (domyślnie 520px).
   Na mobilnych ekranach nadpisujemy ją na mniejszą wartość. */
.plm-map-canvas {
    width: 100%;
    display: block;
}

@media (max-width: 767px) {
    .plm-map-canvas {
        height: 360px !important;
    }
}
@media (max-width: 480px) {
    .plm-map-canvas {
        height: 300px !important;
    }
}

/* ---------- Pinezka (marker) ---------- */
.plm-marker-icon {
    background: none;
    border: none;
}

.plm-marker-pin {
    width: 30px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.plm-marker-pin svg {
    width: 30px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .28));
    transition: filter .2s ease, transform .2s ease;
}

.plm-marker-pin.is-active svg,
.plm-marker-pin:hover svg {
    filter: drop-shadow(0 3px 10px rgba(212, 159, 88, .65));
    transform: scale(1.2);
}

/* ---------- Popup Leaflet ---------- */
.plm-popup .leaflet-popup-content-wrapper {
    border-radius: 14px;
    font-family: "Montserrat", sans-serif;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    padding: 0;
    overflow: hidden;
}

.plm-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.4;
    min-width: 160px;
}

.plm-popup .leaflet-popup-tip-container {
    margin-top: -1px;
}

.plm-popup .leaflet-popup-tip {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}

/* Wewnętrzny kontener popupu */
.plm-popup-inner {
    padding: 14px 18px 16px;
}

.plm-popup-title {
    font-family: "Playfair Display", serif;
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin: 0 0 10px 0;
    white-space: nowrap;
}

/* Przycisk / link CTA w popupie */
.plm-popup-link {
    display: inline-block;
    background: #d49f58;
    color: #fff !important;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    text-decoration: none !important;
    transition: background .2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.plm-popup-link:hover {
    background: #0d2038;
    color: #fff !important;
}

/* ---------- Kontrolki Leaflet (opcjonalne dopasowanie kolorów) ---------- */
.plm-map-wrap .leaflet-control-zoom a {
    color: #0d2038;
    font-weight: 700;
    border-color: rgba(13, 32, 56, .15);
}

.plm-map-wrap .leaflet-control-zoom a:hover {
    background: #0d2038;
    color: #fff;
}
