/* Portfolio Map — popup & marker styles */

#pm-map {
    width: 100%;
}

.pm-popup .leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.14);
    padding: 0;
    overflow: hidden;
    border: none;
}

.pm-popup .leaflet-popup-content {
    margin: 0;
    line-height: 1;
}

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

.pm-popup .leaflet-popup-tip {
    background: #fff;
    box-shadow: none;
}

.pm-popup-inner {
    padding: 18px 20px 16px;
    min-width: 180px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
}

.pm-popup-tags {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0597AE;
    margin-bottom: 7px;
    line-height: 1.4;
}

.pm-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a2d35;
    margin-bottom: 14px;
    line-height: 1.35;
}

.pm-popup-link {
    display: inline-block;
    background: #0597AE;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: background 0.18s ease;
    line-height: 1;
}

.pm-popup-link:hover {
    background: #22414B;
    color: #fff !important;
    text-decoration: none !important;
}

.leaflet-interactive {
    cursor: pointer;
}

/* ── Grouped pin ── */
.pm-marker-group {
    background: transparent !important;
    border: none !important;
}

.pm-group-inner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 3px 14px rgba(0,0,0,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pm-group-inner:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}

.pm-group-inner span {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1;
}

/* ── Grouped popup ── */
.pm-popup-group {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    max-height: 320px;
}

.pm-popup-group-header {
    padding: 14px 18px 10px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.pm-popup-group-name {
    font-size: 13px;
    font-weight: 800;
    color: #1a2d35;
    line-height: 1.3;
    margin-bottom: 2px;
}

.pm-popup-group-count {
    font-size: 11px;
    font-weight: 600;
    color: #0597AE;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.pm-popup-group-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 6px 0;
    flex: 1;
}

.pm-popup-group-item {
    padding: 10px 18px;
    border-bottom: 1px solid #f5f5f5;
}

.pm-popup-group-item:last-child {
    border-bottom: none;
}

.pm-popup-group-item .pm-popup-tags {
    margin-bottom: 4px;
}

.pm-popup-group-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a2d35;
    margin-bottom: 8px;
    line-height: 1.3;
}

.pm-popup-link-sm {
    font-size: 11px !important;
    padding: 5px 12px !important;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .pm-popup .leaflet-popup-content-wrapper {
        max-width: 85vw !important;
    }
    .pm-popup-group {
        max-height: 260px;
    }
    .pm-popup-group-list {
        max-height: 180px;
    }
}

