/* ImamNemam – mobilni header i meni preko celog ekrana.
 * Važi do širine na kojoj tema prikazuje mobilni meni (Classima „resmenu_width“ = 1012px).
 * Selektori su namerno jači od teme (meanmenu.css + dinamički CSS teme). */

/* ---------- Traka (zatvoren header) ---------- */

.mean-container.imn-mheader .mean-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	min-height: 64px;
	padding: 0 12px 0 20px;
	background: #fff;
	border-bottom: 1px solid #E7E7EA;
	border-color: #E7E7EA;
}

.mean-container.imn-mheader .mean-bar,
.mean-container.imn-mheader .mean-bar * { box-sizing: border-box; }

.imn-mheader .mean-logo-area.imn-logo,
.imn-meni .imn-logo {
	display: flex;
	align-items: center;
	height: 40px;
	padding: 0;
	line-height: 0;
}

.mean-container.imn-mheader .mean-bar .mean-logo-area img.logo-small,
.imn-meni .imn-logo img.logo-small {
	display: block;
	width: auto;
	height: 40px;
	max-width: none;
	padding: 0;
}

/* Dugme za meni i za zatvaranje (isti izgled) */
.imn-mheader__dugme {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #F4F4F5;
	color: #17181C;
	line-height: 0;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s ease;
}

.imn-mheader__dugme:hover { background: #E9E9EC; color: #17181C; }
.imn-mheader__dugme:focus { outline: none; }
.imn-mheader__dugme:focus-visible { outline: 2px solid #17181C; outline-offset: 2px; }

/* ---------- Meni preko celog ekrana ---------- */

.imn-meni {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	background: #fff;
	font-family: 'Inter', sans-serif;
	-webkit-font-smoothing: antialiased;
	animation: imn-meni-ulaz .2s ease-out;
}

.imn-meni[hidden] { display: none !important; }

@keyframes imn-meni-ulaz {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.imn-meni { animation: none; }
}

.imn-meni *,
.imn-meni *::before,
.imn-meni *::after { box-sizing: border-box; }

.imn-meni__traka {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	height: 64px;
	padding: 0 12px 0 20px;
	border-bottom: 1px solid #E7E7EA;
}

.imn-meni__telo {
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	padding: 20px 20px calc(28px + env(safe-area-inset-bottom, 0px));
}

.imn-meni ul.imn-meni__lista,
.imn-meni ul.imn-meni__nalog { list-style: none; margin: 0; padding: 0; }

.imn-meni .imn-meni__lista li,
.imn-meni .imn-meni__nalog li { margin: 0; padding: 0; border: 0; }

.imn-meni .imn-meni__lista li a {
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: 0;
	font-family: 'Inter', sans-serif;
	font-size: 30px;
	line-height: 36px;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: #17181C;
	text-decoration: none;
	text-transform: none;
}

.imn-meni .imn-meni__lista li.current-menu-item > a,
.imn-meni .imn-meni__lista li.imn-trenutna > a,
.imn-meni .imn-meni__lista li a:hover,
.imn-meni .imn-meni__lista li a:focus-visible { color: #C12C2C; }

.imn-meni ul.imn-meni__nalog { padding-top: 8px; border-top: 1px solid #E7E7EA; }

.imn-meni .imn-meni__nalog a {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	line-height: 24px;
	font-weight: 500;
	color: #17181C;
	text-decoration: none;
}

.imn-meni .imn-meni__nalog a:hover { color: #C12C2C; }

.imn-meni__ikona { display: flex; justify-content: center; flex-shrink: 0; width: 24px; }
.imn-meni__tekst { flex: 1 1 auto; }

/* Broj nepročitanih poruka (span.rtcl-unread-badge ubacuje Classified Listing Pro) */
.imn-meni .imn-meni__znacka { position: static; display: flex; }
.imn-meni .imn-meni__znacka.je-nula { display: none; }

.imn-meni .imn-meni__znacka .rtcl-unread-badge {
	position: static;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	margin: 0;
	padding: 0 8px;
	border-radius: 999px;
	background: #C12C2C;
	color: #fff;
	font-size: 13px;
	line-height: 16px;
	font-weight: 600;
}

.imn-meni .imn-meni__oglas {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 56px;
	margin-top: 20px;
	border-radius: 12px;
	background: #C12C2C;
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 17px;
	line-height: 20px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .15s ease;
}

.imn-meni .imn-meni__oglas:hover,
.imn-meni .imn-meni__oglas:focus-visible { background: #A42525; color: #fff; }

/* Poravnanje sa sadržajem stranice: ivica logoa i dugmeta = ivica sadržaja teme
 * (Classima .container: 10px sa strane; od 768px širina 720px, od 992px širina 960px). */
.mean-container.imn-mheader .mean-bar,
.imn-meni__traka,
.imn-meni__telo { --imn-ivica: 10px; padding-left: var(--imn-ivica); padding-right: var(--imn-ivica); }

@media (min-width: 768px) and (max-width: 991.98px) {
	.mean-container.imn-mheader .mean-bar,
	.imn-meni__traka,
	.imn-meni__telo { --imn-ivica: calc((100% - 720px) / 2 + 10px); }
}

@media (min-width: 992px) {
	.mean-container.imn-mheader .mean-bar,
	.imn-meni__traka,
	.imn-meni__telo { --imn-ivica: calc((100% - 960px) / 2 + 10px); }
}

/* Dok je meni otvoren, stranica ispod se ne pomera */
body.imn-meni-otvoren { overflow: hidden; }

/* Na širini računara mobilni meni se nikad ne prikazuje */
@media (min-width: 1013px) {
	.imn-meni { display: none !important; }
}
