/* ============================================================
   odvlasnika — dizajn sistem v2 (13.10.2026)
   Zero-build (pravilo #7): čist CSS i custom properties, bez framework-a i bez build koraka.

   PODRŠKA PREGLEDAČIMA (ApplicationController#allow_browser, spec A61): Safari 16.4+, Chrome 89+ (u praksi Android 7
   sa Chrome 119), Firefox 115 ESR. Zato NAMERNO bez: CSS nesting-a (Safari 16.4 i FF 115 ga nemaju), @layer (Chrome
   < 99 bi preskočio ceo blok), light-dark() i Popover API-ja. :has(), :user-invalid, @starting-style i text-wrap
   su samo dodatak: pravilo sa njima stoji SAMO (selektor koji pregledač ne zna ruši celo pravilo), a strana radi i
   bez njega. Tema je SVETLA za sve (odluka osnivača 14.10.2026); tamnu bira korisnik dugmetom u meniju — kolačić
   `tema`, server stavlja <html data-theme="dark">, a tamni tokeni i izuzeci idu pod [data-theme="dark"]. Sistemsko
   podešavanje (prefers-color-scheme) sajt namerno ne prati; mejlovi ga prate (layouts/mailer).

   Mapa fajla: tokeni · osnova · tipografija · raspored · zaglavlje · podnožje · dugmad · forme · obaveštenja ·
   dijalozi · bedževi · kartice · pretraga · mapa · detalj oglasa · čarobnjak · fotografije · moji oglasi · poruke ·
   nalog i sačuvano · prijava · početna (landing) · statične strane · pravne strane · admin · pomoćne klase · pokret.
   ============================================================ */

/* ---------- Tokeni ---------- */
:root {
  color-scheme: light;

  --brand: #0e7a65;           /* linkovi, cene, glavna dugmad — 5,3:1 na beloj */
  --brand-strong: #0b6252;    /* hover */
  --brand-ink: #0a5546;       /* tekst na zelenkastoj površini */
  --brand-tint: #e8f5f1;      /* zelenkasta površina */
  --brand-line: #cde7df;      /* ivica zelenkaste površine */
  --primary-bg: var(--brand);
  --primary-bg-hover: var(--brand-strong);
  --primary-fg: #ffffff;

  --accent: #f59e0b;          /* „Video provera“ i pažnja — UVEK sa tamnim tekstom (8,3:1); beli je bio 2,15:1 */
  --accent-hover: #e08e06;
  --accent-fg: #0f172a;
  --accent-tint: #fef3d7;

  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #56657a;           /* 5,9:1 na beloj, 5,3:1 na zelenkastoj (bilo #64748b: 4,25:1 na heroju) */
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #f1f4f3;
  --surface-3: #e6ecea;
  --line: #e2e8f0;            /* razdelnici */
  --field-border: #8391a3;    /* ivica polja 3,2:1 (WCAG 1.4.11); bila #e2e8f0: 1,23:1 — polja se nisu videla */

  --danger: #b42318;
  --danger-tint: #fdecea;
  --danger-line: #f3c6c0;
  --ok: #067647;
  --ok-tint: #e7f6ef;
  --ok-line: #bfe5d0;
  --warn-ink: #92400e;
  --warn-tint: #fff7e0;
  --warn-line: #f6dfa4;
  --info-ink: #1e4b8f;
  --info-tint: #eaf1fd;
  --info-line: #c7d8f5;

  /* Papir znaka „IZDAJE SE“ ostaje svetao i u tamnoj temi — to je predmet, ne površina interfejsa */
  --paper: #fbf8f1;
  /* Okvir logoa agencije ostaje beo i u tamnoj temi: logo je predmet, često taman znak na providnoj pozadini */
  --logo-bg: #ffffff;
  --paper-ink: #1b1f1d;
  --tape: rgba(214, 196, 148, .72);

  --focus: #0e7a65;
  /* Grafikoni panela (18.10.2026): jedna serija = jedna boja, provereno validatorom na #ffffff (svetlost, hroma,
     kontrast); --brand (#0e7a65) je bio ispod praga hrome za oznaku podatka */
  --chart-1: #0b8a6e;
  --chart-hover: rgba(15, 23, 42, .05);
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-2: 0 2px 6px rgba(15, 23, 42, .06), 0 14px 32px -14px rgba(15, 23, 42, .24);
  --shadow-3: 0 30px 60px -24px rgba(15, 23, 42, .38);
  --backdrop: rgba(15, 23, 42, .5);

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --radius-pill: 999px;

  --font-text: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sofia Sans Extra Condensed", "Arial Narrow", "Inter", system-ui, sans-serif;

  --container-w: 1160px;
  --gutter: 16px;
  --header-h: 60px;
  --section-gap: clamp(56px, 8vw, 104px);

  /* Strelica za <select> (data: URI je dozvoljen u CSP img-src) */
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356657a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

@media (min-width: 720px) {
  :root { --gutter: 24px; }
}

/* Tamna tema — samo kad je korisnik izabere (kolačić `tema`, <html data-theme="dark">) */
:root[data-theme="dark"] {
  color-scheme: dark;

  --brand: #4fd1ae;
  --brand-strong: #7ee0c5;
  --brand-ink: #8fe6cf;
  --brand-tint: #11302a;
  --brand-line: #1f4d43;
  --primary-bg: #34c9a3;
  --primary-bg-hover: #5ad8b9;
  --primary-fg: #03201a;

  --accent: #f5a524;
  --accent-hover: #f7b54b;
  --accent-fg: #1a1102;
  --accent-tint: #33270c;

  --ink: #e8eef1;
  --ink-2: #c5ced7;
  --muted: #9eabb8;
  --bg: #0b1210;
  --surface: #121b19;
  --surface-2: #182320;
  --surface-3: #213029;
  --line: #26352f;
  --field-border: #6c7f79;

  --danger: #ff8f80;
  --danger-tint: #3a1814;
  --danger-line: #6b2a22;
  --ok: #6fdba6;
  --ok-tint: #0f2a1e;
  --ok-line: #1f5a3f;
  --warn-ink: #f6c56e;
  --warn-tint: #31250c;
  --warn-line: #5c4615;
  --info-ink: #a9c6f6;
  --info-tint: #142034;
  --info-line: #263c61;

  --paper: #f3eee2;
  --tape: rgba(214, 196, 148, .55);

  --focus: #4fd1ae;
  /* Na tamnoj površini (#121b19) zaseban korak iste nijanse, proveren validatorom (#4fd1ae je izlazio iz opsega svetline) */
  --chart-1: #34a88a;
  --chart-hover: rgba(255, 255, 255, .06);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .35), 0 14px 32px -14px rgba(0, 0, 0, .7);
  --shadow-3: 0 30px 60px -24px rgba(0, 0, 0, .8);
  --backdrop: rgba(0, 0, 0, .62);

  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239eabb8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Meki skrol samo za skok unutar strane (npr. „Pošalji poruku“ → #kontakt): uz :focus-within ga nema pri Turbo prelazu na
   novu stranu, gde bi skrol na vrh bio animiran */
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}
/* Sticky footer: body je flex kolona, main guta višak visine. `width: 100%` na main-u je OBAVEZAN — u flex koloni
   `margin: 0 auto` poništava rastezanje, pa bi se kontejner skupio na širinu sadržaja. */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; width: 100%; }
main:focus { outline: none; }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-strong); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .85em;
}
blockquote { margin: 8px 0; padding-left: 12px; border-left: 3px solid var(--line); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
search { display: block; }
summary { cursor: pointer; }
/* Doslovne boje: istaknuti tekst (::selection) u delu pregledača ne čita CSS promenljive, pa bi označen tekst bio
   neprimetan */
::selection { background: #bfe6da; color: #0f172a; }
[data-theme="dark"] ::selection { background: #1f5b4d; color: #e8eef1; }

/* `hidden` mora da pobedi `display` iz klasa (.btn je inline-flex) — inače JS-om sakriveni elementi ostaju vidljivi */
[hidden] { display: none !important; }

/* Fokus: jedan prsten za sve, samo kad je tastatura (miš ga ne pali) */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 1px; }

.icon {
  width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 1em; height: 1em; vertical-align: -0.15em; }
.icon-lg { width: 1.5em; height: 1.5em; }

.turbo-progress-bar { height: 3px; background: var(--brand); }

/* ---------- Tipografija ---------- */
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.02;
}
h1 { font-size: clamp(2.1rem, 1.7rem + 1.8vw, 2.9rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 1.35rem + 1.1vw, 2.15rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.125rem; font-weight: 650; line-height: 1.3; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; }
.hint { color: var(--muted); font-size: .875rem; line-height: 1.5; }
p.hint { margin: .5em 0; }
.num, .price, .tabular { font-variant-numeric: tabular-nums; }
.prose { max-width: 70ch; }
.prose p { margin: 0 0 1em; text-wrap: pretty; }

/* ---------- Raspored ---------- */
.container {
  max-width: calc(var(--container-w) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
main.container { padding-top: 24px; padding-bottom: 8px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.wizard { max-width: 760px; margin: 0 auto; }
.stack > * + * { margin-top: 16px; }
.cluster { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
  margin: 8px 0 16px;
}
.page-head h1, .page-head h2 { margin: 0; }
.page-head .count { color: var(--muted); font-weight: 600; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(2px); }
.panel, .profile-section {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 20px; margin: 16px 0;
}
@media (min-width: 720px) {
  .panel, .profile-section { padding: 24px 28px; }
}
.panel > h2:first-child, .profile-section > h2:first-child { margin-top: 0; }
.danger-zone { border-color: var(--danger-line); }
.danger-zone h2 { color: var(--danger); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: var(--radius-s);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 10px; color: var(--surface); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* Polje-zamka za skripte (BotGuard) — van ekrana; čovek ga ne vidi, tastatura i čitač ekrana ga preskaču */
/* Polje-zamka (BotGuard): sakriveno CSS-om iz ove datoteke — skripta koja čita samo HTML ga vidi i popuni, a pregledač
   i menadžer lozinki ne popunjavaju polje koje se ne prikazuje (do 14.10.2026 je bilo samo pomereno van ekrana) */
.hp-field { display: none !important; }

/* ---------- Zaglavlje ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .site-header { background: rgba(18, 27, 25, .88); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 12px; }
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1;
  letter-spacing: .005em; color: var(--ink); text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo-mark { width: 28px; height: 28px; flex: none; }
.logo-mark .mark-tag { fill: var(--brand); }
.logo-mark .mark-bar { fill: var(--surface); }
.logo-word b { color: var(--brand); font-weight: inherit; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav > a, .site-nav .linklike {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem;
  padding: 8px 12px; border-radius: var(--radius-s);
}
.site-nav > a:hover, .site-nav .linklike:hover { color: var(--ink); background: var(--surface-2); }
.site-nav > a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.site-nav .nav-cta { margin-left: 8px; color: var(--primary-fg); }
.site-nav .nav-cta:hover { color: var(--primary-fg); background: var(--primary-bg-hover); }
.site-nav form { display: inline; margin: 0; }
/* Tamna tema (theme_controller): na računaru samo ikonica meseca na kraju zaglavlja, u meniju na telefonu sa natpisom.
   Uključena = ispunjen mesec u boji brenda (stanje je i u aria-pressed). */
.site-nav .theme-toggle { color: var(--ink-2); }
.site-nav .theme-toggle[aria-pressed="true"] { color: var(--brand); }   /* i pod mišem / posle dodira na telefonu */
.theme-toggle[aria-pressed="true"] .icon { fill: currentColor; }
/* Uži računar: sa ikonicom teme (i stavkom „Admin“ ili „Panel“) stavke inače ne staju u jedan red — tekst bi se lomio u
   dva. Ispod 1101 px je meni ☰ (18.10.2026: sa „Panel“ za agencije i investitore zaglavlje na 921–1100 px nije stajalo
   u red ni prijavljenom korisniku — merenje u pregledaču) */
@media (min-width: 1101px) and (max-width: 1240px) {
  .site-nav > a:not(.nav-cta), .site-nav .linklike:not(.theme-toggle) { padding-left: 8px; padding-right: 8px; }
}
@media (min-width: 1101px) {
  .site-nav .theme-toggle { margin-left: 4px; padding: 8px; }
  .theme-toggle .theme-label {   /* kao .sr-only: natpis ostaje ime dugmeta za čitače ekrana */
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
}
.nav-messages { position: relative; }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--accent); color: var(--accent-fg); border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
}
/* Telefon, tablet i uzak računar (do 1100 px): logo + „Objavi oglas“ + dugme menija; meni se otvara ispod zaglavlja
   (menu_controller) */
.header-actions { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; position: relative;
  min-width: 44px; height: 44px; padding: 0 10px;
  background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-m);
  cursor: pointer; font: inherit;
}
.menu-toggle:hover { background: var(--surface-2); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-block; }
.menu-toggle .nav-badge { position: absolute; top: -6px; right: -6px; }
@media (max-width: 1100px) {
  .header-inner { position: relative; }
  .header-actions { display: flex; align-items: center; gap: 8px; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    padding: 6px var(--gutter) 14px;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a, .site-nav .linklike {
    min-height: 48px; padding: 0 4px; border-radius: 0; border-bottom: 1px solid var(--line);
    font-size: 1rem; width: 100%; text-align: left;
  }
  .site-nav > a:hover, .site-nav .linklike:hover { background: transparent; }
  .site-nav form { display: block; }
  .site-nav form:last-child .linklike, .site-nav > a:last-child { border-bottom: 0; }
  .site-nav .nav-cta { display: none; }
}
@media (max-width: 1100px) and (prefers-reduced-motion: no-preference) {
  .site-nav.is-open { animation: drop-in .16s ease-out; }
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Podnožje ---------- */
.site-footer {
  flex-shrink: 0; margin-top: var(--section-gap);
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 40px 0 calc(24px + env(safe-area-inset-bottom));
}
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.footer-brand { grid-column: 1 / -1; }
.footer-grid strong { display: block; margin-bottom: 6px; font-size: .875rem; }
.footer-grid a {
  display: flex; align-items: center; min-height: 40px; color: var(--ink-2); text-decoration: none; font-size: .95rem;
}
.footer-grid a:hover { color: var(--brand); text-decoration: underline; }
.footer-brand .hint { max-width: 36ch; margin-top: 10px; }
.footer-note { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; }
@media (min-width: 820px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-grid a { min-height: 32px; }
}

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--surface-2); color: var(--ink);
  font-family: var(--font-text); font-size: .95rem; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--surface-3); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-bg-hover); border-color: var(--primary-bg-hover); color: var(--primary-fg); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-fg); }
.btn-danger { background: var(--danger-tint); border-color: var(--danger-line); color: var(--danger); }
.btn-danger:hover { background: var(--danger-line); color: var(--danger); }
.btn-ghost { background: transparent; border-color: var(--field-border); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
/* Sporedna radnja na zelenkastoj traci (alarm uz rezultate): bela, zelen tekst — ne takmiči se sa glavnim dugmetom */
.btn-soft { background: var(--surface); border-color: var(--brand-line); color: var(--brand-ink); }
.btn-soft:hover { background: var(--surface-2); color: var(--brand-ink); }
.btn-light { background: #ffffff; border-color: #ffffff; color: #0a5546; }
.btn-light:hover { background: #e8f5f1; border-color: #e8f5f1; color: #0a5546; }
.btn-google { width: 100%; background: var(--surface); border-color: var(--field-border); }
.btn-google:hover { background: var(--surface-2); }
.btn-small { min-height: 36px; padding: 0 12px; font-size: .875rem; border-radius: var(--radius-s); }
.btn-large { min-height: 52px; padding: 0 22px; font-size: 1rem; }
.btn-xl { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { min-width: 44px; padding: 0; }
.btn-icon.btn-small { min-width: 36px; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--primary-fg) var(--primary-fg) transparent transparent;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.linklike {
  background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer;
  font: inherit; text-decoration: underline; text-underline-offset: .18em;
}
.linklike:hover { color: var(--brand-strong); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form { display: inline; }

/* ---------- Forme ---------- */
.field { margin: 0 0 16px; min-width: 0; }
.field > label, .field-label, .field legend {
  display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink);
}
.field legend { padding: 0; }
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; }
.field .req { color: var(--danger); font-weight: 700; }
.field-hint { color: var(--muted); font-size: .85rem; margin: 6px 0 0; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 16px; margin: 16px 0; }
.field.span2 { grid-column: 1 / -1; }
.input {
  display: block; width: 100%; min-height: 48px; margin: 0 0 12px;
  padding: 11px 14px; font-family: var(--font-text); font-size: 1rem; line-height: 1.35;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--field-border); border-radius: var(--radius-m);
  transition: border-color .15s, box-shadow .15s;
}
.field .input, .form-grid .input { margin-bottom: 0; }
.input::placeholder { color: var(--muted); opacity: 1; }
.input:hover { border-color: var(--ink-2); }
.input:focus { border-color: var(--brand); }
.input[readonly] { background: var(--surface-2); }
select.input {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: var(--chevron); background-repeat: no-repeat; background-position: right 12px center;
  background-size: 18px;
}
textarea.input { resize: vertical; max-width: 100%; min-height: 96px; }
.input-code { letter-spacing: 8px; text-align: center; font-size: 1.5rem; font-weight: 700; }
.input-num { max-width: 120px; }
.input-name { max-width: 360px; }
.input:user-invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; margin: 6px 0 0; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); width: 1.15rem; height: 1.15rem; margin: 0; flex: none; }
.check {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; font-weight: 500;
}
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.dev-code { background: var(--warn-tint); border: 1.5px dashed var(--accent); padding: 10px 14px; border-radius: var(--radius-s); }

/* Polje sa jedinicom („€", „m²") */
.affix { position: relative; }
.affix .input { padding-right: 52px; }
.affix-unit {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-weight: 600; pointer-events: none;
}

/* Segmentirani izbor i čipovi: pravi <input> (radio/checkbox) ostaje u formi i u tastaturi, oznaka je dugme.
   Radi bez JS-a i bez :has() — susedni selektor `input + label`. */
.segmented { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.segmented input, .chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.segmented label, .chip-check label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--field-border); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background-color .12s, border-color .12s, color .12s;
  -webkit-user-select: none; user-select: none; margin: 0;
}
.segmented label:hover, .chip-check label:hover { border-color: var(--brand); }
.segmented input:checked + label { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg); }
.chip-check input:checked + label { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-ink); }
.chip-check label .icon { display: none; }
.chip-check input:checked + label .icon { display: inline-block; }
.segmented input:focus-visible + label, .chip-check input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.chip-check { display: inline-flex; position: relative; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Lozinka sa dugmetom „prikaži“ */
.password-field { position: relative; }
.password-field .input { padding-right: 52px; }
.password-toggle {
  position: absolute; right: 4px; top: 4px; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: var(--radius-s); color: var(--muted); cursor: pointer;
}
.password-toggle:hover { color: var(--ink); background: var(--surface-2); }

/* Izjava oglašivača pri objavi (od 19.10.2026 bez kućice): tekst u okviru odmah iznad dugmeta „Izjavljujem i objavljujem“
   — dugme je potvrda, pa tekst mora jasno da se vidi */
.declaration {
  display: flex; align-items: flex-start; gap: 12px; margin: 16px 0; padding: 12px 14px;
  font-size: .92rem; line-height: 1.5;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-m);
}
.declaration > .icon { flex: none; margin-top: 2px; color: var(--brand); }

/* ---------- Obaveštenja: traka (greške ostaju), tost (uspeh se gasi sam), napomena u strani ---------- */
.flash-area { margin-top: 16px; }
.flash {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  border-radius: var(--radius-m); border: 1px solid; font-size: .95rem; font-weight: 500; line-height: 1.45;
}
.flash .icon { margin-top: 1px; }
.flash .flash-text { flex: 1; min-width: 0; }
.flash.notice { background: var(--ok-tint); border-color: var(--ok-line); color: var(--ok); }
.flash.alert { background: var(--danger-tint); border-color: var(--danger-line); color: var(--danger); }
.flash-close {
  flex: none; margin: -6px -6px -6px 0; width: 32px; height: 32px; display: inline-flex; align-items: center;
  justify-content: center; background: none; border: 0; border-radius: var(--radius-s); color: inherit; cursor: pointer;
}
.flash-close:hover { background: rgba(127, 127, 127, .15); }
/* Tost je GORE, ispod zaglavlja: dole su na telefonu traka „Pošalji poruku“, polje za poruku u prepisci i dugmad
   čarobnjaka — tost bi ih prekrio baš posle radnje */
/* z-index ispod zaglavlja (50): otvoren meni na telefonu ostaje iznad tosta */
.toast-stack {
  position: fixed; z-index: 45; left: 50%; transform: translateX(-50%);
  top: calc(var(--header-h) + 12px); width: min(560px, calc(100% - 2 * var(--gutter)));
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast-stack .flash { pointer-events: auto; box-shadow: var(--shadow-2); }
@media (prefers-reduced-motion: no-preference) {
  .toast-stack .flash { animation: toast-in .22s ease-out; }
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

.callout {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 12px 0;
  border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface-2);
  font-size: .95rem; line-height: 1.5;
}
.callout > .icon { margin-top: 2px; }
.callout > div { flex: 1; min-width: 0; }
.callout p { margin: 0 0 .4em; }
.callout p:last-child { margin: 0; }
.callout-info { background: var(--info-tint); border-color: var(--info-line); color: var(--info-ink); }
.callout-warn { background: var(--warn-tint); border-color: var(--warn-line); color: var(--warn-ink); }
.callout-danger { background: var(--danger-tint); border-color: var(--danger-line); color: var(--danger); }
.callout-ok { background: var(--ok-tint); border-color: var(--ok-line); color: var(--ok); }
.callout .btn { margin-top: 8px; }
.safety-note {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; margin: 10px 0;
  background: var(--warn-tint); border: 1px solid var(--warn-line); border-radius: var(--radius-m);
  font-size: .875rem; color: var(--warn-ink); line-height: 1.45;
}

/* ---------- Dijalozi (nativni <dialog>): potvrda, donji list, galerija ---------- */
.dialog, .confirm-dialog {
  padding: 0; border: 0; border-radius: var(--radius-l);
  width: calc(100% - 32px); max-width: 460px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3);
}
/* ::backdrop ne nasleđuje CSS promenljive pre Chrome 122 / Firefox 120 / Safari 17.4 (naš minimum je niži) — sa
   var(--backdrop) bi pozadina iza prozora bila providna, zato doslovne boje (iste kao tokeni) */
.dialog::backdrop, .confirm-dialog::backdrop, .sheet::backdrop { background: rgba(15, 23, 42, .5); }
[data-theme="dark"] .dialog::backdrop, [data-theme="dark"] .confirm-dialog::backdrop,
[data-theme="dark"] .sheet::backdrop { background: rgba(0, 0, 0, .62); }
.confirm-dialog form, .dialog-body { margin: 0; padding: 24px; }
.confirm-dialog p { margin: 0 0 20px; font-size: 1rem; line-height: 1.5; }
.dialog-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1.05; margin: 0 0 8px; }
.confirm-actions, .dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.dialog-actions form { display: contents; }
@media (prefers-reduced-motion: no-preference) {
  .dialog[open], .confirm-dialog[open] { animation: pop-in .16s ease-out; }
}
@keyframes pop-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* Donji list (telefon): filteri pretrage. Na širem ekranu je to centriran prozor. */
.sheet {
  padding: 0; border: 0; margin: auto auto 0; width: 100%; max-width: 100%;
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3);
  display: none; flex-direction: column;
}
.sheet[open] { display: flex; }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gutter); border-bottom: 1px solid var(--line);
}
.sheet-head h2 { margin: 0; font-size: 1.6rem; }
.sheet-body { padding: 16px var(--gutter); overflow-y: auto; flex: 1; }
.sheet-foot {
  display: flex; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--surface);
}
.sheet-foot .btn { flex: 1; }
@media (min-width: 721px) {
  .sheet { margin: auto; max-width: 560px; border-radius: var(--radius-l); }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-up .22s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

/* ---------- Meni „⋯" (nativni <details>, zatvara ga dropdown_controller klikom van i tasterom Esc) ---------- */
.menu { position: relative; display: inline-block; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-2); padding: 6px; display: flex; flex-direction: column;
}
.menu-panel form { display: block; margin: 0; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: var(--radius-s); background: none; color: var(--ink);
  font: inherit; font-size: .95rem; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer;
}
.menu-item:hover { background: var(--surface-2); color: var(--ink); }
.menu-item.danger { color: var(--danger); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-note { padding: 6px 12px; font-size: .8rem; color: var(--muted); }

/* ---------- Bedževi i oznake ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 650; line-height: 1.4; background: var(--surface-2); color: var(--ink-2);
  border: 1px solid transparent; white-space: nowrap;
}
a.tag { text-decoration: none; }
.tag.ok { background: var(--ok-tint); color: var(--ok); border-color: var(--ok-line); }
.tag.warn { background: var(--warn-tint); color: var(--warn-ink); border-color: var(--warn-line); }
.tag.bad { background: var(--danger-tint); color: var(--danger); border-color: var(--danger-line); }
.tag.brand { background: var(--brand-tint); color: var(--brand-ink); border-color: var(--brand-line); }
.badge-verified {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent); color: var(--accent-fg);
  padding: 4px 10px; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 750; line-height: 1.3;
  box-shadow: var(--shadow-1);
}
.card-badges { position: absolute; top: 10px; left: 10px; right: 58px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge-new {
  display: inline-flex; padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--surface); font-size: .78rem; font-weight: 700; line-height: 1.3;
}
.badge-verified-big {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px;
  font-weight: 800; font-size: 1.05rem;
  background: var(--accent); color: var(--accent-fg); padding: 6px 12px; border-radius: var(--radius-pill);
}

/* ---------- Kartice oglasa ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 24px 20px; margin: 16px 0 40px; list-style: none; padding: 0;
}
.listing-card { position: relative; min-width: 0; }
.card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  overflow: hidden; color: inherit;
}
.card-link { text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.card-link:hover { color: inherit; border-color: var(--brand-line); box-shadow: var(--shadow-2); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-placeholder {
  display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center;
  height: 100%; min-height: 140px; color: var(--muted); font-size: .9rem; text-align: center; padding: 12px;
}
.card-body { padding: 12px 14px 14px; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-price { font-size: 1.2rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.card-price .per { font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card-title { margin: 4px 0 0; font-weight: 600; font-size: .95rem; }
.card-place { margin: 2px 0 0; color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-time { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.card-body p { margin: 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-actions form { display: inline; }
/* Srce za omiljene: forma POKRAJ linka kartice, ne u njemu (dugme u linku nije dozvoljen HTML) */
.fav-toggle { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; }
.fav-toggle button {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0f172a; cursor: pointer;
  box-shadow: var(--shadow-1);
}
.fav-toggle button:hover { background: #ffffff; color: #b42318; }
.fav-toggle button[aria-pressed="true"] { color: #b42318; }
.fav-toggle button[aria-pressed="true"] .icon { fill: currentColor; }
.fav-form { margin: 10px 0 0; }
.fav-button.is-active { color: var(--danger); border-color: var(--danger-line); }
.fav-button.is-active .icon { fill: currentColor; }
.cards-empty-note { color: var(--muted); }

/* ---------- Pretraga ---------- */
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.results-head h1 { margin: 0; }
.results-head h1 .count { color: var(--muted); font-weight: 650; }
.view-switch { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-m); }
.view-switch a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px;
  border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.view-switch a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.search-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 12px; margin: 0 0 12px; }
.search-row-top { display: flex; gap: 8px; align-items: center; }
.search-row-top .input { margin: 0; }
.search-row-top .filters-open { flex: none; }
.search-summary { flex: 1; min-width: 0; margin: 0; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.search-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-summary .icon { color: var(--brand); }
.sheet .filters-desktop-only { display: none; }
/* Filteri: polja u mreži jednakih kolona — šest u jednom redu na širem ekranu, inače tri u dva reda (na telefonu, u
   donjem listu, dve). Ispod njih kućice i dugmad u jednom redu; redosled nije filter i stoji iznad rezultata
   (.results-tools). Do 16.10.2026 kućice su bile ćelije iste mreže, široke kao polje: natpisi su se lomili u dva reda,
   „(i oglasi bez navedenog datuma)“ je stajao u uskoj koloni pored natpisa, a polja za broj su bila uža od padajućih
   menija (nalaz osnivača). */
.filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.filter-grid .field { margin: 0; }
.filter-grid .field > label, .filter-grid .field-label { font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
/* Cena „od – do“ u jednoj ćeliji */
.range { display: flex; align-items: center; gap: 6px; }
.range .input { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 10px; }
.range-sep { flex: none; color: var(--muted); }
/* Polja za broj bez strelica: za cenu i površinu ne služe ničemu, a u Firefox-u zauzimaju deo uskog polja (strelice
   na tastaturi i dalje rade) */
.filter-grid input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.filter-grid input[type="number"]::-webkit-inner-spin-button,
.filter-grid input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.filter-extras {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line);
}
.filter-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.filter-checks .hint { white-space: nowrap; }
.filters-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-left: auto; }
@media (min-width: 1100px) {
  .filter-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* Redosled pored „Lista / Mapa“, iznad rezultata */
.results-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sort-field { display: flex; align-items: center; gap: 8px; }
.sort-field label { font-size: .875rem; font-weight: 600; color: var(--muted); }
.sort-field .input { width: auto; min-height: 46px; margin: 0; padding-top: 8px; padding-bottom: 8px; }   /* visina prekidača */
.filters-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: var(--radius-pill); background: var(--primary-bg); color: var(--primary-fg); font-size: .75rem; font-weight: 800;
}
/* Telefon: jedna traka [grad/opština] [Filteri (n)]; ostala polja se premeštaju u donji list (filters_controller) */
.search-panel .filters-mobile { display: none; }
@media (max-width: 720px) {
  .search-panel { padding: 10px; }
  .search-panel .filters-mobile { display: flex; }
  .search-panel .filters-desktop { display: none; }
  .sheet .filter-grid { grid-template-columns: 1fr 1fr; }
  .sheet .filter-grid .field-wide { grid-column: 1 / -1; }
  .sheet .filter-checks { flex-direction: column; align-items: flex-start; }
  /* Redosled i „Lista / Mapa“ u jednom redu ispod naslova: natpis „Redosled“ samo za čitač ekrana, prekidač bez ikonica */
  .results-tools { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
  .sort-field { min-width: 0; }
  .sort-field .input { max-width: 100%; }
  .sort-field label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .view-switch { flex: none; }
  .view-switch .icon { display: none; }
}
.filters { /* stara klasa: forma pretrage na početnoj */
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 12px; margin: 14px 0;
}
.filters .input { width: auto; margin: 0; flex: 1 1 160px; }
.filters .input-num { flex: 0 1 130px; }
.save-search-bar {
  display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin: 0 0 20px;
  padding: 12px 14px; border-radius: var(--radius-m); background: var(--brand-tint); border: 1px solid var(--brand-line);
}
.save-search-bar form { margin: 0; }
.save-search-bar .hint { margin: 0; color: var(--brand-ink); flex: 1 1 240px; }
.empty-state {
  text-align: center; padding: 48px 16px; color: var(--muted); max-width: 560px; margin: 0 auto;
}
.empty-icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.auth-card .empty-icon { margin: 0 0 12px; }
.empty-state h2 { margin: 0 0 8px; color: var(--ink); }
.empty-state p { margin: 0 auto 16px; max-width: 46ch; }
.empty-state .actions { justify-content: center; }
.empty-state .actions form { margin: 0; }
.pagy { display: flex; gap: 6px; justify-content: center; align-items: center; margin: 4px 0 36px; flex-wrap: wrap; }
.pagy a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none;
  color: var(--ink); background: var(--surface); font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums;
}
.pagy a:hover { border-color: var(--brand); color: var(--ink); }
.pagy a.current, .pagy a[aria-current="page"] { background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-bg); }
.pagy a[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.seo-links { margin: 8px 0 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.seo-links h2 { font-family: var(--font-text); font-size: .95rem; font-weight: 650; margin: 0 0 10px; }
.seo-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seo-links a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .9rem;
}
.seo-links a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Mapa ---------- */
.map { position: relative; width: 100%; border-radius: var(--radius-m); border: 1px solid var(--line); overflow: hidden; background: var(--surface-2); }
.map-picker { height: 340px; }
.map-results { height: 72vh; min-height: 420px; }
.map-detail { height: 320px; }
@media (max-width: 720px) {
  .map-results { height: calc(100vh - 230px); height: calc(100dvh - 230px); min-height: 360px; border-radius: var(--radius-m); }
}
.map-pin {
  display: inline-block; white-space: nowrap;
  background: var(--primary-bg); color: var(--primary-fg); font-weight: 700; font-size: .82rem; font-variant-numeric: tabular-nums;
  padding: 4px 10px; border-radius: var(--radius-pill); text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3); border: 2px solid #ffffff;
}
.map-pin:hover { background: var(--primary-bg-hover); color: var(--primary-fg); }
.map-pin--verified { background: var(--accent); color: var(--accent-fg); }
.map-pin--verified:hover { background: var(--accent-hover); color: var(--accent-fg); }
.map-cluster {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border-radius: 50%; background: var(--primary-bg); color: var(--primary-fg);
  font-family: inherit; font-weight: 700; font-size: .8rem; border: 3px solid #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .35); cursor: pointer;
}
.map-cluster:hover { background: var(--primary-bg-hover); }
.map-cluster--md { width: 46px; height: 46px; font-size: .86rem; }
.map-cluster--lg { width: 56px; height: 56px; font-size: .92rem; }
.map-popup .maplibregl-popup-content {
  border-radius: var(--radius-s); padding: 9px 12px; box-shadow: var(--shadow-2);
  font-family: var(--font-text); font-size: .85rem; line-height: 1.35; color: #0f172a; background: #ffffff;
}
.map-popup-meta { color: #56657a; }
.map-popup-badge { color: #067647; font-weight: 600; margin-top: 2px; }
.map-note { margin-top: 8px; }
.map-fallback { display: flex; align-items: center; justify-content: center; height: 100%; margin: 0; padding: 16px; text-align: center; color: var(--muted); }
/* Mapa radi, ali naša podloga nije stigla (map_controller#showNotice) — bez prelaska na OSM */
.map-notice {
  position: absolute; z-index: 3; top: 10px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 96px);
  margin: 0; padding: 6px 12px; border-radius: var(--radius-m); background: var(--surface); color: var(--ink-2);
  box-shadow: var(--shadow-2); font-size: .85rem; line-height: 1.3; text-align: center; pointer-events: none;
}
/* OSM pločice su svetle; u tamnoj temi ih prigušujemo da mapa ne „pali“ ekran (naše vektorske imaju tamni stil) */
[data-theme="dark"] .map-raster .maplibregl-canvas { filter: brightness(.78) contrast(1.08) saturate(.85); }

/* ---------- Detalj oglasa ---------- */
.breadcrumbs { margin: 0 0 12px; font-size: .875rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); margin-right: 2px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink-2); }

/* Galerija: telefon = vrteška preko cele širine sa brojačem; desktop = mozaik (1 velika + 4 male) */
.gallery-wrap { position: relative; margin: 0 0 20px; }
.gallery {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; list-style: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 88%; scroll-snap-align: center; margin: 0; position: relative;
  aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden; background: var(--surface-2);
}
.gallery-item:only-child { flex-basis: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-count, .gallery-all {
  position: absolute; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border-radius: var(--radius-pill); border: 0; background: rgba(15, 23, 42, .78); color: #ffffff;
  font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; font-variant-numeric: tabular-nums;
}
.gallery-count { top: 12px; bottom: auto; left: 12px; pointer-events: none; }
.gallery-all { left: 12px; }
@media (min-width: 900px) {
  .gallery {
    display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 8px;
    margin: 0; padding: 0; overflow: visible; border-radius: var(--radius-l);
  }
  .gallery-item { aspect-ratio: auto; border-radius: 0; }
  .gallery-item:first-child { grid-row: 1 / span 2; border-radius: var(--radius-l) 0 0 var(--radius-l); }
  .gallery-item:nth-child(3) { border-top-right-radius: var(--radius-l); }
  .gallery-item:nth-child(5) { border-bottom-right-radius: var(--radius-l); }
  .gallery-item:nth-child(n+6) { display: none; }
  .gallery-item:only-child { grid-column: 1 / -1; border-radius: var(--radius-l); }
  .gallery-item:first-child:nth-last-child(2) { grid-column: 1 / span 2; }
  .gallery-item:first-child:nth-last-child(2) ~ .gallery-item { grid-row: 1 / span 2; border-radius: 0 var(--radius-l) var(--radius-l) 0; }
  /* 3 ili 4 fotografije: velika levo + dve jedna ispod druge, bez prazne rupe desno dole; četvrta je u „Sve
     fotografije“ (klasa iz listings/show — :has() ne postoji u minimalnim pregledačima iz allow_browser) */
  .gallery--few { grid-template-columns: 2fr 1fr; }
  .gallery--few .gallery-item:nth-child(2) { border-top-right-radius: var(--radius-l); }
  .gallery--few .gallery-item:nth-child(3) { border-top-right-radius: 0; border-bottom-right-radius: var(--radius-l); }
  .gallery--few .gallery-item:nth-child(n+4) { display: none; }
  .gallery-count { display: none; }
}
.gallery-item.img-placeholder { flex-basis: 100%; aspect-ratio: 16 / 7; }

.lightbox {
  padding: 0; border: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  background: #05080a; color: #ffffff;
}
.lightbox::backdrop { background: #05080a; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; }
.lightbox-bar .lightbox-count { font-weight: 650; font-variant-numeric: tabular-nums; }
.lightbox-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #ffffff; cursor: pointer;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox-track {
  flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; min-height: 0;
}
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 8px; }
.lightbox-track img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }
@media (max-width: 720px) {
  .lightbox-nav { display: none; }
}

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.detail-main { min-width: 0; }
@media (min-width: 900px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
}
.listing-head { margin-bottom: 16px; }
.listing-head h1 { margin: 0 0 8px; }
.listing-price { display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.listing-price p { margin: 0; }
.price-big {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1;
  color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.price-big .per { font-family: var(--font-text); font-size: 1rem; font-weight: 500; color: var(--muted); }
.listing-sub { color: var(--muted); margin: 6px 0 0; }
.facts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0;
  margin: 20px 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--surface); overflow: hidden;
}
.facts > div { padding: 14px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; }
.facts .icon { color: var(--brand); width: 18px; height: 18px; }
.facts dt { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; }
.amenities { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.amenities li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 500;
}
.amenities .icon { color: var(--brand); }
.detail-section h2 { font-size: 1.6rem; }
.detail-side { position: relative; }
.trust-box, .contact-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 20px; box-shadow: var(--shadow-2);
}
@media (min-width: 900px) {
  .trust-box, .contact-box { position: sticky; top: calc(var(--header-h) + 16px); }
}
.contact-box h2 { font-size: 1.5rem; margin: 0 0 12px; }
.contact-box label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.contact-box textarea { min-height: 128px; }
.contact-box .btn + form .btn, .contact-box form + form { margin-top: 8px; }
.contact-facts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; font-size: .875rem; color: var(--ink-2); }
.contact-facts li { display: flex; gap: 10px; align-items: flex-start; }
.contact-facts .icon { color: var(--brand); margin-top: 1px; }
.verified-box { padding: 14px; margin: 0 0 16px; border-radius: var(--radius-m); background: var(--accent-tint); border: 1px solid var(--warn-line); }
.verified-box .hint { color: var(--ink-2); margin: 6px 0 0; }
.quick-asks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.quick-asks button {
  min-height: 34px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink-2); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
}
.quick-asks button:hover { border-color: var(--brand); color: var(--brand); }
.side-links { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.share-box { margin-top: 14px; }
/* Strana „Oglas je objavljen“ (Owner::ListingsController#objavljeno) */
.published-page h1 { display: flex; align-items: center; gap: 10px; }
.published-page h1 .icon { color: var(--ok); }
.published-page .lp-section { padding-top: 24px; }
/* „Pomozite mi da objavim“ u heroju za vlasnike */
.hero-help { margin: 14px 0 0; color: var(--muted); }
.share-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* Donja traka na telefonu: cena i poruka uvek pri ruci (sticky_cta_controller je krije dok je okvir za poruku na ekranu) */
.contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, .25);
  transition: transform .2s ease, visibility 0s linear 0s;
}
/* Sklonjena traka nije ni fokusabilna (visibility posle klizanja) — Tab ne sme da ode na nevidljivo dugme */
.contact-bar.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
.contact-bar .price { font-weight: 800; font-size: 1.15rem; }
.contact-bar .price .per { font-weight: 500; font-size: .85rem; color: var(--muted); }
.contact-bar .btn { flex: 0 1 auto; }
.has-contact-bar main { padding-bottom: 96px; }
@media (min-width: 900px) {
  .contact-bar { display: none; }
  .has-contact-bar main { padding-bottom: 8px; }
}

/* ---------- Čarobnjak ---------- */
.wizard-head { margin-bottom: 8px; }
.wizard-head h1 { margin-bottom: 4px; }
.steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 20px 0 24px; counter-reset: step; }
.steps li { flex: 1; min-width: 0; position: relative; counter-increment: step; }
.steps li::after {
  content: ""; position: absolute; top: 17px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px;
  background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps li.done::after { background: var(--brand); }
.steps a, .steps span {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  color: var(--muted); text-decoration: none; font-size: .82rem; font-weight: 600; padding: 0 4px;
}
.steps a::before, .steps span::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 800; font-size: .9rem;
}
.steps li.done a::before { border-color: var(--brand); color: var(--brand); }
.steps li.current a, .steps li.current span { color: var(--ink); }
.steps li.current a::before, .steps li.current span::before { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg); }
.steps a:hover { color: var(--ink); }
.steps-mobile { display: none; margin: 14px 0 20px; }
.steps-mobile p { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-size: .9rem; }
.steps-mobile strong { font-weight: 700; }
@media (max-width: 640px) {
  .steps { display: none; }
  .steps-mobile { display: block; }
}
/* Nativni <progress> (popunjenost biografije): bez inline širine, pristupačan sam po sebi */
progress.meter {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; margin: 8px 0 0;
  border: 0; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; color: var(--brand);
}
progress.meter::-webkit-progress-bar { background: var(--surface-3); border-radius: var(--radius-pill); }
progress.meter::-webkit-progress-value { background: var(--brand); border-radius: var(--radius-pill); }
progress.meter::-moz-progress-bar { background: var(--brand); border-radius: var(--radius-pill); }
.progress { height: 8px; background: var(--surface-3); border-radius: var(--radius-pill); overflow: hidden; }
.progress-fill { height: 100%; background: var(--brand); border-radius: var(--radius-pill); transition: width .3s; }
.progress-fill[data-step="1"] { width: 20%; }
.progress-fill[data-step="2"] { width: 40%; }
.progress-fill[data-step="3"] { width: 60%; }
.progress-fill[data-step="4"] { width: 80%; }
.progress-fill[data-step="5"] { width: 100%; }
.progress.is-indeterminate .progress-fill { width: 35%; animation: indeterminate 1.1s ease-in-out infinite; }
@keyframes indeterminate { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
.wizard-section { margin: 0 0 8px; }
.wizard-section > h2 { margin-top: 8px; }
.wizard-footer {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 24px calc(-1 * var(--gutter)) 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line);
}
.wizard-footer .autosave-status { flex: 1 1 auto; min-width: 0; }
.wizard-footer .actions { margin-left: auto; }
@media (min-width: 720px) {
  .wizard-footer { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
.publish-box {
  background: var(--surface); border: 2px solid var(--brand); border-radius: var(--radius-l);
  padding: 22px; margin: 24px 0; box-shadow: var(--shadow-2);
}
.publish-box h2 { margin-top: 0; }
.preview-block { margin: 8px 0 24px; }
.preview-block .listing-card { max-width: 340px; }
.preview-facts { margin: 12px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .92rem; }
.preview-facts dt { color: var(--muted); font-weight: 600; }
.preview-facts dd { margin: 0; }
.geo-wrap { position: relative; }
.suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  margin: 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-2);
}
.suggestions li { padding: 10px 12px; border-radius: var(--radius-s); cursor: pointer; font-size: .95rem; }
.suggestions li:hover, .suggestions li[aria-selected="true"] { background: var(--brand-tint); }

/* ---------- Fotografije (korak 4) ---------- */
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 28px 16px; border: 2px dashed var(--field-border); border-radius: var(--radius-l);
  background: var(--surface); text-align: center; color: var(--ink-2); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--brand); background: var(--brand-tint); }
/* Polje za fajlove je providno preko cele zone — fokus tastature se vidi na zoni */
.dropzone:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--brand); }
.dropzone .icon { width: 36px; height: 36px; color: var(--brand); }
.dropzone strong { font-size: 1.05rem; color: var(--ink); }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone-picked { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin: 12px 0; }
.dropzone-picked img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-s); display: block; }
.upload-bar { margin: 12px 0 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; padding: 0; list-style: none; }
.photo-item { position: relative; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--surface); }
.photo-item.cover { border: 2px solid var(--brand); }
.photo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-item .cover-label {
  position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--radius-pill); background: var(--primary-bg); color: var(--primary-fg);
  font-size: .75rem; font-weight: 700;
}
.photo-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; justify-content: space-between; }
.photo-actions form { margin: 0; }
.photo-actions form:last-child { margin-left: auto; }   /* kanta uvek desno, i kad pređe u novi red */
/* Redosled fotografija (stavka 10 liste, 17.10.2026): ručka za prevlačenje gore desno, strelice levo/desno u dnu */
.photo-grip {
  position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 0; border-radius: var(--radius-s); background: rgba(15, 23, 42, .62); color: #fff;
  cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.photo-grip:active { cursor: grabbing; }
.photo-item.is-dragging { opacity: .55; outline: 2px dashed var(--brand); outline-offset: 2px; }
.photo-item img { user-select: none; -webkit-user-drag: none; }
.photo-move { display: flex; gap: 4px; }
.photo-move form, .photo-move form:last-child { margin: 0; }
.photo-order-hint .icon { vertical-align: -3px; }
.sortable-status:empty { display: none; }
.photo-processing {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  aspect-ratio: 4 / 3; text-align: center; color: var(--muted); font-size: .85rem; padding: 8px;
  background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--surface-3) 10px, var(--surface-3) 20px);
}

/* ---------- Moji oglasi ---------- */
.owner-list { display: flex; flex-direction: column; gap: 14px; margin: 16px 0 40px; }
.owner-row {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 14px;
}
.owner-thumb { width: 112px; aspect-ratio: 4 / 3; border-radius: var(--radius-s); overflow: hidden; background: var(--surface-2); }
.owner-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.owner-thumb .img-placeholder { min-height: 0; font-size: .75rem; }
.owner-main { min-width: 0; }
.owner-title { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin: 0; }
.owner-title strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.owner-title a { color: var(--ink); text-decoration: none; }
.owner-title a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.owner-sub { margin: 2px 0 0; color: var(--ink-2); }
.owner-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; color: var(--muted); font-size: .875rem; }
.owner-stats span, .owner-stats a { display: inline-flex; align-items: center; gap: 6px; }
.owner-notes { grid-column: 1 / -1; }
/* Popunjenost oglasa (A219): jedan red u Mojim oglasima, okvir u koraku 5 */
.owner-complete { margin: 6px 0 0; color: var(--muted); font-size: .875rem; }
.completeness { margin: 0 0 20px; }
.completeness-list { margin: 0 0 .5em; padding-left: 1.2em; }
.completeness-list li { margin: 2px 0; }
.owner-notes > * { margin: 0 0 8px; }
.owner-notes > *:last-child { margin-bottom: 0; }
.owner-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.owner-actions form { margin: 0; }
.owner-actions .menu { margin-left: auto; }
@media (min-width: 720px) {
  .owner-row { grid-template-columns: 160px minmax(0, 1fr) auto; }
  .owner-thumb { width: 160px; }
  .owner-actions { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; align-items: stretch; min-width: 170px; }
  .owner-actions .menu { margin-left: 0; }
  .owner-actions .menu > summary { width: 100%; }
  .owner-notes { grid-column: 2; }
}

/* ---------- Poruke ---------- */
.convo-list { display: flex; flex-direction: column; margin: 8px 0 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.convo-row {
  display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; position: relative;
  padding: 14px 16px; border-bottom: 1px solid var(--line); transition: background-color .12s;
}
.convo-row:last-child { border-bottom: 0; }
.convo-row:hover { background: var(--surface-2); color: inherit; }
.convo-row.unread { background: var(--brand-tint); }
.convo-row.unread .convo-top strong::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  margin-right: 8px; vertical-align: middle;
}
.convo-thumb { width: 56px; height: 56px; border-radius: var(--radius-s); overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.convo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.convo-thumb .img-placeholder { min-height: 0; }
.convo-body { flex: 1; min-width: 0; }
.convo-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.convo-meta { color: var(--muted); font-size: .875rem; }
.convo-preview { color: var(--ink-2); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-row .nav-badge { flex: none; }

.chat-page { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; }
.chat-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 10px 12px; margin: 0 0 10px;
}
.chat-back { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-s); color: var(--ink); }
.chat-back:hover { background: var(--surface-2); color: var(--ink); }
.chat-listing { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.chat-listing:hover { color: inherit; }
.chat-listing img { width: 48px; height: 48px; border-radius: var(--radius-s); object-fit: cover; flex: none; }
/* Omotač teksta oglasa je flex stavka: bez min-width: 0 ne može da se skupi, pa je naslov na telefonu prelazio preko
   imena sagovornika (nalaz pregleda UI-ja 16.10.2026, A216) */
.chat-listing > span { min-width: 0; }
.chat-listing strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-party { text-align: right; font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.chat-party .hint { display: block; }
/* Poklapanje biografije sa uslovima oglasa, pre poruke (TenantFit, stavka 4 liste, 17.10.2026) */
.fit-box { margin: 0 0 12px; }
.fit-list { margin: 4px 0 6px; padding-left: 1.2em; }
.fit-list li + li { margin-top: 4px; }
.fit-ok, .fit-missing { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; font-size: .9rem; }
.fit-ok { color: var(--ok); }
.fit-ok .icon, .fit-missing .icon { flex: none; margin-top: 2px; }
/* Meni „Još“ u prepisci: arhiva, blokada, prijava (stavka 3 liste, 17.10.2026) */
.chat-menu > summary { gap: 6px; }
.chat-state { margin: 0 0 10px; }
.chat-state form { margin: 0; }
.dialog-list { margin: 0 0 12px; padding-left: 1.2em; }
.dialog-list li + li { margin-top: 6px; }
/* Poruke | Arhiva — kartice iznad spiska prepiski */
.inbox-tabs { display: flex; gap: 6px; margin: 4px 0 6px; }
.inbox-tabs a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; text-decoration: none; background: var(--surface);
}
.inbox-tabs a:hover { border-color: var(--brand); color: var(--ink); }
.inbox-tabs a.active { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg); }
.inbox-tabs .count { font-size: .8rem; opacity: .8; }
/* Telefon: sagovornik u svom redu ispod oglasa — pored oglasa nema mesta ni za ime ni za „Prijavi korisnika“ */
@media (max-width: 720px) {
  .chat-party {
    flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px;
    text-align: left; margin-top: -2px; padding-top: 8px; border-top: 1px solid var(--line);
  }
}
.chat-messages {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 4px;
  min-height: 240px; max-height: 60vh; overflow-y: auto; overscroll-behavior: contain;
}
.chat-day { align-self: center; margin: 10px 0 4px; }
.chat-day span {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--muted); font-size: .75rem; font-weight: 650;
}
.msg { max-width: 82%; display: flex; flex-direction: column; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; align-items: flex-start; }
.msg-bubble {
  display: inline-block; padding: 9px 14px; border-radius: 18px; text-align: left; overflow-wrap: anywhere;
  background: var(--surface); border: 1px solid var(--line);
}
.msg.theirs .msg-bubble { border-bottom-left-radius: 6px; }
.msg.mine .msg-bubble { background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-bg); border-bottom-right-radius: 6px; }
.msg.mine .msg-bubble a { color: var(--primary-fg); }
.msg-bubble p { margin: 0; }
.msg-bubble p + p { margin-top: .5em; }
.msg-bubble.structured { background: var(--brand-tint); border-color: var(--brand-line); color: var(--ink); }
.msg-bubble .cluster { flex-wrap: nowrap; }
.msg.mine .msg-bubble.structured { background: var(--brand-tint); color: var(--ink); border-color: var(--brand-line); }
.msg-bubble.confirmed { background: var(--ok-tint); border-color: var(--ok-line); }
/* „Dodaj u kalendar“ uz potvrđen termin (.ics — stavka 5 liste, 17.10.2026) */
.msg-cal { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .85rem; font-weight: 600; color: var(--brand); }
/* Linkovi u strukturisanoj poruci (broj, „Dodaj u kalendar“) i kad je poruka moja: belo slovo iz `.msg.mine .msg-bubble a`
   je na svetloj podlozi strukturisane poruke bilo nevidljivo (provera 17.10.2026) */
.msg.mine .msg-bubble.structured a { color: var(--brand); }
/* „Pošalji moj broj“ (17.10.2026): broj kao link za poziv jednim dodirom */
.msg-phone {
  display: block; margin-top: 4px; font-size: 1.15rem; font-weight: 700; color: var(--brand); text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.msg-note { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }
.msg .terms { list-style: none; padding: 8px 0 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.msg .terms li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.msg .terms form { display: inline; margin: 0; }
.msg-meta { font-size: .72rem; color: var(--muted); margin-top: 3px; padding: 0 4px; font-variant-numeric: tabular-nums; }
/* Beleška o promeni oglasa (izdat, pauziran…) — ni moja ni tuđa poruka, nego vest u sredini prepiske */
.msg.system_note { align-self: center; align-items: center; max-width: 100%; }
.msg.system_note .msg-bubble { display: flex; align-items: center; gap: 6px; background: var(--surface-2); color: var(--muted);
  border-color: var(--line); font-size: .86rem; text-align: center; border-radius: 999px; padding: 6px 14px; }
/* Forma oko polja: brzi odgovori vlasnika (stavka 6 liste, 17.10.2026) + polje; na telefonu je cela forma lepljiva */
.chat-composer-form { margin: 6px 0 12px; }
.quick-replies { align-items: center; margin-bottom: 8px; }
.quick-replies > .icon { color: var(--brand); }
.chat-composer {
  display: flex; gap: 8px; align-items: flex-end;
  background: var(--surface); border: 1px solid var(--field-border); border-radius: var(--radius-l); padding: 6px;
}
.chat-composer textarea {
  flex: 1; margin: 0; border: 0; min-height: 44px; max-height: 180px; resize: none; padding: 10px;
  background: transparent; box-shadow: none;
}
.chat-composer textarea:focus { border: 0; }
.chat-composer textarea:focus-visible { outline: none; }
.chat-composer:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.chat-composer .btn { flex: none; }
.composer-hint { margin: -6px 0 12px; font-size: .78rem; color: var(--muted); }
.propose-box, .phone-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 14px 18px; margin-bottom: 24px; }
/* Alati iznad polja za pisanje (17.10.2026): „Predloži termine“ (vlasnik) i „Pošalji moj broj“ u jednom redu; otvoren
   okvir zauzima ceo red, a drugi prelazi u svoj */
.chat-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin: 0 0 16px; }
/* osnova = širina natpisa: kad oba ne staju u red, drugi prelazi u svoj red (natpis se nikad ne lomi u dva reda) */
.chat-tools > details { flex: 1 1 auto; margin: 0; }
.chat-tools > details[open] { flex-basis: 100%; }
.phone-box .hint { margin: 10px 0 12px; }
.phone-box form { margin: 0; }
/* list-style i ::-webkit-details-marker: Safari crta trougao pored ikonice i uz display: flex (kao meni i FAQ) */
.propose-box summary, .phone-box summary {
  display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--brand); min-height: 32px;
  list-style: none; cursor: pointer;
}
.propose-box summary::-webkit-details-marker, .phone-box summary::-webkit-details-marker { display: none; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--field-border); background: var(--surface); color: var(--ink);
  border-radius: var(--radius-pill); font-size: .9rem; font-weight: 600; font-family: var(--font-text);
  cursor: pointer; text-decoration: none; transition: border-color .12s, background-color .12s;
}
.pill:hover { border-color: var(--brand); color: var(--ink); }
.pill.active { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg); }
.term-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; min-height: 4px; }
.term-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px;
  background: var(--brand-tint); border: 1px solid var(--brand); color: var(--ink);
  border-radius: var(--radius-pill); font-size: .9rem; font-weight: 600;
}
.chip-x {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--danger); font-size: .95rem; padding: 0;
}
.chip-x:hover { background: var(--danger-tint); }
.tenant-summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 12px 14px; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.tenant-summary p { width: 100%; margin: 4px 0 0; }
/* Telefon: prepiska kao aplikacija — zaglavlje, poruke i polje za pisanje u visini ekrana, podnožje sajta skriveno */
@media (max-width: 720px) {
  .chat-mode main.container { padding-top: 10px; padding-bottom: 0; }
  .chat-mode .site-footer { display: none; }
  .chat-mode .chat-page {
    height: calc(100vh - var(--header-h) - 10px); height: calc(100dvh - var(--header-h) - 10px);
  }
  /* Poruke su u <turbo-frame> (poll): bez ovoga je okvir običan blok, pa lista raste bez granice — nema skrola u
     listi, poslednja poruka je van ekrana, a polje za pisanje leži preko poruka */
  .chat-mode .chat-page > turbo-frame { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .chat-mode .chat-messages { flex: 1; max-height: none; min-height: 0; }
  .chat-mode .chat-composer-form {
    position: sticky; bottom: 0; margin-bottom: calc(8px + env(safe-area-inset-bottom)); background: var(--bg);
  }
  /* Brzi odgovori u jednom redu koji se pomera prstom — ne guraju polje za pisanje u visinu */
  .chat-mode .quick-replies { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .chat-mode .quick-replies button { flex: none; }
  .chat-mode .tenant-summary { max-height: 92px; overflow-y: auto; }
  .chat-mode .composer-hint { display: none; }
  /* Alati u jednom niskom redu, kraći natpisi (.wide-only) — poruke ne smeju da izgube visinu */
  .chat-mode .chat-tools { gap: 6px; margin-bottom: 8px; }
  .chat-mode .chat-tools > details { padding: 6px 12px; }
  .chat-mode .chat-tools summary { gap: 6px; }
}
/* Deo natpisa koji se na uskom ekranu izostavlja („Predloži termine razgledanja“ → „Predloži termine“) */
@media (max-width: 720px) {
  .wide-only { display: none; }
}

/* ---------- Nalog, sačuvano ---------- */
.search-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 14px 16px; margin: 10px 0;
}
.search-row.inactive { opacity: .65; }
.search-row-main { min-width: 0; }
.search-row-main strong { display: block; }
.search-row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-row-actions form { margin: 0; }
.search-row-actions .input { margin: 0; width: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: .9rem; }
.phone-row, .google-row {
  border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.phone-row p, .google-row p { width: 100%; margin: 4px 0 0; }
.google-row .inline-form { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.google-row .inline-form .input { margin: 0; width: auto; min-width: 220px; }
.daily-code {
  display: inline-block; font-size: 2.4rem; font-weight: 900; letter-spacing: 8px;
  background: var(--brand-tint); border: 2px dashed var(--brand); color: var(--brand-ink);
  padding: 10px 24px; border-radius: var(--radius-l); margin: 8px 0 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.how-to { padding-left: 1.3rem; }
.how-to li { margin: 6px 0; }

/* ---------- Prijava ---------- */
.auth-card {
  max-width: 440px; margin: 16px auto 40px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow-2);
}
.auth-card h1 { font-size: 2.2rem; margin: 0 0 8px; }
.auth-card .btn-large { width: 100%; }
@media (max-width: 520px) {
  .auth-card { margin: 0 calc(-1 * var(--gutter)) 24px; border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 8px var(--gutter) 0; }
}
.auth-section-title { font-size: .95rem; margin: 0 0 10px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { position: relative; }
.auth-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.auth-mode { width: 100%; margin: 0 0 16px; }
.auth-mode label { flex: 1; justify-content: center; }
#intent-login:checked ~ .auth-mode label[for="intent-login"],
#intent-register:checked ~ .auth-mode label[for="intent-register"] {
  background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg);
}
#intent-login:focus-visible ~ .auth-mode label[for="intent-login"],
#intent-register:focus-visible ~ .auth-mode label[for="intent-register"] { outline: 2px solid var(--focus); outline-offset: 2px; }
.auth-submit .when-register { display: none; }
#intent-register:checked ~ .auth-submit .when-login { display: none; }
#intent-register:checked ~ .auth-submit .when-register { display: inline-flex; }
#intent-register:checked ~ .auth-hint-login { display: none; }
.auth-hint-register { display: none; }
#intent-register:checked ~ .auth-hint-register { display: block; }
.auth-form .auth-only-register { display: none; }
#intent-register:checked ~ .field .auth-only-register { display: block; }
/* Panel novog poslovnog naloga bez oglasa: „Objavite prvi oglas“ (Business::DashboardController, @first_steps) */
.first-steps { border-color: var(--brand); }
.first-steps .actions { margin: 12px 0 8px; }
/* DEV link za potvrdu emaila (samo u razvoju) se lomi — inače dug token širi stranu na telefonu */
.dev-link a, .dev-code a { overflow-wrap: anywhere; }
/* Zašto se traži prijava (SessionsHelper#login_context) */
.auth-context { margin: -4px 0 10px; color: var(--ink-2); font-weight: 550; }
.auth-legal { margin: 16px 0 0; }
.otp-steps { padding-left: 20px; margin: 16px 0; }
.otp-steps li { margin-bottom: 12px; }
.qr-box { width: 200px; height: 200px; margin: 10px 0; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius-s); }
.qr-box svg { display: block; width: 100%; height: 100%; }
.otp-key { display: block; margin-top: 6px; font-size: 1rem; letter-spacing: 1px; word-spacing: 4px; -webkit-user-select: all; user-select: all; }
.otp-cmd { display: block; margin: 6px 0; font-size: .82rem; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }

/* ---------- Početna (landing) ---------- */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(32px, 5vw, 64px); text-align: center; }
.hero h1, .hero-title {
  font-size: clamp(2.9rem, 1.6rem + 6vw, 5.4rem); line-height: .94; letter-spacing: -.01em; margin: 0 0 18px;
}
.hero-title .hl { color: var(--brand); }
.hero-sub { color: var(--ink-2); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); margin: 0 auto 28px; max-width: 52ch; text-wrap: balance; }
.hero-counts { color: var(--muted); margin-top: 22px; }
.hero-counts strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-cta { margin-top: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero--owners { text-align: left; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero--owners .hero-sub { margin: 0 0 28px; max-width: 44ch; }
.hero-beta {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 5px 12px 5px 6px;
  border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); font-weight: 600; font-size: .85rem;
}
.hero-beta b { background: var(--brand-tint); color: var(--brand-ink); padding: 2px 8px; border-radius: var(--radius-pill); font-size: .75rem; }
.trust-row { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .icon { color: var(--brand); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; }
}
@media (max-width: 899px) {
  .hero--owners .hero-copy { text-align: left; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* Znak „IZDAJE SE" — jedini ukras na sajtu: papir iz prozora, ali umesto broja telefona traka. Ilustracija je primer
   (natpis „Primer oglasa“), bez ičega što liči na broj telefona (pravilo #1, spec A144). */
.sign {
  position: relative; margin: 12px auto 0; width: 100%; max-width: 440px;
  background: var(--paper); color: var(--paper-ink);
  padding: 34px 28px 26px; border-radius: 4px; transform: rotate(-1.6deg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 22px 44px -18px rgba(15, 23, 42, .45);
}
.sign::before, .sign::after {
  content: ""; position: absolute; top: -12px; width: 92px; height: 26px; background: var(--tape);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.sign::before { left: 18px; transform: rotate(-7deg); }
.sign::after { right: 18px; transform: rotate(6deg); }
.sign-title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(4rem, 2.8rem + 6vw, 6.6rem); line-height: .82; letter-spacing: .01em; margin: 0;
}
.sign-lines { margin: 18px 0 0; font-size: 1.05rem; font-weight: 600; }
.sign-lines p { margin: 0; }
.sign-lines .sign-price { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.sign-phone { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; font-weight: 700; font-size: 1.05rem; }
.sign-redact {
  display: inline-block; flex: 1; max-width: 220px; height: 26px; border-radius: 3px; background: #0e7a65;
  transform-origin: left center;
}
.sign-note { margin: 10px 0 0; font-size: .9rem; color: #3c4a44; }
.sign figcaption, .sign-caption {
  position: absolute; right: 14px; top: 12px; padding: 2px 9px; border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, .78); color: #ffffff; font-size: .72rem; font-weight: 700;
}
@media (prefers-reduced-motion: no-preference) {
  .sign-redact { animation: redact 1.1s .35s cubic-bezier(.65, 0, .35, 1) both; }
}
@keyframes redact { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 899px) {
  .sign { max-width: 380px; padding: 30px 22px 22px; transform: rotate(-1deg); }
}

.lp-section { margin: var(--section-gap) 0; }
main > .lp-section:first-child { margin-top: clamp(24px, 4vw, 48px); }
.lp-head { max-width: 760px; margin: 0 0 28px; }
.lp-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lp-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); line-height: .98; margin: 0 0 14px; }
.lp-lead { color: var(--ink-2); font-size: 1.1rem; margin: 0; max-width: 60ch; }
.lp-head.center .lp-lead { margin-left: auto; margin-right: auto; }
.lp-center { text-align: center; margin-top: 32px; }
.lp-section .page-head { margin-top: 0; }
.lp-section .page-head .lp-title { margin: 0; }
/* Telefon: 4 najnovija oglasa umesto 8 — inače su pitanja i poziv vlasnicima osam ekrana niže */
@media (max-width: 620px) { .lp-latest .cards > :nth-child(n+5) { display: none; } }

.calc-label { margin: 0 0 6px; font-weight: 700; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.calc-row strong { font-variant-numeric: tabular-nums; }
.calc-old { color: var(--danger); font-size: 1.2rem; text-decoration: line-through; text-decoration-thickness: 2px; }
.calc-ours { border-bottom: 0; }
.calc-ours span { font-weight: 700; }
.calc-ours strong { color: var(--ok); font-family: var(--font-display); font-size: 2.6rem; font-weight: 900; line-height: 1; }
.calc-note { margin: 8px 0 0; }

.lp-steps { list-style: none; counter-reset: lp-step; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.lp-steps li { counter-increment: lp-step; position: relative; padding: 0 0 28px 64px; }
.lp-steps li::before {
  content: counter(lp-step); position: absolute; left: 0; top: -4px;
  font-family: var(--font-display); font-weight: 900; font-size: 2.8rem; line-height: 1; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.lp-steps li::after { content: ""; position: absolute; left: 15px; top: 48px; bottom: 8px; width: 2px; background: var(--line); }
.lp-steps li:last-child::after { display: none; }
.lp-steps h3 { margin: 0 0 6px; font-size: 1.15rem; }
.lp-steps p { margin: 0; color: var(--ink-2); max-width: 54ch; }
@media (min-width: 900px) {
  .lp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .lp-steps li { padding: 56px 0 0; }
  .lp-steps li::before { top: 0; }
  .lp-steps li::after { left: 56px; right: -16px; top: 22px; bottom: auto; width: auto; height: 2px; }
}
/* Uži računar: dva po dva — u četiri uske kolone je četvrti korak (najduži tekst) bio dvaput viši od ostalih, pa je
   mreža visila (nalaz pregleda UI-ja 16.10.2026); linija posle drugog koraka bi pokazivala u prazno */
@media (min-width: 900px) and (max-width: 1099px) {
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
  .lp-steps li:nth-child(2)::after { display: none; }
}

.lp-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 820px) { .lp-split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.lp-split .split-icon {
  width: 48px; height: 48px; border-radius: var(--radius-m); background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.lp-split .lp-title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.lp-split p { color: var(--ink-2); }

.lp-renters {
  scroll-margin-top: calc(var(--header-h) + 16px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 5vw, 52px) clamp(16px, 4vw, 44px);
}
.lp-renters .filters.hero-search { margin: 0; border: 0; padding: 0; background: transparent; }
.lp-note { color: var(--muted); max-width: 64ch; margin: 18px 0 0; font-size: .95rem; }
.filters.hero-search { max-width: 920px; margin: 0 auto; padding: 10px; gap: 10px; box-shadow: var(--shadow-2); border-color: var(--line); }
.filters.hero-search .input-num { flex-basis: 150px; max-width: 150px; }   /* „Cena do (€)“ je u 120 px bilo odsečeno */
.hero .filters.hero-search { text-align: left; }
@media (max-width: 620px) {
  .filters.hero-search { flex-direction: column; align-items: stretch; }
  .filters.hero-search .input, .filters.hero-search .btn { width: 100%; max-width: none; flex-basis: auto; }
}

.city-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.city-tile {
  display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  transition: border-color .15s, box-shadow .15s;
}
.city-tile strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1.05; }
.city-tile span { color: var(--muted); font-size: .92rem; }
.city-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-1); color: var(--ink); }

.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; padding: 18px 0; font-weight: 650; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--brand); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: 68ch; }

.cta-band {
  color: #ffffff; border-radius: 24px; margin: var(--section-gap) 0 0;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 56px); background: #0b5f4f;
  display: grid; gap: 20px; align-items: center;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.2fr auto; } }
.cta-band h2 { color: #ffffff; margin: 0 0 10px; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: .96; }
.cta-band p { margin: 0; max-width: 52ch; color: rgba(255, 255, 255, .9); font-size: 1.05rem; }
.cta-band .cta-small { margin-top: 14px; font-size: .9rem; }
.cta-band a:not(.btn) { color: #ffffff; }

/* ---------- Statične strane (Za vlasnike, Kako radi, Bezbednost, Cenovnik) ---------- */
.page-hero { padding: clamp(24px, 4vw, 56px) 0 clamp(8px, 2vw, 16px); }
.page-hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.4rem); line-height: .95; margin: 0 0 16px; max-width: 18ch; }
.page-hero .lead { margin: 0 0 24px; }
/* Tekstualne strane (.narrow — Kako radi, Bezbednost, Cenovnik): razmak odeljaka kraći nego na početnoj, a prvi naslov
   odeljka bez gornje margine — sa section-gap i marginom h2 bilo je ~150 px praznine između uvoda i prvog odeljka
   (nalaz pregleda UI-ja 16.10.2026) */
.narrow .lp-section { margin: clamp(32px, 5vw, 56px) 0; }
.narrow .lp-section > h2:first-child { margin-top: 0; }
.benefits { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.benefits li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.benefits .icon-badge { grid-row: span 2; }
.benefits strong { font-size: 1.05rem; }
.benefits p { margin: 0; color: var(--ink-2); }
.benefits details { grid-column: 2; margin-top: 6px; }
.benefits details summary { color: var(--brand); font-weight: 600; font-size: .9rem; }
.benefits details p { margin-top: 8px; font-size: .92rem; }
.icon-badge {
  width: 44px; height: 44px; border-radius: var(--radius-m); background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.icon-badge.warn { background: var(--warn-tint); color: var(--warn-ink); }
.icon-badge.bad { background: var(--danger-tint); color: var(--danger); }
.steps-list { list-style: none; counter-reset: s; padding: 0; margin: 16px 0; }
.steps-list li { counter-increment: s; position: relative; padding: 0 0 18px 48px; }
.steps-list li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-ink); font-weight: 800; font-size: .9rem;
}
.steps-list strong { display: block; }
.steps-list p { margin: 2px 0 0; color: var(--ink-2); }
.red-flags { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.red-flags li { display: flex; gap: 12px; align-items: flex-start; }
.red-flags .icon { color: var(--danger); margin-top: 2px; }
.price-hero { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
/* margin: 0 — podrazumevana margina pasusa (1em) je na 7rem fontu bila rupa od ~110 px ispod „0 din“; uvod stoji
   pored broja čim ima ~300 px (nalaz pregleda UI-ja 16.10.2026) */
.price-zero { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(4rem, 3rem + 5vw, 7rem); line-height: .9; color: var(--ok); }
.price-hero .lead { flex: 1 1 300px; margin: 0; }
.free-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.free-list li { display: flex; gap: 10px; align-items: flex-start; }
.free-list .icon { color: var(--ok); margin-top: 2px; }
.cta-center { text-align: center; margin: 32px 0; }

/* ---------- Pravne strane (uslovi, privatnost) ---------- */
.legal section[id], .legal .legal-item[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal .legal-summary { background: var(--brand-tint); border-color: var(--brand-line); }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin: 4px 0; }
.legal .legal-toc ol { columns: 2; column-gap: 28px; margin: 8px 0 0; }
.legal .legal-toc li { break-inside: avoid; }
.legal h3 { font-size: 1rem; margin: 18px 0 6px; }
.legal .legal-item { border-top: 1px solid var(--line); margin-top: 16px; }
.legal .legal-item p { margin: 4px 0; }
.legal .legal-table { overflow-x: auto; margin: 10px 0; }
.legal .legal-table td { vertical-align: top; }
.legal h2 { font-size: 1.6rem; }
@media (max-width: 640px) { .legal .legal-toc ol { columns: 1; } }

/* ---------- Tabele i admin ---------- */
table.data {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden;
}
table.data th, table.data td { padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
table.data th { background: var(--surface-2); font-weight: 700; }
table.data tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
@media (max-width: 720px) {
  table.data { display: block; overflow-x: auto; }
}
.admin-nav { display: flex; gap: 4px; margin: 0 0 20px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); flex-wrap: wrap; }
.admin-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 12px; border-radius: var(--radius-s); }
.admin-nav a:hover { background: var(--brand-tint); color: var(--brand-ink); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 20px 0; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 16px 18px; display: block; text-decoration: none; color: inherit; transition: box-shadow .15s;
}
a.stat-card:hover { box-shadow: var(--shadow-2); color: inherit; }
.stat-card .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: var(--brand); line-height: 1; }
.stat-card .label { color: var(--muted); font-size: .87rem; margin-top: 4px; }
.admin-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px 16px; margin: 12px 0; }
.admin-item.flagged { border-left: 4px solid var(--danger); }
.admin-item-head { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.admin-item-thumb { width: 76px; height: 58px; border-radius: var(--radius-s); overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.admin-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-item-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.admin-item-form .input { width: auto; margin: 0; }
.admin-item-form form { display: inline-flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.admin-tools { display: flex; flex-direction: column; gap: 4px; margin: 14px 0; }
.input-inline { display: inline-block; width: auto; max-width: 320px; margin: 0; vertical-align: middle; }
table.data.data-narrow { max-width: 560px; }
table.data.data-spaced { margin-top: 12px; }
.daily-code.daily-code-small { font-size: 1.3rem; padding: 4px 14px; letter-spacing: 4px; margin: 4px 4px 4px 0; }
.admin-video { display: block; width: 100%; max-width: 420px; border-radius: var(--radius-m); margin: 10px 0; background: #000000; }

/* ---------- Pokret: poštovanje „smanji pokrete“ i meki prelazi strana ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

/* ---------- Vodiči za vlasnike i lista obaveza posle izdavanja (stavke 7 i 8 liste, 17.10.2026) ---------- */
.guide-list { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.guide-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
}
.guide-card:hover { border-color: var(--brand); color: inherit; }
.guide-card > .icon { color: var(--brand); flex: none; margin-top: 3px; }
.guide-card strong { display: block; margin-bottom: 4px; }
.guide-card .hint { display: block; }
.breadcrumb { margin: 8px 0 0; }
.guide-body h2 { margin: 1.6em 0 .5em; }
.guide-body ul, .guide-body ol { padding-left: 1.3em; }
.guide-body li + li { margin-top: .4em; }
.guide-links { padding-left: 1.2em; }
.legal-note { margin: 0 0 20px; }
.checklist { padding-left: 1.4em; margin: 0 0 20px; }
.checklist > li { margin: 0 0 18px; }
.checklist > li > h2, .checklist > li > h3 { font-size: 1.1rem; margin: 0 0 6px; }
.checklist p { margin: 0 0 6px; }
.checklist-source { font-size: .85rem; color: var(--muted); }
.reminder-box { margin: 0 0 20px; }
.reminder-box form { margin: 0; }
/* Tekst gradske strane (/izdavanje-stanova/:grad) — stavka 8 liste */
.city-intro { max-width: 70ch; margin: 32px 0 8px; }
.city-intro h2 { font-size: 1.25rem; margin: 0 0 10px; }
.city-intro p { margin: 0 0 .8em; color: var(--ink-2); }


/* ---------- Agencije i prodaja (18.10.2026) ---------- */
/* Ko oglašava — poslednji red kartice: „Vlasnik“ ili ime agencije */
.card-advertiser {
  display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--muted); font-size: .85rem; font-weight: 600;
  min-width: 0; min-height: 28px;
}
.card-advertiser span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-advertiser.is-agency { color: var(--ink-2); }
.card-advertiser .icon { flex: none; }
/* Logo agencije, odnosno investitora u redu „ko oglašava“ (18.10.2026, veče): visina 28 px, širina po obliku loga
   (atributi width/height iz metapodataka — red ne skače dok se slika učitava), najviše 84 px. Red ima istu visinu i bez
   loga (min-height iznad), da kartice u redu mreže budu jednake. */
.card-logo {
  flex: none; box-sizing: border-box; height: 28px; width: auto; min-width: 28px; max-width: 84px; padding: 2px 4px;
  object-fit: contain; background: var(--logo-bg); border: 1px solid var(--line); border-radius: 6px;
}
/* Agencija na detalju oglasa i na svojoj strani */
.agency-box, .owner-box { padding: 14px 0 16px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.agency-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.agency-head .hint { margin: 2px 0 0; }
/* Logo u okviru visine 56 px, širine po obliku loga (56–112 px) — vodoravan znak nije sitan u kvadratu */
.agency-logo {
  box-sizing: border-box; height: 56px; width: auto; min-width: 56px; max-width: 112px; flex: none; padding: 3px 5px;
  border-radius: var(--radius-m); object-fit: contain; background: var(--logo-bg); border: 1px solid var(--line);
}
.agency-logo-empty { width: 56px; display: grid; place-items: center; color: var(--muted); background: var(--surface-2); }
.agency-name { margin: 0; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.agency-name a { color: var(--ink); }
.owner-box .hint { margin: 4px 0 0; }
.agency-reveal { margin: 0; }
.agency-phone .btn { font-variant-numeric: tabular-nums; }
.agency-phone .hint { margin: 6px 0 0; text-align: center; }
.agency-logo-current { display: flex; align-items: center; gap: 16px; margin: 4px 0 10px; }
/* Imenik agencija */
.agency-list { list-style: none; margin: 16px 0 32px; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .agency-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.agency-card {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); min-width: 0;
}
.agency-card:hover { border-color: var(--brand); color: inherit; }
.agency-card > span { min-width: 0; }
.agency-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agency-card .hint { display: block; }
/* Linkovi-čipovi (gradovi u imeniku, statusi u Mojim oglasima) */
.chip-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.chip-links a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .9rem;
  text-decoration: none;
}
.chip-links a:hover { border-color: var(--brand); color: var(--brand); }
.chip-links a[aria-current="page"] { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg); }
/* Oglašivač u filterima pretrage: mali segmentirani izbor u redu sa kućicama */
.filter-advertiser { border: 0; margin: 0; padding: 0; min-width: 0; }
.segmented-small { gap: 6px; }
.segmented-small label { min-height: 36px; padding: 0 12px; font-size: .875rem; }
/* Izdavanje / Prodaja u brzoj pretrazi na početnoj */
.hero-deal { border: 0; margin: 0; padding: 0; min-width: 0; }
.hero-deal .segmented label { min-height: 46px; }
/* Za koga je odvlasnika (početna) */
.audiences { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .audiences { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.audience-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-l);
}
.audience-card h3 { margin: 4px 0 0; font-size: 1.3rem; }
.audience-card ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); display: grid; gap: 6px; }
.audience-card .link-arrow { margin-top: auto; }
/* Podnožje: izdavanje · prodaja po gradu u jednom redu */
.footer-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; color: var(--muted); }
.footer-pair a { display: inline-flex; }
.footer-city { flex-basis: 100%; color: var(--ink-2); font-weight: 600; }
.seo-links-more { margin: 14px 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- Investitori, kuće i garaže, poslovni panel (18.10.2026, popodne) ---------- */
/* Vrsta nekretnine iznad rezultata: Stanovi | Kuće | Garaže i parking — svaka vrsta je svoja strana (link, ne filter) */
.category-tabs {
  display: flex; gap: 4px; margin: 0 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; margin-bottom: -1px;
  color: var(--muted); font-weight: 650; text-decoration: none; border-bottom: 2px solid transparent;
}
.category-tabs a:hover { color: var(--ink); }
.category-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

/* Projekat na detalju oglasa, kartica projekta, tabela stanova u projektu */
.project-strip h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.project-card-facts { margin: 6px 0 0; }
/* position: relative — apsolutno postavljen potomak (natpis .sr-only u zaglavlju tabele) inače ne bi bio u okviru koji
   klizi, pa bi strana na telefonu dobila vodoravno pomeranje (nalaz sa snimka 18.10.2026) */
.table-wrap {
  position: relative; overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: var(--radius-m);
}
.table-wrap table.data, .table-wrap .units-table { border: 0; border-radius: 0; }
@media (max-width: 720px) {
  .table-wrap table.data { display: table; }
}
.units-table { width: 100%; border-collapse: collapse; background: var(--surface); font-variant-numeric: tabular-nums; }
.units-table th, .units-table td {
  padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; white-space: nowrap;
}
.units-table th { background: var(--surface-2); font-weight: 700; }
.units-table tr:last-child td { border-bottom: 0; }

/* Poslovni panel: zaglavlje, putevi, period */
.panel-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 8px 0 16px;
}
.panel-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.panel-title h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); overflow-wrap: anywhere; }
.panel-title .hint { margin: 0; }
.panel-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.panel-nav a:not(.btn) {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: var(--radius-s);
  color: var(--ink-2); font-weight: 600; text-decoration: none;
}
.panel-nav a:not(.btn):hover, .panel-nav a[aria-current="page"]:not(.btn) { background: var(--surface-2); color: var(--ink); }
.panel-nav .icon { width: 18px; height: 18px; }
.panel-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.panel-toolbar .actions { margin: 0; }
.panel .panel-toolbar { margin: 16px 0 0; }

/* Zbirovi perioda: broj, promena (ikona + tekst — nikad samo boja), trend */
.kpi-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0 0 16px; }
.kpi {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
}
.kpi p { margin: 0; }
.kpi-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .87rem; font-weight: 600; }
.kpi-value {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.kpi-delta, .kpi-note { font-size: .82rem; }
.delta { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; }
.delta .icon { width: 16px; height: 16px; flex: none; }
.delta-up { color: var(--ok); }
.delta-down { color: var(--danger); }
.sparkline { display: block; width: 120px; height: 32px; margin-top: 6px; overflow: visible; }
.sparkline-line {
  fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
}
.sparkline-dot { fill: var(--chart-1); stroke: var(--surface); stroke-width: 2; }

/* Grafikon po danima (ChartHelper#column_chart): 480–680 px, uži ekran klizi vodoravno; vrednost i u tabeli ispod */
.chart-pair { display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); }
.chart-figure { margin: 12px 0 0; min-width: 0; }
.chart-figure figcaption { font-weight: 650; color: var(--ink-2); font-size: .92rem; }
.chart { position: relative; margin: 6px 0 0; }
.chart-scroll { overflow-x: auto; overflow-y: hidden; }
.chart-svg { display: block; width: 100%; min-width: 480px; max-width: 680px; height: auto; touch-action: pan-x pan-y; }
.chart-svg:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-s); }
.chart-svg:focus:not(:focus-visible) { outline: none; }   /* dodir fokusira grafikon — bez okvira pregledača (Android) */
.chart-grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart-axis { stroke: var(--field-border); stroke-width: 1; shape-rendering: crispEdges; }
.chart-tick { fill: var(--muted); font-family: var(--font-text); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-bar { fill: var(--chart-1); }
.chart-hit { fill: transparent; }
.chart-hit.is-active { fill: var(--chart-hover); }
.chart-tooltip {
  position: absolute; top: 0; z-index: 2; transform: translate(-50%, calc(-100% - 6px)); padding: 6px 10px;
  background: var(--ink); color: var(--surface); border-radius: var(--radius-s); box-shadow: var(--shadow-2);
  font-size: .82rem; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0;
}
.chart-tooltip.is-visible { opacity: 1; }
.chart-table { margin: 12px 0 0; }
.chart-table summary {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--brand); font-weight: 600; cursor: pointer;
}

/* Pregled: oglasi sa brojkama + bočna kolona (upiti, pažnja, projekti) */
.panel-grid { display: grid; gap: 0 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) {
  .panel-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}
.panel-side .panel:first-child { margin-top: 16px; }
.panel-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin: 0 0 12px; }
.panel-filters .field { margin: 0; min-width: 160px; }
table.data .num, .units-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tbody th { background: none; font-weight: 600; }
/* Oglas u tabeli panela: na telefonu tabela klizi vodoravno, a naziv oglasa se ne lomi u četiri reda */
.panel-table tbody th { min-width: 12rem; }
.panel-table .tag { white-space: nowrap; }
table.data tbody th .hint { display: block; margin: 2px 0 0; font-weight: 400; }
.sort-link { color: inherit; text-decoration: none; white-space: nowrap; }
.sort-link:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.sort-link[aria-current="true"] { color: var(--brand); }
.sort-link[aria-current="true"]::after { content: " ↓"; }
.plain-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.plain-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.plain-list .hint { margin: 0; }
.project-actions { display: inline-flex; gap: 6px; margin-left: auto; }
.panel-project-filter { margin: 0; }
.panel-project-filter .field { min-width: 200px; }
.narrow-card { max-width: 760px; }

/* „Dopunite profil“ (pregled panela) i kartica „Profil“ (18.10.2026, veče): šta profilu nedostaje, logo odmah */
.profile-setup .page-head { margin: 0; }
.profile-setup progress.meter { margin: 10px 0 4px; }
.setup-list { list-style: none; margin: 8px 0 0; padding: 0; }
.setup-item {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.setup-item:first-child { border-top: 0; }
.setup-item > div { flex: 1 1 320px; min-width: 0; }
.setup-item .hint { margin: 2px 0 0; }
.setup-logo { flex-basis: 100%; }
.logo-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 10px 0 0; }
.logo-upload .input { flex: 1 1 220px; width: auto; min-width: 0; margin: 0; }
.logo-upload .field-error { flex-basis: 100%; margin: 0; }
.logo-upload-preview { display: inline-flex; flex: none; }
.panel-profile { max-width: 820px; }
/* Dva polja u redu (broj iz registra i telefon), na telefonu jedno ispod drugog */
.form-grid-halves { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.panel-profile .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 24px; }
.logo-previews { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; margin: 14px 0 16px; }
.logo-preview-box, .logo-preview-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.logo-preview-box .hint, .logo-preview-card .hint { margin: 0; font-size: .8rem; }
.logo-preview-card {
  flex: 1 1 240px; max-width: 360px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: var(--radius-m);
}
.logo-preview-card .card-advertiser { margin: 0; }
.logo-preview-icon { display: inline-flex; }

/* Izveštaj oglasa: zaglavlje i štampa (agencija ga daje vlasniku stana); logo samo na papiru (na ekranu je u zaglavlju) */
.report-brand { display: flex; align-items: center; gap: 12px; }
.report-brand .hint { margin: 0; }
.report-head h2 { margin: 2px 0 8px; }
.report-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 8px; color: var(--ink-2); }
.print-only { display: none; }
@media print {
  :root, :root[data-theme="dark"] {
    --ink: #0f172a; --ink-2: #334155; --muted: #56657a; --bg: #ffffff; --surface: #ffffff; --surface-2: #f1f4f3;
    --line: #e2e8f0; --field-border: #8391a3; --brand: #0e7a65; --chart-1: #0b8a6e; --ok: #067647; --danger: #b42318;
    --surface-3: #e6ecea; --ok-tint: #e7f6ef; --ok-line: #bfe5d0; --warn-ink: #92400e; --warn-tint: #fff7e0;
    --warn-line: #f6dfa4;
  }
  body { background: #ffffff; }
  .site-header, .site-footer, .toast-stack, .skip-link, .no-print, .chart-tooltip { display: none; }
  .print-only { display: block; }
  .report-brand { margin: 0 0 10px; }
  .panel, .kpi { box-shadow: none; break-inside: avoid; }
  .chart-scroll { overflow: visible; }
  .chart-table summary { display: none; }
}

/* Uvoz oglasa iz CSV-a i objava više nacrta (panel, 18.10.2026 noć) */
.import-columns > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; list-style: none;
}
.import-columns > summary::-webkit-details-marker { display: none; }
.import-columns > summary h2 { margin: 0; }
.import-columns > summary .icon { color: var(--brand); transition: transform .2s; }
.import-columns[open] > summary { margin-bottom: 8px; }
.import-columns[open] > summary .icon { transform: rotate(180deg); }
.import-columns code { font-size: .85rem; overflow-wrap: anywhere; }
.import-upload .field { margin: 0; }
.import-upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.import-upload-row .input { flex: 1 1 260px; width: auto; min-width: 0; margin: 0; }
.import-upload-row .btn { flex: none; }
.import-head .page-head { margin: 0; }
.import-head .kpi-row { margin: 16px 0; }
.import-head .actions form { margin: 0; }
.import-progress progress.meter { margin: 6px 0 14px; }
.import-table tbody th { min-width: 14rem; font-weight: 600; }
.import-table .tag { white-space: nowrap; }
.import-notes { margin: 0; padding-left: 18px; font-size: .85rem; color: var(--ink-2); min-width: 14rem; }
.import-notes li + li { margin-top: 2px; }
.import-notes + .import-notes { margin-top: 6px; }
.import-problems { color: var(--danger); }
.import-row-link { display: block; margin-top: 6px; font-size: .85rem; white-space: nowrap; }
.import-notes-inline { display: none; }
.import-notes-inline .import-notes { margin-top: 6px; font-weight: 400; min-width: 0; }
.import-row-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0 0; font-weight: 400;
  font-size: .85rem; }
@media (max-width: 720px) {
  .import-notes-cell { display: none; }
  .import-notes-inline { display: block; }
  .import-table tbody th { min-width: 0; }
  .import-table th, .import-table td { padding: 10px 8px; }
}
.check-col { width: 48px; }
.check-col input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; }
.bulk-publish .declaration { margin-top: 20px; }
.bulk-publish tbody th label { cursor: pointer; }
/* specifičnije od `table.data tbody th .hint` (display: block) */
.bulk-publish table.data tbody th .bulk-inline { display: none; }
@media (max-width: 720px) {
  .bulk-publish .bulk-cell { display: none; }
  .bulk-publish table.data tbody th .bulk-inline { display: block; }
  .bulk-publish th, .bulk-publish td { padding: 10px 8px; }
}
.check-line { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; cursor: pointer; }
.check-line input { margin-top: 3px; }
