.section--article-map {
    padding: 32px 0;
}

.section--article-map .section__content .map {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}

.section--article-map .map__empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text);
    opacity: 0.7;
    font-size: 15px;
}

/* Cluster */
.section--article-map .marker-cluster,
.section--article-map .marker-cluster-small,
.section--article-map .marker-cluster-medium,
.section--article-map .marker-cluster-large {
    background-color: rgba(113, 198, 175, 0.5);
}

.section--article-map .marker-cluster div,
.section--article-map .marker-cluster-small div,
.section--article-map .marker-cluster-medium div,
.section--article-map .marker-cluster-large div {
    background-color: #71c6af;
    color: var(--color-white);
}

/* Marker */

.cwp-map-marker {
    background: transparent;
    border: none;
    color: var(--color-nav);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
    transition: transform 0.15s ease;
}

.cwp-map-marker svg {
    display: block;
}

.cwp-map-marker:hover {
    transform: translateY(-2px);
}

/* Popup */

.leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    width: 220px !important;
}

.map-popup {
    display: flex;
    flex-direction: column;
    font-family: inherit;
}

.map-popup__thumb {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin: 0;
}

.map-popup__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;    
}

.map-popup__date {
    margin: 0 !important;
    margin-bottom: 0 !important;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text);
    opacity: 0.7;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leaflet-popup-content p.cwp-map-popup-date {
    margin: 0 !important;
    margin-bottom: 0 !important;
    font-size: 10px;
    text-align: left;
}

.map-popup__title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

.leaflet-popup-content p.cwp-map-popup-title {
    font-size: 16px;
    line-height: 1.3;
}

.map-popup__button {
    display: block;
    width: 100%;
    padding: 9px 12px;
    background: var(--color-nav);
    color: var(--color-white) !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.leaflet-popup-content a.cwp-map-popup-link,
.leaflet-popup-content a.cwp-map-popup-link:hover,
.leaflet-popup-content a.cwp-map-popup-link:visited,
.leaflet-popup-content a.cwp-map-popup-link:focus {
    color: var(--color-white);
    text-decoration: none;
}

.map-popup__button:hover {
    background: var(--color-bold);
}

/* Close button (inspired by .image-modal__close) */

.leaflet-popup-close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0 !important;
    background: var(--color-white) !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--color-text) !important;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    opacity: 0.9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: opacity 0.15s;
    z-index: 10;
}

.leaflet-container a.leaflet-popup-close-button {
    top: -6px;
    right: -6px;
}

.leaflet-popup-close-button:hover {
    opacity: 1;
    background: var(--color-white) !important;
    color: var(--color-text) !important;
}

/* Reset control */

.map-reset {
    background: var(--color-white);
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}

.map-reset:hover {
    background: var(--color-nav);
    color: var(--color-white);
}
