/* AgentSpotlight Sold Map — Pacific & Pine: map pop-ups on every page that shows the map
   (homepage hero, sold-homes page, story pages). Moved here from sold-homes.css in 1.3.0 so the
   homepage gets them too. Text colour and size are set here so the hero's light text can't leak in. */

.asm-map .leaflet-popup-content,
.asm-map.asm-map--google .asm-popup {
	font-family: var(--pp-body);
	font-size: 14px;
	line-height: 1.4;
	color: var(--pp-ink);
	text-align: left;
	text-shadow: none;
}

.asm-map .asm-popup :where(p, span, a) {
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	text-shadow: none;
}

.asm-map.asm-map--google .gm-style-iw-c,
.asm-map .leaflet-popup-content-wrapper {
	border-radius: 0;
}

.asm-map .asm-popup-price {
	font-family: var(--pp-display);
	font-size: 22px;
	font-weight: 400;
	letter-spacing: 0;
}

.asm-map .asm-popup-result {
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--pp-gold);
}

.asm-map .asm-popup-address {
	font-weight: 500;
}

.asm-map .asm-popup-address span,
.asm-map .asm-popup-glance {
	color: var(--pp-ink3);
}

.asm-map .asm-popup-link {
	border-radius: 0;
	padding: 9px 14px 8px;
	background: var(--pp-accent-d);
	color: #fff;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 600;
	white-space: nowrap;
}

.asm-map .asm-popup-maps {
	color: var(--pp-ink2) !important;
	font-size: 12px;
	white-space: nowrap;
}

/* Street View in the photo slot of a home with no photo (map-popup-street-view.js). */
.asm-map .asm-popup-street-view {
	background: var(--pp-sand-d, #e5e7eb);
}

/* Phones: the map is short, so the pop-up becomes one row — picture on the left, price, sold date,
   address, beds/baths and the button on the right — sized to fit without scrolling. */
@media (max-width: 600px) {
	.asm-map.asm-map--google .asm-popup {
		display: grid;
		grid-template-columns: 96px 1fr;
		align-items: stretch;
		width: 280px;
	}

	.asm-map .asm-popup > img,
	.asm-map .asm-popup > .asm-popup-nophoto {
		width: 96px;
		height: 100%;
		min-height: 96px;
	}

	.asm-map .asm-popup > .asm-popup-body:first-child {
		grid-column: 1 / -1;
	}

	.asm-map .asm-popup-body {
		padding: 6px 24px 4px 10px;
	}

	.asm-map .asm-popup-price {
		font-size: 17px;
	}

	.asm-map .asm-popup-top,
	.asm-map .asm-popup-address {
		margin: 0 0 2px;
	}

	.asm-map .asm-popup-address {
		line-height: 1.25;
	}

	.asm-map .asm-popup-glance {
		margin: 0 0 2px;
		font-size: 12px;
		line-height: 1.3;
	}

	.asm-map .asm-popup-maps {
		display: none;
	}

	.asm-map .asm-popup-actions {
		margin: 2px 0 0;
	}

	.asm-map .asm-popup-link {
		padding: 7px 10px 6px;
	}
}
