/* ===== MYAC Map Widget — Frontend ===== */

.myac-map-widget-container,
.myac-map-widget-container * {
	box-sizing: border-box;
	font-family: 'Inter', sans-serif;
}

.myac-map-widget-container {
	display: flex;
	width: 100%;
	max-width: 1380px;
	margin: 0 auto;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
}

.myac-widget-map {
	flex: 2;
	height: 690px;
	width: 100%;
	min-height: 400px;
	z-index: 1;
}

/* ---- Sidebar (cream card + yellow bottom border) ---- */
.myac-widget-sidebar {
	flex: 1;
	padding: 24px 26px;
	background-color: #fdf9ed;
	border-bottom: 5px solid #fdbc25;
	max-height: 690px;
	overflow-y: auto;
}

.myac-widget-sidebar h2.myac-sidebar-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px 0;
	font-family: 'Outfit', sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: #000;
	text-transform: none;
	letter-spacing: 0;
}

.myac-title-icon {
	flex-shrink: 0;
}

.myac-widget-location-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.myac-widget-location-item {
	margin: 0 0 18px 0;
	padding: 0;
	border: none;
}

.myac-widget-location-item:last-child {
	margin-bottom: 0;
}

/* Country / region heading */
.myac-widget-location-item h3.myac-loc-title {
	margin: 0 0 6px 0;
	font-family: 'Outfit', sans-serif;
	font-size: 19px;
	font-weight: 600;
	color: #fdbc25;
	cursor: pointer;
	line-height: 1.3;
}

.myac-widget-location-item h3.myac-loc-title:hover {
	text-decoration: underline;
}

.myac-loc-desc {
	margin: 0 0 6px 0;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #000;
	line-height: 1.5;
}

.myac-loc-desc p {
	margin: 0 0 6px 0;
}

/* Address list (pin + text) */
.myac-address-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.myac-address-item {
	position: relative;
	margin: 0;
	padding: 7px 8px 7px 34px;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 400;
	font-style: normal;
	color: #000;
	line-height: 1.5;
	cursor: pointer;
	border-radius: 6px;
	transition: background 0.2s;
}

.myac-address-item::before {
	content: '';
	position: absolute;
	left: 8px;
	top: 9px;
	width: 18px;
	height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fdbc25' d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.myac-address-item:hover {
	background: #fbefc9;
}

.myac-address-item.myac-active {
	background: #fbefc9;
	font-weight: 500;
}

/* ---- Map: popups, child pins, layer control ---- */
.myac-leaflet-popup b {
	font-family: 'Outfit', sans-serif;
	font-weight: 600;
	color: #000;
}

.myac-leaflet-popup span {
	font-family: 'Inter', sans-serif;
	color: #000;
}

.myac-custom-pin {
	background: transparent;
	border: none;
}

.myac-custom-pin svg {
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

/* Map | Satellite toggle */
.myac-view-toggle {
	display: flex;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.myac-view-toggle .myac-view-btn {
	margin: 0;
	padding: 8px 16px;
	border: none;
	border-radius: 0;
	background: #fff;
	color: #000;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s;
}

.myac-view-toggle .myac-view-btn + .myac-view-btn {
	border-left: 1px solid #e5e5e5;
}

.myac-view-toggle .myac-view-btn:hover {
	background: #fbefc9;
}

.myac-view-toggle .myac-view-btn.myac-view-active {
	background: #fdbc25;
	color: #000;
	font-weight: 600;
}

/* ---- Tablet ---- */
@media (max-width: 992px) {
	.myac-map-widget-container {
		flex-direction: column;
	}
	.myac-widget-map {
		height: 400px;
		min-height: 350px;
	}
	.myac-widget-sidebar {
		max-height: none;
	}
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
	.myac-widget-map {
		height: 350px;
		min-height: 300px;
	}
	.myac-widget-sidebar {
		padding: 20px 16px;
	}
}
