/* Total Oglasnik: javni dio */
:root {
  --brand: #5b21b6;
  --brand-600: #6d28d9;
  --brand-700: #4c1d95;
  --brand-50: #f5f3ff;
  --brand-100: #ede9fe;
  --cta: #f59e0b;
  --cta-600: #d97706;
  --cta-ink: #1f1300;
  --ink: #17132a;
  --ink-2: #3f3a55;
  --muted: #6b6880;
  --line: #e7e5ef;
  --bg: #f7f6fb;
  --card: #ffffff;
  --ok: #047857;
  --ok-bg: #ecfdf5;
  --warn: #92400e;
  --warn-bg: #fffbeb;
  --err: #b91c1c;
  --err-bg: #fef2f2;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 19, 42, .06), 0 4px 16px rgba(23, 19, 42, .05);
  --shadow-lg: 0 10px 40px rgba(23, 19, 42, .12);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --w: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 2px; border-radius: 4px; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; }
.center { text-align: center; }

.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 860px; }
.section { margin: 44px auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.link-more { font-weight: 700; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ---------- gumbi i obrasci ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .05s; }
.btn:hover { background: var(--brand-700); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-cta { background: var(--cta); color: var(--cta-ink); }
.btn-cta:hover { background: var(--cta-600); color: var(--cta-ink); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.btn-danger { background: #fff; color: var(--err); border-color: #fecaca; }
.btn-danger:hover { background: var(--err); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.linklike:hover { text-decoration: underline; }

input[type=text], input[type=search], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=url], input[type=date], input[type=datetime-local], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d6d3e2; border-radius: var(--r-sm); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6880' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
select:disabled { background-color: #f3f2f7; color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(109, 40, 217, .18); }
[aria-invalid=true] { border-color: var(--err) !important; }
.ff { margin-bottom: 16px; min-width: 0; }
.ff label, .ff legend { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
fieldset.ff { border: 0; padding: 0; margin-inline: 0; }
.ff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.req { color: var(--err); font-weight: 700; }
.hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.field-error { color: var(--err); font-size: .875rem; font-weight: 600; margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin: 6px 0 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.check.is-invalid { color: var(--err); }

.alert { padding: 12px 16px; border-radius: var(--r-sm); margin: 16px 0; font-weight: 600; border: 1px solid; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: #a7f3d0; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
.alert-error { background: var(--err-bg); color: var(--err); border-color: #fecaca; }

.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; }
.box-title { font-size: 1.05rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

/* ---------- zaglavlje ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo img { height: 46px; width: auto; }
.header-search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 14px; color: var(--muted); }
.header-search input { border: 0; background: transparent; min-height: 36px; padding: 0; box-shadow: none !important; }
.header-search .btn { border-radius: 999px; }
.header-search.inline { margin: 24px auto; max-width: 460px; background: #fff; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--ink-2); font-weight: 700; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--brand-50); color: var(--brand); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; border-radius: 8px; }

/* ---------- naslovnica ---------- */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(245, 158, 11, .22), transparent 60%), linear-gradient(135deg, #3b0f80 0%, #5b21b6 55%, #7c3aed 100%); color: #fff; padding: 56px 0 64px; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); color: #fff; margin-bottom: 14px; }
.hero h1 span { color: #fcd34d; }
.hero-sub { font-size: 1.12rem; color: #e9e3ff; max-width: 640px; margin-bottom: 28px; }
.hero-search { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 8px; background: #fff; border-radius: 18px; padding: 8px; box-shadow: var(--shadow-lg); max-width: 1000px; }
.hs-field { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; color: var(--muted); background: var(--bg); min-width: 0; }
.hs-field input, .hs-field select { border: 0; background-color: transparent; min-height: 50px; padding-left: 0; box-shadow: none !important; }
.hs-field:focus-within { box-shadow: 0 0 0 2px var(--brand-600); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-tile:hover { text-decoration: none; color: var(--ink); border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 6px; }
.cat-name { font-weight: 700; line-height: 1.3; font-size: .95rem; }
.cat-count { font-size: .82rem; color: var(--muted); }

.cta-band { background: var(--ink); color: #fff; margin: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 16px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: 1.6rem; }
.cta-inner p { color: #c9c5d9; margin: 0; }

.county-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.county-list a { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); font-weight: 600; }
.county-list a:hover { border-color: var(--brand-100); background: var(--brand-50); text-decoration: none; }
.county-list .ic { color: var(--brand); }
.county-list span { flex: 1; }
.county-list em { font-style: normal; color: var(--muted); font-size: .85rem; }

/* ---------- kartice oglasa ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s, border-color .15s; position: relative; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card.is-featured { border-color: #fcd34d; box-shadow: 0 0 0 1px #fcd34d; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #efedf5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #b7b1cc; }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: .74rem; font-weight: 800; background: rgba(255, 255, 255, .95); color: var(--ink-2); }
.badge-feat { background: #fcd34d; color: #3b2300; }
.badge-new { background: var(--brand); color: #fff; }
.card-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgba(23, 19, 42, .7); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: .98rem; font-weight: 700; margin: 0 0 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--ink); }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:hover { text-decoration: none; color: var(--brand); }
.card-price { font-size: 1.15rem; font-weight: 800; color: var(--brand-700); margin: 0 0 10px; }
.card-specs { margin: -4px 0 10px; font-size: .82rem; color: var(--ink-2); font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cat-fields:not(:empty) { margin-top: 6px; }
.cat-fields-head { display: flex; align-items: center; gap: 8px; color: var(--brand); margin: 6px 0 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.cat-fields-head strong { color: var(--ink); }
.ff-wide { grid-column: 1 / -1; }
.opt-group { border: 0; padding: 0; margin: 0; }
.opt-group legend { font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); padding: 0; }
.opt-group.is-invalid legend { color: var(--err); }
.opt { display: inline-flex; align-items: center; gap: 6px; margin: 0 16px 8px 0; font-size: .95rem; cursor: pointer; }
.opt input { width: 18px; height: 18px; accent-color: var(--brand); }
.field-filters { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
.field-filters .opt { display: flex; margin: 0 0 6px; }
.ff-title { font-weight: 800; margin: 0 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.card-meta { margin: auto 0 0; display: flex; flex-direction: column; gap: 3px; font-size: .82rem; color: var(--muted); }
.card-meta span { display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- pretraga ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); margin: 20px 0 14px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-current] { color: var(--ink-2); font-weight: 600; }
.search-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.search-head h1 { margin-bottom: 2px; }
.search-head p { margin: 0; }
.filters-toggle { display: none; }
.cat-intro { color: var(--ink-2); max-width: 820px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.chip em { font-style: normal; color: var(--muted); font-weight: 500; }
.chip:hover { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand); text-decoration: none; }
.chip.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip.is-active em { color: #ddd6fe; }
.chip-back { background: var(--brand-50); }
.search-layout { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: 90px; }
.filter-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.filter-form .btn + .btn { margin-top: 8px; }
.results-bar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.sort-form select { min-height: 38px; width: auto; padding-top: 6px; padding-bottom: 6px; }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ad-slot { margin: 20px 0; text-align: center; overflow: hidden; }
.ad-in-grid { grid-column: 1 / -1; margin: 4px 0; }
.empty-state { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.empty-state .ic { color: #c4bedb; margin-bottom: 10px; }
.empty-state h1, .empty-state h2 { color: var(--ink); }
.empty { color: var(--muted); }
.big404 { font-size: 5rem; font-weight: 800; color: var(--brand-100); margin: 0; line-height: 1; }
.page-404 { margin-top: 30px; margin-bottom: 60px; }
.seo-text { margin: 40px 0 10px; padding: 28px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 30px 0 10px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; padding: 0 10px; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination span[aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .gap { border: 0; background: none; }

/* ---------- oglas ---------- */
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 24px; align-items: start; }
.gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 18px; }
.gallery-stage { position: relative; aspect-ratio: 4 / 3; background: #15121f; }
.gallery-slide { position: absolute; inset: 0; display: none; }
.gallery-slide.is-active { display: block; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumbs button { flex: none; width: 82px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #eee; opacity: .7; }
.gallery-thumbs button.is-active { border-color: var(--brand); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty { aspect-ratio: 16 / 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #b7b1cc; background: #f3f1f9; }
.listing-head h1, .listing-head-mobile .h1-like { font-weight: 800; line-height: 1.2; letter-spacing: -.01em; font-size: 1.5rem; margin-bottom: 8px; overflow-wrap: anywhere; }
.listing-head-mobile { display: none; }
.price-big { font-size: 1.8rem; font-weight: 800; color: var(--brand-700); margin: 0 0 12px; }
.price-big small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.listing-facts { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .92rem; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.listing-facts span { display: flex; align-items: center; gap: 8px; }
.seller { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.seller div { display: flex; flex-direction: column; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; flex: none; }
.contact-actions { display: grid; gap: 8px; }
.contact-actions a.btn { white-space: normal; overflow-wrap: anywhere; }
.share { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: .88rem; color: var(--muted); margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.sticky { position: sticky; top: 90px; }
.safety ul { padding-left: 18px; margin: 0 0 12px; color: var(--ink-2); font-size: .92rem; }
.safety .box-title .ic { color: var(--ok); }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.listing-desc { overflow-wrap: anywhere; }
.map { width: 100%; height: 300px; border: 0; border-radius: var(--r-sm); }

/* ---------- prose (blog, opisi) ---------- */
.prose { color: var(--ink-2); font-size: 1.02rem; line-height: 1.7; }
.prose h2 { font-size: 1.45rem; margin: 1.6em 0 .6em; color: var(--ink); scroll-margin-top: 90px; }
.prose h3 { font-size: 1.18rem; margin: 1.4em 0 .5em; color: var(--ink); scroll-margin-top: 90px; }
.prose img { border-radius: var(--r-sm); margin: 1.2em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--brand); background: var(--brand-50); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--bg); }
.prose iframe { max-width: 100%; border-radius: var(--r-sm); }
.prose > :first-child { margin-top: 0; }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.post-media { aspect-ratio: 16 / 9; background: var(--brand-50); display: block; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-noimg { height: 100%; display: grid; place-items: center; color: var(--brand-100); }
.post-body { padding: 18px; }
.post-body time { font-size: .82rem; color: var(--muted); font-weight: 600; }
.post-body h3 { margin: 6px 0 8px; font-size: 1.08rem; }
.post-body h3 a { color: var(--ink); }
.post-body p { color: var(--muted); font-size: .93rem; margin: 0; }
.page-blog h1 { margin-bottom: 4px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.post-article { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 4vw, 44px); }
.post-header h1 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); overflow-wrap: anywhere; }
.prose { overflow-wrap: break-word; }
.post-header p { display: flex; align-items: center; gap: 6px; }
.post-hero { width: 100%; border-radius: var(--r-sm); margin: 10px 0 24px; aspect-ratio: 16 / 9; object-fit: cover; }
.toc { background: var(--bg); }
.toc ol { margin: 10px 0 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc .toc-l3 { margin-left: 16px; list-style: circle; font-size: .94rem; }
.post-side .box { position: static; }
.mini-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini-posts a { display: flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 600; font-size: .92rem; line-height: 1.35; }
.mini-posts img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.side-cta { background: var(--brand-50); border-color: var(--brand-100); }

/* ---------- objava oglasa ---------- */
.page-submit { max-width: 900px; }
.submit-head { margin: 28px 0 18px; }
.form-section { padding: 26px; }
.form-step { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 18px; }
.form-step span { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .9rem; flex: none; }
.cascade { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 30px 20px; border: 2px dashed #cfc8e6; border-radius: var(--r); background: var(--brand-50); color: var(--brand); cursor: pointer; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: var(--brand-100); }
.dropzone strong { color: var(--ink); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.img-preview, .img-existing { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.img-preview figure, .img-thumb { margin: 0; position: relative; border-radius: var(--r-sm); overflow: hidden; background: #eee; aspect-ratio: 4 / 3; }
.img-preview img, .img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-preview figcaption { position: absolute; left: 6px; top: 6px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.img-thumb span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: .8rem; padding: 4px 6px; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.img-existing { margin: 0 0 14px; }
.submit-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 60px; }
.submit-actions p { margin: 0; }
.manage-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.manage-actions { display: flex; gap: 8px; }
.manage-actions form { margin: 0; }
.status { display: inline-block; font-size: .8rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: var(--bg); }
.status-active { background: var(--ok-bg); color: var(--ok); }
.status-pending { background: var(--warn-bg); color: var(--warn); }
.status-expired, .status-rejected { background: var(--err-bg); color: var(--err); }
.page-thanks { margin: 40px auto 70px; }
.big-check { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: inline-grid; place-items: center; margin-bottom: 10px; }
.manage-link { background: var(--warn-bg); border: 1px solid #fde68a; border-radius: var(--r-sm); padding: 16px; margin: 20px 0; text-align: left; }
.copy-row { display: flex; gap: 8px; }
.page-contact, .page-static { margin-bottom: 60px; }
.contact-form { margin-top: 20px; }

/* ---------- podnožje ---------- */
.site-footer { background: #120e22; color: #bdb8cf; margin-top: 60px; padding-top: 48px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-about img { height: 44px; width: auto; margin-bottom: 14px; }
.footer-h { font-size: .95rem; color: #fff; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-links a, .site-footer a:not(.btn) { color: #bdb8cf; }
.footer-links a:hover { color: #fff; }
.footer-tip { display: flex; gap: 8px; }
.footer-tip .ic { color: #6ee7b7; margin-top: 2px; }
.footer-bottom { border-top: 1px solid #2a2440; margin-top: 36px; padding: 18px 16px; font-size: .85rem; }

/* ---------- responzivno ---------- */
@media (max-width: 1080px) {
  .header-search { display: none; }
  .listing-layout { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
  .listing-layout, .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-article, .post-side { min-width: 0; }
  /* na mobitelu: galerija, naslov, kontakt, pa detalji i opis */
  .listing-layout { gap: 0; }
  .listing-main, .listing-side { display: contents; }
  .listing-layout > * , .listing-layout .box, .listing-layout .ad-slot { order: 5; min-width: 0; }
  .listing-layout .gallery { order: 1; }
  .listing-layout .listing-head-mobile { order: 2; }
  .listing-layout .listing-side .sticky { order: 3; }
  .listing-layout .safety { order: 9; }
  .listing-head { display: none; }
  .listing-head-mobile { display: block; margin-bottom: 18px; }
  .sticky { position: static; }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hs-q { grid-column: 1 / -1; }
  .hero-search .btn { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .header-row { gap: 10px; min-height: 64px; }
  .logo img { height: 38px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 16px; box-shadow: var(--shadow-lg); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; }
  .nav-toggle { display: block; }
  .header-row > .btn-cta { margin-left: auto; padding: 0 12px; min-height: 40px; font-size: .85rem; gap: 4px; }
  .hero { padding: 36px 0 40px; }
  .hero-search { grid-template-columns: 1fr; }
  .cards, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px 10px 12px; }
  .card-title { font-size: .9rem; }
  .card-price { font-size: 1.02rem; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cat-tile { padding: 14px 12px; }
  .box, .form-section { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-nav { width: 38px; height: 38px; }
  .section { margin: 32px auto; }
  .copy-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
