/* ============================================================
   DTC Office Map Widget
   ============================================================ */

.dtc-office-map {
	width: 100%;
	/* Contain Leaflet's internal z-index stack (controls go up to 1000) so it
	   can never bubble up and compete with page-level UI like the sticky nav. */
	isolation: isolate;
}

/* Layout: sidebar + map side by side */
.dtc-office-map__layout {
	display: flex;
	align-items: stretch;
	border-top: 1px solid #090F29;
	border-bottom: 1px solid #090F29;
}

/* ============================================================
   Sidebar
   ============================================================ */

.dtc-office-map__sidebar {
	flex-shrink: 0;
	width: 25%;
	border-left: 1px solid #090F29;
	border-right: 1px solid #090F29;
	display: flex;
	flex-direction: column;
}

/* "All Offices" reset button — scoped under .dtc-office-map for specificity over Elementor */
.dtc-office-map .dtc-office-sidebar__all {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	width: 100%;
	padding: 16px 28px 16px 26px;
	background: #0e1d2e !important;
	background-image: none !important;
	border: none !important;
	border-radius: 0 !important;
	border-left: 3px solid transparent !important;
	border-bottom: 1px solid rgba(64, 148, 209, 0.12) !important;
	box-shadow: none !important;
	font-family: 'Instrument Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 4px;
	color: rgba(255, 255, 255, 0.35) !important;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dtc-office-map .dtc-office-sidebar__all:hover {
	background: #132535 !important;
	color: rgba(255, 255, 255, 0.8) !important;
}

.dtc-office-map .dtc-office-sidebar__all:active {
	background: #1a3550 !important;
	color: #ffffff !important;
}

.dtc-office-map .dtc-office-sidebar__all--active {
	background: #142236 !important;
	color: #ffffff !important;
	border-left-color: #4094d1 !important;
}

/* Individual office buttons — scoped for specificity */
.dtc-office-map .dtc-office-sidebar__item {
	flex: 1;
	display: flex;
	align-items: center;
	width: 100%;
	padding: 0 28px 0 26px;
	background: #0e1d2e !important;
	background-image: none !important;
	border: none !important;
	border-radius: 0 !important;
	border-left: 3px solid transparent !important;
	border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
	box-shadow: none !important;
	font-family: 'Instrument Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 4px;
	color: rgba(255, 255, 255, 0.4) !important;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dtc-office-map .dtc-office-sidebar__item:hover {
	background: #132535 !important;
	color: rgba(255, 255, 255, 0.8) !important;
}

.dtc-office-map .dtc-office-sidebar__item:active {
	background: #1a3550 !important;
	color: #ffffff !important;
}

.dtc-office-map .dtc-office-sidebar__item--active {
	background: #142236 !important;
	color: #ffffff !important;
	border-left-color: #4094d1 !important;
}

/* ============================================================
   Map canvas
   ============================================================ */

.dtc-office-map__canvas {
	flex: 1;
	height: 540px;
	background: #0a1520;
	min-width: 0;
}

/* Lighten the tile layer only */
.dtc-office-map__canvas .leaflet-tile-pane {
	filter: brightness(1.6);
}

/* Zoom controls */
.dtc-office-map__canvas .leaflet-control-zoom a {
	background: #142236;
	color: #4094d1;
	border-color: #4094d1;
}

.dtc-office-map__canvas .leaflet-control-zoom a:hover {
	background: rgba(64, 148, 209, 0.15);
	color: #ffffff;
}

/* ============================================================
   Custom markers
   ============================================================ */

.dtc-map-marker {
	background: transparent;
	border: none;
}

.dtc-map-marker__dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #4094d1;
	border: 2px solid rgba(255, 255, 255, 0.7);
	box-shadow: 0 0 8px rgba(64, 148, 209, 0.7);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	cursor: pointer;
}

.dtc-map-marker--active .dtc-map-marker__dot {
	background: #ffffff;
	border-color: #4094d1;
	box-shadow: 0 0 18px rgba(64, 148, 209, 0.9), 0 0 40px rgba(64, 148, 209, 0.4);
	transform: scale(1.35);
}

/* ============================================================
   Leaflet popup - dark theme override
   ============================================================ */

.dtc-leaflet-popup .leaflet-popup-content-wrapper {
	background: #0e1d2e;
	border: 1px solid #4094d1;
	border-radius: 12px;
	box-shadow: 0 0 28px rgba(64, 148, 209, 0.45);
	padding: 0;
}

.dtc-leaflet-popup .leaflet-popup-content {
	margin: 0;
	padding: 0;
	line-height: 1;
}

.dtc-leaflet-popup .leaflet-popup-tip-container {
	margin-top: -1px;
}

.dtc-leaflet-popup .leaflet-popup-tip {
	background: #4094d1;
	box-shadow: none;
}

.dtc-leaflet-popup .leaflet-popup-close-button {
	color: rgba(255, 255, 255, 0.45);
	top: 10px;
	right: 12px;
	font-size: 20px;
	line-height: 1;
	padding: 0;
}

.dtc-leaflet-popup .leaflet-popup-close-button:hover {
	color: #ffffff;
	background: transparent;
}

/* Popup content */
.dtc-map-popup {
	padding: 20px 36px 20px 20px;
	min-width: 200px;
}

.dtc-map-popup__label {
	font-family: 'Instrument Sans', sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #ffffff;
	margin-bottom: 8px;
}

.dtc-map-popup__company {
	font-family: 'Instrument Sans', sans-serif;
	font-size: 11px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 10px;
	line-height: 1.4;
}

.dtc-map-popup__address {
	font-family: 'Instrument Sans', sans-serif;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.6;
	margin-bottom: 12px;
}

.dtc-map-popup__phone {
	display: block;
	font-family: 'Instrument Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #4094d1;
	text-decoration: none;
	transition: color 0.2s ease;
}

.dtc-map-popup__phone:hover {
	color: #6ec1e4;
}

/* ============================================================
   Mobile dropdown (hidden on desktop)
   ============================================================ */

.dtc-office-map__mobile-nav {
	display: none;
	position: relative;
	border-bottom: 1px solid #090F29;
}

.dtc-office-map__select {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	padding: 18px 52px 18px 26px;
	background: #0e1d2e;
	border: none;
	border-left: 3px solid #4094d1;
	border-radius: 0;
	outline: none;
	color: #ffffff;
	font-family: 'Instrument Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 4px;
	cursor: pointer;
}

.dtc-office-map__select-caret {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	width: 14px;
	height: 9px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
	.dtc-office-map__mobile-nav {
		display: block;
	}

	.dtc-office-map__sidebar {
		display: none;
	}

	.dtc-office-map__layout {
		border: none;
	}

	.dtc-office-map__canvas {
		height: 380px;
		width: 100%;
	}
}
