.review-map {
    margin-top: 8px;
}

.review-map-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 4px 0 18px;
}

.review-map-filter {
    border: 1px solid #056839;
    background: #fff;
    color: #056839;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
}

.review-map-filter.is-active,
.review-map-filter[aria-pressed="true"] {
    background: #056839;
    color: #fff;
}

.review-map-canvas {
    height: 500px;
    width: 100%;
    background: #e7e4dc;
}

.review-map-canvas img,
.leaflet-container img {
    max-width: none !important;
    pointer-events: auto;
}

.review-map-pin {
    background: transparent;
    border: 0;
}

.review-map-pin svg {
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.review-map-pin.is-active svg {
    transform: scale(1.15);
    transform-origin: center bottom;
}

.review-map-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 22px 0 36px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.review-map-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    text-align: left;
    min-height: 220px;
    background: #fff;
    border: 1px solid #e4e0d8;
    border-radius: 4px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    color: #2f4f4f;
    cursor: pointer;
}

.review-map-card.is-active {
    border-color: #056839;
    box-shadow: 0 0 0 2px rgba(5, 104, 57, 0.25);
}

.review-map-stars {
    color: #d0d0d0;
    letter-spacing: 1px;
    font-size: 14px;
    line-height: 1;
}

.review-map-stars .is-on {
    color: #e0a106;
}

.review-map-card-text,
.review-map-popup-message {
    white-space: pre-wrap;
    color: #444;
    font-size: 14px;
    line-height: 1.45;
    margin: 10px 0;
}

.review-map-card-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-map-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.review-map-card-author img,
.review-map-avatar {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 40px;
}

.review-map-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #056839;
    color: #fff;
    font-weight: 700;
}

.review-map-card-author strong {
    display: block;
    font-size: 14px;
    color: #2f4f4f;
}

.review-map-card-place,
.review-map-popup-place {
    display: block;
    color: #777;
    font-size: 12px;
}

.review-map-card-meta,
.review-map-popup-meta,
.review-map-popup-response {
    color: #888;
    font-size: 12px;
    margin: 0;
}

.review-map-popup {
    max-height: 280px;
    overflow: auto;
    font-size: 14px;
}

.review-map-popup-place {
    font-weight: 700;
    color: #2f4f4f;
    font-size: 14px;
    margin-bottom: 6px;
}

.review-map-popup hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 12px 0;
}

.review-map-note {
    text-align: center;
    color: #666;
    padding: 12px 0 0;
}

@media (max-width: 767px) {
    .review-map-canvas {
        height: 380px;
    }

    .review-map-card {
        flex-basis: 260px;
    }
}
