/* ============================================================
   Naseem Homes – Frontend stil
   ============================================================ */
:root {
	--nh-ink: #16202e;
	--nh-muted: #6b7585;
	--nh-line: #e7eaef;
	--nh-bg: #f5f6f8;
	--nh-card: #ffffff;
	--nh-navy: #0f1b2d;
	--nh-gold: #c6a15b;
	--nh-radius: 16px;
	--nh-radius-sm: 10px;
	--nh-shadow: 0 6px 24px rgba(16, 27, 42, .08);
	--nh-shadow-sm: 0 2px 10px rgba(16, 27, 42, .06);
	--nh-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.nh-app, .nh-single {
	font-family: var(--nh-font);
	color: var(--nh-ink);
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 18px 60px;
	box-sizing: border-box;
}
.nh-app *, .nh-single * { box-sizing: border-box; }

/* ---------- FILTERI ---------- */
.nh-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: flex-end;
	background: var(--nh-card);
	border: 1px solid var(--nh-line);
	border-radius: var(--nh-radius);
	padding: 16px 18px;
	box-shadow: var(--nh-shadow-sm);
	margin-bottom: 22px;
}
.nh-filter { display: flex; flex-direction: column; gap: 6px; min-width: 140px; flex: 1; }
.nh-filter label { font-size: 12px; font-weight: 600; color: var(--nh-muted); letter-spacing: .02em; }
.nh-filters select, .nh-filters input {
	border: 1px solid var(--nh-line);
	border-radius: var(--nh-radius-sm);
	padding: 10px 12px;
	font-size: 14px;
	background: #fff;
	color: var(--nh-ink);
	width: 100%;
	transition: border-color .15s, box-shadow .15s;
}
.nh-filters select:focus, .nh-filters input:focus {
	outline: none;
	border-color: var(--nh-navy);
	box-shadow: 0 0 0 3px rgba(15, 27, 45, .08);
}
.nh-reset {
	background: transparent;
	border: 1px solid var(--nh-line);
	color: var(--nh-muted);
	border-radius: var(--nh-radius-sm);
	padding: 10px 14px;
	font-size: 13px;
	cursor: pointer;
	height: 42px;
	white-space: nowrap;
}
.nh-reset:hover { border-color: var(--nh-navy); color: var(--nh-ink); }

/* ---------- LAYOUT: lista + mapa ---------- */
.nh-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
.nh-results-head { font-size: 14px; color: var(--nh-muted); margin-bottom: 14px; }
.nh-results-head .nh-count { color: var(--nh-ink); font-weight: 700; font-size: 16px; }

.nh-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
	gap: 18px;
}

.nh-map-wrap { position: sticky; top: 20px; }
.nh-map {
	width: 100%;
	height: calc(100vh - 40px);
	min-height: 480px;
	border-radius: var(--nh-radius);
	box-shadow: var(--nh-shadow);
	overflow: hidden;
	z-index: 1;
}

/* ---------- KARTICA ---------- */
.nh-card {
	background: var(--nh-card);
	border: 1px solid var(--nh-line);
	border-radius: var(--nh-radius);
	overflow: hidden;
	box-shadow: var(--nh-shadow-sm);
	transition: transform .18s ease, box-shadow .18s ease;
	display: flex;
	flex-direction: column;
}
.nh-card:hover { transform: translateY(-3px); box-shadow: var(--nh-shadow); }
.nh-card.nh-active { outline: 2px solid var(--nh-navy); outline-offset: -2px; }
.nh-card-media { position: relative; display: block; aspect-ratio: 16/11; overflow: hidden; background: #eef0f3; }
.nh-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.nh-card:hover .nh-card-media img { transform: scale(1.05); }
.nh-badge {
	position: absolute; top: 12px; left: 12px;
	background: var(--nh-navy); color: #fff;
	font-size: 12px; font-weight: 600;
	padding: 5px 10px; border-radius: 999px;
	letter-spacing: .02em;
}
.nh-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.nh-card-price { font-size: 18px; font-weight: 800; color: var(--nh-navy); }
.nh-card-title { font-size: 15px; line-height: 1.35; margin: 2px 0; font-weight: 600; }
.nh-card-title a { color: var(--nh-ink); text-decoration: none; }
.nh-card-title a:hover { color: var(--nh-navy); }
.nh-card-loc { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--nh-muted); }
.nh-card-desc { font-size: 13px; color: var(--nh-muted); line-height: 1.5; margin: 4px 0 0; }
.nh-card-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--nh-ink); margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--nh-line); }

/* ---------- LOAD MORE / PRAZNO ---------- */
.nh-loadmore-wrap { text-align: center; margin-top: 26px; }
.nh-loadmore {
	background: var(--nh-navy); color: #fff; border: 0;
	padding: 12px 28px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
	transition: opacity .15s;
}
.nh-loadmore:hover { opacity: .9; }
.nh-empty { text-align: center; color: var(--nh-muted); padding: 50px 0; font-size: 15px; }
.nh-list.nh-loading { opacity: .5; pointer-events: none; }

/* ---------- PIN NA MAPI ---------- */
.nh-pin {
	background: var(--nh-navy);
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	padding: 5px 9px;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(0,0,0,.25);
	border: 2px solid #fff;
	transform: translate(-50%, -50%);
	cursor: pointer;
	transition: background .15s, transform .15s;
}
.nh-pin:hover, .nh-pin.nh-pin-active { background: var(--nh-gold); transform: translate(-50%, -50%) scale(1.08); }
.leaflet-popup-content { margin: 0; }
.nh-pop { width: 200px; }
.nh-pop img { width: 100%; height: 110px; object-fit: cover; display: block; }
.nh-pop-body { padding: 8px 10px 10px; }
.nh-pop-price { font-weight: 800; color: var(--nh-navy); font-size: 15px; }
.nh-pop-title { font-size: 13px; margin: 3px 0 6px; color: var(--nh-ink); }
.nh-pop a.nh-pop-btn { font-size: 12px; color: var(--nh-navy); font-weight: 600; text-decoration: none; }

/* ============================================================
   SINGLE STRANA
   ============================================================ */
.nh-single-head { margin-bottom: 18px; }
.nh-single-head-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.nh-badge-inline { position: static; display: inline-block; margin-bottom: 10px; }
.nh-single-title { font-size: 30px; line-height: 1.2; margin: 0 0 8px; font-weight: 800; }
.nh-single-loc { display: flex; align-items: center; gap: 6px; color: var(--nh-muted); font-size: 15px; }
.nh-single-price { font-size: 26px; font-weight: 800; color: var(--nh-navy); white-space: nowrap; }

/* Galerija */
.nh-gallery { display: grid; gap: 10px; margin-bottom: 30px; border-radius: var(--nh-radius); overflow: hidden; }
.nh-gallery-multi { grid-template-columns: 2fr 1fr; }
.nh-gallery-main { display: block; height: 440px; }
.nh-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.nh-gallery-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nh-gallery-side a { position: relative; display: block; height: 215px; overflow: hidden; }
.nh-gallery-side img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.nh-gallery-side a:hover img { transform: scale(1.05); }
.nh-gallery-more {
	position: absolute; inset: 0; background: rgba(15,27,45,.55);
	color: #fff; font-size: 22px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.nh-gallery-single .nh-gallery-main { height: 460px; }

/* Body grid */
.nh-single-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.nh-single-main { min-width: 0; }

/* Brze činjenice */
.nh-facts {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 14px; margin-bottom: 30px;
}
.nh-fact {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
	background: var(--nh-card); border: 1px solid var(--nh-line);
	border-radius: 14px; padding: 16px 14px;
	box-shadow: var(--nh-shadow-sm);
	transition: transform .16s ease, box-shadow .16s ease;
}
.nh-fact:hover { transform: translateY(-3px); box-shadow: var(--nh-shadow); }
.nh-fact-ico { font-size: var(--nh-fact-ico, 30px); line-height: 1; display: flex; align-items: center; }
.nh-fact-label { font-size: 13px; color: var(--nh-muted); }
.nh-fact-val { font-weight: 800; font-size: 19px; color: var(--nh-ink); }

/* Sekcije */
.nh-section { margin-bottom: 34px; }
.nh-section h2 { font-size: 20px; font-weight: 700; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--nh-line); }
.nh-lead { font-size: 16px; font-weight: 500; color: var(--nh-ink); margin-bottom: 12px; }
.nh-desc { font-size: 15px; line-height: 1.75; color: #36414f; white-space: pre-line; }

/* Detalji */
.nh-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 24px; }
.nh-detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--nh-line); font-size: 14px; }
.nh-detail-k { color: var(--nh-muted); }
.nh-detail-v { font-weight: 600; text-align: right; }

/* Sadržaji */
.nh-amen-list { display: flex; flex-wrap: wrap; gap: 10px; }
.nh-amen-chip {
	display: inline-flex; align-items: center; gap: 7px;
	background: #f1f4f8; color: var(--nh-ink);
	padding: 9px 14px; border-radius: 999px; font-size: 14px;
}
.nh-amen-chip svg { color: #2e9e5b; }

/* Tlocrt / video / iframe */
.nh-floorplan { max-width: 100%; border: 1px solid var(--nh-line); border-radius: var(--nh-radius-sm); background:#fff; }
.nh-iframe-wrap, .nh-video { position: relative; padding-top: 56.25%; border-radius: var(--nh-radius); overflow: hidden; background:#000; }
.nh-iframe-wrap iframe, .nh-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nh-pano { width: 100%; height: 440px; border-radius: var(--nh-radius); overflow: hidden; }

/* Mapa na single */
.nh-single-map { width: 100%; height: 360px; border-radius: var(--nh-radius); box-shadow: var(--nh-shadow-sm); overflow: hidden; z-index: 1; }

/* Sidebar */
.nh-single-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 18px; }
.nh-side-card { background: var(--nh-card); border: 1px solid var(--nh-line); border-radius: var(--nh-radius); box-shadow: var(--nh-shadow); padding: 20px; }
.nh-side-price { font-size: 24px; font-weight: 800; color: var(--nh-navy); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--nh-line); }

/* Booking forma */
.nh-booking h3 { font-size: 16px; margin: 0 0 14px; font-weight: 700; }
.nh-booking-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nh-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.nh-field label { font-size: 12px; font-weight: 600; color: var(--nh-muted); }
.nh-booking input, .nh-booking textarea {
	border: 1px solid var(--nh-line); border-radius: var(--nh-radius-sm);
	padding: 10px 12px; font-size: 14px; font-family: inherit; background:#fff; color: var(--nh-ink); width: 100%;
}
.nh-booking input:focus, .nh-booking textarea:focus { outline: none; border-color: var(--nh-navy); box-shadow: 0 0 0 3px rgba(15,27,45,.08); }
.nh-booking-submit {
	width: 100%; background: var(--nh-navy); color: #fff; border: 0;
	padding: 14px; border-radius: var(--nh-radius-sm); font-size: 15px; font-weight: 700; cursor: pointer;
	transition: opacity .15s; margin-top: 4px;
}
.nh-booking-submit:hover { opacity: .92; }
.nh-booking-submit:disabled { opacity: .6; cursor: default; }
.nh-booking-msg { margin-top: 12px; padding: 12px; border-radius: var(--nh-radius-sm); font-size: 14px; }
.nh-booking-msg.ok { background: #e8f6ee; color: #1c6b3f; }
.nh-booking-msg.err { background: #fcebeb; color: #a32626; }

/* Agent */
.nh-agent { display: flex; gap: 14px; align-items: center; }
.nh-agent-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nh-agent-name { font-weight: 700; font-size: 15px; }
.nh-agent-agency { font-size: 13px; color: var(--nh-muted); margin-bottom: 6px; }
.nh-agent-link { display: block; font-size: 13px; color: var(--nh-navy); text-decoration: none; }
.nh-agent-link:hover { text-decoration: underline; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
	.nh-single-body { grid-template-columns: 1fr; }
	.nh-single-side { position: static; }
}
@media (max-width: 900px) {
	.nh-layout { grid-template-columns: 1fr; }
	.nh-map-wrap { position: relative; top: 0; order: -1; }
	.nh-map { height: 340px; min-height: 0; }
	.nh-gallery-multi { grid-template-columns: 1fr; }
	.nh-gallery-main { height: 280px; }
	.nh-gallery-side { grid-template-columns: 1fr 1fr; }
	.nh-gallery-side a { height: 130px; }
	.nh-single-head-inner { align-items: flex-start; }
	.nh-single-title { font-size: 24px; }
}
@media (max-width: 600px) {
	.nh-app, .nh-single { padding: 16px 14px 48px; }
	/* Filteri: svaki u svom redu, puna širina — lakše na telefonu */
	.nh-filters { padding: 14px; gap: 12px; }
	.nh-filter { min-width: 100%; flex: 1 1 100%; }
	.nh-reset { width: 100%; }
	/* Lista: jedna kolona */
	.nh-list { grid-template-columns: 1fr; }
	.nh-map { height: 300px; }
	/* Quick facts: 3 per row on phones */
	.nh-facts { grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.nh-fact { padding: 12px; }
	.nh-fact-val { font-size: 16px; }
	/* Detalji u jednu kolonu */
	.nh-detail-grid { grid-template-columns: 1fr; }
	.nh-single-price { font-size: 22px; }
	.nh-section h2 { font-size: 18px; }
}
@media (max-width: 420px) {
	.nh-gallery-main { height: 220px; }
	.nh-gallery-side a { height: 100px; }
	.nh-booking-dates { grid-template-columns: 1fr; }
	.nh-facts { grid-template-columns: repeat(2, 1fr); }
	.nh-single-title { font-size: 21px; }
}

/* Elementor widget optional heading */
.nh-el-heading { font-size: 20px; font-weight: 700; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--nh-line); }
.elementor-widget .nh-single, .elementor-widget .nh-app { padding: 0; max-width: none; }

/* Custom quick-fact icons */
.nh-fact-img { width: var(--nh-fact-ico, 30px); height: var(--nh-fact-ico, 30px); object-fit: contain; display: inline-block; vertical-align: middle; }

/* Listing card meta icons (fixed small size, independent of Quick-fact size) */
.nh-card-ico { width: 15px; height: 15px; object-fit: contain; display: inline-block; vertical-align: -2px; }

/* ---------- Currency switcher ---------- */
.nh-cur-switch { display: inline-flex; border: 1px solid var(--nh-line); border-radius: 999px; overflow: hidden; background: var(--nh-card); }
.nh-cur-btn { border: 0; background: transparent; padding: 7px 14px; font: 600 13px var(--nh-font); color: var(--nh-muted); cursor: pointer; transition: background .15s, color .15s; }
.nh-cur-btn + .nh-cur-btn { border-left: 1px solid var(--nh-line); }
.nh-cur-btn:hover { color: var(--nh-ink); }
.nh-cur-active, .nh-cur-active:hover { background: var(--nh-navy); color: #fff; }

/* ---------- Reviews ---------- */
.nh-reviews-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.nh-reviews-avg { font-size: 26px; font-weight: 800; color: var(--nh-ink); line-height: 1; }
.nh-reviews-count { color: var(--nh-muted); font-size: 14px; }
.nh-stars { display: inline-flex; gap: 2px; }
.nh-star { color: #dfe3ea; font-size: 16px; line-height: 1; }
.nh-star.on { color: #f5b301; }
.nh-reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.nh-review { background: var(--nh-card); border: 1px solid var(--nh-line); border-radius: 14px; padding: 18px; box-shadow: var(--nh-shadow-sm); }
.nh-review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.nh-review-ava { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: 0 0 46px; display: flex; align-items: center; justify-content: center; background: var(--nh-navy); color: #fff; font-weight: 700; font-size: 18px; }
.nh-review-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nh-review-meta { display: flex; flex-direction: column; }
.nh-review-name { font-weight: 700; color: var(--nh-ink); }
.nh-review-when { font-size: 12.5px; color: var(--nh-muted); }
.nh-review-stars { margin-bottom: 8px; }
.nh-review-text { color: #2a3543; line-height: 1.6; font-size: 14.5px; }
.nh-review.nh-hidden { display: none; }
.nh-reviews-morewrap { text-align: center; margin-top: 18px; }
.nh-reviews-more { background: var(--nh-card); border: 1px solid var(--nh-line); border-radius: 999px; padding: 10px 22px; font: 600 14px var(--nh-font); color: var(--nh-ink); cursor: pointer; transition: box-shadow .15s; }
.nh-reviews-more:hover { box-shadow: var(--nh-shadow-sm); }
@media (max-width: 680px) { .nh-reviews-grid { grid-template-columns: 1fr; } }
