/* SM Pocetna strana - koristi promenljive teme (--t-*) uz rezervne vrednosti */
.smp-kontejner {
	width: 100%;
	max-width: calc(var(--t-sirina, 1170px) + 48px);
	margin: 0 auto;
	padding: 0 24px;
}
.smp-centar { text-align: center; margin: 48px 0 0; }

.smp-zaglavlje-sekcije { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.smp-zaglavlje-sekcije h2 { margin: 0 0 14px; }
.smp-zaglavlje-sekcije p { margin: 0; }
.smp-zaglavlje-sekcije--red {
	max-width: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	text-align: left;
	margin-bottom: 32px;
}
.smp-zaglavlje-sekcije--red h2 { margin: 0; }

/* ---------- Slajder ---------- */
.smp-slajder {
	position: relative;
	height: clamp(460px, 38vw, 620px);
	overflow: hidden;
	background: #1d2a22;
	color: #fff;
}
.smp-slajder__slajdovi { position: absolute; inset: 0; }
.smp-slajd {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, visibility .9s;
}
.smp-slajd.aktivan { opacity: 1; visibility: visible; z-index: 1; }
.smp-slajd__slika {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.06);
	transition: transform 7s ease-out;
}
.smp-slajd.aktivan .smp-slajd__slika { transform: scale(1); }
.smp-slajd__veo {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .22) 45%, rgba(0, 0, 0, 0) 70%);
}
.smp-slajd--desno .smp-slajd__veo { background: linear-gradient(270deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .22) 45%, rgba(0, 0, 0, 0) 70%); }
.smp-slajd--centar .smp-slajd__veo { background: rgba(0, 0, 0, .35); }
.smp-slajd__sadrzaj { position: relative; z-index: 2; display: flex; }
.smp-slajd--desno .smp-slajd__sadrzaj { justify-content: flex-end; text-align: right; }
.smp-slajd--centar .smp-slajd__sadrzaj { justify-content: center; text-align: center; }
.smp-slajd__tekst { max-width: 470px; }
.smp-slajd__tekst p {
	margin: 0 0 24px;
	font-size: 18px;
	line-height: 1.55;
	text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.smp-slajd__naslov {
	margin: 0 0 16px;
	color: #fff;
	font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
	font-weight: 500;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.smp-slajd .smp-slajd__tekst > * { transform: translateY(14px); opacity: 0; transition: transform .7s ease, opacity .7s ease; }
.smp-slajd.aktivan .smp-slajd__tekst > * { transform: none; opacity: 1; }
.smp-slajd.aktivan .smp-slajd__tekst > :nth-child(2) { transition-delay: .12s; }
.smp-slajd.aktivan .smp-slajd__tekst > :nth-child(3) { transition-delay: .24s; }

.smp-slajder__tacke {
	position: absolute;
	left: 0; right: 0; bottom: 18px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.smp-tacka {
	width: 10px; height: 10px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: rgba(255, 255, 255, .55);
	cursor: pointer;
	transition: width .3s ease, background-color .3s ease;
}
.smp-tacka.aktivna { width: 26px; background: var(--t-zelena, #14a751); }
.smp-slajder__str {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 46px; height: 46px;
	margin-top: -23px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .25);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transition: opacity .25s ease, background-color .2s ease;
}
.smp-slajder:hover .smp-slajder__str, .smp-slajder__str:focus-visible { opacity: 1; }
.smp-slajder__str:hover { background: var(--t-zelena, #14a751); }
.smp-slajder__str--l { left: 16px; }
.smp-slajder__str--d { right: 16px; }

/* ---------- Tri kolone ---------- */
.smp-prednosti { padding: 72px 0 40px; }
.smp-prednosti__mreza { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.smp-prednost__ikonica { margin-bottom: 22px; }
.smp-prednost__ikonica img { width: auto; height: 64px; object-fit: contain; }
html[data-tema="tamna"] .smp-prednost__ikonica img { filter: invert(1) brightness(.92); }
.smp-prednost__naslov { margin: 0 0 10px; font-size: 1.12rem; }
.smp-prednost__naslov a { color: inherit; }
.smp-prednost p { margin: 0; }

/* ---------- Destinacije ---------- */
.smp-ponuda { padding: 72px 0 80px; }
.smp-ponuda__mreza { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
.smp-destinacija { text-align: center; }
.smp-destinacija__okvir {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: var(--t-kartica, #fff);
	box-shadow: 0 1px 0 var(--t-linija, #e9ecef), 0 12px 30px rgba(17, 24, 39, .08);
	transition: transform .3s ease, box-shadow .3s ease;
}
a.smp-destinacija__okvir:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--t-linija, #e9ecef), 0 18px 40px rgba(17, 24, 39, .14); }
.smp-destinacija__traka {
	display: flex;
	gap: 5px;
	padding: 7px 10px;
	background: #e7e9ec;
}
html[data-tema="tamna"] .smp-destinacija__traka { background: #2a2f35; }
.smp-destinacija__traka i { width: 6px; height: 6px; border-radius: 50%; background: #b7bcc2; }
.smp-destinacija__okvir img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
a.smp-destinacija__okvir:hover img { transform: scale(1.03); }
.smp-destinacija__naslov { margin: 24px 0 10px; font-size: 1.2rem; }
.smp-destinacija__naslov a { color: var(--t-link, #0a58ca); }
.smp-destinacija p { max-width: 460px; margin: 0 auto; font-size: 15.5px; }

/* ---------- Vesti ---------- */
.smp-vesti { padding: 72px 0; background: var(--t-bg-meko, #f6f7f8); }
.smp-vesti__mreza { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.smp-vest .vest__datum { margin-bottom: 8px; }
.smp-vest .kartica__slika img { aspect-ratio: 4 / 3; }

/* ---------- O Boru ---------- */
.smp-oboru { padding: 96px 0; }
.smp-oboru__mreza { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.smp-oboru__mreza.bez-slike { grid-template-columns: 1fr; max-width: 780px; }
.smp-oboru__slika img { display: block; width: 100%; height: auto; border-radius: 8px; }
.smp-oboru__tekst h2 { margin: 0 0 20px; }
.smp-oboru__potpis {
	margin-top: 22px;
	color: var(--t-naslov, #212529);
	font-family: var(--t-font-naslov, sans-serif);
	font-weight: 600;
	font-size: 15px;
}

/* ---------- Ekrani ---------- */
@media (max-width: 900px) {
	.smp-prednosti__mreza { grid-template-columns: 1fr; gap: 36px; }
	.smp-prednost { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; }
	.smp-prednost__ikonica { grid-row: span 2; margin: 0; }
	.smp-vesti__mreza { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.smp-vesti__mreza > :nth-child(3) { display: none; }
	.smp-oboru__mreza { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 700px) {
	.smp-kontejner { padding: 0 16px; }
	.smp-slajder { height: 520px; }
	.smp-slajd__veo, .smp-slajd--desno .smp-slajd__veo { background: linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .25) 60%, rgba(0, 0, 0, .1) 100%); }
	.smp-slajd { align-items: flex-end; padding-bottom: 64px; }
	.smp-slajd--desno .smp-slajd__sadrzaj { justify-content: flex-start; text-align: left; }
	.smp-slajd__tekst p { font-size: 16px; }
	.smp-slajder__str { display: none; }
	.smp-prednosti { padding: 48px 0 24px; }
	.smp-ponuda { padding: 48px 0 56px; }
	.smp-ponuda__mreza { grid-template-columns: 1fr; gap: 40px; }
	.smp-zaglavlje-sekcije { margin-bottom: 32px; }
	.smp-zaglavlje-sekcije--red { flex-direction: column; align-items: flex-start; }
	.smp-vesti { padding: 48px 0; }
	.smp-vesti__mreza { grid-template-columns: 1fr; }
	.smp-vesti__mreza > :nth-child(3) { display: flex; }
	.smp-oboru { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
	.smp-slajd__slika { transform: none !important; }
}
