.public-view-switch {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.25rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.public-map-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.public-photo-map {
    position: relative;
    width: 100%;
    min-height: 520px;
    background: #e7f0eb;
}

.map-unavailable {
    display: grid;
    min-height: 320px;
    place-items: center;
    padding: 2rem;
    color: var(--muted);
    text-align: center;
}

.map-pin {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: var(--brand);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(11, 107, 80, 0.28);
    transform: rotate(-45deg);
}

.map-pin span {
    transform: rotate(45deg);
}

.map-popup {
    width: min(260px, 72vw);
}

.map-popup h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.map-popup p {
    margin: 0 0 0.5rem;
    color: var(--muted);
}

.map-popup-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.map-popup-thumbs img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    background: #edf2ef;
}

.map-popup-count {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: var(--brand);
    font-weight: 700;
}

@media (max-width: 800px) {
    .public-photo-map {
        min-height: 430px;
    }
}
