/* ==========================================================================
   ACF Dual Office Maps — acf-dual-maps.css
   ========================================================================== */

/* ── Elementor container fix ──────────────────────────────────────────────── */
/* The shortcode widget sits inside an e-flex container which collapses height.
   Force the widget chain to be full-width block elements so the map height
   is reported correctly to the document flow. */
.elementor-widget-shortcode,
.elementor-widget-shortcode .elementor-widget-container,
.elementor-widget-shortcode .elementor-shortcode {
	width: 100%;
	display: block;
	align-self: stretch;
}

/* ── Layout: two maps edge-to-edge, 50/50 ────────────────────────────────── */
.adm-wrapper {
	display: flex;
	gap: 0;
	width: 100%;
	box-sizing: border-box;
}

.adm-map-col {
	flex: 1 1 50%;
	min-width: 0;
}

/* 5px dark blue divider split across both maps */
.adm-map-col:first-child {
	border-right: 5px solid #1d2b4e;
}
.adm-map-col:last-child {
	border-left: 5px solid #1d2b4e;
}

/* Remove divider when stacked on mobile */
@media (max-width: 768px) {
	.adm-map-col:first-child {
		border-right: none;
	}
	.adm-map-col:last-child {
		border-left: none;
	}
}

/* Stack vertically on mobile */
@media (max-width: 768px) {
	.adm-wrapper {
		flex-direction: column;
	}
	.adm-map-col {
		width: 100%;
	}
	/* Google Maps injects inline height which overrides aspect-ratio.
	   Use 100vw height (full width = square) to beat it instead. */
	.adm-map {
		height: 100vw !important;
		aspect-ratio: unset;
	}
}

/* ── Map canvas: 4:3 aspect ratio, responsive ────────────────────────────── */
.adm-map-col {
	position: relative;
}

.adm-map {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	background: #1d2b4e;
}

/* ── Zoom controls: black background, white +/- ─────────────────────── */

/* Style the zoom button container */
.adm-map .gmnoprint {
	top: 12px !important;
	left: 12px !important;
}

/* Hide Street View pegman */
.adm-map .gm-svpc,
.adm-map .gm-bundled-control-on-bottom {
	display: none !important;
}

/* Black background on each button */
.adm-map .gm-control-active {
	background-color: #000000 !important;
	border-radius: 2px !important;
}

/* Force the SVG/img icons to white */
.adm-map button.gm-control-active img,
.adm-map button.gm-control-active svg {
	filter: brightness(0) invert(1) !important;
}

/* Remove the white divider line between + and - buttons.
   Scope to the zoom control specifically via gm-bundled-control wrapper,
   NOT a blanket gmnoprint rule which also hits the copyright bar. */
.adm-map .gm-bundled-control .gmnoprint > div {
	background-color: #000000 !important;
}
.adm-map .gm-bundled-control .gmnoprint > div > div {
	background-color: #000000 !important;
	border: none !important;
	box-shadow: none !important;
}

/* Copyright and terms — transparent background, white text */
.adm-map .gm-style-cc,
.adm-map .gm-style-cc div,
.adm-map .gm-style-cc span,
.adm-map .gm-style-cc a,
.adm-map a[href^="https://maps.google.com"],
.adm-map a[href^="https://www.google.com/maps"] {
	background: transparent !important;
	background-color: transparent !important;
	color: #ffffff !important;
}

/* Hide keyboard shortcuts — target the button containing the ? shortcut link */
.adm-map a[href="https://maps.google.com/intl/en_us/help/maps/hiddenmaps/"],
.adm-map a[href*="keyboard"],
.adm-map button[aria-label="Keyboard shortcuts"] {
	display: none !important;
}
.adm-map button[aria-label="Keyboard shortcuts"] {
	display: none !important;
}

/* ── Info-window (popup) ──────────────────────────────────────────────────── */

.adm-map .gm-style .gm-style-iw-c {
	padding: 0 !important;
	border-radius: 6px !important;
	box-shadow: 0 4px 20px rgba(29, 43, 78, 0.25) !important;
	max-width: 260px !important;
}

.adm-map .gm-style .gm-style-iw-d {
	overflow: hidden !important;
	max-height: none !important;
}

/* ── Mobile: prevent Google capping the InfoWindow height ────────────────── */
@media (max-width: 600px) {
	.adm-map .gm-style .gm-style-iw-c {
		max-height: none !important;
	}
	.adm-map .gm-style .gm-style-iw-d {
		max-height: none !important;
		overflow: visible !important;
	}
	.adm-map .gm-style-iw {
		max-height: none !important;
	}
}

.adm-map .gm-style .gm-style-iw-t::after {
	background: #ffffff !important;
}

/* Hide the Google-generated close button entirely */
.adm-map button.gm-ui-hover-effect {
	display: none !important;
}

/* Hide the Google chrome header div that adds unwanted top whitespace */
.adm-map .gm-style .gm-style-iw-chr {
	display: none !important;
}

/* ── Popup buttons (close top-right, zoom top-left) ──────────────────────── */

/* Shared button base — fully specified to beat Elementor theme styles */
.adm-map .gm-style .adm-popup button.adm-popup-btn,
.adm-popup button.adm-popup-btn {
	position: absolute !important;
	top: 20px !important;
	width: 20px !important;
	height: 20px !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	border: none !important;
	border-radius: 2px !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	z-index: 10 !important;
	box-shadow: 0 1px 4px rgba(29, 43, 78, 0.18) !important;
	transition: background 0.15s !important;
	line-height: 1 !important;
	min-width: 0 !important;
	min-height: 0 !important;
}

.adm-map .gm-style .adm-popup button.adm-popup-btn:hover,
.adm-popup button.adm-popup-btn:hover {
	background: #f0f0f0 !important;
	background-color: #f0f0f0 !important;
}

/* Close — top right */
.adm-map .gm-style .adm-popup button.adm-popup-close,
.adm-popup button.adm-popup-close {
	right: 20px !important;
}

/* Zoom — top left */
.adm-map .gm-style .adm-popup button.adm-popup-zoom,
.adm-popup button.adm-popup-zoom {
	left: 20px !important;
}

/* Zoom button — Font Awesome icon in #1d2b4e */
.adm-map .gm-style .adm-popup button.adm-popup-zoom i,
.adm-popup button.adm-popup-zoom i {
	font-size: 10px !important;
	color: #1d2b4e !important;
	line-height: 1 !important;
}

/* Cross icon via data URI — immune to Google Maps iframe SVG suppression */
.adm-popup-close-icon {
	display: block;
	width: 10px;
	height: 10px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cline x1='1' y1='1' x2='9' y2='9' stroke='%231d2b4e' stroke-width='1.8' stroke-linecap='round'/%3E%3Cline x1='9' y1='1' x2='1' y2='9' stroke='%231d2b4e' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

/* ── Popup content ────────────────────────────────────────────────────────── */
.adm-popup {
	position: relative;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.5;
	color: #1d2b4e;
	font-weight: 400;
	min-width: 200px;
	max-width: 260px;
	padding: 15px 0 15px; /* 15px top and bottom; sides handled per-element */
}

/* Photo — flush to the 15px top padding, no extra gap */
.adm-popup-photo {
	padding: 0 15px;
	box-sizing: border-box;
	margin-bottom: 0;
}

.adm-popup-photo img {
	display: block;
	width: 100%;
	height: 173px !important; /* 4:3 of 230px usable width (260px popup - 15px padding each side) */
	object-fit: cover;
	border-radius: 4px;
}

/* City heading — same size as body text, bold */
h3.adm-popup-city {
	margin: 10px 15px 4px;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #1d2b4e !important;
	line-height: 1.5;
}

.adm-popup-address {
	margin: 0 15px 8px;
	color: #1d2b4e;
	font-weight: 400;
	font-size: 13px;
}

.adm-popup-contact {
	margin: 0 15px 4px;
	font-size: 13px;
	font-weight: 400;
	color: #1d2b4e;
}

.adm-label {
	font-weight: 700;
	color: #1d2b4e;
}

.adm-popup-findus {
	margin: 8px 15px 0;
}

.adm-popup-findus a {
	font-size: 13px;
	font-weight: 600;
	color: #af1062;
	text-decoration: none;
	border-bottom: 1px solid rgba(175, 16, 98, 0.3);
	padding-bottom: 1px;
	transition: border-color 0.2s;
}

.adm-popup-findus a:hover {
	border-color: #af1062;
}

/* ── Map style toggle ─────────────────────────────────────────────────────── */
.adm-style-toggle {
	display: flex;
	margin: 8px 8px 0 0;
	box-shadow: 0 1px 4px rgba(0,0,0,0.3);
	border-radius: 2px;
	overflow: hidden;
}

.adm-style-btn {
	background: #ffffff !important;
	background-color: #ffffff !important;
	border: none !important;
	border-left: 1px solid #e0e0e0 !important;
	padding: 0 6px !important;
	height: 22px !important;
	font-size: 10px !important;
	font-weight: 500 !important;
	color: #555555 !important;
	cursor: pointer !important;
	line-height: 22px !important;
	white-space: nowrap !important;
	min-width: 0 !important;
	min-height: 0 !important;
	border-radius: 0 !important;
	transition: background 0.15s !important;
}

.adm-style-btn:first-child {
	border-left: none !important;
}

.adm-style-btn:hover {
	background: #f5f5f5 !important;
	background-color: #f5f5f5 !important;
}

.adm-style-btn--active {
	background: #1d2b4e !important;
	background-color: #1d2b4e !important;
	color: #ffffff !important;
}

.adm-style-btn--active:hover {
	background: #1d2b4e !important;
	background-color: #1d2b4e !important;
}
