/* Map specific styles extracted from by_underside-kart.php inline <style> block */

.city-main-map-wrapper {
	position: relative;
}

.city-main-map {
	width: 100%;
	height: 480px;
	border: 1px solid var(--border-light);
	border-radius: 6px;
	margin: 0;
	transition: height .3s ease;
	touch-action: none;
	-ms-touch-action: none;
}

.city-map-fullscreen-toggle {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 600;
	background: rgba(0,0,0,0.55);
	color: #fff;
	border: 0;
	padding: .4rem .55rem;
	font-size: 1rem;
	line-height: 1;
	border-radius: 4px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .25rem;
}

.city-map-fs-tooltip {
	position: absolute;
	top: 100%;
	right: 0;
	transform: translateY(6px);
	background: #111;
	color: #fff;
	font-size: .75rem;
	line-height: 1.2;
	padding: .35rem .55rem;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease;
	box-shadow: 0 2px 6px rgba(0,0,0,.35);
}

.city-map-fullscreen-toggle:hover .city-map-fs-tooltip,
.city-map-fullscreen-toggle:focus .city-map-fs-tooltip,
.city-map-fullscreen-toggle:focus-visible .city-map-fs-tooltip {
	opacity: 1;
	transform: translateY(4px);
}

.city-map-fs-tooltip:after {
	content: "";
	position: absolute;
	top: -5px;
	right: 10px;
	border: 5px solid transparent;
	border-bottom-color: #111;
}

.city-map-fullscreen-toggle[data-state=fullscreen] {
	position: fixed;
	top: 12px;
	right: 12px;
	z-index: 10000;
	background: rgba(0,0,0,0.6);
}

.city-map-fullscreen-toggle:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.city-main-map-fullscreen {
	position: fixed !important;
	top: 0;
	left: 0;
	width: 100vw !important;
	height: 100vh !important;
	z-index: 9999 !important;
	margin: 0 !important;
	border-radius: 0 !important;
	border: 0 !important;
}

.city-main-map-fullscreen + .leaflet-control-container {
	z-index: 10000;
}

body.city-map-no-scroll {
	overflow: hidden;
}

.city-place-popup {
	font-size: .9rem;
	line-height: 1.3;
	max-width: 260px;
}

.city-place-popup h3 {
	margin: .25rem 0 .35rem;
	font-size: 1rem;
	line-height: 1.15;
}

.city-place-popup .place-thumb {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 50%;
	float: left;
	margin: 0 .6rem .4rem 0;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}

.city-place-popup .place-content {
	overflow: hidden;
}

.city-place-popup a.place-link {
	display: inline-block;
	margin-top: .4rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--link-color, #0645ad);
}

.leaflet-tooltip.place-tooltip {
	font-weight: 600;
}

/* Gesture hint overlay */
.city-map-gesture-hint {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0,0,0,0.65);
	color: #fff;
	padding: .6rem .9rem;
	font-size: .85rem;
	line-height: 1.2;
	border-radius: 6px;
	z-index: 650;
	text-align: center;
	max-width: 220px;
	box-shadow: 0 2px 8px rgba(0,0,0,.4);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
}

.city-map-gesture-hint[data-show="1"] {
	opacity: 1;
}

@media (max-width: 768px) {
	.city-main-map {
		height: 360px;
	}
}
