/* АГРОМРЕЖА+ — мапа тизер (Elementor kit: #1F365C, #3D5D92, #FFB537) */
.agmz-map-teaser {
	--agmz-navy: #1F365C;
	--agmz-blue: #3D5D92;
	--agmz-blue-soft: #82AAEC;
	--agmz-accent: #FFB537;
	--agmz-ink: #1F365C;
	--agmz-muted: #54595F;
	--agmz-line: rgba(31, 54, 92, 0.12);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	min-height: 0;
	color: var(--agmz-ink);
	background:
		radial-gradient(900px 380px at 82% 40%, rgba(130, 170, 236, 0.20), transparent 58%),
		radial-gradient(520px 260px at 18% 78%, rgba(255, 181, 55, 0.14), transparent 60%),
		linear-gradient(135deg, #f5f7fb 0%, #ffffff 48%, #f0f3f8 100%);
}

.agmz-map-teaser::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	height: 3px;
	background: linear-gradient(90deg, transparent 8%, var(--agmz-accent) 35%, #ffc85a 50%, var(--agmz-accent) 65%, transparent 92%);
	opacity: 0.85;
	pointer-events: none;
}

.agmz-map-teaser::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.28;
	background-image:
		linear-gradient(var(--agmz-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--agmz-line) 1px, transparent 1px);
	background-size: 42px 42px;
	mask-image: radial-gradient(ellipse 70% 70% at 72% 45%, #000 20%, transparent 75%);
	pointer-events: none;
}

.agmz-map-teaser__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(16px, 3vw, 36px);
	align-items: center;
	width: min(1100px, calc(100% - 36px));
	margin: 0 auto;
	padding: clamp(22px, 3vw, 36px) 0;
}

.agmz-map-teaser__copy {
	max-width: 560px;
	animation: agmz-teaser-rise 0.7s ease both;
}

.agmz-map-teaser__brand {
	display: inline-block;
	margin: 0 0 10px;
	padding-bottom: 6px;
	font-size: clamp(18px, 2.2vw, 24px);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--agmz-navy);
	border-bottom: 3px solid var(--agmz-accent);
}

.agmz-map-teaser__title {
	margin: 0 0 10px;
	font-size: clamp(20px, 2.4vw, 28px);
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -0.015em;
	color: var(--agmz-ink);
}

.agmz-map-teaser__text {
	margin: 0 0 18px;
	font-size: clamp(14px, 1.3vw, 15.5px);
	line-height: 1.5;
	color: var(--agmz-muted);
	max-width: 42ch;
}

.agmz-map-teaser__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

.agmz-map-teaser__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 10px;
	background: linear-gradient(180deg, var(--agmz-blue) 0%, var(--agmz-navy) 100%);
	color: #fff !important;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 8px 20px rgba(31, 54, 92, 0.22);
	border-bottom: 3px solid var(--agmz-accent);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.agmz-map-teaser__btn:hover,
.agmz-map-teaser__btn:focus {
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(31, 54, 92, 0.30);
	color: #fff !important;
}

.agmz-map-teaser__btn svg {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	color: var(--agmz-accent);
}

.agmz-map-teaser__visual {
	position: relative;
	min-height: 0;
	animation: agmz-teaser-rise 0.85s 0.08s ease both;
}

.agmz-map-teaser__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	max-width: 320px;
	margin-left: auto;
}

.agmz-map-teaser__glow {
	position: absolute;
	inset: 10% 8% 14% 10%;
	border-radius: 50%;
	background:
		radial-gradient(circle at 45% 40%, rgba(255, 181, 55, 0.16), transparent 42%),
		radial-gradient(circle, rgba(130, 170, 236, 0.26), rgba(61, 93, 146, 0.10), transparent 70%);
	filter: blur(8px);
	animation: agmz-teaser-breathe 4.5s ease-in-out infinite;
	pointer-events: none;
}

.agmz-map-teaser__map {
	position: relative;
	z-index: 1;
	width: 100%;
	height: auto;
	display: block;
	overflow: visible;
	filter: drop-shadow(0 12px 22px rgba(31, 54, 92, 0.16));
	pointer-events: none;
}

.agmz-map-teaser__map .agmz-pin__bob {
	transform-box: fill-box;
	transform-origin: center bottom;
	animation: agmz-pin-1 8s ease-in-out infinite;
}

.agmz-map-teaser__map .agmz-pin:nth-of-type(1) .agmz-pin__bob { animation-name: agmz-pin-1; }
.agmz-map-teaser__map .agmz-pin:nth-of-type(2) .agmz-pin__bob { animation-name: agmz-pin-2; }
.agmz-map-teaser__map .agmz-pin:nth-of-type(3) .agmz-pin__bob { animation-name: agmz-pin-3; }
.agmz-map-teaser__map .agmz-pin:nth-of-type(4) .agmz-pin__bob { animation-name: agmz-pin-4; }
.agmz-map-teaser__map .agmz-pin:nth-of-type(5) .agmz-pin__bob { animation-name: agmz-pin-5; }
.agmz-map-teaser__map .agmz-pin:nth-of-type(6) .agmz-pin__bob { animation-name: agmz-pin-6; }
.agmz-map-teaser__map .agmz-pin:nth-of-type(7) .agmz-pin__bob { animation-name: agmz-pin-7; }

.agmz-map-teaser__map .pin-ring {
	transform-box: fill-box;
	transform-origin: center;
	animation: agmz-pin-ring 8s ease-out infinite;
}

@keyframes agmz-teaser-rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes agmz-teaser-breathe {
	0%, 100% { transform: scale(1); opacity: 0.85; }
	50% { transform: scale(1.05); opacity: 1; }
}

/* Један по један се додају, кратко сви остану, па сви нестану */
@keyframes agmz-pin-1 {
	0%, 2% { opacity: 0; transform: scale(0.55); }
	6%, 78% { opacity: 1; transform: scale(1.22); }
	86%, 100% { opacity: 0; transform: scale(0.7); }
}
@keyframes agmz-pin-2 {
	0%, 10% { opacity: 0; transform: scale(0.55); }
	14%, 78% { opacity: 1; transform: scale(1.22); }
	86%, 100% { opacity: 0; transform: scale(0.7); }
}
@keyframes agmz-pin-3 {
	0%, 18% { opacity: 0; transform: scale(0.55); }
	22%, 78% { opacity: 1; transform: scale(1.22); }
	86%, 100% { opacity: 0; transform: scale(0.7); }
}
@keyframes agmz-pin-4 {
	0%, 26% { opacity: 0; transform: scale(0.55); }
	30%, 78% { opacity: 1; transform: scale(1.22); }
	86%, 100% { opacity: 0; transform: scale(0.7); }
}
@keyframes agmz-pin-5 {
	0%, 34% { opacity: 0; transform: scale(0.55); }
	38%, 78% { opacity: 1; transform: scale(1.22); }
	86%, 100% { opacity: 0; transform: scale(0.7); }
}
@keyframes agmz-pin-6 {
	0%, 42% { opacity: 0; transform: scale(0.55); }
	46%, 78% { opacity: 1; transform: scale(1.22); }
	86%, 100% { opacity: 0; transform: scale(0.7); }
}
@keyframes agmz-pin-7 {
	0%, 50% { opacity: 0; transform: scale(0.55); }
	54%, 78% { opacity: 1; transform: scale(1.22); }
	86%, 100% { opacity: 0; transform: scale(0.7); }
}

@keyframes agmz-pin-ring {
	0%, 4% { transform: scale(0.5); opacity: 0; }
	8%, 16% { transform: scale(1); opacity: 0.5; }
	22%, 100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 900px) {
	.agmz-map-teaser__inner {
		grid-template-columns: 1fr;
		gap: 12px;
		width: min(100% - 24px, 640px);
		padding: 22px 0 18px;
	}

	.agmz-map-teaser__copy {
		max-width: none;
	}

	.agmz-map-teaser__stage {
		max-width: 240px;
		margin: 0 auto;
	}

	.agmz-map-teaser__title {
		font-size: clamp(18px, 5.2vw, 24px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.agmz-map-teaser__copy,
	.agmz-map-teaser__visual,
	.agmz-map-teaser__glow,
	.agmz-map-teaser__map .agmz-pin__bob,
	.agmz-map-teaser__map .pin-ring {
		animation: none !important;
	}

	.agmz-map-teaser__map .agmz-pin__bob {
		opacity: 1 !important;
		transform: none !important;
	}
}
