.attraction-anchor-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 12;
    pointer-events: none;
}

.attraction-anchor-layer[hidden] { display: none; }

.attraction-map-anchor {
    position: absolute;
    width: 54px;
    height: 54px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    transform-origin: center;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
}

.attraction-map-anchor::before,
.attraction-map-anchor::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease, transform .22s ease;
}

.attraction-map-anchor::before {
    inset: 7px;
    border: 2px solid rgba(255, 255, 255, .94);
    background: rgba(5, 45, 78, .14);
    box-shadow: 0 0 0 5px rgba(5, 45, 78, .22), 0 7px 22px rgba(0, 0, 0, .28);
    transform: scale(.72);
}

.attraction-map-anchor::after {
    inset: 1px;
    border: 1px solid rgba(255, 255, 255, .4);
    transform: scale(.62);
}

.attraction-map-anchor:hover::before,
.attraction-map-anchor:focus-visible::before,
.attraction-map-anchor.selected::before {
    opacity: 1;
    transform: scale(1);
}

.attraction-map-anchor:hover::after,
.attraction-map-anchor:focus-visible::after,
.attraction-map-anchor.selected::after {
    opacity: .72;
    transform: scale(1);
}

.attraction-map-anchor:focus-visible { outline: none; }

.attraction-map-anchor-label {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 7px);
    display: block;
    max-width: min(310px, 72vw);
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    background: rgba(3, 31, 54, .96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
    color: #fff;
    font-size: 13px;
    font-weight: 720;
    line-height: 1.2;
    letter-spacing: .01em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 5px);
    transition: opacity .16s ease, transform .2s ease;
}

.attraction-map-anchor:hover .attraction-map-anchor-label,
.attraction-map-anchor:focus-visible .attraction-map-anchor-label,
.attraction-map-anchor.selected .attraction-map-anchor-label {
    opacity: 1;
    transform: translate(-50%, 0);
}

.attraction-story-cta[hidden] { display: none !important; }

html[data-theme="light"] .attraction-map-anchor-label {
    border-color: rgba(4, 34, 58, .16);
    background: rgba(255, 255, 255, .97);
    color: #062947;
    box-shadow: 0 12px 28px rgba(3, 27, 47, .18);
}

@media (max-width: 760px), (max-width: 900px) and (max-height: 500px) {
    .attraction-map-anchor { width: 58px; height: 58px; }
    .attraction-map-anchor-label {
        width: min(280px, 78vw);
        max-width: min(280px, 78vw);
        padding: 9px 11px;
        font-size: 13px;
        white-space: normal;
        text-align: center;
    }
    .detail-actions > .primary-cta,
    .detail-actions > .attraction-story-cta {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .attraction-map-anchor::before,
    .attraction-map-anchor::after,
    .attraction-map-anchor-label { transition: none; }
}
