/**
 * Periscope Contact Map — full-width map above the footer on /get-in-touch/.
 *
 * Heights follow the Divi full-width map on newgrove.com/contact-newgrove/:
 * 440px, 350px at ≤980px, 220px at ≤767px, 200px at ≤479px. No margin or
 * padding, so it runs edge to edge and meets the footer directly.
 */

.periscope-contact-map {
	position: relative;
	width: 100%;
	height: 440px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	line-height: 0;
	background-color: #e5e3df; /* Google's tile colour while the map loads */
}

.periscope-contact-map__canvas,
.periscope-contact-map__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Info window (API mode), as on Newgrove: title then address. */
.periscope-contact-map__info h3 {
	margin: 10px 0 0;
	font-size: 16px;
	line-height: 1.3;
}

.periscope-contact-map__info p {
	margin: 6px 0 0;
	line-height: 1.5;
}

/* Keyless mode: the embed has no pin of its own; Newgrove's marker sits
   with its bottom centre on the map centre (where Google anchors a custom
   marker icon by default, as on Newgrove). The embed isn't draggable here,
   since the pin couldn't follow it; the whole map opens Google Maps. */
.periscope-contact-map--embed .periscope-contact-map__frame {
	pointer-events: none;
}

.periscope-contact-map__pin {
	position: absolute;
	top: calc(50% - 43px);
	left: calc(50% - 23px);
	width: 46px;
	height: 43px;
	max-width: none;
	pointer-events: none;
	z-index: 1;
}

.periscope-contact-map__open {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.periscope-contact-map__open:focus-visible {
	outline: 3px solid #30394f;
	outline-offset: -3px;
}

@media (max-width: 980px) {
	.periscope-contact-map {
		height: 350px;
	}
}

@media (max-width: 767px) {
	.periscope-contact-map {
		height: 220px;
	}
}

@media (max-width: 479px) {
	.periscope-contact-map {
		height: 200px;
	}
}
