/* Moje Trnje — zajednički stil
   Koncept: modernistički kvart između pruge i Save. Mirna svijetla podloga,
   tinta boje trnine (plod trnja), zelenilo Savice i jedan topli akcent cvijeta trnine. */

:root {
  --bg: #f4f5f1;          /* svijetla podloga, blago zelenkasta */
  --surface: #ffffff;
  --surface-2: #e9ece4;
  --ink: #1d1f33;         /* tinta trnine */
  --ink-soft: #4a4d63;
  --line: #d6d9cf;
  --sloe: #3e3f78;        /* plod trnja – glavni akcent */
  --sloe-soft: #e3e3f1;
  --reed: #4f7458;        /* trstika Savice */
  --reed-soft: #dfe9df;
  --blossom: #c9566b;     /* jedini topli akcent */
  --on-accent: #ffffff;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --w: 1180px;
  --r: 14px;
  --shadow: 0 1px 2px rgba(29, 31, 51, .06), 0 8px 24px rgba(29, 31, 51, .06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14151f; --surface: #1c1d2b; --surface-2: #242637;
    --ink: #eceaf4; --ink-soft: #a9abc0; --line: #33354a;
    --sloe: #a3a5f0; --sloe-soft: #2a2b4a;
    --reed: #8fc39b; --reed-soft: #203327;
    --blossom: #f08aa0; --on-accent: #14151f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14151f; --surface: #1c1d2b; --surface-2: #242637;
  --ink: #eceaf4; --ink-soft: #a9abc0; --line: #33354a;
  --sloe: #a3a5f0; --sloe-soft: #2a2b4a;
  --reed: #8fc39b; --reed-soft: #203327;
  --blossom: #f08aa0; --on-accent: #14151f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sloe); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blossom); }
:focus-visible { outline: 2px solid var(--blossom); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6.5vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 650; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0; }
.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--reed);
  font-weight: 500;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.prose { max-width: 66ch; display: grid; gap: 1.1em; }
.prose p { color: var(--ink); }
.muted { color: var(--ink-soft); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- zaglavlje ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .95rem; font-weight: 500; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--sloe-soft); }
.nav-cta { background: var(--ink) !important; color: var(--bg) !important; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 12px max(20px, env(safe-area-inset-left, 0px)) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
}

/* ---------- gumbi ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sloe); color: var(--on-accent); }
.btn-primary:hover { color: var(--on-accent); background: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-soft); }

/* ---------- sekcije ---------- */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head > div { display: grid; gap: 12px; max-width: 640px; }
.band { background: var(--surface-2); }

/* ---------- naslovna ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 span { color: var(--sloe); }
.hero .lead { margin-top: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.search { display: flex; margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px; max-width: 560px; box-shadow: var(--shadow); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 10px 18px; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--ink-soft); }
.hero-card { background: #1d1f33; color: #f4f5f1; border-radius: 24px; padding: 32px; position: relative; overflow: hidden; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.hero-card > * { position: relative; }
.hero-card .coords { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; opacity: .75; }
.hero-card .big { font-family: var(--f-display); font-size: 3.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.hero-card .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid rgba(244,245,241,.22); padding-top: 18px; }
.hero-card .facts strong { display: block; font-family: var(--f-display); font-size: 1.5rem; }
.hero-card .facts span { font-size: .8rem; opacity: .7; }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-card { min-height: 320px; } }

/* kartice rubrika */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; text-decoration: none; color: var(--ink); display: grid; gap: 12px; align-content: start; transition: border-color .2s, transform .2s; }
.tile:hover { color: var(--ink); border-color: var(--sloe); transform: translateY(-2px); }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sloe-soft); color: var(--sloe); }
.tile .ico svg { width: 22px; height: 22px; }
.tile.green .ico { background: var(--reed-soft); color: var(--reed); }
.tile p { color: var(--ink-soft); font-size: .97rem; }
.tile .more { font-weight: 600; color: var(--sloe); font-size: .92rem; margin-top: 4px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .tiles { grid-template-columns: 1fr; } }

/* oznaka oglednog sadržaja */
.demo-note { display: flex; gap: 12px; align-items: flex-start; background: var(--sloe-soft); border-radius: 12px; padding: 14px 18px; font-size: .92rem; color: var(--ink); margin-bottom: 28px; }
.demo-note b { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sloe); white-space: nowrap; padding-top: 2px; }
.tag-demo { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: 6px; padding: 2px 6px; }

/* događanja */
.events { display: grid; gap: 0; border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.event .date { font-family: var(--f-display); text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; }
.event .date strong { display: block; font-size: 1.9rem; line-height: 1; }
.event .date span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.event h3 { font-size: 1.15rem; }
.event .meta { color: var(--ink-soft); font-size: .92rem; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--reed-soft); color: var(--reed); white-space: nowrap; }
.pill.sloe { background: var(--sloe-soft); color: var(--sloe); }
.pill.blossom { background: color-mix(in srgb, var(--blossom) 16%, transparent); color: var(--blossom); }
@media (max-width: 640px) { .event { grid-template-columns: 72px 1fr; } .event .pill { grid-column: 2; justify-self: start; } }

/* kvartovi */
.kvartovi { display: flex; flex-wrap: wrap; gap: 10px; }
.kvart { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 500; }

/* povijest teaser */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.quote-year { font-family: var(--f-display); font-size: clamp(5rem, 14vw, 10rem); font-weight: 800; line-height: .85; color: var(--sloe); letter-spacing: -0.05em; }

/* CTA */
.cta-band { background: var(--ink); color: var(--bg); border-radius: 24px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { color: var(--bg); }
.cta-band p { color: color-mix(in srgb, var(--bg) 75%, transparent); margin-top: 12px; }
.cta-band .btn-primary { background: var(--bg); color: var(--ink); justify-self: end; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-primary { justify-self: start; } }

/* ---------- podstranice ---------- */
.page-head { padding-block: clamp(48px, 6vw, 80px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); margin-top: 14px; }
.page-head .lead { margin-top: 18px; }

/* vremenska crta */
.timeline { position: relative; display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 160px 28px 1fr; gap: 20px; }
.tl-year { font-family: var(--f-display); font-size: 2rem; font-weight: 700; color: var(--sloe); text-align: right; line-height: 1.1; padding-top: 2px; letter-spacing: -0.03em; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-rail::after { content: ""; position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--sloe); margin-top: 12px; }
.tl-item.key .tl-rail::after { background: var(--blossom); border-color: var(--blossom); }
.tl-body { padding-bottom: 44px; display: grid; gap: 8px; max-width: 62ch; }
.tl-body p { color: var(--ink-soft); }
.src { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-soft); }
@media (max-width: 640px) {
  .tl-item { grid-template-columns: 22px 1fr; gap: 14px; }
  .tl-year { grid-column: 2; text-align: left; font-size: 1.6rem; }
  .tl-rail { grid-row: 1 / span 2; grid-column: 1; }
  .tl-body { grid-column: 2; }
}

/* znamenitosti */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.place { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.place .ph { aspect-ratio: 16/10; background: var(--surface-2); position: relative; display: grid; place-items: center; color: var(--ink-soft); font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; max-width: 100%; }
.place .ph svg { width: 56%; height: auto; color: var(--sloe); opacity: .8; }
.place .body { padding: 22px; display: grid; gap: 8px; }
.place .body p { color: var(--ink-soft); font-size: .95rem; }
.place .addr { font-family: var(--f-mono); font-size: .8rem; color: var(--reed); }
@media (max-width: 900px) { .places { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .places { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--surface); padding: 24px; display: grid; gap: 4px; }
.stat strong { font-family: var(--f-display); font-size: 2.2rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* imenik */
.dir-tools { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.dir-tools .search { margin-top: 0; flex: 1 1 260px; min-width: 0; max-width: 100%; box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .9rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.chip:hover { color: var(--ink); border-color: var(--ink-soft); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.biz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; align-content: start; }
.biz.featured { border-color: var(--sloe); box-shadow: 0 0 0 1px var(--sloe); }
.biz-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.biz h3 { font-size: 1.12rem; }
.biz p { color: var(--ink-soft); font-size: .93rem; }
.biz dl { margin: 4px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .88rem; }
.biz dt { color: var(--ink-soft); font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.biz dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.biz .offer { background: color-mix(in srgb, var(--blossom) 10%, transparent); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: .88rem; }
.biz .offer b { color: var(--blossom); }
.empty { padding: 48px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--r); grid-column: 1 / -1; }
@media (max-width: 960px) { .dir-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dir-grid { grid-template-columns: 1fr; } }

/* forum */
.forum-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .forum-layout { grid-template-columns: 1fr; } }
.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.board-row { display: grid; grid-template-columns: 1fr 90px 160px; gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.board-row:last-child { border-bottom: 0; }
.board-row.head { background: var(--surface-2); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding-block: 12px; }
.board-row h3 { font-size: 1.05rem; }
.board-row h3 a { color: var(--ink); text-decoration: none; }
.board-row h3 a:hover { color: var(--sloe); }
.board-row p { color: var(--ink-soft); font-size: .9rem; margin-top: 2px; }
.board-row .n { font-family: var(--f-mono); font-variant-numeric: tabular-nums; text-align: center; }
.board-row .last { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 640px) { .board-row { grid-template-columns: 1fr; gap: 6px; } .board-row.head { display: none; } .board-row .n { text-align: left; } }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; }
.side-box + .side-box { margin-top: 18px; }
.side-box ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: .93rem; display: grid; gap: 6px; }

/* oglašavanje / paketi */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; display: grid; gap: 16px; align-content: start; }
.plan.best { border-color: var(--sloe); box-shadow: 0 0 0 1px var(--sloe), var(--shadow); }
.price { font-family: var(--f-display); font-size: 2.8rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price small { font-family: var(--f-body); font-size: 1rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--reed-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%234f7458' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }

/* obrasci */
.form { display: grid; gap: 16px; max-width: 640px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; }
.form textarea { min-height: 130px; resize: vertical; }
.form-ok { background: var(--reed-soft); color: var(--ink); padding: 14px 18px; border-radius: 12px; }

/* ---------- podnožje ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; font-weight: 500; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { color: var(--sloe); }
.foot-grid p { color: var(--ink-soft); font-size: .95rem; margin-top: 12px; max-width: 34ch; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =========== Dodano: fotografije, priroda, karte, kvartovi =========== */
:root { --amber: #b8862f; --water: #dfe9ea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --amber: #e0b062; --water: #1b2a2e; } }
:root[data-theme="dark"] { --amber: #e0b062; --water: #1b2a2e; }

/* naslovna s fotografijom Savice */
.hero.photo { color: #f4f5f1; background: #1d2a26; isolation: isolate; }
.hero.photo .hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 40%; }
.hero.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(16,20,32,.86) 0%, rgba(16,20,32,.62) 45%, rgba(16,20,32,.18) 100%); }
.hero.photo h1 { color: #fff; }
.hero.photo h1 span { color: #c9c9ff; }
.hero.photo .eyebrow { color: #b9dcc0; }
.hero.photo .lead { color: rgba(244,245,241,.88); }
.hero.photo .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.hero.photo .btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.hero.photo .search { background: rgba(255,255,255,.96); border-color: transparent; }
.hero.photo .search input { color: #1d1f33; }
.hero.photo .search input::placeholder { color: #5b5e73; }
.hero.photo .hero-card { background: rgba(29,31,51,.72); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); }
.photo-credit { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); bottom: 8px; font-size: .7rem; color: rgba(255,255,255,.7); font-family: var(--f-mono); }
.photo-credit a { color: rgba(255,255,255,.85); }

/* naslov podstranice s fotografijom i trskom */
.page-head { position: relative; overflow: hidden; background:
  radial-gradient(1200px 300px at 100% 100%, color-mix(in srgb, var(--reed) 14%, transparent), transparent 70%),
  linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--water) 55%, var(--bg))); }
.page-head::after { content: ""; position: absolute; right: 0; bottom: 0; width: min(520px, 60vw); height: 150px; opacity: .5; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 150' fill='none' stroke='%234f7458' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M40 150 Q44 90 30 40'/%3E%3Cpath d='M70 150 Q66 80 86 20'/%3E%3Cpath d='M110 150 Q118 100 104 60'/%3E%3Cpath d='M160 150 Q150 70 172 30'/%3E%3Cpath d='M210 150 Q216 110 200 80'/%3E%3Cpath d='M260 150 Q270 60 252 10'/%3E%3Cpath d='M300 150 Q296 100 314 70'/%3E%3Cpath d='M350 150 Q360 80 340 36'/%3E%3Cpath d='M400 150 Q392 110 410 84'/%3E%3Cpath d='M450 150 Q458 70 444 26'/%3E%3Cpath d='M490 150 Q486 110 500 70'/%3E%3Cellipse cx='86' cy='26' rx='4' ry='12' fill='%234f7458' opacity='.6'/%3E%3Cellipse cx='252' cy='18' rx='4' ry='13' fill='%234f7458' opacity='.6'/%3E%3Cellipse cx='444' cy='34' rx='4' ry='12' fill='%234f7458' opacity='.6'/%3E%3C/g%3E%3C/svg%3E") right bottom / contain no-repeat; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head.has-photo .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.page-head.has-photo .wrap > * { min-width: 0; }
@media (max-width: 860px) { .page-head.has-photo .wrap { grid-template-columns: 1fr; } }

/* fotografija s potpisom autora */
figure.foto { margin: 0; display: grid; gap: 8px; }
figure.foto img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); background: var(--surface-2); aspect-ratio: 4 / 3; }
figure.foto.wide img { aspect-ratio: 16 / 9; }
figure.foto figcaption, .credit { font-size: .74rem; color: var(--ink-soft); font-family: var(--f-mono); line-height: 1.5; }
figure.foto figcaption a, .credit a { color: var(--ink-soft); }
.place .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place .credit { padding: 0 22px 18px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; font-weight: 600; }
.links a { text-decoration: none; }
.links a::after { content: " ↗"; font-weight: 400; }
.tl-body .links { margin-top: 2px; }
.tl-body figure.foto { max-width: 420px; margin-top: 8px; }

/* karte */
.map-box { position: relative; display: grid; gap: 12px; }
.karta { height: 460px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); z-index: 0; }
.karta.mala { height: 360px; }
.map-full-btn { position: absolute; top: 12px; right: 12px; z-index: 500; font: inherit; font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.map-full-btn:hover { border-color: var(--sloe); }
.map-full { position: fixed; inset: 0; z-index: 2000; background: var(--bg); padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); grid-template-rows: 1fr auto; }
.map-full .karta { height: 100%; }
.map-full .map-full-btn { top: max(24px, calc(env(safe-area-inset-top, 0px) + 12px)); right: max(24px, calc(env(safe-area-inset-right, 0px) + 12px)); }
body.no-scroll { overflow: hidden; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--ink-soft); }
.map-legend label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.map-hint { font-size: .85rem; color: var(--ink-soft); }
.map-err { padding: 24px; color: var(--ink-soft); }
.leaflet-container { font-family: var(--f-body); }
.kv-label { background: rgba(255,255,255,.88); border: 0; box-shadow: none; color: #1d1f33; font-weight: 600; font-size: 11px; padding: 2px 6px; border-radius: 6px; }
.kv-label::before { display: none; }
.kv-label.on { background: #c9566b; color: #fff; font-size: 13px; }
.kv-big { font-family: var(--f-display); font-size: 30px; font-weight: 800; color: #c9566b; text-align: center; text-shadow: 0 1px 0 #fff, 0 0 12px #fff; letter-spacing: -0.02em; }
.pop-vrsta { font-size: 11px; color: #666; }

/* kvartovi */
.kv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-decoration: none; color: var(--ink); display: grid; gap: 10px; align-content: start; transition: border-color .2s, transform .2s; }
.kv-card:hover { color: var(--ink); border-color: var(--sloe); transform: translateY(-2px); }
.kv-card p { color: var(--ink-soft); font-size: .93rem; }
.kv-card .nums { display: flex; gap: 16px; font-family: var(--f-mono); font-size: .8rem; color: var(--reed); }
@media (max-width: 960px) { .kv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kv-grid { grid-template-columns: 1fr; } }
.kv-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.kv-layout > * { min-width: 0; }
@media (max-width: 900px) { .kv-layout { grid-template-columns: 1fr; } }
.facts-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.facts-list li { display: block; position: relative; padding-left: 36px; }
.facts-list li::before { content: ""; position: absolute; left: 8px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--blossom); }
.inst { display: grid; gap: 22px; }
.inst h3 { font-size: 1.05rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.inst h3 i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.inst ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inst li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: .93rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inst li span { color: var(--ink-soft); }
.inst li a { font-weight: 600; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; }
.box h3 { font-size: 1.1rem; }
.box p, .box li { color: var(--ink-soft); font-size: .94rem; }
.kv-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ljudi */
.people { display: grid; gap: 40px; }
.people-group h2 { font-size: 1.6rem; margin-bottom: 18px; }
.person-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .person-grid { grid-template-columns: 1fr; } }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 8px; align-content: start; }
.person .yrs { font-family: var(--f-mono); font-size: .78rem; color: var(--reed); }
.person p { color: var(--ink-soft); font-size: .95rem; }
.person .veza { color: var(--ink); font-size: .93rem; background: var(--sloe-soft); border-radius: 8px; padding: 8px 12px; }

/* parking */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.tbl { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .93rem; }
.tbl th, .tbl td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); background: var(--surface-2); font-weight: 500; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num { font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; color: var(--sloe); }
.zone { display: inline-block; font-weight: 700; padding: 3px 10px; border-radius: 999px; font-size: .8rem; }
.zone.z2 { background: var(--sloe-soft); color: var(--sloe); }
.zone.z3 { background: var(--reed-soft); color: var(--reed); }
.zone.zx { background: var(--surface-2); color: var(--ink-soft); }
a.kvart { text-decoration: none; color: var(--ink); transition: border-color .2s, color .2s; }
a.kvart:hover { border-color: var(--sloe); color: var(--sloe); }
.links .src { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-soft); font-weight: 400; align-self: center; }
.place .body .links { margin-top: 6px; }
.karta-tamna .leaflet-tile-pane { filter: brightness(.82) contrast(1.05) saturate(.8); }

/* naslovna traka s fotografijom na podstranicama */
.page-head.banner { background: #1d2a26; color: #f4f5f1; isolation: isolate; padding-block: clamp(72px, 10vw, 140px) clamp(48px, 6vw, 80px); border-bottom: 0; }
.page-head.banner::after { display: none; }
.page-head.banner .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.page-head.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(16,20,32,.88) 0%, rgba(16,20,32,.66) 50%, rgba(16,20,32,.25) 100%); }
.page-head.banner h1 { color: #fff; }
.page-head.banner .eyebrow { color: #b9dcc0; }
.page-head.banner .lead { color: rgba(244,245,241,.9); }
.page-head.banner .photo-credit { right: max(16px, env(safe-area-inset-right, 0px)); }
.page-head.banner .lead a { color: #c9c9ff; }
@media (max-width: 1120px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 12px max(20px, env(safe-area-inset-left, 0px)) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
}
.place h3 a { color: var(--ink); text-decoration: none; }
.place h3 a:hover { color: var(--sloe); text-decoration: underline; }
.place h3 a::after { content: " ↗"; font-size: .8em; color: var(--ink-soft); }
.place .ph a { position: absolute; inset: 0; display: block; }
.person .pfoto { margin: -22px -22px 6px; }
.person .pfoto img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r) var(--r) 0 0; display: block; }
.person .pfoto figcaption { padding: 6px 22px 0; }
.person { overflow: hidden; }
.page-head.banner .wrap { padding-bottom: 18px; }
@media (max-width: 640px) {
  .photo-credit { position: relative; right: auto; bottom: auto; display: block; padding: 18px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); margin: 0; text-align: right; }
  .page-head.banner { padding-bottom: 14px; }
  .hero.photo { padding-bottom: 14px; }
}
mark.popuni { background: #ffe58a; color: #1d1f33; padding: 0 4px; border-radius: 4px; }
.prose h2 { font-size: 1.5rem; margin-top: 12px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* =========== Krug 3: izbornik, animacije, povećanje fotografija =========== */
/* padajući izbornik */
.dd { position: relative; }
.dd-btn { font: inherit; font-size: .95rem; font-weight: 500; color: var(--ink-soft); background: none; border: 0; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.dd-btn:hover, .dd.on .dd-btn { background: var(--sloe-soft); color: var(--ink); }
.dd-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; z-index: 70; flex-direction: column; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: flex; animation: ddIn .18s ease; }
.dd-menu a { padding: 10px 14px !important; border-radius: 10px !important; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1120px) {
  .dd-btn { display: none; }
  .dd-menu { display: flex !important; position: static; border: 0; box-shadow: none; padding: 0; background: none; min-width: 0; animation: none !important; }
}

/* kockice s fotografijama */
.foto-tiles { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 1100px) { .foto-tiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .foto-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .foto-tiles { grid-template-columns: 1fr; } }
.tile.ft { position: relative; overflow: hidden; padding: 0 22px 22px; }
.ft-img { display: block; margin: 0 -22px 4px; height: 130px; background-size: cover; background-position: center; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; filter: saturate(.85); }
.tile.ft:hover .ft-img { transform: scale(1.08); filter: saturate(1.1); }
.tile.ft .ico { margin-top: -26px; position: relative; z-index: 1; background: var(--surface); box-shadow: var(--shadow); transition: transform .3s; }
.tile.ft.green .ico { background: var(--surface); }
.tile.ft:hover .ico { transform: rotate(-8deg) scale(1.1); }
.tile .arr { display: inline-block; transition: transform .25s; }
.tile:hover .arr { transform: translateX(5px); }

/* pojavljivanje pri pomicanju */
.js-anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js-anim .reveal.in { opacity: 1; transform: none; }

/* latice na naslovnoj */
#latice { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero.photo .wrap { position: relative; z-index: 1; }

/* jeste li znali */
.znali-band { padding-block: 40px; background: linear-gradient(110deg, var(--sloe) 0%, color-mix(in srgb, var(--sloe) 70%, var(--reed)) 100%); color: #fff; }
.znali { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.znali-ico { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; font-family: var(--f-display); font-size: 2.2rem; font-weight: 800; animation: vrti 8s linear infinite; }
@keyframes vrti { 0%,80% { transform: rotate(0); } 90% { transform: rotate(-15deg) scale(1.1); } 100% { transform: rotate(0); } }
.znali-band .eyebrow { color: rgba(255,255,255,.8); }
.znali-list { position: relative; min-height: 3.4em; }
.znali-item { position: absolute; inset: 0; font-family: var(--f-display); font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 600; line-height: 1.3; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.znali-item.on { opacity: 1; transform: none; }
.znali-band .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
@media (max-width: 640px) { .znali { grid-template-columns: 1fr; } .znali-list { min-height: 5.2em; } }

/* velike priče */
.vp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .vp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .vp-grid { grid-template-columns: 1fr; } }
.vp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.vp:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vp-img { aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.vp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.vp:hover .vp-img img { transform: scale(1.06); }
.vp-noimg { display: grid; place-items: center; background: linear-gradient(135deg, var(--sloe-soft), var(--reed-soft)); }
.vp-noimg span { font-family: var(--f-display); font-size: 3rem; font-weight: 800; color: var(--sloe); opacity: .7; }
.vp-body { padding: 18px 20px; display: grid; gap: 8px; }
.vp-year { font-family: var(--f-mono); font-size: .8rem; color: var(--blossom); font-weight: 500; }
.vp-body h3 { font-size: 1.12rem; }
.vp-body p { color: var(--ink-soft); font-size: .93rem; }
.vp .credit { padding: 0 20px 14px; margin-top: auto; }

/* naslovi kao poveznice */
a.naslov-link { color: inherit; text-decoration: none; background-image: linear-gradient(var(--blossom), var(--blossom)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s, color .2s; }
a.naslov-link:hover { color: var(--sloe); background-size: 100% 2px; }

/* povećanje fotografija */
img[data-full] { cursor: zoom-in; }
.zoom-btn { font: inherit; font-size: .7rem; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 3px 10px; cursor: zoom-in; margin-right: 6px; }
.zoom-btn:hover { background: rgba(255,255,255,.3); }
.lb { position: fixed; inset: 0; z-index: 3000; background: rgba(10,12,20,.92); display: grid; grid-template-rows: 1fr auto; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); animation: lbIn .25s ease; }
.lb[hidden] { display: none !important; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb img { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); align-self: center; justify-self: center; min-height: 0; }
.lb-cap { color: #ddd; font-size: .85rem; text-align: center; padding-top: 12px; font-family: var(--f-mono); }
.lb-cap a { color: #fff; }
.lb-x { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); font: inherit; font-size: 1rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.15); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.lb-x:hover { background: rgba(255,255,255,.3); }

/* trnje nekad */
.galerija { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .galerija { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .galerija { grid-template-columns: 1fr; } }
.galerija-item img { filter: sepia(.25) contrast(1.05); transition: filter .4s, transform .4s; }
.galerija-item:hover img { filter: none; transform: scale(1.02); }
.parovi { display: grid; gap: 40px; }
.par h3 { font-size: 1.4rem; margin-bottom: 6px; }
.par-slike { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
@media (max-width: 640px) { .par-slike { grid-template-columns: 1fr; } }
.par-slike figure { position: relative; }
.par-oznaka { position: absolute; top: 10px; left: 10px; z-index: 1; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; background: #1d1f33; color: #fff; padding: 4px 10px; border-radius: 999px; }
.par-oznaka.danas { background: var(--reed); }

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1 !important; transform: none !important; }
  .znali-ico { animation: none; }
}

/* ===== Krug 4: veći izbornik, Poznati Trnjani na vremenskoj crti, rekreacija, „Pitajte o Trnju” ===== */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1121px) {
  .site-header .wrap { min-height: 76px; gap: 20px; }
  .nav { gap: 2px; align-items: center; flex-wrap: nowrap; }
  .nav > a, .dd-btn { font-size: 1.06rem; font-weight: 600; color: var(--ink); padding: 9px 13px; letter-spacing: -.005em; white-space: nowrap; }
  .nav > a:hover, .dd-btn:hover { background: var(--sloe-soft); color: var(--sloe); }
  .nav > a[aria-current="page"], .dd.on .dd-btn { background: var(--sloe-soft); color: var(--sloe); }
  .nav .nav-cta { margin-left: 10px; padding: 10px 18px; }
  .dd-menu a { font-size: 1rem; font-weight: 500; }
}
@media (max-width: 1120px) { .nav a { font-weight: 600; color: var(--ink); } }

.ptl { position: relative; margin-top: 36px; display: grid; gap: 28px; }
.ptl::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: linear-gradient(var(--sloe-soft), var(--sloe) 8%, var(--reed) 92%, var(--reed-soft)); }
.ptl-row { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: start; }
.ptl-god { grid-column: 2; grid-row: 1; display: flex; justify-content: center; padding-top: 18px; position: relative; z-index: 1; }
.ptl-god span { font-family: var(--f-mono); font-size: .8rem; font-weight: 600; background: var(--bg); color: var(--sloe); border: 2px solid var(--sloe); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.ptl-row.desno .ptl-god span { color: var(--reed); border-color: var(--reed); }
.ptl-row.lijevo .ptl-kartica { grid-column: 1; grid-row: 1; }
.ptl-row.desno .ptl-kartica { grid-column: 3; grid-row: 1; }
.ptl-kartica { position: relative; min-width: 0; }
.ptl-row.lijevo .ptl-kartica::after, .ptl-row.desno .ptl-kartica::after { content: ""; position: absolute; top: 30px; width: 34px; height: 2px; background: var(--line); }
.ptl-row.lijevo .ptl-kartica::after { right: -34px; }
.ptl-row.desno .ptl-kartica::after { left: -34px; }
.ptl-row.desno .person { background: color-mix(in srgb, var(--reed-soft) 45%, var(--surface)); }
@media (max-width: 860px) {
  .ptl::before { left: 14px; }
  .ptl-row { grid-template-columns: 30px 1fr; row-gap: 8px; }
  .ptl-god { grid-column: 1 / -1; justify-content: flex-start; padding-top: 0; }
  .ptl-row.lijevo .ptl-kartica, .ptl-row.desno .ptl-kartica { grid-column: 2; grid-row: 2; }
  .ptl-kartica::after { display: none; }
}

.rekreacija { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.rekreacija .addr { font-family: var(--f-mono); font-size: .8rem; color: var(--reed); }
.rekreacija h3 a { color: var(--ink); }

.pitaj-btn { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 80; display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; font-size: 1rem; color: var(--on-accent); background: var(--sloe); border: 0; border-radius: 999px; padding: 10px 18px 10px 10px; box-shadow: 0 6px 24px rgba(29,31,51,.25); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.pitaj-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(29,31,51,.3); }
.pitaj-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--blossom); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; }
.pitaj { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(max(18px, env(safe-area-inset-bottom, 0px)) + 64px); z-index: 81; width: min(440px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 120px)); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(29,31,51,.28); padding: 18px; display: grid; gap: 14px; align-content: start; }
.pitaj[hidden] { display: none; }
.pitaj-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pitaj-head h2 { font-size: 1.3rem; margin: 0; }
.pitaj-x { font: inherit; background: none; border: 0; color: var(--ink-soft); font-size: 1.1rem; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.pitaj-x:hover { background: var(--surface-2); color: var(--ink); }
.pitaj-forma { display: flex; gap: 8px; }
.pitaj-forma input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.pitaj-forma .btn { padding: 10px 16px; }
.pitaj-nas { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--reed); margin: 0 0 8px; }
.pitaj-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pitaj-chips .chip { font-size: .85rem; padding: 6px 12px; text-align: left; }
.pitaj-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pitaj-lista a { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--bg); }
.pitaj-lista a:hover { border-color: var(--sloe); }
.pitaj-lista b { font-size: .95rem; color: var(--sloe); }
.pitaj-lista span { font-size: .87rem; color: var(--ink-soft); line-height: 1.45; }
.pitaj-nema { margin: 0; color: var(--ink-soft); }
.pitaj-dalje { margin: 4px 0 0; }
.pitaj-link { font: inherit; font-size: .9rem; background: none; border: 0; padding: 0; color: var(--sloe); text-decoration: underline; cursor: pointer; }
.pitaj-posalji { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.pitaj-posalji p { margin: 0; font-size: .93rem; }
.pitaj-upit { display: grid; gap: 8px; }
.pitaj-upit textarea, .pitaj-upit input { font: inherit; width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); box-sizing: border-box; }
.pitaj-upit label { display: grid; gap: 4px; font-size: .87rem; color: var(--ink-soft); }
.pitaj-upit .btn { justify-self: start; }
.pitaj-ok { color: var(--reed); font-weight: 600; }
@media (max-width: 560px) {
  .pitaj-txt { display: none; }
  .pitaj-btn { padding: 8px; }
  .pitaj-ico { width: 40px; height: 40px; font-size: 1.2rem; }
}
@media print { .pitaj-btn, .pitaj { display: none !important; } }
.pitaj-posalji[hidden], .pitaj-ok[hidden], .pitaj [hidden] { display: none !important; }
.rekreacija .box { align-content: start; }
/* ===== Krug 5: dijeljenje, društvene mreže, fotografije ===== */
.dijeli-traka { padding: 22px 0 30px; }
.dijeli-traka .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 22px; }
.dijeli-traka span { font-weight: 600; margin-right: 6px; }
.dijeli-traka .chip { font: inherit; font-size: .9rem; cursor: pointer; text-decoration: none; }
.drustvene { display: flex; gap: 10px; margin: 8px 0 18px; }
.drustvene a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); }
.drustvene a:hover { color: var(--sloe); border-color: var(--sloe); }
.form label.kvacica { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.form label.kvacica input { width: auto; margin-top: 3px; }

/* ===== Krug 6 ===== */
/* filmovi: video gumbi i napomena */
.links a.video-link { background: var(--sloe); color: var(--on-accent); border-radius: 999px; padding: 5px 12px; text-decoration: none; font-weight: 600; }
.links a.video-link::after { content: none; }
.links a.video-link:hover { background: var(--ink); color: var(--on-accent); }
.links .nedostupno { font-size: .82rem; color: var(--ink-soft); font-style: italic; flex-basis: 100%; }

/* bilten */
.bilten { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; }
.bilten fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.bilten .bilten-n { margin: 0; }
.bilten label.kvacica small { display: block; color: var(--ink-soft); font-weight: 400; }
.bilten-red { display: flex; gap: 8px; flex-wrap: wrap; }
.bilten-red input { flex: 1 1 200px; min-width: 0; }
.foot-bilten { display: grid; grid-template-columns: minmax(0, 760px) auto; gap: 24px; align-items: end; justify-content: space-between; margin: 36px 0 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.foot-bilten .bilten { background: transparent; border: 0; padding: 0; }
.foot-bilten .bilten fieldset { grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 18px; }
@media (max-width: 760px) { .foot-bilten { grid-template-columns: 1fr; } .foot-bilten .bilten fieldset { grid-template-columns: 1fr; } }

/* primjeri paketa */
.primjeri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.primjer { display: grid; gap: 12px; }
.primjer-n { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--reed); margin: 0; }
.primjer-o { font-size: .88rem; margin: 0; }
.primjer-foto { margin: -22px -22px 4px; height: 130px; border-radius: var(--r) var(--r) 0 0; display: grid; place-items: center; font-size: .85rem; color: var(--ink-soft); background: repeating-linear-gradient(135deg, var(--surface-2) 0 12px, color-mix(in srgb, var(--sloe-soft) 60%, var(--surface-2)) 12px 24px); }
.biz.featured { overflow: hidden; }
@media (max-width: 900px) { .primjeri { grid-template-columns: 1fr; } }

/* Poznati Trnjani: vodoravna vremenska crta */
.hl-kontrole { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hl-ere { display: flex; flex-wrap: wrap; gap: 6px; }
.hl-ere .chip { font: inherit; font-size: .9rem; cursor: pointer; }
.hl-strelice { display: flex; gap: 8px; }
.hl-str { font: inherit; font-size: 1.2rem; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.hl-str:hover { border-color: var(--sloe); color: var(--sloe); }
.hl { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 4px 2px 14px; cursor: grab; scrollbar-width: thin; border-radius: var(--r); }
.hl.vuce { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.hl:focus-visible { outline: 2px solid var(--sloe); outline-offset: 4px; }
.hl-traka { display: grid; grid-template-rows: auto 54px auto; grid-auto-flow: column; grid-auto-columns: 250px; column-gap: 14px; width: max-content; }
.hl-stup { display: contents; }
.hl-gore { grid-row: 1; align-self: end; scroll-snap-align: start; }
.hl-os { grid-row: 2; position: relative; display: flex; align-items: center; justify-content: center; }
.hl-os::before { content: ""; position: absolute; left: -7px; right: -7px; top: 50%; height: 3px; margin-top: -1.5px; background: linear-gradient(90deg, var(--sloe), var(--reed)); opacity: .55; }
.hl-os span { position: relative; font-family: var(--f-mono); font-size: .8rem; font-weight: 600; background: var(--bg); border: 2px solid var(--sloe); color: var(--sloe); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.hl-os span.d { border-color: var(--reed); color: var(--reed); }
.hl-dolje { grid-row: 3; align-self: start; }
.hl-gore:empty, .hl-dolje:empty { min-height: 1px; }
.hl-kartica { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.hl-kartica:hover { transform: translateY(-2px); border-color: var(--sloe); box-shadow: 0 8px 22px rgba(29,31,51,.08); }
.hl-dolje .hl-kartica { background: color-mix(in srgb, var(--reed-soft) 45%, var(--surface)); }
.hl-img { width: 100%; height: 120px; object-fit: cover; display: block; pointer-events: none; }
.hl-tijelo { padding: 14px 16px 16px; display: grid; gap: 6px; }
.hl-tijelo .yrs { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-soft); }
.hl-tijelo h3 { font-size: 1.08rem; line-height: 1.25; }
.hl-tijelo p { font-size: .9rem; color: var(--ink-soft); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hl-vise { justify-self: start; font: inherit; font-size: .88rem; font-weight: 600; color: var(--sloe); background: var(--sloe-soft); border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; margin-top: 4px; }
.hl-vise:hover { background: var(--sloe); color: var(--on-accent); }
.hl-uputa { font-size: .88rem; margin-top: 6px; }
.hl-prozor { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.hl-prozor::backdrop { background: rgba(16,20,32,.6); backdrop-filter: blur(3px); }
.hl-prozor .person { border: 0; box-shadow: none; padding: 26px; }
.hl-prozor .person .pfoto { margin: -26px -26px 8px; }
.hl-zatvori { position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(16,20,32,.7); color: #fff; font-size: 1rem; cursor: pointer; }
@media (max-width: 600px) { .hl-traka { grid-auto-columns: min(78vw, 260px); } .hl-str { width: 40px; height: 40px; } }

/* Zaglavlje preko fotografije */
body.zp .site-header { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .25s ease, border-color .25s ease; }
body.zp.skrol .site-header { background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
body.zp .site-header .wrap { min-height: 84px; }
body.zp:not(.skrol) .logo { color: #fff; background: rgba(16,20,32,.55); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; padding: 6px 16px 6px 8px; }
body.zp:not(.skrol) .logo span { color: #d6d6ff !important; }
body.zp:not(.skrol) .menu-btn { color: #fff; background: rgba(16,20,32,.55); border-color: rgba(255,255,255,.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (min-width: 1121px) {
  body.zp:not(.skrol) .nav { background: rgba(16,20,32,.55); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; padding: 5px; }
  body.zp:not(.skrol) .nav > a, body.zp:not(.skrol) .dd-btn { color: #fff; }
  body.zp:not(.skrol) .nav > a:hover, body.zp:not(.skrol) .dd-btn:hover, body.zp:not(.skrol) .dd.on .dd-btn { background: rgba(255,255,255,.16); color: #fff; }
  body.zp:not(.skrol) .nav > a[aria-current="page"] { background: rgba(255,255,255,.24); color: #fff; }
  body.zp:not(.skrol) .nav .nav-cta { background: #fff !important; color: var(--ink) !important; }
}
body.zp main > .hero.photo:first-child { padding-top: calc(clamp(48px, 7vw, 96px) + 96px); }
body.zp main > .page-head.banner:first-child { padding-top: calc(clamp(72px, 10vw, 140px) + 70px); }
body.zp .hero.photo::before, body.zp .page-head.banner .bg::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 190px; background: linear-gradient(rgba(10,12,22,.6), transparent); pointer-events: none; }
body.zp .hero.photo::before { z-index: -1; }
body.zp .page-head.banner .bg::after { z-index: 0; }

/* veći gumb „Povećaj fotografiju” i opis na fotografiji */
.photo-credit { font-size: .8rem; bottom: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; justify-content: flex-end; max-width: min(760px, calc(100% - 24px)); background: rgba(16,20,32,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 6px 8px 6px 6px; border-radius: 999px; color: rgba(255,255,255,.88); line-height: 1.35; }
.zoom-btn { font-size: .88rem; font-weight: 600; padding: 7px 14px; margin-right: 0; background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }
@media (max-width: 1120px) {
  .page-head.banner .photo-credit, .hero.photo .photo-credit { border-radius: 14px; }
}
/* vodoravna crta: dvije trake koje se preklapaju */
.hl-traka { position: relative; grid-auto-columns: 136px; column-gap: 0; grid-template-rows: auto 52px auto; }
.hl-stavka { padding: 0 7px; grid-row: 1; align-self: end; scroll-snap-align: start; min-width: 0; }
.hl-stavka.d { align-self: start; }
.hl-stavka.d .hl-kartica { background: color-mix(in srgb, var(--reed-soft) 45%, var(--surface)); }
.hl-god { grid-row: 2; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.hl-god span { font-family: var(--f-mono); font-size: .8rem; font-weight: 600; background: var(--bg); border: 2px solid var(--sloe); color: var(--sloe); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.hl-god span.d { border-color: var(--reed); color: var(--reed); }
.hl-crta { grid-row: 2; align-self: center; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--sloe), var(--reed)); opacity: .5; }
@media (max-width: 600px) { .hl-traka { grid-auto-columns: min(39vw, 136px); } }
/* opis fotografije: zaobljeni okvir, normalna slova na gumbu */
.photo-credit { border-radius: 14px; max-width: min(980px, calc(100% - 24px)); }
.zoom-btn { font-family: var(--f-body); }
.hl-img { height: 86px; }
.hl-tijelo { padding: 10px 14px 12px; gap: 4px; }
.hl-tijelo .yrs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-tijelo h3 { font-size: 1rem; }
.hl-tijelo p { -webkit-line-clamp: 2; font-size: .86rem; }
.hl-vise { padding: 5px 11px; font-size: .84rem; }
.hl-zatvori { position: absolute; top: 10px; right: 10px; float: none; margin: 0; }

/* ===== Krug 7 ===== */
/* ilustracije gdje nema fotografije */
.ilu { position: relative; display: grid; place-items: center; color: var(--sloe); background:
  radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--blossom) 22%, transparent) 0 18%, transparent 19%),
  radial-gradient(circle at 86% 80%, color-mix(in srgb, var(--reed) 20%, transparent) 0 22%, transparent 23%),
  linear-gradient(135deg, var(--sloe-soft), var(--reed-soft)); overflow: hidden; }
.ilu svg { position: absolute; right: -6%; bottom: -14%; width: 62%; height: auto; opacity: .22; stroke-width: 1.2; }
.ilu .ilu-t { position: relative; font-family: var(--f-display); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--sloe); }
.ilu .ilu-t.mali { font-size: 1.9rem; }
.ilu-lopta, .ilu-zupcanik, .ilu-kuca { color: var(--reed); }
.ilu-lopta .ilu-t, .ilu-zupcanik .ilu-t, .ilu-kuca .ilu-t { color: var(--reed); }
.ilu-plamen { color: var(--blossom); }
.ilu-plamen .ilu-t { color: var(--blossom); }
.vp-noimg.ilu span { opacity: 1; }

/* Poznati Trnjani kao kartice */
.skokovi { display: flex; flex-wrap: wrap; gap: 8px; }
.skokovi .chip { text-decoration: none; color: var(--ink); }
.skokovi .chip:hover { border-color: var(--sloe); color: var(--sloe); }
.razdoblje { scroll-margin-top: 90px; }
.vp.osoba .veza { color: var(--ink); font-size: .9rem; background: var(--sloe-soft); border-radius: 8px; padding: 8px 12px; margin: 0; }
.vp.osoba.susjed .veza { background: var(--reed-soft); }
.vp.osoba h3 a { color: var(--ink); }
.vp.osoba .links { margin-top: 2px; }

/* 33: ujednačeni odnosi */
h2 { font-size: clamp(1.75rem, 3.1vw, 2.45rem); }
.page-head h1 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); margin-top: 12px; }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.2rem); max-width: 58ch; line-height: 1.6; }
.page-head .lead { margin-top: 16px; }
.page-head.banner { min-height: clamp(380px, 52vh, 520px); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(64px, 7vw, 88px); }
.page-head.banner .wrap { width: 100%; }
body.zp main > .page-head.banner:first-child { padding-top: 120px; }
.section-head { margin-bottom: 32px; }
.section-head .eyebrow + h2 { margin-top: 0; }
.vp-img, .place .ph { aspect-ratio: 16 / 10; }
.person .pfoto img { aspect-ratio: 16 / 10; }
.vp-body h3, .place h3, .biz h3 { font-size: 1.12rem; line-height: 1.25; }
.links a { font-size: .9rem; }
@media (max-width: 760px) { .page-head.banner { min-height: 0; padding-bottom: 20px; } }
.ilu { background:
  radial-gradient(circle at 14% 20%, color-mix(in srgb, var(--blossom) 12%, transparent) 0 13%, transparent 14%),
  radial-gradient(circle at 88% 84%, color-mix(in srgb, var(--reed) 12%, transparent) 0 20%, transparent 21%),
  linear-gradient(135deg, var(--sloe-soft), var(--reed-soft)); }
.ilu svg { opacity: .16; }
/* akcije (plaćene objave) */
.akcije-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .akcije-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .akcije-grid { grid-template-columns: 1fr; } }
.akcija { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.akcija.ist { border-color: var(--sloe); box-shadow: 0 0 0 1px var(--sloe); }
.akcija img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.akcija-t { padding: 18px 20px; display: grid; gap: 6px; }
.akcija-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.akcija-o { margin: 4px 0 0; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; color: var(--reed); text-transform: uppercase; }
.akcija h3 { font-size: 1.12rem; line-height: 1.25; }
.akcija p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.akcija-m { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem !important; font-family: var(--f-mono); margin-top: 4px !important; }
.akcije-filtri { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0; }
.akcije-filtri select { font: inherit; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.biz-foto { margin: -22px -22px 4px; width: calc(100% + 44px); aspect-ratio: 16 / 9; object-fit: cover; display: block; }
/* primjeri na Oglašavanju */
.primjer-blok { margin-top: 32px; padding: 24px; border: 1px dashed var(--line); border-radius: calc(var(--r) + 6px); background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.primjer-naslov { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.2rem; margin-bottom: 18px; }
.primjer-blok .primjer-o { margin-top: 16px; }
.dm-objava { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.dm-glava { display: flex; gap: 10px; align-items: center; padding: 12px 14px; }
.dm-glava b { display: block; font-size: .95rem; }
.dm-glava small { color: var(--ink-soft); font-size: .78rem; }
.dm-av { width: 36px; height: 36px; border-radius: 50%; background: var(--sloe); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.dm-slika { aspect-ratio: 1 / 1; max-height: 260px; width: 100%; display: grid; place-items: center; text-align: center; color: #fff; background: radial-gradient(circle at 30% 30%, #e7a4b4, transparent 55%), linear-gradient(135deg, #3d3f7a, #4f7458); font-family: var(--f-display); font-size: 1.3rem; line-height: 1.1; letter-spacing: .04em; }
.dm-slika b { font-size: 3.2rem; display: block; margin: 6px 0; }
.dm-slika small { font-family: var(--f-body); font-size: .9rem; letter-spacing: 0; opacity: .9; }
.dm-objava p { padding: 12px 14px 14px; margin: 0; font-size: .9rem; }
.dm-bilten { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sloe); border-radius: 10px; padding: 14px 16px; display: grid; gap: 6px; font-size: .9rem; }
.dm-bilten p { margin: 0; }
.primjer .event { margin-top: 12px; }
.biz-foto { max-width: none; }
/* mačak Trnjo */
.trnjo { position: fixed; left: max(14px, env(safe-area-inset-left, 0px)); bottom: max(10px, env(safe-area-inset-bottom, 0px)); z-index: 79; pointer-events: none; }
.trnjo-mace { pointer-events: auto; display: block; width: 92px; height: 84px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; filter: drop-shadow(0 6px 10px rgba(29,31,51,.25)); }
.trnjo-mace svg { width: 100%; height: 100%; overflow: visible; }
.trnjo-mace:focus-visible { outline: 2px solid var(--sloe); outline-offset: 4px; border-radius: 12px; }
.trnjo.hoda { animation: trnjo-ulaz 3.2s cubic-bezier(.3,.6,.4,1) both; }
@keyframes trnjo-ulaz { from { transform: translateX(-160px); } to { transform: translateX(0); } }
.trnjo.hoda .t-n1 { animation: korak .35s ease-in-out infinite alternate; }
.trnjo.hoda .t-n2 { animation: korak .35s ease-in-out infinite alternate-reverse; }
@keyframes korak { from { transform: translateY(0); } to { transform: translateY(-5px); } }
.trnjo .t-rep { transform-origin: 88px 88px; animation: rep 2.6s ease-in-out infinite; }
@keyframes rep { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }
.trnjo .t-oci { transform-origin: 60px 40px; animation: trep 5s infinite; }
@keyframes trep { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.trnjo.drijema .t-oci { transform: scaleY(.12); animation: none; }
.trnjo.pjeva .t-usta { opacity: 1; animation: usta .32s ease-in-out infinite alternate; transform-origin: 60px 59px; }
@keyframes usta { from { transform: scaleY(.4); } to { transform: scaleY(1.3); } }
.trnjo.pjeva .t-glava { animation: njih 1.3s ease-in-out infinite; transform-origin: 60px 60px; }
@keyframes njih { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.trnjo-mace:hover .t-glava { transform: rotate(-6deg); transform-origin: 60px 60px; transition: transform .2s; }
.trnjo-zzz { position: absolute; right: -4px; top: -6px; font-family: var(--f-display); font-weight: 800; color: var(--sloe); opacity: 0; font-size: .9rem; }
.trnjo-zzz b, .trnjo-zzz i { font-style: normal; position: relative; }
.trnjo-zzz b { top: -8px; font-size: 1.05rem; } .trnjo-zzz i { top: -16px; font-size: 1.2rem; }
.trnjo.drijema .trnjo-zzz { opacity: .8; animation: zzz 2.4s ease-in-out infinite; }
@keyframes zzz { 0%, 100% { transform: translateY(0); opacity: .3; } 50% { transform: translateY(-6px); opacity: .9; } }
.trnjo-oblak { pointer-events: auto; position: absolute; left: 70px; bottom: 82px; width: min(300px, calc(100vw - 100px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; box-shadow: 0 12px 30px rgba(29,31,51,.18); padding: 14px 16px 12px; display: grid; gap: 10px; animation: oblak .25s ease-out both; }
.trnjo-oblak[hidden] { display: none; }
@keyframes oblak { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.trnjo-tekst { margin: 0; font-size: .95rem; line-height: 1.45; }
.trnjo-nota { color: var(--blossom); font-weight: 700; }
.trnjo-gumbi { display: flex; flex-wrap: wrap; gap: 6px; }
.trnjo-gumbi button { font: inherit; font-size: .78rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.trnjo-gumbi button:hover { color: var(--ink); border-color: var(--ink-soft); }
.trnjo.odlazi { animation: trnjo-izlaz .9s ease-in both; }
@keyframes trnjo-izlaz { to { transform: translateX(-180px); opacity: 0; } }
.trnjo-budi { font: inherit; font-size: .8rem; background: none; border: 1px dashed var(--line); color: var(--ink-soft); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
@media (max-width: 600px) { .trnjo-mace { width: 66px; height: 60px; } .trnjo-oblak { left: 48px; bottom: 60px; } }
@media print { .trnjo { display: none; } }
/* kvartovski rječnik */
.rijec { position: relative; border-bottom: 2px dotted var(--blossom); cursor: help; }
.rijec::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(4px); width: max-content; max-width: min(260px, 80vw); background: var(--ink); color: var(--bg); font-size: .85rem; line-height: 1.4; font-weight: 400; padding: 8px 12px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 30; white-space: normal; text-align: left; }
.rijec:hover::after, .rijec:focus::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.hero.photo .rijec { border-bottom-color: #f2c9d3; }
/* iznenađenje */
.site-header .logo span.klik { animation: cvijet-klik .35s ease-out; }
@keyframes cvijet-klik { 50% { transform: rotate(40deg) scale(1.25); } }
.latice-oluja { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; }
.tost { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 91; background: var(--ink); color: var(--bg); border-radius: 16px; padding: 14px 20px; display: grid; gap: 4px; max-width: min(460px, calc(100vw - 32px)); box-shadow: 0 14px 40px rgba(0,0,0,.3); animation: oblak .3s ease-out both; transition: opacity .6s, transform .6s; }
.tost.van { opacity: 0; transform: translateX(-50%) translateY(12px); }
.tost span { font-size: .9rem; opacity: .9; }
.rijec::after { visibility: hidden; }
.rijec:hover::after, .rijec:focus::after { visibility: visible; }
.rijec:not(:hover):not(:focus)::after { left: 0; transform: none; max-width: 10px; }
.rijec:not(:hover):not(:focus)::after { display: none; }
/* mačak: bez okvira na klik mišem ili prstom; za tipkovnicu samo diskretan krug */
.trnjo-mace, .trnjo-mace:focus, .trnjo-mace:active { outline: none; -webkit-tap-highlight-color: transparent; }
.trnjo-mace:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.trnjo-mace:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sloe) 35%, transparent); border-radius: 50%; }

/* ===== Krug 8: jedna cjelina – iste kartice na svim stranicama ===== */
.vp-grid, .places, .kv-grid, .galerija { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
@media (max-width: 1000px) { .vp-grid, .places, .kv-grid, .galerija { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .vp-grid, .places, .kv-grid, .galerija { grid-template-columns: 1fr; } }
.vp, .place, .kv-card.s-slikom, .biz, .akcija { border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.vp-body, .place .pt, .kv-t { padding: 18px 20px; display: grid; gap: 8px; }
.vp-body p.skraceno { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.vise { justify-self: start; font: inherit; font-size: .86rem; font-weight: 600; color: var(--sloe); background: none; border: 0; padding: 0; cursor: pointer; }
.vise:hover { text-decoration: underline; }
/* kvartovi s fotografijom */
.kv-card.s-slikom { padding: 0; overflow: hidden; gap: 0; display: flex; flex-direction: column; }
.kv-card.s-slikom .vp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.kv-card.s-slikom:hover .vp-img img { transform: scale(1.06); }
.kv-t h3 { font-size: 1.12rem; }
.kv-t p { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.kv-vise { font-weight: 600; color: var(--sloe); font-size: .9rem; }
/* galerija Trnje nekad kao kartice */
.galerija-item .vp-img img { filter: sepia(.25) contrast(1.05); }
.galerija-item:hover .vp-img img { filter: none; }
.galerija-item .vp-body h3 { font-size: 1.02rem; font-weight: 600; }
/* nekad i danas: klizač */
.usp { position: relative; --p: 50%; touch-action: pan-y; }
.usp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.usp-staro { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.usp-staro img { filter: sepia(.25); }
.usp .par-oznaka { position: absolute; top: 10px; left: 10px; z-index: 2; }
.usp .par-oznaka.danas { left: auto; right: 10px; }
.usp-crta { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); z-index: 2; pointer-events: none; }
.usp-crta::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.usp-klizac { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.vp.usporedba:hover .vp-img img { transform: none; }
.site-header .wrap { min-height: 84px; }

/* ===== Krug 9: Branitelji Trnja, primjeri, obrasci e-poštom ===== */
.event .tag-demo { justify-self: end; }
.event:has(.tag-demo) { grid-template-columns: 96px 1fr auto auto; }
@media (max-width: 640px) { .event:has(.tag-demo) { grid-template-columns: 72px 1fr; } .event .tag-demo { grid-column: 2; justify-self: start; } }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }

.sjecanje-band { padding-block: 44px; background: #1b1c2a; color: #eceaf4; }
.sjecanje-traka { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.sjecanje-traka h2 { color: #fff; margin: 4px 0 8px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.sjecanje-traka p { color: #c9c8d8; max-width: 62ch; margin: 0; }
.sjecanje-traka .eyebrow { color: #e9b3bf; }
.sjecanje-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #f3c98b; }
.sjecanje-ico svg { width: 34px; height: 34px; }
.sjecanje-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.sjecanje-band .btn-ghost:hover { border-color: #fff; color: #fff; }
@media (max-width: 760px) { .sjecanje-traka { grid-template-columns: 1fr; gap: 16px; } .sjecanje-ico { width: 52px; height: 52px; } }

.sjecanje-svijeca { background: #1b1c2a; color: #f3c98b; border-radius: 24px; padding: 40px 28px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.sjecanje-svijeca svg { width: 88px; height: 88px; }
.sjecanje-svijeca p { color: #eceaf4; font-family: var(--f-display); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: .95rem; line-height: 1.5; margin: 0; }
.imena { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.imena li { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; padding: 10px 16px; border-left: 3px solid var(--blossom); background: var(--surface); border-radius: 0 10px 10px 0; }
.popis-priprema { border-style: dashed; }
.sjecanje-mjesta { display: grid; gap: 16px; }
.sjecanje-mjesta .box h3 { margin-bottom: 4px; }
.sjecanje-mjesta .box p { margin: 6px 0 0; }
.timeline.datumi .tl-year { font-size: 1.15rem; letter-spacing: 0; padding-top: 4px; }
@media (max-width: 640px) { .timeline.datumi .tl-year { font-size: 1.05rem; } }
