/* Delivery Map block — ported from the delivery-page mockup + Figma. */

/* ── Page heading ─────────────────────────────────────────────────────────── */
.wdm-delivery__heading {
	margin: 0 0 20px 0;
}

.wdm-delivery__title {
	margin: 0 0 7px 0;
	line-height: 54px;
	font-size: 36px;
	font-weight: 700;
	color: #323232;
	text-transform: uppercase;
}

.wdm-delivery__subtitle {
	margin: 0;
	line-height: 24px;
	font-size: 16px;
	color: rgba(37, 31, 31, 0.8);
}

/* ── Map + schedules layout ───────────────────────────────────────────────── */
.wdm-delivery-map {
	display: flex;
	gap: 0 20px;
}

.wdm-delivery-map__map {
	display: none;
	align-items: center;
	justify-content: center;
	flex-grow: 1;
	padding: 47px 32px;
	min-height: 536px;
	background-color: #fff;
	pointer-events: auto; /* receive hover/click so map zones are interactive (delivery-map.js) */
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	border-radius: 8px;
}

.wdm-delivery-map__holder {
	position: relative;
	transform: scale(1.25); /* map 25% larger; overlays + hit-testing scale with it */
	transform-origin: center;
}

.wdm-delivery-map__main img {
	display: block;
	max-width: 100%;
	height: auto;
}

.wdm-delivery-map__holder > img {
	position: absolute;
	opacity: 0;
	visibility: hidden;
	z-index: 1;
}

.wdm-delivery-map__holder > img.lv-1 { left: 79px; top: 39px; }
.wdm-delivery-map__holder > img.lv-2 { top: 0; left: 213px; }
.wdm-delivery-map__holder > img.lv-3 { top: 130px; left: 0; }
.wdm-delivery-map__holder > img.lv-4 { top: 39px; left: -2px; }
.wdm-delivery-map__holder > img.lv-5 { right: 0; bottom: 0; }
.wdm-delivery-map__holder > img.riga { left: 203px; top: 113px; }

.wdm-delivery-map__holder > img.show {
	opacity: 1;
	visibility: visible;
}

/* ── Schedules panel ──────────────────────────────────────────────────────── */
.wdm-delivery-map__schedules {
	flex-shrink: 0;
	width: 396px;
	padding: 20px 20px 8px 20px;
	background-color: #fff;
	border-radius: 8px;
}

.wdm-delivery-map__schedules-title {
	margin: 0 0 12px 0;
	line-height: 28px;
	font-size: 20px;
	font-weight: 700;
	color: #20201F;
	text-transform: uppercase;
}

.wdm-delivery-map__schedules-list {
	display: flex;
	flex-direction: column;
}

.wdm-schedule-item {
	border-top: 1px solid #E6E6E6;
}

.wdm-schedule-item__toggle {
	position: relative;
	display: block;
	width: 100%;
	padding: 12px 40px 12px 0;
	background: none;
	border: none;
	line-height: 24px;
	font-weight: 600;
	font-size: 16px;
	color: #20201F;
	letter-spacing: 0;
	text-align: left;
	cursor: pointer;
}

.wdm-schedule-item__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	width: 24px;
	height: 24px;
	background: url('../images/icons/schedule-item-arrow.svg') center center no-repeat;
	filter: grayscale(100%) brightness(0.6);
	transform: translateY(-50%);
	transition: all 0.3s ease-in-out;
}

.wdm-schedule-item__body {
	display: none;
	padding: 0 0 12px 0;
}

.wdm-schedule-item__body-text {
	margin: 0;
	line-height: 24px;
	font-size: 16px;
	color: #4C4C4D;
}

.wdm-schedule-item__body-text strong {
	font-weight: 600;
	color: #323232;
}

.wdm-schedule-item__details {
	display: flex;
	flex-direction: column;
	gap: 12px 0;
}

.wdm-schedule-item__details p {
	margin: 0;
	line-height: 24px;
	font-size: 16px;
	color: #4C4C4D;
}

.wdm-schedule-item__details-heading {
	display: flex;
	align-items: center;
	gap: 0 4px;
	margin: 0 0 4px 0;
	line-height: 20px;
	font-weight: 600;
	font-size: 14px;
	color: #323232;
}

.wdm-schedule-item__details-heading::before {
	content: "";
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.wdm-schedule-item__details-heading--location::before {
	background: url('../images/icons/schedule-item__details-heading--location-icon.svg') center center no-repeat;
}

.wdm-schedule-item__details-heading--time::before {
	background: url('../images/icons/schedule-item__details-heading--time-icon.svg') center center no-repeat;
}

.wdm-schedule-item--open .wdm-schedule-item__toggle::after {
	filter: none;
	transform: translateY(-50%) rotate(-180deg);
}

.wdm-schedule-item--open .wdm-schedule-item__body {
	display: block;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media screen and (min-width: 1100px) {
	.wdm-delivery-map {
		align-items: flex-start;
	}
}

@media screen and (min-width: 621px) {
	.wdm-delivery-map__map {
		display: flex;
	}
}

@media screen and (max-width: 1099px) {
	.wdm-delivery-map {
		flex-direction: column;
		gap: 20px 0;
	}

	.wdm-delivery-map__map {
		min-height: 400px;
	}

	.wdm-delivery-map__schedules {
		width: 100%;
	}
}

@media screen and (max-width: 991px) {
	.wdm-delivery__title {
		line-height: 40px;
		font-size: 28px;
	}
}

@media screen and (max-width: 575px) {
	.wdm-delivery-map__schedules-title {
		font-size: 18px;
	}
}
