/*
 * Giltech Contact Card – Live Map – Elementor widget styles.
 * Everything is scoped under .gwcm-section so it cannot leak into the theme or other widgets.
 * Values reproduce giltech-contact-card-premium-live-map.html exactly.
 * Elementor style controls override them (their selectors are more specific).
 */

.gwcm-section,
.gwcm-section *,
.gwcm-section *::before,
.gwcm-section *::after {
	box-sizing: border-box;
}

.gwcm-section {
	--gwcm-ease: cubic-bezier(.2, .72, .2, 1);
	--gwcm-line: #E2E4E5;
	--gwcm-accent-a: #E30613;
	--gwcm-accent-b: #315FA8;
	--gwcm-glow: rgba(49, 95, 168, .06);
	--gwcm-panel-glow: rgba(227, 6, 19, .055);
	--gwcm-ov-top: rgba(10, 12, 14, .08);
	--gwcm-ov-bottom: rgba(10, 12, 14, .48);
	position: relative;
	width: 100%;
	padding: 46px clamp(14px, 4vw, 58px) 50px;
	overflow-x: clip;
	color: #17191D;
	font-family: "DM Sans", Manrope, Arial, sans-serif;
	line-height: normal;
	text-align: start;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

/* Soft blue glow in the top-right corner (kept as its own layer so the background control still works). */
.gwcm-section::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: radial-gradient(circle at 92% 8%, var(--gwcm-glow), transparent 22rem);
	pointer-events: none;
}

/* Edge-to-edge: CSS fallback, the script then sets exact pixel values. */
.gwcm-section.gwcm-fullwidth {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.gwcm-section .gwcm-inner {
	position: relative;
	z-index: 1;
	max-width: 1220px;
	margin: 0 auto;
}

/* ---------- Card ---------- */
.gwcm-section .gwcm-card {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--gwcm-line);
	border-radius: 22px;
	box-shadow: 0 22px 50px rgba(18, 20, 23, .08);
}

.gwcm-section .gwcm-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, var(--gwcm-accent-a), var(--gwcm-accent-b));
}

.gwcm-section.gwcm-no-accent .gwcm-card::before {
	display: none;
}

/* ---------- Intro ---------- */
.gwcm-section .gwcm-intro {
	padding: 34px 35px 32px 40px;
	border-right: 1px solid var(--gwcm-line);
}

.gwcm-section .gwcm-kicker {
	margin: 0 0 10px;
	color: #E30613;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	line-height: normal;
}

.gwcm-section .gwcm-title {
	margin: 0;
	padding: 0;
	color: #17191D;
	font-family: inherit;
	font-size: clamp(36px, 4.3vw, 54px);
	font-weight: 400;
	font-style: normal;
	line-height: .97;
	letter-spacing: -.05em;
	text-transform: none;
}

.gwcm-section .gwcm-intro-text {
	margin: 14px 0 24px;
	padding: 0;
	max-width: 600px;
	color: #74787D;
	font-size: 13px;
	line-height: 1.8;
}

/* ---------- Contact items ---------- */
.gwcm-section .gwcm-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 1px solid var(--gwcm-line);
}

.gwcm-section .gwcm-item {
	position: relative;
	display: block;
	padding: 17px 18px 16px 0;
	border-bottom: 1px solid var(--gwcm-line);
	color: inherit;
	text-decoration: none;
	box-shadow: none;
	transition: background .25s var(--gwcm-ease), padding-left .25s var(--gwcm-ease);
}

.gwcm-section .gwcm-item:nth-child(even) {
	padding-left: 18px;
	border-left: 1px solid var(--gwcm-line);
}

/* A single last item (odd count) uses the full row so the grid never looks broken. */
.gwcm-section .gwcm-item:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.gwcm-section a.gwcm-item:hover {
	background: #fafaf8;
	padding-left: 5px;
	color: inherit;
	text-decoration: none;
}

.gwcm-section a.gwcm-item:nth-child(even):hover {
	padding-left: 23px;
}

.gwcm-section .gwcm-item-label {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 7px;
	color: #96999D;
	font-size: 8px;
	letter-spacing: .11em;
	text-transform: uppercase;
	line-height: normal;
}

.gwcm-section .gwcm-dot {
	display: block;
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #E30613;
}

.gwcm-section .gwcm-item:nth-child(even) .gwcm-dot {
	background: #315FA8;
}

.gwcm-section .gwcm-item-value {
	display: block;
	color: #17191D;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

.gwcm-section .gwcm-item-sub {
	display: block;
	margin-top: 4px;
	color: #74787D;
	font-size: 9.5px;
	line-height: 1.5;
}

/* ---------- Map panel ---------- */
.gwcm-section .gwcm-right {
	position: relative;
	min-height: 100%;
	padding: 10px;
	background: #eef0ef;
}

.gwcm-section .gwcm-right::after {
	content: "";
	position: absolute;
	right: -75px;
	bottom: -85px;
	width: 170px;
	height: 170px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--gwcm-panel-glow), transparent 68%);
	pointer-events: none;
}

.gwcm-section .gwcm-map-wrap {
	position: relative;
	height: 100%;
	min-height: 100%;
	border-radius: 14px;
	overflow: hidden;
	background: #e7e9e7;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}

.gwcm-section .gwcm-map-frame {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	min-height: 365px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.gwcm-section .gwcm-map-img {
	object-fit: cover;
	object-position: center;
}

.gwcm-section.gwcm-soft .gwcm-map-iframe {
	filter: saturate(.72) contrast(.96);
}

/* Dark gradient at the bottom keeps the white text readable. */
.gwcm-section .gwcm-map-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, var(--gwcm-ov-top), transparent 30%, var(--gwcm-ov-bottom) 100%);
}

.gwcm-section.gwcm-no-overlay .gwcm-map-wrap::after {
	display: none;
}

/* ---------- Top labels ---------- */
.gwcm-section .gwcm-map-top {
	position: absolute;
	top: 16px;
	left: 16px;
	right: 16px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.gwcm-section .gwcm-badge {
	position: absolute;
	right: 19px;
	top: 18px;
	z-index: 2;
	padding: 6px 9px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #e0e2e3;
	color: #73777c;
	font-size: 7px;
	letter-spacing: .1em;
	text-transform: uppercase;
	line-height: normal;
}

.gwcm-section .gwcm-live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .9);
	color: #53575c;
	font-size: 7px;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: normal;
	box-shadow: 0 7px 18px rgba(0, 0, 0, .08);
}

.gwcm-section .gwcm-live-dot {
	display: block;
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #1a9a62;
	box-shadow: 0 0 0 4px rgba(26, 154, 98, .1);
}

/* ---------- Bottom text + button ---------- */
.gwcm-section .gwcm-map-bottom {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	z-index: 3;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 18px;
	color: #fff;
}

.gwcm-section .gwcm-panel-kicker {
	margin: 0 0 5px;
	color: rgba(255, 255, 255, .72);
	font-size: 8px;
	letter-spacing: .16em;
	text-transform: uppercase;
	line-height: normal;
}

.gwcm-section .gwcm-map-title {
	margin: 0 0 5px;
	padding: 0;
	color: #fff;
	font-family: inherit;
	font-size: 24px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.05;
	letter-spacing: -.04em;
	text-transform: none;
}

.gwcm-section .gwcm-map-text {
	margin: 0;
	padding: 0;
	max-width: 300px;
	color: rgba(255, 255, 255, .78);
	font-size: 9.5px;
	line-height: 1.55;
}

.gwcm-section .gwcm-map-link {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 37px;
	padding: 0 13px;
	border-radius: 9px;
	background: #fff;
	color: #17191D;
	font-size: 8px;
	line-height: normal;
	letter-spacing: .07em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: none;
	transition: transform .22s var(--gwcm-ease), background .22s, color .22s;
}

.gwcm-section a.gwcm-map-link:hover {
	background: #E30613;
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
}

/* ---------- Tap-to-activate (optional) ---------- */
.gwcm-section.gwcm-lock:not(.gwcm-map-active) .gwcm-map-iframe {
	pointer-events: none;
}

/* In the Elementor editor the map must never swallow clicks meant for selecting the widget. */
.elementor-editor-active .gwcm-section .gwcm-map-iframe {
	pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 850px) {
	.gwcm-section .gwcm-card {
		grid-template-columns: 1fr;
	}

	.gwcm-section .gwcm-intro {
		padding-right: 30px;
		border-right: 0;
		border-bottom: 1px solid var(--gwcm-line);
	}

	.gwcm-section .gwcm-right {
		min-height: 390px;
	}

	.gwcm-section .gwcm-map-wrap {
		min-height: 360px;
	}
}

@media (max-width: 560px) {
	.gwcm-section {
		padding: 30px 12px 35px;
	}

	.gwcm-section .gwcm-card {
		border-radius: 17px;
	}

	.gwcm-section .gwcm-intro {
		padding: 24px 20px;
	}

	.gwcm-section .gwcm-title {
		font-size: 37px;
	}

	.gwcm-section .gwcm-intro-text {
		font-size: 11.5px;
		line-height: 1.7;
	}

	.gwcm-section .gwcm-list {
		grid-template-columns: 1fr;
	}

	.gwcm-section .gwcm-item,
	.gwcm-section .gwcm-item:nth-child(even) {
		padding: 14px 0;
		border-left: 0;
	}

	.gwcm-section a.gwcm-item:hover,
	.gwcm-section a.gwcm-item:nth-child(even):hover {
		padding-left: 5px;
	}

	.gwcm-section .gwcm-right {
		min-height: 330px;
		padding: 7px;
	}

	.gwcm-section .gwcm-map-wrap {
		min-height: 315px;
	}

	.gwcm-section .gwcm-map-frame {
		min-height: 315px;
	}

	.gwcm-section .gwcm-badge {
		right: 14px;
		top: 14px;
	}

	.gwcm-section .gwcm-map-bottom {
		display: block;
		left: 14px;
		right: 14px;
		bottom: 14px;
	}

	.gwcm-section .gwcm-map-title {
		font-size: 20px;
	}

	.gwcm-section .gwcm-map-link {
		width: 100%;
		margin-top: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gwcm-section .gwcm-item,
	.gwcm-section .gwcm-map-link {
		transition: none;
	}

	.gwcm-section a.gwcm-map-link:hover {
		transform: none;
	}
}
