.alhambra-map { position: relative; display: inline-block; width: 100%; vertical-align: top; isolation: isolate; }
.alhambra-map > img { display: block; width: 100%; height: auto; }
.alhambra-map .alhambra-map__spot { position: absolute; left: var(--map-x); top: var(--map-y); transform: translate(-50%, -50%); width: clamp(28px, 2.8vw, 40px); height: clamp(28px, 2.8vw, 40px); min-height: 0; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #f9f4ed; cursor: pointer; z-index: 2; touch-action: manipulation; }
.alhambra-map__spot::before { content: ''; position: absolute; inset: 20%; border-radius: 50%; background: #575143; transition: background .18s, transform .18s; }
.alhambra-map .alhambra-map__spot span { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 12px; height: 12px; padding: 0; margin: 0; font-size: 0; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; opacity: 0; pointer-events: none; }
.alhambra-map .alhambra-map__spot:hover::before, .alhambra-map__spot:focus-visible::before { background: #b78c60; transform: scale(1.25); }
.alhambra-map__spot[aria-expanded="true"]::before { background: #622c21; transform: scale(1.25); }
.alhambra-map .alhambra-map__spot:hover span, .alhambra-map .alhambra-map__spot:focus-visible span, .alhambra-map .alhambra-map__spot[aria-expanded="true"] span { opacity: 1; }
.alhambra-map__spot:focus-visible { outline: 2px solid #622c21; outline-offset: 3px; }
.alhambra-map .alhambra-map__spot:focus span { color: #fff; }
.alhambra-map .alhambra-map__preview { position: absolute; z-index: 3; width: min(260px, calc(100% - 16px)); margin: 0; padding: 4px; background: #f9f4ed; border: 1px solid #b78c60; border-radius: 3px; box-shadow: 0 4px 16px #30251b30; text-align: left; pointer-events: auto; }
.alhambra-map__preview[hidden] { display: none; }
.alhambra-map .alhambra-map__preview img { display: block; width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; border-radius: 1px; }
.alhambra-map__preview figcaption { padding: 8px; font: 14px/1.3 Arial, sans-serif; color: #575143; }
.alhambra-map__preview small { display: block; margin-top: 3px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.alhambra-map__description { margin: 6px 0 0; font-size: 12px; line-height: 1.5; }
@media (max-width: 767px) {
    .alhambra-map .alhambra-map__spot { width: 24px; height: 24px; }
    .alhambra-map .alhambra-map__spot::before { inset: auto; width: 7px; height: 7px; }
    .alhambra-map .alhambra-map__spot span { width: 6px; height: 6px; background-size: 100% 1px, 1px 100%; }
    .alhambra-map .alhambra-map__preview { width: min(220px, calc(100% - 16px)); }
}
@media (prefers-reduced-motion: reduce) { .alhambra-map__spot::before { transition: none; } }
