/* Dazzelit Branch Locator — scoped to beat Elementor/theme resets */

.dz-bl {
	--dz-bl-accent: #fdaa0f;
	--dz-bl-green: #008b74;
	--dz-bl-map-default: #dddede;
	--dz-bl-map-has-branches: #ffe8cc;
	--dz-bl-text: #56585b;
	--dz-bl-text-muted: #9a9b9d;
	--dz-bl-select-bg: #ffffff;
	--dz-bl-select-text: #56585b;
	--dz-bl-radius: 14px;
	box-sizing: border-box;
	color: var(--dz-bl-text);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.65;
}

.dz-bl *,
.dz-bl *::before,
.dz-bl *::after {
	box-sizing: border-box;
}

/* Elementor / theme overrides */
.elementor-widget-shortcode .dz-bl,
.elementor-widget-text-editor .dz-bl,
.elementor-element .dz-bl {
	color: var(--dz-bl-text);
}

.elementor-widget-shortcode .dz-bl p,
.elementor-widget-shortcode .dz-bl a,
.elementor-widget-shortcode .dz-bl span,
.elementor-element .dz-bl p,
.elementor-element .dz-bl a,
.elementor-element .dz-bl span {
	font-family: inherit;
}

.elementor-widget-shortcode .dz-bl a:not([href]),
.elementor-element .dz-bl a:not([href]) {
	text-decoration: none;
}

/* Map left, panel right */
.dz-bl__layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(20px, 3vw, 48px);
	align-items: start;
	direction: ltr;
}

.dz-bl__map-wrap,
.dz-bl__panel {
	direction: rtl;
}

@media (max-width: 900px) {
	.dz-bl__layout {
		grid-template-columns: 1fr;
	}
}

/* Map */
.dz-bl__map-wrap {
	position: relative;
}

.dz-bl__map svg {
	width: 100%;
	height: auto;
	display: block;
}

.dz-bl__map .dz-province-path {
	fill: var(--dz-bl-map-default);
	stroke: #fff;
	stroke-linecap: round;
	stroke-linejoin: round;
	cursor: pointer;
	transition: fill 0.2s ease;
}

.dz-bl__map .dz-province-path.has-branches {
	fill: var(--dz-bl-map-has-branches);
}

.dz-bl__map .dz-province-path:hover,
.dz-bl__map .dz-province-path.is-active {
	fill: var(--dz-bl-accent);
}

.dz-bl__map-label {
	position: absolute;
	transform: translate(-50%, -100%);
	background: #fff;
	color: var(--dz-bl-select-text);
	font-size: 13px;
	font-weight: bold;
	padding: 7px 14px;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
	pointer-events: none;
	white-space: nowrap;
	z-index: 2;
}

.dz-bl__map-label::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -7px;
	transform: translateX(-50%);
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-top: 7px solid #fff;
}

/* Panel */
.dz-bl__panel {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-top: 0;
}

.dz-bl__province-summary {
	margin: 0;
	font-size: 14px;
	line-height: 1.8;
	text-align: right;
}

.dz-bl__province-summary-muted {
	color: var(--dz-bl-text-muted);
}

.dz-bl__province-summary-name,
.dz-bl__province-summary-count {
	color: var(--dz-bl-green);
	font-weight: bold;
}

.dz-bl__province-summary-name {
	margin-inline-start: 4px;
}

.dz-bl__select-label {
    display: inline-block;
    font-size: 13px;
    color: var(--dz-bl-text-muted);
    background: #fff;
    padding: 0 5px;
    z-index: 1;
    position: absolute;
    right: 20px;
    top: -10px;
}

.dz-bl__select-wrap {
	position: relative;
	margin-bottom: 4px;
}

.dz-bl__select-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	line-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dz-bl__select-icon-svg {
	width: 16px;
	height: 16px;
	display: block;
}

.dz-bl__select {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
	background: var(--dz-bl-select-bg);
	background-image: none;
	color: var(--dz-bl-select-text);
	border: 1px solid #d9d9d9;
	border-radius: 10px;
	padding: 12px 16px 12px 36px;
	font-size: 14px;
	font-family: inherit;
	font-weight: bold;
	line-height: 1.4;
	cursor: pointer;
	box-shadow: none;
	min-height: unset;
	height: auto;
}

.dz-bl__select-wrap::after {
	content: none;
}

/* Gallery */
.dz-bl__gallery {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	background: #eee;
	min-height: 220px;
	max-height: 333px;
	aspect-ratio: 16 / 10;
	margin-bottom: 4px;
	touch-action: pan-y pinch-zoom;
	user-select: none;
	-webkit-user-select: none;
}

.dz-bl__gallery-track {
	display: flex;
	width: 100%;
	height: 100%;
	direction: ltr;
	transition: transform 0.45s ease;
	will-change: transform;
}

.dz-bl__gallery-slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	pointer-events: none;
	-webkit-user-drag: none;
	user-drag: none;
}

.dz-bl__gallery-nav {
	position: absolute;
	top: 50%;
	width: 48px;
	height: 86%;
	max-height: 200px;
	border: 0;
	outline: 0;
	border-radius: 0;
	background: none;
	background-image: none;
	color: inherit;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	padding: 0;
	margin: 0;
	font-size: 0;
	line-height: 0;
	box-shadow: none;
	transition: opacity 0.15s ease;
	user-select: none;
}

.dz-bl__gallery-nav:hover {
	opacity: 0.92;
}

.dz-bl__gallery-nav--prev {
	right: 0;
	transform: translateY(-50%);
}

.dz-bl__gallery-nav--next {
	left: 0;
	transform: translateY(-50%) scaleX(-1);
}

.dz-bl__gallery-arrow {
	width: 48px;
	height: 100%;
	display: block;
}

.dz-bl__gallery-dots {
	position: absolute;
	bottom: 12px;
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 2;
}

.dz-bl__gallery-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	margin: 0;
	background: rgba(255, 255, 255, 0.75);
	cursor: pointer;
	font-size: 0;
	line-height: 0;
	box-shadow: none;
	transition: width 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
}

.dz-bl__gallery-dot.is-active {
	width: 22px;
	border-radius: 999px;
	background: var(--dz-bl-accent);
}

/* Details block */
.dz-bl__details {
	display: flex;
	flex-direction: column;
	margin-top: 0;
}

.dz-bl__details-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid #eee;
}

.dz-bl__details-row:first-child {
	border-top: 0;
	padding-top: 0;
}

.dz-bl__details-row--address {
	align-items: center;
}

.dz-bl__details-row--contact,
.dz-bl__details-row--email {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 20px;
	align-items: center;
}

.dz-bl__address-group {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

.dz-bl__phone-group,
.dz-bl__hours-group,
.dz-bl__email-group {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: nowrap;
}

.dz-bl__phone-group {
	justify-content: flex-start;
}

.dz-bl__hours-group {
	justify-content: flex-end;
}

.dz-bl__email-group {
	grid-column: 1;
	justify-content: flex-start;
}

.dz-bl__details-col-empty {
	display: block;
}

.dz-bl__details-row--contact .dz-bl__detail-value--phone {
	direction: ltr;
	unicode-bidi: embed;
}

.dz-bl__details-row--email .dz-bl__detail-value--email {
	text-align: inherit;
}

/* Route pill */
.dz-bl__route-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	flex-shrink: 0;
	background: var(--dz-bl-accent);
	background-image: none;
	color: #fff;
	text-decoration: none;
	font-weight: bold;
	font-size: 12px;
	line-height: 1;
	padding: 9px 16px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: none;
	margin: 0;
	min-height: unset;
	width: auto;
	height: auto;
	transition: filter 0.15s ease, opacity 0.15s ease;
	user-select: none;
	white-space: nowrap;
}

.dz-bl__route-icon {
	width: 16px;
	height: 16px;
	display: block;
	flex-shrink: 0;
}

.dz-bl__route-action-text {
	color: #fff;
	font-size: 12px;
	font-weight: bold;
	line-height: 1;
}

.dz-bl__route-action:hover {
	filter: brightness(1.06);
}

.dz-bl__route-action.is-disabled {
	opacity: 0.45;
	pointer-events: none;
	cursor: default;
}

.dz-bl__detail-icon {
	flex-shrink: 0;
	line-height: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.dz-bl__detail-icon-svg {
	width: 24px;
	height: 24px;
	display: block;
}

.dz-bl__detail-label {
	color: var(--dz-bl-text);
	white-space: nowrap;
	font-size: 13px;
	font-weight: bold;
}

.dz-bl__detail-value,
.dz-bl__detail-text {
	margin: 0;
	padding: 0;
	color: var(--dz-bl-text);
	font-size: 13px;
	font-weight: bold;
	line-height: 1.7;
}

.dz-bl__detail-text {
	flex: 1;
	min-width: 0;
	text-align: right;
}

.dz-bl__detail-value--phone,
.dz-bl__detail-value--email {
	cursor: pointer;
	color: var(--dz-bl-text);
}

.dz-bl__detail-value--phone:hover,
.dz-bl__detail-value--email:hover {
	color: var(--dz-bl-green);
}

.dz-bl.is-empty .dz-bl__gallery,
.dz-bl.is-empty .dz-bl__details {
	opacity: 0.35;
	pointer-events: none;
}

@media (max-width: 600px) {
	.dz-bl__details-row--contact,
	.dz-bl__details-row--email {
		grid-template-columns: 1fr;
	}

	.dz-bl__details-col-empty {
		display: none;
	}

	.dz-bl__details-row--address {
		flex-direction: column;
	}

	.dz-bl__route-action {
		width: 100% !important;
	}

	.dz-bl__hours-group {
	    justify-content: space-between;
	}

	.dz-bl__details-row--contact .dz-bl__detail-value--phone, .dz-bl__details-row--email .dz-bl__detail-value--email {
		margin-right: auto;
	}
}
