/**
 * Ostrovo — javni stilovi (kompatibilni so Flatsome).
 */

.ostrovo-root {
	--ostrovo-bg: #0a1210;
	--ostrovo-surface: #121f1c;
	--ostrovo-surface-2: #1a2e29;
	--ostrovo-accent: #d4b56a;
	--ostrovo-accent-dim: rgba(212, 181, 106, 0.35);
	--ostrovo-text: #e8f0ec;
	--ostrovo-muted: #94a8a2;
	--ostrovo-radius: 18px;
	--ostrovo-radius-lg: 22px;
	--ostrovo-max: 1240px;
	--ostrovo-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
	--ostrovo-shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.28);
	max-width: 100%;
	margin: 0 auto;
	color: var(--ostrovo-text);
	background: var(--ostrovo-bg);
}

/* Hero — centar (vertikalno + horizontalno), povisok, posirok tekst; so slika: posvetol overlay */
.ostrovo-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: clamp(400px, 58vh, 760px);
	padding: clamp(3rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 2.5rem);
	background: linear-gradient(165deg, #0e1c19 0%, #0a1210 55%, #081210 100%);
	border-bottom: 1px solid var(--ostrovo-accent-dim);
	overflow: hidden;
}

.ostrovo-hero--has-bg {
	min-height: clamp(460px, 72vh, 920px);
	background-image: linear-gradient(
			165deg,
			rgba(255, 255, 255, 0.22) 0%,
			rgba(248, 252, 250, 0.14) 35%,
			rgba(12, 32, 28, 0.42) 70%,
			rgba(8, 18, 16, 0.55) 100%
		),
		var(--ostrovo-hero-bg);
	background-size: cover;
	background-position: center;
}

.ostrovo-hero__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(ellipse 85% 70% at 50% 20%, rgba(255, 255, 255, 0.18), transparent 58%);
}

.ostrovo-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

/* Mobile menu icon rotator (Flatsome burger replacement) */
.ostrovo-mobile-menu-rotator {
	position: relative;
}

.ostrovo-mobile-menu-rotator i.icon-menu,
.ostrovo-mobile-menu-rotator i[class*='menu'] {
	opacity: 0 !important;
}

.ostrovo-mobile-menu-rotator__slot {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	color: #334155;
	opacity: 1;
	transition: opacity 0.18s ease;
}

.ostrovo-mobile-menu-rotator__svg {
	width: 28px;
	height: 28px;
	padding: 10px;
	border-radius: 999px;
	background: #d1d5db;
	box-shadow:
		0 6px 14px rgba(15, 23, 42, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(148, 163, 184, 0.5);
}

.ostrovo-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: min(100%, 920px);
	margin: 0 auto;
}

.ostrovo-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(2.1rem, 4.8vw, 3.15rem);
	font-weight: 650;
	letter-spacing: 0.02em;
	line-height: 1.12;
	color: #fff;
	text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
}

/* Bukvi: vlez (stagger) + blag beskonechen „breathing“ loop */
.ostrovo-hero__title--letters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	column-gap: 0.02em;
}

.ostrovo-hero__title--letters .ostrovo-hero__char {
	display: inline-block;
	transform-origin: 50% 80%;
	will-change: transform, opacity;
	animation-name: ostrovoHeroCharIn, ostrovoHeroCharLoop;
	animation-duration: 0.88s, 5.5s;
	animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1), ease-in-out;
	animation-delay:
		calc(var(--ostrovo-char-i, 0) * 0.042s),
		calc(1s + var(--ostrovo-char-n, 12) * 0.055s + var(--ostrovo-char-i, 0) * 0.025s);
	animation-iteration-count: 1, infinite;
	animation-fill-mode: both, none;
}

.ostrovo-hero__title--letters .ostrovo-hero__char--space {
	min-width: 0.28em;
}

@keyframes ostrovoHeroCharIn {
	from {
		opacity: 0;
		transform: translate3d(0, 0.45em, 0) rotateX(-22deg) scale(0.92);
		filter: blur(4px);
	}
	70% {
		filter: blur(0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0) rotateX(0) scale(1);
		filter: blur(0);
	}
}

@keyframes ostrovoHeroCharLoop {
	0%,
	100% {
		transform: translate3d(0, 0, 0);
		text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
	}
	35% {
		transform: translate3d(0, -0.1em, 0) scale(1.02);
		text-shadow: 0 4px 36px rgba(212, 181, 106, 0.35);
	}
	65% {
		transform: translate3d(0, 0.04em, 0) scale(1);
		text-shadow: 0 2px 24px rgba(0, 0, 0, 0.38);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ostrovo-hero__title--letters .ostrovo-hero__char {
		animation-name: ostrovoHeroCharInReduced;
		animation-duration: 0.4s;
		animation-timing-function: ease-out;
		animation-delay: calc(var(--ostrovo-char-i, 0) * 0.02s);
		animation-iteration-count: 1;
		animation-fill-mode: forwards;
		filter: none !important;
	}

	@keyframes ostrovoHeroCharInReduced {
		from {
			opacity: 0;
		}
		to {
			opacity: 1;
		}
	}
}

.ostrovo-hero__subtitle {
	margin: 0 auto;
	max-width: 52rem;
	font-size: clamp(1rem, 2.1vw, 1.2rem);
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

/* Ticker (marquee) pod hero — beskonechen horizontalen loop */
.ostrovo-ticker {
	--ostrovo-ticker-duration: 48s;
	background: linear-gradient(180deg, #0d1614 0%, #0a1210 100%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	padding: 0.85rem 0;
}

.ostrovo-ticker__viewport {
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ostrovo-ticker__scroll {
	display: flex;
	width: max-content;
	animation: ostrovo-ticker-marquee var(--ostrovo-ticker-duration) linear infinite;
	will-change: transform;
}

.ostrovo-ticker__viewport:hover .ostrovo-ticker__scroll {
	animation-play-state: paused;
}

@keyframes ostrovo-ticker-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

.ostrovo-ticker__track {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: 1.25rem;
	padding-right: 2rem;
	white-space: nowrap;
}

.ostrovo-ticker__segment {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	flex-shrink: 0;
}

.ostrovo-ticker__pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
}

.ostrovo-ticker__icon {
	display: flex;
	color: var(--ostrovo-accent);
}

.ostrovo-ticker__icon .ostrovo-icon-svg {
	width: 1rem;
	height: 1rem;
}

.ostrovo-ticker__label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
}

.ostrovo-ticker__sentence {
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: rgba(232, 240, 236, 0.88);
	max-width: min(52vw, 26rem);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ostrovo-ticker__sep {
	color: rgba(212, 181, 106, 0.35);
	font-size: 0.45rem;
	vertical-align: middle;
	padding: 0 0.15rem;
}

@media (prefers-reduced-motion: reduce) {
	.ostrovo-ticker__scroll {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 0.65rem;
		max-width: var(--ostrovo-max);
		margin: 0 auto;
		padding: 0 1rem;
	}

	.ostrovo-ticker__track[aria-hidden="true"] {
		display: none;
	}

	.ostrovo-ticker__track {
		flex-wrap: wrap;
		justify-content: center;
		white-space: normal;
		padding-right: 0;
	}
}

/* Split sections — posirok layout, slikata dominira */
.ostrovo-section {
	padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2rem);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ostrovo-section__inner {
	max-width: var(--ostrovo-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.75rem, 4vw, 2.75rem);
	align-items: center;
}

@media (min-width: 900px) {
	.ostrovo-section--split .ostrovo-section__inner {
		grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
		gap: clamp(2rem, 4vw, 3.25rem);
		/* Tekstot vertikalno na sredina nasproti slikata */
		align-items: center;
	}

	.ostrovo-section--reverse .ostrovo-section__text {
		order: 2;
	}

	.ostrovo-section--reverse .ostrovo-section__media {
		order: 1;
	}
}

/* Restoran / biseri: tekst centriran (levo-desno kolona) */
.ostrovo-section--split .ostrovo-section__text {
	text-align: center;
}

.ostrovo-section__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.45rem, 2.6vw, 1.95rem);
	color: #fff;
}

.ostrovo-section__excerpt {
	margin: 0 0 1.35rem;
	color: var(--ostrovo-muted);
	line-height: 1.65;
	font-size: 1.05rem;
	max-width: 34em;
}

.ostrovo-section--split .ostrovo-section__excerpt {
	margin-left: auto;
	margin-right: auto;
}

.ostrovo-section__media {
	position: relative;
	width: 100%;
	border-radius: var(--ostrovo-radius-lg);
	overflow: hidden;
	box-shadow: var(--ostrovo-shadow), 0 0 0 1px rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(212, 181, 106, 0.22);
	background: var(--ostrovo-surface-2);
	aspect-ratio: 4 / 3;
	min-height: clamp(260px, 42vw, 520px);
	max-height: min(72vh, 620px);
}

.ostrovo-section__img,
.ostrovo-section__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ostrovo-section__placeholder {
	background:
		linear-gradient(145deg, rgba(30, 61, 54, 0.5) 0%, transparent 50%),
		linear-gradient(210deg, var(--ostrovo-surface-2), #0c1815);
}

.ostrovo-section__media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to top, rgba(10, 18, 16, 0.35) 0%, transparent 42%);
	border-radius: inherit;
}

/* Restoran — svetla pozadina #ebe4db; slikata od desniot kraj kon levo (široka kolona) */
.ostrovo-section--restaurant {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
	background: #ebe4db;
	border-bottom: 1px solid rgba(44, 40, 36, 0.08);
	padding-top: clamp(3rem, 6vw, 5rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
	padding-left: clamp(1.25rem, 4vw, 2rem);
	padding-right: clamp(1.25rem, 4vw, 2rem);
}

.ostrovo-section--restaurant .ostrovo-section__title {
	color: #252019;
}

.ostrovo-section--restaurant .ostrovo-section__excerpt {
	color: #5a5247;
}

.ostrovo-section--restaurant .ostrovo-section__placeholder {
	background:
		linear-gradient(145deg, rgba(180, 160, 130, 0.35) 0%, transparent 55%),
		linear-gradient(210deg, #ddd4c8, #cfc4b6);
}

.ostrovo-section--restaurant .ostrovo-section__media {
	border-color: rgba(44, 40, 36, 0.1);
	box-shadow: 0 18px 48px rgba(44, 40, 36, 0.12);
}

.ostrovo-section--restaurant .ostrovo-section__media::after {
	background: linear-gradient(to top, rgba(44, 40, 36, 0.14) 0%, transparent 48%);
}

@media (max-width: 899px) {
	.ostrovo-section--restaurant .ostrovo-section__img {
		object-position: left center;
	}
}

@media (min-width: 900px) {
	.ostrovo-section--restaurant {
		padding-top: 0;
		padding-bottom: 0;
		padding-left: 0;
		padding-right: 0;
	}

	.ostrovo-section--restaurant.ostrovo-section--split .ostrovo-section__inner {
		max-width: none;
		width: 100%;
		margin: 0;
		padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2rem);
		grid-template-columns: minmax(240px, min(38vw, 420px)) 1fr;
		align-items: center;
	}

	.ostrovo-section--restaurant .ostrovo-section__media {
		border-radius: var(--ostrovo-radius-lg) 0 0 var(--ostrovo-radius-lg);
	}
}

/* Biseri — tamna sekcija kako dosega; slikata od skroz levo (široka kolona kon tekstot) */
@media (min-width: 900px) {
	.ostrovo-section--pearls {
		padding-left: 0;
		padding-right: 0;
	}

	.ostrovo-section--pearls.ostrovo-section--split .ostrovo-section__inner {
		max-width: none;
		width: 100%;
		margin: 0 auto;
		padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2rem) clamp(3rem, 6vw, 5rem) 0;
		grid-template-columns: 1fr minmax(240px, min(38vw, 420px));
		align-items: center;
	}

	.ostrovo-section--pearls .ostrovo-section__media {
		border-radius: 0 var(--ostrovo-radius-lg) var(--ostrovo-radius-lg) 0;
	}
}

.ostrovo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.35rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: #0a1210;
	background: linear-gradient(135deg, #e8d49a, var(--ostrovo-accent));
	border-radius: 6px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.ostrovo-btn:hover,
.ostrovo-btn:focus {
	opacity: 0.95;
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
	color: #0a1210;
}

/* Blocks */
.ostrovo-grid-block,
.ostrovo-news {
	padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2rem);
	max-width: min(100%, calc(var(--ostrovo-max) + 40px));
	margin: 0 auto;
}

/* Accommodation na pocetna: bela sekcija + sin info del na karti */
#accommodation.ostrovo-grid-block {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
	background: #ffffff;
	border-top: 1px solid rgba(191, 219, 254, 0.6);
	border-bottom: 1px solid rgba(191, 219, 254, 0.6);
}

#accommodation .ostrovo-cards {
	max-width: min(100%, calc(var(--ostrovo-max) + 40px));
	margin-left: auto;
	margin-right: auto;
}

#accommodation.ostrovo-grid-block .ostrovo-grid-block__heading {
	color: #1e3a8a;
}

#accommodation .ostrovo-card__body {
	background: linear-gradient(130deg, #1d4ed8 0%, #2563eb 58%, #3b82f6 100%);
}

#accommodation .ostrovo-card__sub {
	color: #dbeafe;
}

/* Aktivnosti — cel ekran širina, svetla mint / emerald (približno kako pill hover na menito) */
.ostrovo-activities {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
	padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2rem);
	background: linear-gradient(
		158deg,
		#f8fafc 0%,
		#ecfdf5 32%,
		#d1fae5 62%,
		#a7f3d0 100%
	);
	border-top: 1px solid rgba(16, 185, 129, 0.22);
	border-bottom: 1px solid rgba(5, 150, 105, 0.14);
}

.ostrovo-activities .ostrovo-cards {
	max-width: min(100%, calc(var(--ostrovo-max) + 40px));
	margin-left: auto;
	margin-right: auto;
}

.ostrovo-grid-block__heading,
.ostrovo-news__heading {
	margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
	font-size: clamp(1.45rem, 2.6vw, 1.85rem);
	text-align: center;
	color: #fff;
	font-weight: 650;
}

#accommodation .ostrovo-grid-block__heading {
	display: grid;
	gap: 0.2rem;
}

.ostrovo-typewriter {
	display: inline-block;
	min-height: 1.35em;
	font-size: clamp(1rem, 2vw, 1.15rem);
	font-weight: 600;
	color: #1d4ed8;
}

.ostrovo-typewriter::after {
	content: "|";
	margin-left: 0.12rem;
	opacity: 1;
	animation: ostrovo-caret-blink 1s steps(1, end) infinite;
}

@keyframes ostrovo-caret-blink {
	50% {
		opacity: 0;
	}
}

.ostrovo-activities__heading {
	margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
	max-width: min(100%, calc(var(--ostrovo-max) + 40px));
	display: grid;
	gap: 0.2rem;
	font-size: clamp(1.45rem, 2.6vw, 1.85rem);
	text-align: center;
	color: #065f46;
	font-weight: 650;
	letter-spacing: 0.01em;
}

.ostrovo-activities .ostrovo-typewriter {
	color: #047857;
}

.ostrovo-activities .ostrovo-card {
	border-color: rgba(16, 185, 129, 0.14);
	box-shadow: 0 14px 40px rgba(5, 150, 105, 0.08), var(--ostrovo-shadow-soft);
}

.ostrovo-activities .ostrovo-card__thumb::after {
	background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.12) 36%, transparent 60%);
	opacity: 1;
}

.ostrovo-activities .ostrovo-card--lift:hover .ostrovo-card__thumb::after,
.ostrovo-activities .ostrovo-card--lift:focus .ostrovo-card__thumb::after {
	opacity: 1;
}

.ostrovo-cards {
	display: grid;
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Smestuvanje: tri pogolemi „editorial“ karti */
.ostrovo-cards--3 {
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.ostrovo-cards--3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1080px) {
	.ostrovo-cards--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ostrovo-cards--4 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

@media (min-width: 1200px) {
	.ostrovo-cards--4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

.ostrovo-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	text-decoration: none;
	color: inherit;
	background: var(--ostrovo-surface);
	border-radius: var(--ostrovo-radius-lg);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
	box-shadow: var(--ostrovo-shadow-soft);
}

.ostrovo-card--lift:hover,
.ostrovo-card--lift:focus {
	border-color: var(--ostrovo-accent-dim);
	transform: translateY(-6px);
	box-shadow: var(--ostrovo-shadow);
	color: inherit;
}

.ostrovo-card__thumb {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 5 / 4;
	min-height: clamp(220px, 32vw, 340px);
	background: linear-gradient(165deg, #1e3d36 0%, #0f1f1c 100%);
	overflow: hidden;
}

.ostrovo-card__thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to top, rgba(10, 18, 16, 0.55) 0%, transparent 45%);
	opacity: 0.85;
	transition: opacity 0.3s ease;
}

.ostrovo-card--lift:hover .ostrovo-card__thumb::after,
.ostrovo-card--lift:focus .ostrovo-card__thumb::after {
	opacity: 0.65;
}

.ostrovo-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ostrovo-card--lift:hover .ostrovo-card__thumb img,
.ostrovo-card--lift:focus .ostrovo-card__thumb img {
	transform: scale(1.06);
}

.ostrovo-card__body {
	padding: clamp(1.15rem, 2.5vw, 1.45rem) clamp(1.2rem, 2.5vw, 1.5rem) clamp(1.35rem, 3vw, 1.65rem);
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	flex: 1;
}

.ostrovo-card__sub {
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ostrovo-accent);
	font-weight: 600;
}

.ostrovo-card__title {
	font-size: clamp(1.2rem, 2.2vw, 1.38rem);
	font-weight: 650;
	color: #fff;
	line-height: 1.2;
}

.ostrovo-card__excerpt {
	font-size: 0.94rem;
	color: var(--ostrovo-muted);
	line-height: 1.55;
	margin-top: 0.35rem;
}

/* Aktivnosti — pogolem vizuelen blok */
.ostrovo-card--activity .ostrovo-card__visual {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 11;
	min-height: clamp(168px, 22vw, 240px);
	background: linear-gradient(160deg, #1a332e, #0a1210);
	overflow: hidden;
}

.ostrovo-card__bgimg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.5;
	transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ostrovo-card--activity:hover .ostrovo-card__bgimg,
.ostrovo-card--activity:focus .ostrovo-card__bgimg {
	opacity: 0.78;
	transform: scale(1.06);
}

.ostrovo-card--activity .ostrovo-card__visual::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to top, rgba(10, 18, 16, 0.75) 0%, transparent 55%);
}

.ostrovo-card__iconbadge {
	position: absolute;
	left: clamp(0.85rem, 2vw, 1.15rem);
	bottom: clamp(0.85rem, 2vw, 1.15rem);
	width: clamp(2.75rem, 5vw, 3.15rem);
	height: clamp(2.75rem, 5vw, 3.15rem);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: rgba(10, 18, 16, 0.9);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid var(--ostrovo-accent-dim);
	color: var(--ostrovo-accent);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	z-index: 1;
}

.ostrovo-card__iconbadge .ostrovo-icon-svg {
	width: 1.45rem;
	height: 1.45rem;
}

.ostrovo-news__placeholder {
	padding: 2.25rem 1.5rem;
	text-align: center;
	border-radius: var(--ostrovo-radius-lg);
	background: var(--ostrovo-surface);
	border: 1px dashed rgba(255, 255, 255, 0.12);
	color: var(--ostrovo-muted);
}

.ostrovo-news__placeholder p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
}

.ostrovo-news-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(0.9rem, 2vw, 1.2rem);
}

@media (min-width: 860px) {
	.ostrovo-news-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ostrovo-news-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 12px 32px rgba(2, 6, 23, 0.07);
}

.ostrovo-news-card__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	background: linear-gradient(160deg, #e2e8f0, #cbd5e1);
}

.ostrovo-news-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ostrovo-news-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 2rem;
	font-weight: 700;
	color: #1e293b;
}

.ostrovo-news-card__body {
	padding: 0.85rem 1rem 1rem;
}

.ostrovo-news-card__meta {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
}

.ostrovo-news-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.04rem;
	line-height: 1.35;
}

.ostrovo-news-card__title a {
	color: #0f172a;
	text-decoration: none;
}

.ostrovo-news-card__title a:hover {
	color: #1d4ed8;
}

.ostrovo-news-card__text {
	margin: 0;
	font-size: 0.94rem;
	line-height: 1.65;
	color: #475569;
}

.ostrovo-news__actions {
	margin: 1rem 0 0;
	text-align: center;
}

.ostrovo-news-archive {
	max-width: min(100%, calc(var(--ostrovo-max) + 40px));
	margin: 0 auto;
	padding: clamp(2.2rem, 5vw, 3.5rem) clamp(1rem, 3vw, 1.5rem);
}

.ostrovo-news-archive .ostrovo-news-cards {
	grid-template-columns: 1fr;
}

@media (min-width: 760px) {
	.ostrovo-news-archive .ostrovo-news-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1080px) {
	.ostrovo-news-archive .ostrovo-news-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ostrovo-news-archive__pagination {
	margin-top: 1.2rem;
}

.ostrovo-news-archive__pagination .page-numbers {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	justify-content: center;
}

.ostrovo-news-archive__pagination .page-numbers a,
.ostrovo-news-archive__pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.2rem;
	height: 2.2rem;
	padding: 0 0.65rem;
	border-radius: 999px;
	border: 1px solid rgba(15, 23, 42, 0.16);
	text-decoration: none;
	color: #0f172a;
	background: #fff;
}

.ostrovo-news-archive__pagination .page-numbers .current {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #fff;
}

/**
 * Hero pod header: #main se kreva nagore za da slikata e „pod“ masthead — blur na beliot glass ja mati slikata.
 */
body.ostrovo-hero-under-header {
	--ostrovo-header-offset: clamp(72px, 11vh, 118px);
}

body.ostrovo-hero-under-header #header.header {
	position: relative;
	z-index: 200;
}

body.ostrovo-hero-under-header #main {
	position: relative;
	z-index: 10;
	margin-top: calc(-1 * var(--ostrovo-header-offset));
	background-color: transparent !important;
}

body.ostrovo-hero-under-header #main.dark,
body.ostrovo-hero-under-header #main.dark.dark-page-wrapper {
	background-color: transparent !important;
}

body.ostrovo-hero-under-header #content,
body.ostrovo-hero-under-header #content .col-inner {
	background: transparent;
}

body.ostrovo-hero-under-header #content > .ostrovo-hero:first-child,
body.ostrovo-hero-under-header #content > .ostrovo-root > .ostrovo-hero:first-child {
	padding-top: calc(var(--ostrovo-header-offset) + clamp(1.75rem, 5vw, 4rem));
	min-height: clamp(520px, 78vh, 960px);
}

body.ostrovo-hero-under-header #content > .ostrovo-hero--has-bg:first-child,
body.ostrovo-hero-under-header #content > .ostrovo-root > .ostrovo-hero--has-bg:first-child {
	min-height: clamp(560px, 82vh, 980px);
}

@media (max-width: 768px) {
	body.ostrovo-hero-under-header .page-wrapper {
		padding-top: 0 !important;
	}

	body.ostrovo-hero-under-header #content > .ostrovo-hero:first-child,
	body.ostrovo-hero-under-header #content > .ostrovo-root > .ostrovo-hero:first-child {
		padding-top: calc(var(--ostrovo-header-offset) + 0.25rem);
	}
}

/* Footer shortcode [ostrovo_footer] — karti + scroll reveal */
.ostrovo-site-footer {
	position: relative;
	background:
		radial-gradient(ellipse 120% 80% at 50% 0%, rgba(16, 185, 129, 0.08), transparent 55%),
		#ebe4db;
	color: #252019;
	border-top: 1px solid rgba(44, 40, 36, 0.1);
	overflow: hidden;
}

.ostrovo-site-footer__inner {
	max-width: min(100%, calc(var(--ostrovo-max, 1240px) + 48px));
	margin: 0 auto;
	padding: clamp(2.25rem, 4vw, 3.25rem) clamp(1.25rem, 4vw, 2rem) clamp(1.75rem, 3vw, 2.25rem);
	box-sizing: border-box;
}

.ostrovo-site-footer__columns {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

@media (min-width: 640px) {
	.ostrovo-site-footer__columns {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1000px) {
	.ostrovo-site-footer__columns {
		grid-template-columns: repeat(4, 1fr);
		gap: clamp(1rem, 2vw, 1.5rem);
	}
}

.ostrovo-site-footer__col {
	text-align: center;
	font-size: 0.9rem;
	line-height: 1.55;
}

/* Scroll reveal (IntersectionObserver dodava .is-visible) */
.ostrovo-site-footer__col--reveal,
.ostrovo-site-footer__legal--reveal {
	--ostrovo-footer-reveal-d: calc(var(--reveal-i, 0) * 90ms);
	opacity: 0;
	transform: translateY(36px) scale(0.97);
	filter: blur(3px);
	will-change: opacity, transform, filter;
	transition:
		opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
		filter 0.45s ease;
	transition-delay: var(--ostrovo-footer-reveal-d);
}

.ostrovo-site-footer__col--reveal.is-visible,
.ostrovo-site-footer__legal--reveal.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
	.ostrovo-site-footer__col--reveal,
	.ostrovo-site-footer__legal--reveal {
		opacity: 1;
		transform: none;
		filter: none;
		transition: none;
	}
}

.ostrovo-site-footer__card {
	min-height: 10.5rem;
	padding: clamp(1.15rem, 2.5vw, 1.45rem) clamp(1rem, 2vw, 1.25rem);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.58);
	border: 1px solid rgba(255, 255, 255, 0.85);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 14px 40px rgba(44, 40, 36, 0.08),
		0 0 0 1px rgba(16, 185, 129, 0.1);
	backdrop-filter: blur(14px) saturate(1.1);
	-webkit-backdrop-filter: blur(14px) saturate(1.1);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.ostrovo-site-footer__col--reveal.is-visible .ostrovo-site-footer__card:hover {
	transform: translateY(-5px);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 22px 50px rgba(5, 150, 105, 0.12),
		0 0 0 1px rgba(16, 185, 129, 0.22);
	border-color: rgba(16, 185, 129, 0.25);
}

.ostrovo-site-footer__logo {
	min-height: 3.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.85rem;
}

.ostrovo-site-footer__logo-img {
	max-width: min(100%, 200px);
	height: auto;
	max-height: 68px;
	width: auto;
	object-fit: contain;
}

.ostrovo-site-footer__addr {
	margin: 0 0 0.55rem;
	color: #4a433a;
	font-size: 0.84rem;
}

.ostrovo-site-footer__line {
	margin: 0.35rem 0 0;
	color: #3d3830;
}

.ostrovo-site-footer__line a {
	color: #0f766e;
	text-decoration: none;
	font-weight: 600;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.ostrovo-site-footer__line a:hover,
.ostrovo-site-footer__line a:focus {
	color: #047857;
	border-bottom-color: rgba(4, 120, 87, 0.35);
}

.ostrovo-site-footer__legal {
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
	padding: 0;
	border-top: none;
}

.ostrovo-site-footer__legal--reveal {
	max-width: min(100%, 920px);
	margin-left: auto;
	margin-right: auto;
	padding: clamp(0.95rem, 2vw, 1.15rem) clamp(1rem, 3vw, 1.5rem);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.75);
	box-shadow: 0 10px 32px rgba(44, 40, 36, 0.06);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.ostrovo-site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ostrovo-site-footer__menu li {
	margin: 0;
	padding: 0;
}

.ostrovo-site-footer__menu a {
	color: #3d3830;
	text-decoration: none;
	padding: 0.35rem 0.5rem;
	border-radius: 8px;
	border-bottom: none;
	transition: color 0.2s ease, background 0.2s ease;
}

.ostrovo-site-footer__menu a:hover,
.ostrovo-site-footer__menu a:focus {
	color: #047857;
	background: rgba(16, 185, 129, 0.12);
}
