.living-map-card {
    padding: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dfe5ee;
    border-radius: 0.875rem;
    box-shadow: none;
}

.living-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.8rem;
    color: #24324a;
    font-size: 0.95rem;
    font-weight: 600;
}

.living-map-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.living-map-legend__dot {
    width: 0.85rem;
    height: 0.85rem;
    flex: 0 0 auto;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(18, 38, 77, 0.25);
}

.living-map-legend__dot--venue {
    background: #17863b;
}

.living-map-legend__dot--hotel {
    background: #146acb;
}

.living-map-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(25, 60, 120, 0.2);
    border-radius: 0.75rem;
    background: #e8eef7;
}

.living-map {
    width: 100%;
    height: clamp(28rem, 64vh, 41.25rem);
}

.living-map-loading {
    position: absolute;
    z-index: 2;
    inset: 50% auto auto 50%;
    padding: 0.65rem 0.9rem;
    color: #173265;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 0.5rem;
    border: 1px solid #dfe5ee;
    box-shadow: none;
    transform: translate(-50%, -50%);
    transition: opacity 160ms ease;
}

.living-map.is-ready .living-map-loading {
    visibility: hidden;
    opacity: 0;
}

.living-map-fallback {
    min-height: 18rem;
    padding: 3rem 1rem;
    color: #24324a;
    text-align: center;
    background:
        linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
        repeating-linear-gradient(
            45deg,
            #dce7f6,
            #dce7f6 12px,
            #eef3fa 12px,
            #eef3fa 24px
        );
}

.living-map-noscript {
    margin: 1rem 0 0;
    padding: 0.8rem 1rem;
    color: #172a50;
    background: #fff;
    border-radius: 0.6rem;
}

.map-location-marker {
    width: 2.8rem;
    height: 3.2rem;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.map-location-marker__pin {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    margin: 0 auto;
    background: #146acb;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 0.25rem 0.7rem rgba(11, 37, 83, 0.34);
    transform: rotate(-45deg);
}

.map-location-marker--venue .map-location-marker__pin {
    background: #17863b;
}

.map-location-marker__label {
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
    transform: rotate(45deg);
}

.map-location-marker:focus-visible {
    outline: 3px solid #f6b93b;
    outline-offset: 2px;
    border-radius: 0.4rem;
}

.living-map-popup__title {
    display: block;
    margin-bottom: 0.3rem;
    color: #173265;
    font-size: 1rem;
}

.living-map-popup__address {
    margin: 0 0 0.55rem;
    color: #3d4c61;
    line-height: 1.35;
}

.living-map-popup__link {
    font-weight: 600;
}

.living-map .maplibregl-popup-content {
    min-width: 13rem;
    padding: 0.9rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid #dfe5ee;
    box-shadow: none;
}

.living-map .maplibregl-ctrl-group {
    overflow: hidden;
    border-radius: 0.55rem;
}

.living-map .maplibregl-ctrl-attrib {
    color: #2d3c51;
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 575.98px) {
    .living-map-card {
        padding: 0.65rem;
        border-radius: 0.75rem;
    }

    .living-map {
        height: 28rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .living-map-loading {
        transition: none;
    }
}
