/**
 * Map All Pins — HomeRunner Toolkit
 *
 * Dot markers for beyond-the-loaded-page homes, the found-pin highlight,
 * the on-map finder control, and the compact extra-pin card. Reuses the
 * Map Stacking CSS custom properties so site palettes apply automatically.
 */

/* ---- Dot marker ---------------------------------------------------------- */

.hrtk-allpins-marker:not(#\9):not(#\9) {
	background: none;
	border: none;
}

.hrtk-allpins-dot:not(#\9):not(#\9) {
	width: 14px;
	height: 14px;
	margin: 1px;
	border-radius: 50%;
	background: var(--hrtk-badge-bg, #222);
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	box-sizing: border-box;
	transition: transform 0.15s ease;
}

.hrtk-allpins-marker:hover:not(#\9):not(#\9) .hrtk-allpins-dot {
	transform: scale(1.35);
}

/* Found-pin highlight (finder landing) */
.hrtk-allpins-found:not(#\9):not(#\9) {
	z-index: 1000 !important;
}

.hrtk-allpins-found:not(#\9):not(#\9)::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border-radius: 50%;
	border: 3px solid var(--hrtk-focus, #e74c3c);
	animation: hrtk-allpins-pulse 1.2s ease-out infinite;
	pointer-events: none;
}

@keyframes hrtk-allpins-pulse {
	0% {
		transform: scale(1);
		opacity: 0.9;
	}
	100% {
		transform: scale(3.2);
		opacity: 0;
	}
}

/* ---- Finder control ------------------------------------------------------ */

.hrtk-map-finder:not(#\9):not(#\9) {
	position: relative;
	width: 220px;
}

/* Align with the core topleft button row: those buttons sit at Leaflet's
   10px corner margin plus their own 8px .map-control margin, while a plain
   topright control sits at 10px — so drop the finder the missing 8px. */
.leaflet-top:not(#\9):not(#\9) .hrtk-map-finder.leaflet-control {
	margin-top: 18px;
}

/* Narrow maps (≤630px): map-all-pins.js moves the control into the topleft
   corner, where Leaflet stacks it below the button row. Left edge lines up
   with the buttons (10px corner + their 8px inner margin); the row's own 8px
   bottom margin plus 2px here gives the vertical gap. */
.leaflet-top:not(#\9):not(#\9) .hrtk-map-finder--wrap.leaflet-control {
	margin-top: 2px;
	margin-left: 18px;
}

/* Map Controls parks its zoom stack in the same top-right corner (16px inset
   + 80px stack + 10px gap = 106px): drop the wide-layout finder below it.
   An ancestor-class rule rather than the gmap build's JS-toggled
   --below-zoom modifier, so the offset tracks the .hrtk-mapctl-on stamp
   live with no cross-module init-order dependency. */
.hfse.hrtk-mapctl-on:not(#\9):not(#\9) .leaflet-top.leaflet-right .hrtk-map-finder.leaflet-control {
	margin-top: 106px;
}

.hrtk-map-finder-input:not(#\9):not(#\9) {
	width: 100%;
	padding: 7px 12px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
	font-size: 13px;
	line-height: 1.4;
	box-sizing: border-box;
	outline: none;
}

.hrtk-map-finder-input:focus:not(#\9):not(#\9) {
	border-color: var(--hrtk-badge-bg, #222);
}

.hrtk-map-finder-results:not(#\9):not(#\9) {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 260px;
	overflow-y: auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
	z-index: 1001;
}

.hrtk-map-finder-result:not(#\9):not(#\9) {
	display: block;
	width: 100%;
	padding: 8px 12px;
	border: none;
	background: none;
	text-align: left;
	font-size: 13px;
	line-height: 1.35;
	cursor: pointer;
	color: #222;
}

.hrtk-map-finder-result:hover:not(#\9):not(#\9),
.hrtk-map-finder-result:focus:not(#\9):not(#\9) {
	background: rgba(0, 0, 0, 0.06);
}

.hrtk-map-finder-empty:not(#\9):not(#\9) {
	padding: 8px 12px;
	font-size: 13px;
	color: #777;
}

/* ---- Google Maps variant ------------------------------------------------- */

/* The finder is not a Leaflet control on Google: map-all-pins-google.js
   overlays it on .hfse-map-container. Top-right by default; when Map
   Controls' zoom pill occupies that corner (≥960px), drop below it. */
.hrtk-map-finder--gmap:not(#\9):not(#\9) {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 6;
}

.hrtk-map-finder--gmap.hrtk-map-finder--below-zoom:not(#\9):not(#\9) {
	top: 122px;
	right: 16px;
}

/* Narrow maps: left side, clear of the core topleft control strip. */
.hrtk-map-finder--gmap.hrtk-map-finder--wrap:not(#\9):not(#\9) {
	top: 54px;
	right: auto;
	left: 10px;
	width: min(220px, calc(100% - 20px));
}

/* Narrow + Map Controls: its chevron/fullscreen stack owns the top-left
   corner down to ~104px, so the finder clears it. */
.hrtk-map-finder--gmap.hrtk-map-finder--wrap.hrtk-map-finder--below-zoom:not(#\9):not(#\9) {
	top: 122px;
	left: 10px;
	right: auto;
}

/* Found-pin pulse host — a dot-sized anchor for the .hrtk-allpins-found
   ::after ring, since Google's image markers can't carry the class. */
.hrtk-allpins-gpulse:not(#\9):not(#\9) {
	position: absolute;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	pointer-events: none;
}

/* The card popup reuses .hrtk-spider-popup chrome from Map Stacking (its CSS
   loads provider-wide): anchor transform, white card, close button. */

/* ---- Compact extra-pin card ---------------------------------------------- */

.hrtk-allpins-popup:not(#\9):not(#\9) .leaflet-popup-content {
	margin: 0;
	min-width: 220px;
}

.hrtk-allpins-card:not(#\9):not(#\9) {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	text-decoration: none;
	color: inherit;
}

.hrtk-allpins-card-img:not(#\9):not(#\9) {
	width: 72px;
	height: 54px;
	-o-object-fit: cover;
	   object-fit: cover;
	border-radius: 6px;
	flex: 0 0 auto;
}

.hrtk-allpins-card-body:not(#\9):not(#\9) {
	min-width: 0;
}

.hrtk-allpins-card-title:not(#\9):not(#\9) {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.hrtk-allpins-card-price:not(#\9):not(#\9) {
	margin-top: 2px;
	font-size: 13px;
	color: #555;
}

.hrtk-allpins-card-loading:not(#\9):not(#\9) {
	padding: 14px;
	font-size: 13px;
	color: #777;
}
