#liveability-map {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: visible;
}

#liveability-map.guardians-map--detail {
    height: 100%;
    min-height: 11.25rem;
}

#soundwalk-map {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}

#liveability-leaflet {
    width: 100%;
    height: 100%;
}

#soundwalk-leaflet {
    width: 100%;
    height: 100%;
}

.leaflet-gl-layer,
.leaflet-gl-layer .maplibregl-map {
    width: 100%;
    height: 100%;
}

.aegis-soundwalk-map-layout__map .leaflet-interactive,
.aegis-place-map-layout__map .leaflet-interactive {
    cursor: pointer;
}

.leaflet-marker-icon.is-map-marker-active {
    filter: drop-shadow(0 0 0.4rem rgba(248, 216, 119, 0.95));
    transform: scale(1.08);
    transform-origin: center bottom;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.aegis-place-card.is-map-highlighted,
.aegis-place-card.is-map-highlighted:hover,
.aegis-place-card.is-map-highlighted:focus-within {
    box-shadow:
        0 0 0 3px var(--wp--preset--color--accent, #f8d877),
        0 8px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

/* Location name label — Figma "Gem pop 2" (6334:1140) */
.guardians-map-label {
    position: absolute;
    z-index: 1000;
    left: 0;
    top: 0;
    transform: translate(-50%, calc(-100% - var(--guardians-map-label-offset, 48px)));
    pointer-events: auto;
    white-space: nowrap;
    font-family: var(--wp--preset--font-family--inter, 'Inter', sans-serif);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5rem;
}

.guardians-map-tooltip__bubble {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    max-width: 16rem;
    min-height: 1.875rem;
    padding: 0.1875rem 0.375rem 0.1875rem 0.5rem;
    border-radius: 999px;
    background-color: var(--wp--preset--color--primary, #3e6a67);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(18, 16, 16, 0.18);
}

.leaflet-container a.guardians-map-tooltip__bubble,
a.guardians-map-tooltip__bubble {
    color: #fff;
    text-decoration: none;
}

.leaflet-container a.guardians-map-tooltip__bubble:hover,
.leaflet-container a.guardians-map-tooltip__bubble:focus-visible,
a.guardians-map-tooltip__bubble:hover,
a.guardians-map-tooltip__bubble:focus-visible {
    color: var(--wp--preset--color--accent, #f8d877);
    text-decoration: none;
    filter: none;
}

.leaflet-container a.guardians-map-tooltip__bubble:hover .guardians-map-tooltip__arrow::after,
.leaflet-container a.guardians-map-tooltip__bubble:focus-visible .guardians-map-tooltip__arrow::after,
a.guardians-map-tooltip__bubble:hover .guardians-map-tooltip__arrow::after,
a.guardians-map-tooltip__bubble:focus-visible .guardians-map-tooltip__arrow::after {
    border-right-color: var(--wp--preset--color--accent, #f8d877);
    border-bottom-color: var(--wp--preset--color--accent, #f8d877);
}

.guardians-map-tooltip__label {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline-end: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guardians-map-tooltip__arrow {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
}

.guardians-map-tooltip__arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    width: 0.375rem;
    height: 0.375rem;
    border-right: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.guardians-map-tooltip__tip {
    display: block;
    width: 0;
    height: 0;
    margin: 0 auto;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid var(--wp--preset--color--primary, #3e6a67);
}

.guardians-map-fullscreen {
	display: none;
}

.guardians-map-fullscreen__button {
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H3v5M16 3h5v5M8 21H3v-5M16 21h5v-5'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 16px 16px;
}

.guardians-map-fullscreen__button.is-active {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h5V3M21 8h-5V3M3 16h5v5M21 16h-5v5'/%3E%3C/svg%3E");
}

html.aegis-map-fullscreen,
body.aegis-map-fullscreen {
	overflow: hidden;
}

.is-map-fullscreen {
	border-radius: 0 !important;
	box-shadow: none !important;
	height: 100dvh !important;
	inset: 0 !important;
	max-height: none !important;
	min-height: 0 !important;
	overflow: hidden !important;
	position: fixed !important;
	width: 100vw !important;
	z-index: 100002 !important;
}

.is-map-fullscreen #liveability-map,
.is-map-fullscreen #liveability-leaflet,
.is-map-fullscreen #soundwalk-map,
.is-map-fullscreen #soundwalk-leaflet,
.is-map-fullscreen .guardians-map,
.is-map-fullscreen .guardians-soundwalk-map,
.is-map-fullscreen .leaflet-container {
	border-radius: 0 !important;
	height: 100% !important;
	max-height: none !important;
	min-height: 100% !important;
	width: 100% !important;
}

body.admin-bar .is-map-fullscreen {
	height: calc(100dvh - 46px) !important;
	top: 46px !important;
}

@media (min-width: 783px) {
	body.admin-bar .is-map-fullscreen {
		height: calc(100dvh - 32px) !important;
		top: 32px !important;
	}
}

@media (max-width: 781px) {
	.guardians-map-fullscreen {
		display: block;
	}
}
