/* hocukvadrat.com: plava paleta u stilu Bookinga (tamnoplavo zaglavlje, svijetloplava akcija),
   žuta se koristi isključivo za istaknute oglase. */
:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #1a2b49;
  --ink-2: #3a4a68;
  --mute: #5d6d8a;
  --edge: rgba(15, 23, 42, .22);   /* mekani rub kartica: prozirna tamna */
  --soft: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .08);
  --line: #d9e1ee;
  --line-strong: #b8c5dc;
  --sea: #006ce4;        /* primarna akcija */
  --sea-dark: #0057b8;
  --mist: #dbe9fb;
  --mist-2: #eaf2fd;
  --sun: #febb02;
  --sun-ink: #2a2000;
  --ok: #1f7a4f;
  --ok-bg: #e0f3e8;
  --bad: #b4332b;
  --bad-bg: #fbe7e5;
  --warn-bg: #fff4d1;
  --warn-line: #f0dc9a;
  --r: 8px;
  --r-lg: 14px;
  --night: #003b95;      /* zaglavlje, hero */
  --abyss: #00265f;      /* podnožje */
  --deep: #003b95;
  --gold: #febb02;       /* isključivo za istaknute oglase */
  --gold-deep: #e5a000;
  --gold-soft: #fff6d6;
  --shadow: 0 1px 2px rgba(0, 38, 95, .06), 0 10px 28px rgba(0, 38, 95, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.site-header, .site-footer { flex: 0 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(1.65rem, 3.4vw, 2.2rem); font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 650; }
h3 { font-size: 1.02rem; font-weight: 650; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.wrap { width: min(1320px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.loading { padding: 64px 0; color: var(--mute); }
.muted { color: var(--mute); }

/* ---------- zaglavlje */
.site-header { background: var(--night); box-shadow: 0 2px 10px rgba(0,38,95,.25); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; gap: 24px; padding: 14px 0; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.logo-com { font-weight: 400; opacity: .8; }
.logo-mark { width: 24px; height: 24px; background: #fff; clip-path: polygon(0 100%, 0 38%, 50% 0, 100% 38%, 100% 100%, 64% 100%, 64% 62%, 36% 62%, 36% 100%); }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { color: #e3ecfb; text-decoration: none; padding: 8px 12px; border-radius: var(--r); font-weight: 500; font-size: .95rem; }
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.bar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.link-plain { color: #fff; font-weight: 550; text-decoration: none; padding: 8px 6px; }
.link-plain:hover { color: #fff; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--r); font-weight: 550; max-width: 220px; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; }
.menu summary:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span.name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); min-width: 230px; border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 6px; display: grid; box-shadow: var(--shadow); }
.menu-panel a, .menu-panel button { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; border-radius: 6px; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--mist); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.site-header .btn-primary { background: #fff; color: var(--sea); }
.site-header .btn-primary:hover { background: var(--mist-2); }
.site-header .dot { background: var(--gold); color: var(--sun-ink); }
.dot { background: var(--sea); color: #fff; border-radius: 99px; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }

/* ---------- gumbi i polja */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--r); border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.25; transition: background .15s, border-color .15s, color .15s; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-dark); }
.btn-ink { background: var(--night); color: #fff; }
.btn-ink:hover { background: var(--abyss); }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--sea); color: var(--sea); background: var(--mist-2); }
.btn-danger { background: var(--paper); color: var(--bad); border-color: #efc4c0; }
.btn-danger:hover { background: var(--bad-bg); border-color: var(--bad); }
.btn[aria-pressed=true] { background: var(--mist); border-color: var(--sea); color: var(--sea); }
.btn[aria-pressed=true] span { color: #d2564d; }
.btn-lg { padding: 13px 24px; font-size: 1.02rem; }
.btn-sm { padding: 6px 12px; font-size: .88rem; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--sea); text-decoration: underline; cursor: pointer; }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.hint { font-weight: 400; color: var(--mute); font-size: .85rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 10px 12px; }
input:hover, select:hover, textarea:hover { border-color: var(--sea); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(0, 108, 228, .18); }
textarea { min-height: 140px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--sea); }
.field { margin-bottom: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { position: relative; margin: 0; }
.pill input { position: absolute; opacity: 0; inset: 0; }
.pill span { display: block; padding: 7px 16px; border: 1px solid var(--line-strong); border-radius: 99px; font-weight: 550; cursor: pointer; background: var(--paper); color: var(--ink-2); }
.pill span:hover { border-color: var(--sea); }
.pill input:checked + span { background: var(--mist); border-color: var(--sea); color: var(--sea-dark); }
.pill input:focus-visible + span { outline: 2px solid var(--sea); outline-offset: 2px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 16px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 450; margin: 0; padding: 4px 0; color: var(--ink); }
.form-error { color: var(--bad); font-weight: 550; margin: 0 0 16px; }
.form-error:empty { display: none; }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 20px; }
.notice.info { background: var(--mist); border-color: #bcd4f3; }
.notice.warn { background: var(--bad-bg); border-color: #efcdc9; }

/* ---------- hero */
.hero { background: var(--night); padding: 52px 0 60px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 420px at 85% -10%, rgba(0, 108, 228, .55), transparent 70%), radial-gradient(600px 300px at 0% 110%, rgba(0, 108, 228, .35), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 750; letter-spacing: -0.02em; margin-bottom: 8px; color: #fff; }
.hero-sub { color: #cfe0fb; font-size: 1.1rem; margin: 0 0 30px; max-width: 54ch; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border-radius: var(--r-lg); text-decoration: none; color: var(--ink); border: 2px solid transparent; box-shadow: 0 6px 18px rgba(0, 20, 60, .22); transition: transform .15s, border-color .15s, box-shadow .15s; }
.cat:hover { transform: translateY(-3px); border-color: var(--sea); box-shadow: 0 12px 26px rgba(0, 20, 60, .32); }
.cat-ico { flex: 0 0 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); color: var(--sea); }
.cat-ico svg { width: 28px; height: 28px; }
.cat.sale .cat-ico { background: var(--night); color: #fff; }
.cat-txt { display: grid; gap: 1px; flex: 1; min-width: 0; }
.cat-txt strong { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
.cat-txt small { color: var(--mute); font-size: .88rem; }
.cat-go { color: var(--sea); font-size: 1.5rem; line-height: 1; transition: transform .15s; }
.cat:hover .cat-go { transform: translateX(3px); }
.cat.biz { grid-column: 1 / -1; background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .4); box-shadow: none; color: #fff; }
.cat.biz:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }
.cat.biz .cat-ico { background: #fff; color: var(--sea); }
.cat.biz .cat-txt small { color: #d6e5fc; }
.cat.biz .cat-go { color: #fff; }
.hero-links { margin-top: 18px; display: flex; gap: 10px 22px; flex-wrap: wrap; color: #cfe0fb; font-size: .95rem; align-items: center; }
.hero-links a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.hero-meta { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-meta strong { color: #fff; font-size: 1.1rem; font-weight: 700; margin-right: 4px; }

/* ---------- sekcije i kartice */
.section { padding: 44px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.45rem; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 24px; }
.card { position: relative; background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; box-shadow: var(--soft); }
.card:hover { border-color: rgba(15, 23, 42, .32); box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 14px 32px rgba(15, 23, 42, .14); transform: translateY(-2px); }
.card-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; height: 100%; }
.card-img { aspect-ratio: 4 / 3; background: var(--mist); position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.04); }
.noimg { height: 100%; display: grid; place-items: center; color: var(--mute); font-weight: 550; background: repeating-linear-gradient(135deg, var(--mist) 0 12px, #e6effb 12px 24px); }
.tag { position: absolute; top: 12px; left: 12px; font-size: .78rem; font-weight: 700; padding: 4px 11px; border-radius: 6px; background: var(--sea); color: #fff; box-shadow: 0 2px 6px rgba(0, 38, 95, .25); }
.tag.sale { background: var(--night); }
.fav { position: absolute; top: 9px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); cursor: pointer; font-size: 1.1rem; line-height: 1; color: #9aa8c2; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 38, 95, .2); }
.fav:hover, .fav[aria-pressed=true] { color: #e0453a; }
.card-body { padding: 16px 18px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.loc { color: var(--sea); margin: 0; font-size: .88rem; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.loc svg { width: 13px; height: 13px; flex: 0 0 13px; }
.card h3 { font-size: 1.04rem; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.facts { margin: 0; padding: 0; list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.facts li, .fact { background: var(--mist-2); color: var(--ink-2); font-size: .8rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price { white-space: nowrap; font-size: 1.3rem; font-weight: 750; letter-spacing: -0.01em; color: var(--night); line-height: 1.1; }
.price small { font-size: .82rem; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.seller { margin: 0; font-size: .8rem; color: var(--mute); text-align: right; display: grid; gap: 2px; justify-items: end; max-width: 46%; }
.seller .tag-pro { justify-self: end; }
.seller span.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tag-pro { display: inline-block; background: var(--night); color: #fff; font-weight: 700; font-size: .72rem; line-height: 1; letter-spacing: .02em; padding: 4px 8px; border-radius: 5px; vertical-align: middle; }
.verified { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 650; }
.verified::before { content: "✓"; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--ok); color: #fff; font-size: .66rem; }

/* istaknuti oglasi: žuti, s vrpcom, sjajem i većim naglaskom */
.ribbon { display: none; background: #fff3c4; color: #7a5a00; font-weight: 650; font-size: .85rem; padding: 6px 14px; align-items: center; gap: 8px; border-bottom: 1px solid #f0d98c; }
.ribbon::before { content: "★"; font-size: .95rem; color: #e0a800; }
.card.featured { background: #fffcf0; border: 1px solid #f0d98c; box-shadow: var(--soft); }
.card.featured:hover { border-color: #e6c55c; box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 14px 32px rgba(180, 130, 0, .16); }
.card.featured .ribbon { display: flex; }
.card.featured .card-foot { border-top-color: #f3e5b0; }
.card.featured .price { background: none; padding: 0; box-shadow: none; }
.card.featured .price small { color: #5b4500; }
.loc .views { margin-left: auto; color: var(--mute); font-weight: 500; font-size: .8rem; white-space: nowrap; }
.card.featured .loc { color: #8a6a00; }
.card.featured .facts li, .card.featured .fact { background: #fff0bd; color: #5a4300; }
.card.featured .seller { color: #6b5200; }
.card.featured .verified { color: #1b6b45; }
.card.featured .card-img::after { content: none; }

.spot { padding: 44px 0 0; }
.spot .section-head { margin-bottom: 22px; }
.spot h2 { display: flex; align-items: center; gap: 10px; }
.spot h2::before { content: "★"; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--sun-ink); font-size: 1.05rem; box-shadow: 0 2px 0 var(--gold-deep); }
.spot .sub { margin: 4px 0 0 44px; color: var(--mute); font-size: .95rem; }
.spot .grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.band { margin: 56px 0 0; background: linear-gradient(110deg, var(--night), #0a55c9); }
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 40px 0; flex-wrap: wrap; }
.band h2 { margin-bottom: 6px; color: #fff; font-size: 1.5rem; }
.band p { margin: 0; color: #d6e5fc; max-width: 58ch; }
.band .btn-primary, .hero .btn-primary { background: var(--gold); color: var(--sun-ink); }
.band .btn-primary:hover, .hero .btn-primary:hover { background: #ffd24d; }

/* ---------- pretraga */
.page { padding: 36px 0 56px; }
.page-head { margin-bottom: 24px; }
.search-layout { display: grid; grid-template-columns: 290px 1fr; gap: 32px; align-items: start; }
.filters { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 20px; position: sticky; top: 84px; }
.filters summary { font-weight: 650; cursor: pointer; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters[open] summary { margin-bottom: 18px; }
.filters .field { margin-bottom: 16px; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.results-head select { width: auto; padding: 7px 10px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink-2); text-decoration: none; font-weight: 550; }
.pager a:hover { border-color: var(--sea); color: var(--sea); }
.pager .on { background: var(--mist); color: var(--sea-dark); border-color: var(--sea); }
.empty { background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); padding: 40px 24px; text-align: center; }
.empty h3 { margin-bottom: 6px; }

/* ---------- detalj oglasa */
.crumbs { font-size: .9rem; color: var(--mute); margin-bottom: 18px; }
.crumbs a { color: var(--mute); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 36px; align-items: start; }
.gallery { margin-bottom: 26px; }
.gal-main { aspect-ratio: 16 / 10; background: var(--mist); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--edge); }
.gal-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: 0 0 96px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; cursor: pointer; background: var(--mist); opacity: .7; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on, .thumb:hover { border-color: var(--sea); opacity: 1; }
.detail-head { margin-bottom: 22px; }
.detail-head h1 { margin-bottom: 6px; }
.facts-grid { display: flex; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-lg); overflow: hidden; margin: 0 0 32px; }
.facts-grid div { flex: 1 1 150px; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.facts-grid dt { font-size: .82rem; color: var(--mute); margin-bottom: 2px; }
.facts-grid dd { margin: 0; font-weight: 600; }
.prose { white-space: pre-line; max-width: 68ch; line-height: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 28px; padding: 0; list-style: none; }
.chip { padding: 6px 14px; background: var(--mist); border-radius: 99px; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.detail-side { position: sticky; top: 84px; display: grid; gap: 16px; }
.plate { background: var(--paper); border: 1px solid var(--edge); border-left: 4px solid var(--sea); border-radius: var(--r-lg); padding: 20px 22px; }
.plate .price { font-size: 1.9rem; }
.plate.featured { background: #fffcf0; border-color: #f0d98c; border-left-color: #eac14a; box-shadow: var(--soft); }
.plate.featured p { color: #5b4d12; }
.tag-inline { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 99px; background: var(--gold); color: var(--sun-ink); font-size: .8rem; font-weight: 700; }
.plate p { margin: 4px 0 0; color: var(--mute); font-size: .92rem; }
.box { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 20px; }
.box h3 { margin-bottom: 10px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- forme i profili */
.narrow { width: min(500px, 100% - 40px); margin: 0 auto; }
.mid { width: min(820px, 100% - 40px); margin: 0 auto; }
.card-form { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 32px; }
.card-form h1 { margin-bottom: 20px; font-size: 1.6rem; }
.reg .agency-only { display: none; }
.reg[data-type=agency] .agency-only { display: block; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
legend { font-weight: 650; padding: 0; margin-bottom: 10px; font-size: 1rem; }
.upl { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.upl-item { position: relative; border: 1px solid var(--edge); border-radius: var(--r); overflow: hidden; background: var(--mist); }
.upl-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.upl-item .cover-tag { position: absolute; top: 6px; left: 6px; background: var(--sun); color: var(--sun-ink); font-size: .72rem; font-weight: 650; padding: 2px 8px; border-radius: 99px; }
.upl-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; background: var(--paper); }

/* ---------- nadzorna ploča */
.meter { height: 8px; background: var(--mist); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; background: var(--sea); border-radius: 99px; }
.meter.full i { background: var(--bad); }
.list { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 14px; }
.row-thumb { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--mist); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row h3 { margin-bottom: 4px; }
.row h3 a { color: var(--ink); text-decoration: none; }
.row h3 a:hover { color: var(--sea); }
.row-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: .9rem; color: var(--mute); align-items: center; }
.reject-note { margin: 8px 0 0; font-size: .9rem; color: var(--bad); }
.status { font-weight: 600; font-size: .8rem; padding: 2px 10px; border-radius: 99px; background: var(--mist); color: var(--ink-2); }
.status.active, .status.approved { background: var(--ok-bg); color: var(--ok); }
.status.paused, .status.pending { background: var(--warn-bg); color: #7a5a00; }
.status.rejected { background: var(--bad-bg); color: var(--bad); }
.status.accent { background: var(--gold); color: var(--sun-ink); font-weight: 700; }
.row-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 150px; }
.inq { background: var(--paper); border: 1px solid var(--edge); border-left: 4px solid var(--line-strong); border-radius: var(--r-lg); padding: 18px; }
.inq.unread { border-left-color: var(--sea); background: var(--mist-2); }
.inq p.msg { white-space: pre-line; margin: 8px 0 14px; }

/* ---------- moderacija */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.tabs a { padding: 10px 16px; color: var(--ink-2); text-decoration: none; font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--sea); }
.tabs a[aria-current=page] { color: var(--sea-dark); border-bottom-color: var(--sea); }
.mod-item { display: grid; grid-template-columns: 260px 1fr; gap: 24px; background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 18px; }
.mod-imgs { display: grid; gap: 6px; align-content: start; }
.mod-imgs .first { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--mist); }
.mod-imgs .first img, .mod-imgs .more img { width: 100%; height: 100%; object-fit: cover; }
.mod-imgs .more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mod-imgs .more div { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--mist); }
.mod-body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.mod-body h3 a { color: var(--ink); text-decoration: none; }
.mod-body h3 a:hover { color: var(--sea); }
.mod-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-2); font-size: .92rem; margin-bottom: 10px; }
.mod-seller { font-size: .9rem; color: var(--mute); margin-bottom: 10px; }
.mod-desc { white-space: pre-line; font-size: .95rem; color: var(--ink-2); max-height: 9.5em; overflow: auto; margin-bottom: 14px; padding-right: 6px; }
.mod-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
details.reject { flex: 1 1 100%; }
details.reject summary { display: inline-flex; list-style: none; cursor: pointer; }
details.reject summary::-webkit-details-marker { display: none; }
details.reject[open] summary { margin-bottom: 10px; }
details.reject form { max-width: 520px; }
details.reject textarea { min-height: 80px; margin-bottom: 8px; }

/* ---------- pretplata */
.pro-hero { background: linear-gradient(110deg, var(--night), #0a55c9); padding: 52px 0 56px; color: #fff; position: relative; overflow: hidden; }
.pro-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 420px; height: 420px; border-radius: 50%; background: rgba(254, 187, 2, .16); }
.pro-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.pro-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.pro-hero p { color: #d6e5fc; font-size: 1.1rem; max-width: 52ch; }
.pro-hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.pro-hero .btn-primary { background: var(--gold); color: var(--sun-ink); }
.pro-hero .btn-primary:hover { background: #ffd24d; }
.pro-hero .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.pro-hero .btn-line:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.pro-hero .price-chip { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r-lg); padding: 22px 24px; }
.pro-hero .price-chip b { font-size: 2.6rem; letter-spacing: -0.02em; }
.pro-hero .price-chip small { color: #cfe0fb; }
.pro-hero .price-chip ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; color: #fff; font-size: .95rem; }
.pro-hero .price-chip li::before { content: "✓"; color: var(--gold); font-weight: 800; margin-right: 8px; }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 22px; }
.benefit { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 22px; }
.benefit i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold); color: var(--sun-ink); font-style: normal; font-size: 1.3rem; font-weight: 800; margin-bottom: 14px; box-shadow: 0 2px 0 var(--gold-deep); }
.benefit h3 { margin-bottom: 6px; font-size: 1.08rem; }
.benefit p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 330px)); justify-content: start; gap: 32px; margin-top: 22px; align-items: start; }
.compare figure { margin: 0; }
.compare figcaption { margin-bottom: 12px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.compare figcaption span { font-weight: 500; color: var(--mute); font-size: .92rem; }
.badge-pro { background: var(--gold); color: var(--sun-ink); font-size: .78rem; font-weight: 800; padding: 2px 10px; border-radius: 99px; }
.badge-free { background: var(--mist); color: var(--ink-2); font-size: .78rem; font-weight: 800; padding: 2px 10px; border-radius: 99px; }
.demo-card { pointer-events: none; }
.demo-card:hover { transform: none; }
.serp { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 10px; }
.serp-row { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; }
.serp-row .im { aspect-ratio: 4 / 3; border-radius: 8px; background: var(--mist); }
.serp-row .l1, .serp-row .l2 { height: 10px; border-radius: 6px; background: var(--mist); margin-bottom: 8px; }
.serp-row .l1 { width: 70%; } .serp-row .l2 { width: 45%; margin: 0; }
.serp-row .pr { width: 64px; height: 16px; border-radius: 6px; background: var(--line); }
.serp-row.hot { background: #fffcf0; border: 1px solid #f0d98c; box-shadow: none; position: relative; }
.serp-row.hot .im { background: #ffe08a; } .serp-row.hot .l1, .serp-row.hot .l2 { background: #f6d77c; } .serp-row.hot .pr { background: var(--gold); }
.serp-row.hot::after { content: "★ Vaš istaknuti oglas"; position: absolute; top: -13px; left: 14px; background: var(--gold); color: var(--sun-ink); font-size: .75rem; font-weight: 800; padding: 2px 10px; border-radius: 99px; box-shadow: 0 2px 0 var(--gold-deep); }
.serp-cap { margin: 12px 0 0; color: var(--ink-2); font-size: .95rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 22px; align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; position: relative; }
.plan.pro { border: 2px solid #f0d98c; background: #fffcf0; box-shadow: var(--soft); }
.plan.pro::before { content: "Najbolji izbor"; position: absolute; top: -14px; left: 24px; background: var(--gold); color: var(--sun-ink); font-weight: 800; font-size: .8rem; padding: 3px 12px; border-radius: 99px; box-shadow: 0 2px 0 var(--gold-deep); }
.plan .price { margin: 12px 0 16px; font-size: 2rem; }
.plan ul { padding-left: 18px; margin: 0 0 24px; flex: 1; color: var(--ink-2); }
.plan li { margin-bottom: 8px; }
.faq { display: grid; gap: 10px; margin-top: 22px; max-width: 820px; }
.faq details { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }
.pro-cta { margin-top: 40px; background: linear-gradient(110deg, var(--night), #0a55c9); color: #fff; border-radius: var(--r-lg); padding: 30px 32px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.pro-cta h2 { color: #fff; margin-bottom: 4px; }
.pro-cta p { margin: 0; color: #d6e5fc; }
.pro-cta .btn-primary { background: var(--gold); color: var(--sun-ink); }

/* ---------- podnožje, toast */
.site-footer { background: var(--abyss); color: #a9bddd; margin-top: 56px; padding: 36px 0; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot strong { color: #fff; font-size: 1.05rem; }
.foot p { margin: 4px 0 0; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: start; }
.foot a { color: #d6e3f8; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; width: min(460px, calc(100% - 32px)); }
.toast { background: var(--abyss); color: #fff; padding: 12px 18px; border-radius: var(--r); box-shadow: var(--shadow); }
.toast.error { background: #8f3a34; }

/* ---------- potvrda e-adrese, GDPR obavijest, pravne stranice, admin pretraga */
.verify-bar { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); color: #5b4500; }
.verify-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; flex-wrap: wrap; font-size: .95rem; }
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--abyss); color: #e3ecfb; box-shadow: 0 -6px 24px rgba(0, 20, 60, .35); }
.consent[hidden] { display: none; }
.consent-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; flex-wrap: wrap; }
.consent-in p { margin: 0; max-width: 78ch; font-size: .95rem; }
.consent a { color: #fff; }
.consent .btn-primary { background: var(--gold); color: var(--sun-ink); flex: 0 0 auto; }
.consent .btn-primary:hover { background: #ffd24d; }
.has-consent #toasts { bottom: 120px; }
.check.terms { align-items: flex-start; margin: 4px 0 18px; font-size: .92rem; }
.check.terms input { margin-top: 4px; }
.legal { max-width: 78ch; }
.legal h1 { margin-bottom: 4px; }
.legal section { margin-top: 28px; }
.legal h2 { font-size: 1.15rem; margin-bottom: 8px; }
.legal ul { padding-left: 20px; margin: 0 0 .8em; }
.legal li { margin-bottom: 6px; }
.foot-legal { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.admin-search { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-search input { flex: 1 1 280px; width: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.badge-broker { display: inline-flex; align-items: center; gap: 6px; background: var(--mist); color: var(--night); font-weight: 700; font-size: .8rem; padding: 3px 10px; border-radius: 99px; border: 1px solid #b6cff3; vertical-align: middle; }
.badge-broker::before { content: "◆"; color: var(--sea); font-size: .7rem; }
[data-kind=poslovanje] .prop-only { display: none; }
.biz-only { display: none; }
[data-kind=poslovanje] .biz-only { display: inline; }
.mod-body h3 .status { margin-left: 6px; vertical-align: middle; }

/* ---------- karta */
.hmap { position: relative; overflow: hidden; background: #dfe7f2; border: 1px solid var(--edge); border-radius: var(--r-lg); touch-action: none; cursor: grab; height: 360px; user-select: none; }
.hmap:active { cursor: grabbing; }
.hmap.tall { height: min(72vh, 680px); min-height: 420px; }
.hmap-tiles, .hmap-pins { position: absolute; inset: 0; }
.hmap-tile { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; user-select: none; -webkit-user-drag: none; }
.hmap-pin, .hmap-cluster { position: absolute; left: 0; top: 0; font: 700 .78rem/1 var(--font); cursor: pointer; border: 0; padding: 0; }
.hmap-pin { margin: -34px 0 0 -26px; min-width: 52px; height: 28px; padding: 0 9px; border-radius: 99px; background: var(--sea); color: #fff; box-shadow: 0 2px 6px rgba(0, 38, 95, .35); border: 2px solid #fff; white-space: nowrap; }
.hmap-pin::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--sea); border-bottom: 0; }
.hmap-pin.feat { background: var(--gold); color: var(--sun-ink); }
.hmap-pin.feat::after { border-top-color: var(--gold); }
.hmap-pin.approx { border-style: dashed; }
.hmap-pin.dot { min-width: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; padding: 0; }
.hmap-pin.dot::after { display: none; }
.hmap-cluster { margin: -19px 0 0 -19px; width: 38px; height: 38px; border-radius: 50%; background: var(--night); color: #fff; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 38, 95, .4); }
.hmap-pin:hover, .hmap-cluster:hover { filter: brightness(1.12); z-index: 3; }
.hmap-pick { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -34px 0 0 -13px; background: var(--bad); border-radius: 50% 50% 50% 0; transform-origin: 0 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); border: 2px solid #fff; pointer-events: none; }
.hmap-pick::after { content: ""; position: absolute; inset: 6px; background: #fff; border-radius: 50%; }
.hmap-ctl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); border-radius: 6px; overflow: hidden; z-index: 4; }
.hmap-ctl button { width: 34px; height: 34px; border: 0; background: #fff; font: 600 1.25rem/1 var(--font); color: var(--ink); cursor: pointer; }
.hmap-ctl button + button { border-top: 1px solid var(--line); }
.hmap-ctl button:hover { background: var(--mist-2); }
.hmap-attr { position: absolute; right: 0; bottom: 0; background: rgba(255, 255, 255, .85); font-size: .7rem; padding: 1px 6px; z-index: 4; }
.hmap-pop { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 5; }
.hmap-pop[hidden] { display: none; }
.hmap-card { position: absolute; left: -130px; bottom: 14px; width: 260px; background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 38, 95, .3); overflow: hidden; cursor: default; }
.hmap-card img { width: 100%; height: 120px; object-fit: cover; display: block; background: var(--mist); }
.hmap-card .in { padding: 10px 12px 12px; }
.hmap-card h4 { margin: 0 0 2px; font-size: .95rem; line-height: 1.3; }
.hmap-card p { margin: 0; font-size: .85rem; color: var(--mute); }
.hmap-card .pr { font-weight: 700; color: var(--ink); font-size: 1rem; }
.hmap-x { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.map-box { margin-top: 28px; }
.map-box h2 { margin-bottom: 10px; }
.map-note { font-size: .85rem; color: var(--mute); margin: 8px 0 0; }
.view-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 99px; overflow: hidden; background: #fff; }
.view-toggle a { padding: 6px 16px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.view-toggle a[aria-current=page] { background: var(--sea); color: #fff; }
.picker .hmap { height: 300px; }

/* ---------- prijava oglasa */
.report summary { cursor: pointer; color: var(--mute); font-size: .9rem; text-decoration: underline; list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report[open] summary { margin-bottom: 10px; }
.rep-item .rep-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: .9rem; }
.rep-item .rep-list li { padding: 6px 0; border-top: 1px solid var(--line); }
.rep-item .rep-list b { font-weight: 650; }

/* ---------- statistika */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-tile { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 16px 18px; }
.stat-tile .n { font-size: 1.9rem; font-weight: 750; line-height: 1.1; }
.stat-tile .l { color: var(--mute); font-size: .88rem; }
.stat-tile .d { font-size: .82rem; font-weight: 600; margin-top: 4px; }
.stat-tile .d.up { color: var(--ok); }
.stat-tile .d.down { color: var(--bad); }
.stat-tile .d.flat { color: var(--mute); }
.chart { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 18px; margin-bottom: 22px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--sea); }
.chart .bar2 { fill: var(--gold-deep); }
.chart .axis { stroke: var(--line); }
.chart text { font: 11px var(--font); fill: var(--mute); }
.legend { display: flex; gap: 16px; font-size: .85rem; color: var(--ink-2); margin-bottom: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: var(--sea); }
.legend i.b2 { background: var(--gold-deep); }
.range a { padding: 5px 12px; border-radius: 99px; text-decoration: none; font-weight: 600; font-size: .88rem; color: var(--ink-2); border: 1px solid var(--line-strong); background: #fff; }
.range { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.range a[aria-current=page] { background: var(--sea); border-color: var(--sea); color: #fff; }
.range a.locked { color: var(--mute); border-style: dashed; }
.stat-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-lg); overflow: hidden; font-size: .92rem; }
.stat-table th, .stat-table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); }
.stat-table th:first-child, .stat-table td:first-child { text-align: left; }
.stat-table th { background: var(--mist-2); font-weight: 650; color: var(--ink-2); }
.stat-table tr:last-child td { border-bottom: 0; }
.stat-note { font-size: .88rem; color: var(--mute); max-width: 80ch; }
.seo-page { padding-block: 24px; }

.pro-grant { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pro-grant select, .pro-grant input { width: auto; padding: 5px 8px; font-size: .85rem; }
.pro-grant input { width: 100px; }

/* ---------- responzivno */
@media (max-width: 960px) {
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .mod-item { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr 1fr; }
  .pro-hero .wrap { grid-template-columns: 1fr; }
  .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-meta { margin-left: 0; }
}
@media (max-width: 620px) {
  .hmap.tall { height: 62vh; }
  .stat-table { font-size: .8rem; }
  .compare { grid-template-columns: 1fr; }
  .row { grid-template-columns: 88px 1fr; }
  .row-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .card-form { padding: 22px; }
  .hero { padding: 36px 0 40px; }
  .cats { grid-template-columns: 1fr; gap: 10px; }
  .cat { padding: 12px 14px; }
  .cat-ico { flex-basis: 44px; height: 44px; }
  .menu summary { max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* okrugla profilna slika agencije */
.avatar{display:inline-block;border-radius:50%;object-fit:cover;flex:none;background:var(--bg);border:1px solid #d5deec}
.av-sm{width:32px;height:32px}.av-md{width:44px;height:44px}.av-lg{width:84px;height:84px}.av-xl{width:96px;height:96px}
.av-init{display:inline-flex;align-items:center;justify-content:center;background:var(--night);color:#fff;font-weight:700;border-color:var(--night)}
.av-sm.av-init{font-size:.8rem}.av-md.av-init{font-size:1rem}.av-lg.av-init{font-size:1.8rem}.av-xl.av-init{font-size:2rem}
.ag-id{display:flex;align-items:center;gap:12px;min-width:0}
.ag-head{display:flex;gap:18px;align-items:flex-start}
.seller-h{display:flex;align-items:center;gap:10px}
.avatar-row{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.avatar-row .btn{margin-right:8px}

/* ---------- baneri (oglasi partnera) */
.ad { position: relative; display: flex; align-items: center; overflow: hidden; border-radius: var(--r-lg); color: #fff; text-decoration: none; min-height: 112px; isolation: isolate; box-shadow: 0 1px 2px rgba(0, 38, 95, .08); transition: box-shadow .2s, transform .2s; }
.ad:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ad:focus-visible { outline: 3px solid #fff; outline-offset: -6px; box-shadow: 0 0 0 3px var(--sea); }
.theme-sea { background: linear-gradient(115deg, #0057c8, #0a8bff); }
.theme-night { background: linear-gradient(115deg, #00265f, #0a4db3); }
.theme-gold { background: linear-gradient(115deg, #ffe7a3, #ffd25e); color: #3a2a00; }
.theme-mint { background: linear-gradient(115deg, #0b6b5d, #12a58b); }
.theme-rose { background: linear-gradient(115deg, #a3123f, #e0467a); }
.ad-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -1; }
.ad.has-img:not(.img-only) .ad-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 20, 60, .72), rgba(0, 20, 60, .15) 70%); }
.ad.has-img.theme-gold:not(.img-only) .ad-bg::after { background: linear-gradient(90deg, rgba(255, 240, 200, .92), rgba(255, 240, 200, .2) 70%); }
.ad-flag { position: absolute; top: 8px; right: 10px; font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: rgba(0, 20, 60, .45); color: #fff; backdrop-filter: blur(2px); }
.theme-gold .ad-flag { background: rgba(58, 42, 0, .55); }
.ad-txt { display: grid; gap: 6px; padding: 20px 28px; max-width: 62ch; justify-items: start; }
.ad-sp { font-size: .78rem; opacity: .85; font-weight: 600; }
.ad-txt strong { font-size: 1.35rem; line-height: 1.2; }
.ad-body { font-size: .98rem; opacity: .94; }
.ad-cta { margin-top: 4px; display: inline-block; background: #fff; color: var(--night); font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: var(--r); }
.theme-gold .ad-cta { background: #3a2a00; color: #fff; }
.ad-rot { position: relative; }
.ad-track { display: grid; }
.ad-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.ad-slide.on { opacity: 1; visibility: visible; }
.ad-slide .ad { height: 100%; }
.ad-dots { display: flex; gap: 8px; justify-content: center; padding-top: 10px; }
.ad-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #b9c8e2; cursor: pointer; }
.ad-dot[aria-current="true"] { background: var(--sea); width: 26px; border-radius: 99px; }
.ad-band { width: min(1320px, 100% - 48px); margin: 22px auto 0; }
.ad-mid { margin: 34px 0 0; }
.ad-bottom { margin-top: 28px; }
.ad-home_top, .ad-home_mid { min-height: 150px; }
.ad-detail_bottom { min-height: 120px; }
.ad-search_side, .ad-detail_side { min-height: 220px; align-items: flex-end; margin-top: 18px; }
.ad-search_side .ad-txt, .ad-detail_side .ad-txt, .ad-search_inline .ad-txt { padding: 18px; }
.ad-search_side .ad-txt strong, .ad-detail_side .ad-txt strong, .ad-search_inline .ad-txt strong { font-size: 1.12rem; }
.ad-search_inline { height: 100%; min-height: 300px; align-items: flex-end; }
.ad.img-only { min-height: 0; }
.ad.img-only .ad-bg { position: static; display: block; aspect-ratio: 4 / 1; z-index: 0; width: 100%; }
.ad-search_side.img-only .ad-bg, .ad-detail_side.img-only .ad-bg, .ad-search_inline.img-only .ad-bg { aspect-ratio: 6 / 5; }
.ad-prev .ad { pointer-events: none; min-height: 100px; }
.ad-prev.narrow { max-width: 300px; }
.ad-prev.narrow .ad { min-height: 220px; align-items: flex-end; }
.search-aside .filters { position: static; }

/* admin: baneri */
.ban-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ban-row { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 20px; align-items: start; }
.ban-prev .ad { min-height: 96px; }
.ban-prev .ad-txt { padding: 12px 16px; }
.ban-prev .ad-txt strong { font-size: 1rem; }
.ban-prev .ad-body, .ban-prev .ad-cta { display: none; }
.ban-st { font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
.st-live { background: var(--ok-bg); color: var(--ok); }
.st-sched { background: #e2edff; color: #0a4db3; }
.st-exp { background: var(--bad-bg); color: var(--bad); }
.st-off { background: var(--mist); color: var(--ink-2); }
.ban-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.ban-ext { display: inline-flex; gap: 6px; align-items: center; }
.ban-ext input { width: 72px; padding: 6px 8px; }
.ban-edit { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.ban-preview { position: sticky; top: 84px; background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 18px; }
.ban-preview h3 { margin-bottom: 6px; }
.ban-preview .hint { margin: 12px 0 6px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw input { position: absolute; opacity: 0; }
.sw span { display: inline-block; padding: 8px 16px; border-radius: var(--r); color: #fff; font-weight: 600; border: 3px solid transparent; cursor: pointer; }
.sw .theme-gold { color: #3a2a00; }
.sw input:checked + span { border-color: var(--ink); }
.sw input:focus-visible + span { outline: 3px solid var(--sea); outline-offset: 2px; }
.ban-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ban-img .thumb-slot { height: 110px; border: 1px dashed var(--line-strong); border-radius: var(--r); display: grid; place-items: center; overflow: hidden; background: var(--bg); margin-bottom: 6px; }
.ban-img .thumb-slot img { width: 100%; height: 100%; object-fit: cover; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 960px) {
  .search-aside .filters { margin-bottom: 0; }
  .ban-edit { grid-template-columns: 1fr; }
  .ban-preview { position: static; order: -1; }
  .ban-row { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ad-band { width: calc(100% - 32px); }
  .ad-txt { padding: 16px 18px; }
  .ad-txt strong { font-size: 1.1rem; }
  .ban-imgs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ad-slide { transition: none; } .ad:hover { transform: none; } }

/* tooltip (pitanje) */
.tipwrap { position: relative; display: inline-block; vertical-align: middle; }
.tip { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--sea); background: #fff; color: var(--sea); font: 700 .78rem/1 var(--font); padding: 0; cursor: help; }
.tip:hover, .tip:focus-visible { background: var(--sea); color: #fff; }
.tip-box { display: none; position: absolute; z-index: 20; left: 50%; top: calc(100% + 8px); transform: translateX(-30%); width: min(340px, 80vw); padding: 12px 14px; background: var(--abyss); color: #fff; border-radius: var(--r); font-size: .85rem; font-weight: 400; line-height: 1.45; box-shadow: var(--shadow); text-align: left; }
.tipwrap:hover .tip-box, .tipwrap:focus-within .tip-box { display: block; }
@media (max-width: 620px) { .tip-box { left: auto; right: -40px; transform: none; } }

/* cjenik za oglašivače */
.ad-pk { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.ad-pk-card { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.ad-pk-card.best { border: 2px solid var(--sea); box-shadow: var(--shadow); }
.ad-pk-card h3 { margin: 4px 0 0; }
.ad-pk-price { margin: 0; }
.ad-pk-price strong { font-size: 2rem; }
.ad-pk-price span { color: var(--mute); font-size: .88rem; }
.ad-pk-card ul { margin: 8px 0 0; padding-left: 18px; font-size: .9rem; color: var(--ink-2); }
.ad-pk-card .tag-pro { align-self: flex-start; }
.table-wrap { overflow-x: auto; }
.ad-table { border-collapse: collapse; width: 100%; background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r); }
.ad-table th, .ad-table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ad-table th:first-child { text-align: left; }
.ad-table thead th { background: var(--mist); font-size: .9rem; }
.ad-table small { color: var(--mute); font-weight: 500; }
.ad-steps { max-width: 70ch; padding-left: 22px; display: grid; gap: 10px; }
.ad-faq { max-width: 70ch; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.pro-hero .muted { color: #d6e5fc; }
.inv-form { max-width: 760px; }
.inv-table td, .inv-table th { text-align: left; }
.inv-table td:last-child { text-align: right; }
@media (max-width: 720px) {
  .inv-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .inv-table, .inv-table tbody, .inv-table tr, .inv-table th, .inv-table td { display: block; width: 100%; white-space: normal; }
  .inv-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .inv-table th, .inv-table td { padding: 3px 0; border: 0; text-align: left; }
  .inv-table [data-l]::before { content: attr(data-l) ": "; color: var(--mute); font-weight: 500; }
  .inv-table th[data-l] { font-size: 1.05rem; }
  .inv-table td:last-child { text-align: left; padding-top: 8px; }
}

/* pregled mjesta / županija iznad rezultata (kao Njuškalo) */
.places { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 18px; }
.places h2 { font-size: 1.05rem; margin-bottom: 10px; }
.places ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.places li { display: inline-flex; align-items: baseline; gap: 4px; background: var(--mist-2); border-radius: 99px; padding: 4px 12px; font-size: .92rem; }
.places a { font-weight: 650; text-decoration: none; }
.places a:hover { text-decoration: underline; }
.places a[aria-current="true"] { color: var(--night); text-decoration: underline; }
.places li:has(a[aria-current="true"]) { background: var(--mist); }
.places a.back { font-weight: 500; }
.places li span { color: var(--mute); font-size: .82rem; }

/* mekane sjene na karticama i pločama */
.filters, .box, .card-form, .plate, .row, .inq, .mod-item, .benefit, .serp, .plan, .stat-tile, .chart, .ad-pk-card, .places, .facts-grid, .ban-preview { box-shadow: var(--soft); }

/* način održavanja */
.maint-bar { background: #fff1b8; border-bottom: 1px solid #e5c75a; color: #4d3a00; }
.maint-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; flex-wrap: wrap; font-size: .95rem; }
.maint-form { max-width: 720px; }
.maint-state { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: var(--ok-bg); color: var(--ok); margin-bottom: 18px; }
.maint-state.on { background: #fff1b8; color: #4d3a00; }
.maint-state span { font-size: .92rem; }
.maint-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- moduli, uvoz oglasa, namjena najma */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin-top: 18px; }
.mod-card { background: #fff; border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--soft); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.mod-card.on { border-color: #9fd3b0; }
.mod-card.lock { max-width: 560px; }
.mod-card h2 { margin: 0; font-size: 1.15rem; }
.mod-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.mod-price { margin: 2px 0 6px; font-size: 1.05rem; }
.mod-card ul { margin: 4px 0 8px; padding-left: 18px; color: #3a4a68; }
.mod-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.imp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; margin-top: 18px; }
.imp-box { padding: 22px; }
.imp-box h2 { margin: 0 0 10px; font-size: 1.1rem; }
.imp-box code { background: #eef3fb; padding: 1px 6px; border-radius: 6px; font-size: .88em; }
.imp-help { margin: 10px 0; }
.imp-help summary { cursor: pointer; color: var(--sea); font-weight: 600; }
.imp-help ul, .imp-rules { padding-left: 18px; margin: 8px 0; }
.imp-rules { color: #3a4a68; }
.imp-result { margin-top: 14px; }
.imp-errors { max-height: 260px; overflow: auto; margin: 8px 0 0; padding-left: 18px; font-size: .9rem; color: #8a2b25; }
.imp-sample { margin: 8px 0; padding-left: 18px; font-size: .92rem; color: #3a4a68; }
.mod-admin { margin-top: 10px; border: 1px solid var(--edge); border-radius: 10px; padding: 8px 12px; background: #fff; }
.mod-admin summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.mod-admin-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(15, 23, 42, .08); margin-top: 8px; }
.mod-admin-row .pro-grant input { width: 96px; }
.tag-inline.aud { background: #e6f0fd; color: #003b95; }
.tag-inline.aud a { color: inherit; text-decoration: none; }
@media (max-width: 860px) { .imp-grid { grid-template-columns: 1fr; } }

/* zaglavlje: više poveznica (Studenti, Radnici) ne smije lomiti retke */
.nav a { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.bar { gap: 16px; }
.menu summary { max-width: 170px; }

/* ---------- lakše pismo i pointer kursor */
h1 { font-weight: 600; }
h2, h3 { font-weight: 550; }
strong, b { font-weight: 600; }
label, legend, .filters summary, .faq summary, .field label { font-weight: 450; }
.filters label, .filters legend, .filters summary { font-weight: 450; color: var(--ink-2); }
.filters summary { font-size: 1.05rem; font-weight: 550; color: var(--ink); }
.pill span { font-weight: 450; }
.pill input:checked + span { font-weight: 500; }
.check { font-weight: 400; }
.price, .cat-txt strong, .section-head h2, .hero h1, .hero-meta strong, .stat-tile .n, .hmap-card .pr, .logo { font-weight: 600; }
.tag, .tag-pro, .tag-inline, .badge-broker, .status, .badge-pro, .badge-free { font-weight: 600; }
.btn { font-weight: 550; }

a, button, summary, select, label.pill, .pill span, .pill input, .check, .check input, input[type=checkbox], input[type=radio],
input[type=file], input[type=range], [role=button], [data-act], [data-change], .card, .cat, .fav, .linkbtn, .tab, .tabs a,
.menu summary, .places a, .pager a, .view-toggle a, .ad-dot, .hmap-pin, .hmap-cluster, .hmap-ctl button {
  cursor: pointer;
}
button:disabled, .btn[disabled], input:disabled, select:disabled { cursor: not-allowed; }

/* ---------- naslovnica: pretraga, županije, zašto mi */
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.hero-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 12px; margin: 22px 0 6px; box-shadow: 0 10px 30px rgba(0, 20, 60, .28); max-width: 860px; }
.hero-search .pills { flex: 0 0 auto; }
.hero-search select, .hero-search input[name=city] { flex: 1 1 170px; min-width: 0; margin: 0; }
.hero-search .btn { flex: 0 0 auto; }
.hero-cats-title { margin: 22px 0 10px; color: #cfe0fb; font-size: .95rem; }
.county-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 0; }
.county-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; border: 1px solid var(--edge); border-radius: 99px; color: var(--ink); text-decoration: none; box-shadow: var(--soft); }
.county-chips a:hover { border-color: var(--sea); color: var(--sea); }
.county-chips span { background: var(--mist); color: var(--sea-dark); border-radius: 99px; padding: 0 8px; font-size: .85rem; }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 16px; }
.why > div { background: #fff; border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--soft); }
.why h3 { margin-bottom: 6px; }
.why p { margin: 0; color: #3a4a68; }
.band-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- stranica za agencije */
.ag-hero { background: linear-gradient(110deg, var(--night), #0a55c9); color: #fff; padding: 56px 0 60px; }
.ag-hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: center; }
.ag-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 14px; }
.ag-hero p { color: #d6e5fc; font-size: 1.08rem; max-width: 60ch; margin: 0 0 22px; }
.ag-hero .cta, .ag-final .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ag-hero .btn-primary { background: var(--gold); color: var(--sun-ink); }
.ag-hero .btn-primary:hover { background: #ffd24d; }
.ag-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 22px 0 0; color: #cfe0fb; font-size: .95rem; }
.ag-points li::before { content: "✓"; margin-right: 8px; color: var(--gold); }
.ag-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: 0 18px 44px rgba(0, 20, 60, .35); }
.ag-card-top { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid rgba(15, 23, 42, .1); }
.ag-card-top strong { display: block; }
.ag-card-top small { color: var(--mute); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ag-card-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(15, 23, 42, .06); font-size: .95rem; }
.ag-card-row:last-child { border-bottom: 0; }
.ag-card-row span { color: var(--mute); }
.ag-page h2 { margin-bottom: 6px; }
.ag-page .lead { margin: 0 0 18px; color: #3a4a68; max-width: 70ch; }
.ag-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; padding: 0; margin: 16px 0 0; }
.ag-steps li { counter-increment: s; background: #fff; border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 20px 20px 20px 64px; position: relative; box-shadow: var(--soft); }
.ag-steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--mist); color: var(--sea-dark); display: grid; place-items: center; font-weight: 600; }
.ag-steps h3 { margin-bottom: 4px; }
.ag-steps p { margin: 0; color: #3a4a68; }
.ag-banner { margin-top: 52px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--mist); border: 1px solid #cfe0f7; border-radius: var(--r-lg); padding: 26px 28px; }
.ag-banner h2 { margin-bottom: 4px; }
.ag-banner p { margin: 0; max-width: 62ch; color: #3a4a68; }
.ag-final { margin-top: 52px; text-align: center; padding: 40px 20px; background: linear-gradient(110deg, var(--night), #0a55c9); border-radius: var(--r-lg); color: #fff; }
.ag-final h2 { color: #fff; margin-bottom: 8px; }
.ag-final p { color: #d6e5fc; margin: 0 0 20px; }
.ag-final .cta { justify-content: center; }
.ag-final .btn-primary { background: var(--gold); color: var(--sun-ink); }
@media (max-width: 860px) { .ag-hero .wrap { grid-template-columns: 1fr; } .hero-search .pills { width: 100%; } }

/* ---------- naslovnica: mirniji hero */
.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-quick a { color: #fff; text-decoration: none; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 99px; font-size: .92rem; }
.hero-quick a:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.hero .hero-meta { margin: 22px 0 0; display: flex; gap: 8px 22px; flex-wrap: wrap; color: #b9d0f5; font-size: .9rem; }
.hero .hero-search { margin-top: 24px; }
.section-head .sub { display: none; }

.rep-bar { display: block; width: 160px; height: 8px; background: #e8eef8; border-radius: 99px; overflow: hidden; }
.rep-bar i { display: block; height: 100%; background: var(--sea); border-radius: 99px; }
.stat-tile .l { color: var(--mute); font-size: .9rem; margin-top: 2px; }

/* ---------- županije i mjesta u pretrazi: mirniji izgled */
.places { padding: 16px 18px; }
.places h2 { font-size: 1rem; font-weight: 550; margin-bottom: 12px; color: var(--ink); }
.places ul { gap: 8px; }
.places li { background: #fff; border: 1px solid var(--edge); border-radius: 99px; padding: 5px 13px; font-size: .92rem; color: var(--ink); transition: border-color .15s, background .15s; }
.places li:hover { border-color: var(--sea); background: #f6faff; }
.places a { font-weight: 400; color: var(--ink); text-decoration: none; }
.places a:hover { text-decoration: none; color: var(--sea); }
.places a[aria-current="true"] { font-weight: 500; color: var(--sea-dark); text-decoration: none; }
.places li:has(a[aria-current="true"]) { background: var(--mist); border-color: var(--sea); }
.places a.back { font-weight: 400; color: var(--mute); }
.places li:has(a.back) { background: transparent; border-style: dashed; }
.places li span { color: var(--mute); font-size: .82rem; }

/* Oznaka Hitno */
.tag-urgent { position: absolute; top: 10px; right: 10px; background: #b4331f; color: #fff; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; }
.tag-urgent-inline { background: #b4331f; color: #fff; }
.status.urgent { background: #fbe9e5; color: #8c2615; }

/* Dodatni podaci u obrascu */
.extras { border: 1px solid var(--line, #dfe5ea); border-radius: 10px; padding: 10px 14px; margin: 14px 0; }
.extras > summary { cursor: pointer; font-weight: 500; }
.extras[open] > summary { margin-bottom: 12px; }
[data-deal=prodaja] .only-najam { display: none; }
:not([data-kind=poslovni]) > .only-poslovni, [data-kind]:not([data-kind=poslovni]) .only-poslovni { display: none; }

/* ---------- tamni način: topla tamnosiva (ne crna), narančasta akcija */
.theme-btn { background: transparent; border: 1px solid rgba(255, 255, 255, .35); color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.05rem; line-height: 1; display: inline-grid; place-items: center; padding: 0; flex: none; }
.theme-btn:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #1c1f24;
  --paper: #25292f;
  --ink: #e9e6e1;
  --ink-2: #cfcbc4;
  --mute: #a39f98;
  --edge: rgba(255, 255, 255, .12);
  --soft: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .22);
  --line: #343841;
  --line-strong: #444a55;
  --sea: #f09a4d;
  --sea-dark: #dd8434;
  --mist: #2d3139;
  --mist-2: #292d34;
  --ok: #6fcf97;
  --ok-bg: #243a2f;
  --bad: #ff8a80;
  --bad-bg: #432b2b;
  --warn-bg: #413829;
  --warn-line: #5d4e30;
  --night: #16181c;
  --abyss: #121418;
  --deep: #16181c;
  --gold: #f0b429;
  --gold-soft: #3a3322;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .3);
}
[data-theme=dark] body { background: var(--bg); color: var(--ink); }
/* akcije: narančasto s tamnim tekstom */
[data-theme=dark] .btn-primary, [data-theme=dark] .tag, [data-theme=dark] .dot, [data-theme=dark] .hmap-pin,
[data-theme=dark] .view-toggle a[aria-current=page], [data-theme=dark] .range a[aria-current=page], [data-theme=dark] .tip:hover, [data-theme=dark] .tip:focus-visible { color: #26180a; }
[data-theme=dark] .btn-primary:hover { background: #ffad66; }
[data-theme=dark] .site-header .btn-primary { background: var(--sea); color: #26180a; }
[data-theme=dark] .site-header .btn-primary:hover { background: #ffad66; }
[data-theme=dark] .btn-ink { background: #363b44; color: var(--ink); }
[data-theme=dark] .btn-ink:hover { background: #414752; }
[data-theme=dark] .btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
[data-theme=dark] .btn-line:hover { border-color: var(--sea); color: var(--sea); }
[data-theme=dark] .btn-danger { background: transparent; border-color: #6b4543; }
[data-theme=dark] input:focus, [data-theme=dark] select:focus, [data-theme=dark] textarea:focus { box-shadow: 0 0 0 3px rgba(240, 154, 77, .25); }
[data-theme=dark] input::placeholder, [data-theme=dark] textarea::placeholder { color: #8b877f; }
[data-theme=dark] .logo-mark { background: var(--sea); }
[data-theme=dark] .site-header { box-shadow: 0 2px 10px rgba(0, 0, 0, .35); border-bottom: 1px solid #24272d; }
/* ploče koje su bile bijele */
[data-theme=dark] .cat, [data-theme=dark] .serp-row, [data-theme=dark] .mod-card, [data-theme=dark] .mod-admin, [data-theme=dark] .hero-search,
[data-theme=dark] .county-chips a, [data-theme=dark] .why > div, [data-theme=dark] .ag-steps li, [data-theme=dark] .ag-card, [data-theme=dark] .places li,
[data-theme=dark] .view-toggle, [data-theme=dark] .hmap-card, [data-theme=dark] .tip-box, [data-theme=dark] .range a, [data-theme=dark] .fav { background: var(--paper); color: var(--ink); }
[data-theme=dark] .tip { background: var(--paper); }
[data-theme=dark] .hmap-ctl button, [data-theme=dark] .hmap-x { background: var(--paper); color: var(--ink); }
[data-theme=dark] .hmap-attr { background: rgba(28, 31, 36, .85); color: var(--mute); }
[data-theme=dark] .hmap { background: #22262c; }
[data-theme=dark] .hmap img { filter: brightness(.78) contrast(1.05) saturate(.75); }
[data-theme=dark] .hmap-cluster { background: #414752; border-color: var(--paper); }
[data-theme=dark] .cat-go, [data-theme=dark] .cat .cat-txt small { color: var(--mute); }
[data-theme=dark] .cat:hover, [data-theme=dark] .places li:hover, [data-theme=dark] .county-chips a:hover { border-color: var(--sea); background: #2d3139; }
[data-theme=dark] .cat.sale .cat-ico { background: #414752; }
[data-theme=dark] .cat.biz { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); }
[data-theme=dark] .cat.biz .cat-ico { background: var(--sea); color: #26180a; }
/* naslovne trake: umjesto plavog, tamna siva s toplim sjajem */
[data-theme=dark] .hero { background: #181b20; }
[data-theme=dark] .hero::before { background: radial-gradient(900px 420px at 85% -10%, rgba(240, 154, 77, .20), transparent 70%), radial-gradient(600px 300px at 0% 110%, rgba(240, 154, 77, .10), transparent 70%); }
[data-theme=dark] .band, [data-theme=dark] .pro-hero, [data-theme=dark] .pro-cta, [data-theme=dark] .ag-hero, [data-theme=dark] .ag-final { background: linear-gradient(110deg, #181b20, #2c2824); }
[data-theme=dark] .pro-hero::after { background: rgba(240, 154, 77, .10); }
[data-theme=dark] .hero-sub, [data-theme=dark] .band p, [data-theme=dark] .pro-hero p, [data-theme=dark] .ag-hero p, [data-theme=dark] .ag-final p, [data-theme=dark] .pro-cta p { color: #d8d3cb; }
[data-theme=dark] .hero-search { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
/* kartice */
[data-theme=dark] .card { background: var(--paper); border-color: var(--edge); }
[data-theme=dark] .card:hover { border-color: rgba(255, 255, 255, .25); box-shadow: 0 14px 32px rgba(0, 0, 0, .4); }
[data-theme=dark] .price { color: #f3efe9; }
[data-theme=dark] .noimg { background: repeating-linear-gradient(135deg, #2d3139 0 12px, #292d34 12px 24px); }
[data-theme=dark] .fav { color: var(--ink); background: rgba(37, 41, 47, .95); }
[data-theme=dark] .tag-pro, [data-theme=dark] .av-init { background: #414752; color: #fff; border-color: #414752; }
[data-theme=dark] .badge-broker { background: #3a4452; color: #d9e6f7; }
[data-theme=dark] .tag-inline.aud { background: #3a4452; color: #d9e6f7; }
[data-theme=dark] .avatar { border-color: var(--line-strong); }
[data-theme=dark] .facts li, [data-theme=dark] .fact { background: #2f333b; color: var(--ink-2); }
/* istaknuti oglasi: topla jantarna nijansa */
[data-theme=dark] .card.featured, [data-theme=dark] .plate.featured, [data-theme=dark] .serp-row.hot, [data-theme=dark] .plan.pro { background: #3a3426; border-color: #6b5a2c; }
[data-theme=dark] .card.featured:hover { border-color: #8a7236; box-shadow: 0 14px 32px rgba(0, 0, 0, .4); }
[data-theme=dark] .ribbon { background: #4a3f22; color: #f5dc9a; border-bottom-color: #6b5a2c; }
[data-theme=dark] .card.featured .card-foot { border-top-color: #54482b; }
[data-theme=dark] .card.featured .price small, [data-theme=dark] .card.featured .loc, [data-theme=dark] .card.featured .seller, [data-theme=dark] .plate.featured p { color: #e2cf94; }
[data-theme=dark] .card.featured .facts li, [data-theme=dark] .card.featured .fact { background: #4a4126; color: #f1dfa6; }
[data-theme=dark] .card.featured .verified { color: #8fdcaa; }
[data-theme=dark] .serp-row.hot .im { background: #6b5a2c; } [data-theme=dark] .serp-row.hot .l1, [data-theme=dark] .serp-row.hot .l2 { background: #5a4c26; }
/* statusi i obavijesti */
[data-theme=dark] .notice.info { background: #28313c; border-color: #46566a; }
[data-theme=dark] .notice.warn { border-color: #6b4543; }
[data-theme=dark] .status.paused, [data-theme=dark] .status.pending { color: #f1d38a; }
[data-theme=dark] .status.urgent, [data-theme=dark] .tag-urgent { background: #5a2e29; color: #ffc3ba; }
[data-theme=dark] .tag-urgent-inline { background: #5a2e29; color: #ffc3ba; }
[data-theme=dark] .st-sched { background: #3a4452; color: #cfe0fb; }
[data-theme=dark] .verify-bar, [data-theme=dark] .maint-bar, [data-theme=dark] .maint-state.on { color: #f1dfa6; }
[data-theme=dark] .maint-bar, [data-theme=dark] .maint-state.on { background: #4a3f22; border-color: #6b5a2c; }
[data-theme=dark] .mod-card.on { border-color: #3f7a58; }
[data-theme=dark] .mod-card ul, [data-theme=dark] .imp-rules, [data-theme=dark] .imp-sample, [data-theme=dark] .why p, [data-theme=dark] .ag-page .lead, [data-theme=dark] .ag-steps p, [data-theme=dark] .ag-banner p, [data-theme=dark] .mod-desc { color: var(--ink-2); }
[data-theme=dark] .imp-box code { background: #2f333b; color: var(--ink); }
[data-theme=dark] .imp-errors { color: #ff9d93; }
[data-theme=dark] .ag-banner { background: var(--mist); border-color: var(--line-strong); }
[data-theme=dark] .rep-bar { background: #343841; }
[data-theme=dark] .ag-card { box-shadow: 0 18px 44px rgba(0, 0, 0, .4); }
[data-theme=dark] .ad-dot { background: #5a616e; }
[data-theme=dark] .site-footer { background: var(--abyss); color: #a8a49d; }
[data-theme=dark] .foot a { color: #d8d3cb; }
[data-theme=dark] .toast { background: #363b44; }
[data-theme=dark] .consent { background: #16181c; }
[data-theme=dark] .menu-panel { background: var(--paper); border-color: var(--line); }
[data-theme=dark] .menu-panel a, [data-theme=dark] .menu-panel button { color: var(--ink); }
[data-theme=dark] .menu-panel a:hover, [data-theme=dark] .menu-panel button:hover { background: #30343c; }
[data-theme=dark] table.ad-table th, [data-theme=dark] .ad-table th { color: var(--mute); }
[data-theme=dark] .places a[aria-current="true"] { color: var(--sea); }
[data-theme=dark] .hero .btn-primary, [data-theme=dark] .band .btn-primary, [data-theme=dark] .pro-hero .btn-primary, [data-theme=dark] .ag-hero .btn-primary,
[data-theme=dark] .ag-final .btn-primary, [data-theme=dark] .consent .btn-primary, [data-theme=dark] .pro-cta .btn-primary, [data-theme=dark] .hero-search .btn-primary { background: var(--sea); color: #26180a; }
[data-theme=dark] .hero .btn-primary:hover, [data-theme=dark] .band .btn-primary:hover, [data-theme=dark] .pro-hero .btn-primary:hover, [data-theme=dark] .ag-hero .btn-primary:hover,
[data-theme=dark] .ag-final .btn-primary:hover, [data-theme=dark] .consent .btn-primary:hover, [data-theme=dark] .pro-cta .btn-primary:hover { background: #ffad66; }
[data-theme=dark] .benefit i, [data-theme=dark] .ag-steps li::before { background: var(--sea); color: #26180a; }

/* ---------- tamni način: glađi prijelazi (nježan šum razbija "stepenice" u gradijentima, uz postupnije prijelaze boja) */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .9 0 0 0 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E"); }
[data-theme=dark] .hero { background: var(--grain), #181b20; }
[data-theme=dark] .hero::before {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(240,154,77,.20) 0%, rgba(240,154,77,.155) 15%, rgba(240,154,77,.11) 30%, rgba(240,154,77,.07) 45%, rgba(240,154,77,.04) 60%, rgba(240,154,77,.015) 80%, rgba(240,154,77,0) 100%),
    radial-gradient(600px 300px at 0% 110%, rgba(240,154,77,.10) 0%, rgba(240,154,77,.07) 25%, rgba(240,154,77,.04) 50%, rgba(240,154,77,.015) 75%, rgba(240,154,77,0) 100%);
}
[data-theme=dark] .band, [data-theme=dark] .pro-hero, [data-theme=dark] .pro-cta, [data-theme=dark] .ag-hero, [data-theme=dark] .ag-final {
  background: var(--grain), linear-gradient(110deg, #181b20 0%, #1c1f24 20%, #202226 40%, #232428 60%, #272626 80%, #2c2824 100%);
}
[data-theme=dark] .pro-hero::after { background: radial-gradient(closest-side, rgba(240,154,77,.13), rgba(240,154,77,.09) 40%, rgba(240,154,77,.04) 75%, rgba(240,154,77,0)); }
[data-theme=dark] .site-footer, [data-theme=dark] .consent { background-image: var(--grain); }

/* ---------- chat */
.chat { display: grid; grid-template-columns: 320px 1fr; border: 1px solid var(--edge); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; min-height: 540px; height: calc(100dvh - 240px); max-height: 720px; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list ul { list-style: none; margin: 0; padding: 0; }
.chat-list a { display: grid; gap: 2px; padding: 14px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.chat-list a:hover { background: var(--mist-2); }
.chat-list a.on { background: var(--mist); }
.chat-list .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chat-list small { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list .last { color: var(--ink-2); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat-head div { display: grid; min-width: 0; }
.chat-head a:not(.chat-back) { color: var(--mute); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-back { display: none; text-decoration: none; font-weight: 600; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--mist-2); }
.msg { max-width: min(78%, 520px); align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.msg.mine { align-self: flex-end; background: var(--mist); border-color: var(--line-strong); border-radius: 14px 14px 4px 14px; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { display: block; font-size: .72rem; color: var(--mute); margin-top: 2px; text-align: right; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.chat-form .form-error { flex-basis: 100%; }
.chat-form textarea { flex: 1; min-height: 42px; max-height: 140px; resize: none; field-sizing: content; }
.chat-hint, .chat-closed, .chat-empty { margin: auto; text-align: center; padding: 20px; }
.chat-empty { display: grid; place-items: center; height: 100%; color: var(--mute); }
.chat-cta p { margin: 0 0 12px; }
@media (max-width: 760px) {
  .chat { grid-template-columns: 1fr; height: calc(100dvh - 200px); }
  .chat.has-thread .chat-list { display: none; }
  .chat:not(.has-thread) .chat-thread { display: none; }
  .chat-back { display: inline; }
}
.chat-note { margin: 10px 2px 0; color: var(--mute); font-size: .88rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chat-note .tip-box { left: auto; right: 0; transform: none; top: auto; bottom: calc(100% + 8px); }
.chat-head { justify-content: space-between; }
.chat-head > div { flex: 1; }
.chat-del { position: relative; }
.chat-del > summary { list-style: none; }
.chat-del > summary::-webkit-details-marker { display: none; }
.chat-del-box { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 260px; background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px; }
.chat-del-box p { margin: 0 0 10px; font-size: .9rem; }
[data-theme=dark] .tip:hover, [data-theme=dark] .tip:focus-visible { background: var(--sea); }

.slots-buy { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.slots-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.slots-form label { margin: 0; }
.slots-form select { width: auto; }
.slots-form .hint { flex-basis: 100%; }
.slots-adm { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.slots-adm input { padding: 6px 8px; }

/* ---------- mobilno zaglavlje: hamburger izbornik + prijava */
.navmenu { display: none; }
.burger { display: inline-grid; gap: 4px; width: 18px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.navmenu[open] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navmenu[open] .burger i:nth-child(2) { opacity: 0; }
.navmenu[open] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.burger i { transition: transform .15s, opacity .15s; }
.navmenu .menu-panel { min-width: 250px; }
.navmenu .menu-panel button { justify-content: flex-start; }
@media (max-width: 960px) {
  .bar { flex-wrap: nowrap; gap: 10px; padding: 10px 0; }
  .nav, .bar-post, .theme-btn { display: none; }
  .navmenu { display: block; }
  .bar-right { gap: 8px; }
  .logo { font-size: 1.1rem; min-width: 0; }
  .logo > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 420px) {
  .navmenu summary > span:last-child { display: none; }
  .navmenu summary { padding: 8px 10px; }
  .logo-com { display: none; }
  .usermenu summary { max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) { .burger i { transition: none; } }
