/* Sve avanture (avanture-kalendar.php): pregled, mapa, filteri, lista po mesecima, mesečni kalendar. */

/* Vrh: tamna traka kao zaglavlje sajta, sa mapom. */
.est-avanture__vrh {
	padding: 2.5rem 16px 1rem;
	background: linear-gradient(118.6deg, #223e54 25.44%, #3097e2 120%);
	color: #f0f4f7;
}

.est-avanture__vrh-tekst {
	max-width: 1140px;
	margin: 0 auto;
	text-align: center;
}

.est-avanture__naslov {
	margin: 0 0 0.4rem;
	color: #fff;
	font-family: "Kanit Bold", Arial, Helvetica, sans-serif;
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	line-height: 1.1;
}

.est-avanture__pregled {
	margin: 0;
	color: rgba(240, 244, 247, 0.85);
	font-family: "Raleway SemiBold", Arial, Helvetica, sans-serif;
	font-size: clamp(1rem, 2vw, 1.25rem);
}

/* Mapa. */
.est-mapa {
	max-width: 1100px;
	margin: 0.5rem auto 0;
}

.est-mapa__svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.est-mapa__luk {
	fill: none;
	stroke: rgba(240, 244, 247, 0.55);
	stroke-width: 1.4;
	stroke-dasharray: 4 5;
	animation: est-mapa-tok 1.6s linear infinite;
}

@keyframes est-mapa-tok {
	to {
		stroke-dashoffset: -18;
	}
}

.est-mapa__tacka {
	cursor: pointer;
	outline: none;
}

/* Zemlje bez polaska u narednih 12 meseci: svetlije, bez pulsiranja. */
.est-mapa__luk--bez {
	stroke: rgba(240, 244, 247, 0.22);
	animation: none;
}

.est-mapa__tacka--bez circle:last-child {
	fill: rgba(255, 255, 255, 0.55);
	stroke: rgba(48, 151, 226, 0.6);
}

.est-mapa__tacka--bez .est-mapa__puls {
	display: none;
}

.est-mapa__tacka circle {
	fill: #fff;
	stroke: #3097e2;
	stroke-width: 2.5;
	transition: fill 0.15s ease;
}

.est-mapa__tacka .est-mapa__puls {
	fill: rgba(255, 255, 255, 0.25);
	stroke: none;
	transform-box: fill-box;
	transform-origin: center;
	animation: est-mapa-puls 2.4s ease-out infinite;
}

@keyframes est-mapa-puls {
	0% {
		transform: scale(0.6);
		opacity: 0.9;
	}

	100% {
		transform: scale(1.8);
		opacity: 0;
	}
}

.est-mapa__tacka:hover circle:last-child,
.est-mapa__tacka:focus-visible circle:last-child,
.est-mapa__tacka.je-izabrana circle:last-child {
	fill: #ffbb00;
	stroke: #fff;
}

.est-mapa__beograd circle {
	fill: #ffbb00;
	stroke: #fff;
	stroke-width: 2.5;
}

.est-mapa__beograd text {
	fill: #fff;
	font-family: "Raleway Bold", Arial, Helvetica, sans-serif;
	font-size: 15px;
}

/* Sadržaj ispod mape. */
.est-avanture__sadrzaj {
	max-width: 1180px;
	margin: 0 auto;
	padding: 2rem 16px 4rem;
}

.est-filteri {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
	scroll-margin-top: 100px;
}

.est-filteri__kategorije,
.est-filteri__prikaz {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.est-filter,
.est-filter:visited,
.est-prikaz,
.est-prikaz:visited {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1rem;
	border: 2px solid #b1c5d8;
	border-radius: 50px;
	background: #fff;
	color: #223e54;
	font-family: "Raleway SemiBold", Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.3;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.est-filter[hidden] {
	display: none;
}

.est-filter:hover,
.est-filter:focus,
.est-prikaz:hover,
.est-prikaz:focus {
	border-color: #3097e2;
	color: #223e54;
	text-decoration: none;
}

.est-filter.je-izabran,
.est-prikaz.je-izabran {
	border-color: #3097e2;
	background: #3097e2;
	color: #fff;
}

.est-filter--zemlja.je-izabran {
	border-color: #ffbb00;
	background: #ffbb00;
	color: #223e54;
}

/* Lista po mesecima. */
.est-lista__mesec {
	margin-bottom: 2.5rem;
}

.est-lista__mesec[hidden],
.est-av[hidden] {
	display: none;
}

.est-lista__naslov {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1.25rem;
	color: #223e54;
	font-family: "Kanit Bold", Arial, Helvetica, sans-serif;
	font-size: 1.4rem;
	text-transform: capitalize;
}

.est-lista__naslov::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #dae3ea;
}

.est-lista__mreza {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.est-avanture__prazno,
.est-avanture__nema-filter {
	padding: 2rem;
	border-radius: 16px;
	background: #fff;
	color: #4d6375;
	text-align: center;
}

/* Mesečni kalendar. */
.est-kal {
	padding: 1.5rem;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(34, 62, 84, 0.08);
}

.est-kal__zaglavlje {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}

.est-kal__mesec {
	min-width: 12rem;
	margin: 0;
	color: #223e54;
	font-family: "Kanit Bold", Arial, Helvetica, sans-serif;
	font-size: 1.5rem;
	text-align: center;
	text-transform: capitalize;
}

.est-kal__strelica,
.est-kal__strelica:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 2px solid #b1c5d8;
	border-radius: 50%;
	color: #223e54;
	font-size: 18px;
	text-decoration: none;
}

.est-kal__strelica:hover,
.est-kal__strelica:focus {
	border-color: #3097e2;
	background: #3097e2;
	color: #fff;
}

.est-kal__strelica.is-off {
	opacity: 0.3;
}

.est-kal__mreza {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}

.est-kal__dan-ime {
	padding: 0.4rem 0;
	color: #6d7d8b;
	font-family: "Raleway Bold", Arial, Helvetica, sans-serif;
	font-size: 13px;
	text-align: center;
	text-transform: uppercase;
}

.est-kal__polje {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 6.5rem;
	padding: 0.4rem;
	border-radius: 8px;
	background: #f6f9fb;
}

.est-kal__polje.is-prazno {
	background: transparent;
}

.est-kal__polje.je-danas {
	box-shadow: inset 0 0 0 2px #3097e2;
}

.est-kal__broj {
	color: #6d7d8b;
	font-family: "Raleway Bold", Arial, Helvetica, sans-serif;
	font-size: 13px;
}

.est-kal__polazak,
.est-kal__polazak:visited {
	display: block;
	padding: 0.3rem 0.45rem;
	border-radius: 6px;
	background: #3097e2;
	color: #fff;
	font-family: "Raleway SemiBold", Arial, Helvetica, sans-serif;
	font-size: 12.5px;
	line-height: 1.25;
	text-decoration: none;
}

.est-kal__polazak:hover,
.est-kal__polazak:focus {
	background: #223e54;
	color: #fff;
}

.est-kal__polazak-naslov {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.est-kal__polazak-dana {
	display: block;
	opacity: 0.85;
	font-size: 12.5px;
}

@media (max-width: 991.98px) {
	.est-lista__mreza {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

/* Telefon: kalendar postaje lista dana sa polascima. */
@media (max-width: 767.98px) {
	.est-filteri {
		flex-direction: column;
		align-items: stretch;
	}

	/* Svi filteri vidljivi (u dva reda), bez skrivenog listanja u stranu. */
	.est-filteri__kategorije {
		flex-wrap: wrap;
	}

	.est-filteri__kategorije::-webkit-scrollbar {
		display: none;
	}

	.est-filter {
		flex: 0 0 auto;
	}

	.est-kal {
		padding: 1rem;
	}

	.est-kal__mreza {
		grid-template-columns: 1fr;
	}

	.est-kal__dan-ime,
	.est-kal__polje.is-prazno,
	.est-kal__polje:not(.ima-polazak) {
		display: none;
	}

	.est-kal__polje {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		min-height: 0;
	}

	.est-kal__broj {
		width: 2.2rem;
		font-size: 15px;
	}

	.est-kal__polazak {
		flex: 1;
		font-size: 14px;
	}
}

@media (max-width: 575.98px) {
	.est-lista__mreza {
		grid-template-columns: 1fr;
	}

	.est-avanture__vrh {
		padding-top: 1.75rem;
	}

	.est-mapa__beograd text {
		font-size: 24px;
	}

	/* Mapa je na telefonu umanjena oko tri puta: veće tačke da se lakše vide i pritisnu. */
	.est-mapa__tacka circle:last-child,
	.est-mapa__beograd circle {
		r: 11px;
		stroke-width: 4;
	}

	.est-mapa__tacka .est-mapa__puls {
		r: 18px;
	}

	.est-mapa__luk {
		stroke-width: 2.5;
	}
}

@media (prefers-reduced-motion: reduce) {
	.est-mapa__luk,
	.est-mapa__tacka .est-mapa__puls {
		animation: none;
	}
}

/* Last minute: filter i oznaka u mesečnom kalendaru. */

.est-filter--lm,
.est-filter--lm:visited {
	border-color: #c2410c !important;
	color: #c2410c !important;
}

.est-filter--lm.je-izabran,
.est-filter--lm:hover,
.est-filter--lm:focus {
	background: #c2410c !important;
	color: #fff !important;
}

.est-kal__polazak--lm {
	box-shadow: inset 3px 0 0 #c2410c;
}

.est-kal__polazak .est-lm-oznaka {
	align-self: flex-start;
	margin-bottom: 0.15rem;
}
