/* Verdo nepremičnine (izmišljeno podjetje)
   1 osnova · 2 gumbi in povezave · 3 glava in meni · 4 uvod · 5 iskalnik · 6 ponudba
   7 prodaja · 8 vrednote · 9 postopek · 10 o podjetju · 11 kontakt in obrazec · 12 noga
   13 podrobnosti · 14 vstopne animacije · 15 pravna stran · 16 zmanjšano gibanje */

/* ── 1 osnova ─────────────────────────────────────────────────────────────── */
:root {
  --ivory: #f6f3ec;
  --paper: #fbf9f4;
  --sand: #e9e3d6;
  --ink: #1d201e;
  --ink-2: #474b46;
  --muted: #777a72;
  --green: #2f4a3e;
  --green-deep: #24382f;
  --olive: #6d7354;
  --bronze: #a5814f;
  --bronze-light: #d2b687;
  --line: rgba(29, 32, 30, 0.14);
  --line-light: rgba(255, 255, 255, 0.2);
  --error: #a23a2b;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --gutter: clamp(20px, 4.4vw, 72px);
  --edge: max(var(--gutter), calc((100vw - 1480px) / 2 + var(--gutter)));
  --header: 78px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 8px); }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset, address { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
address { font-style: normal; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
::selection { background: var(--green); color: #fff; }
html.menu-open, html.dialog-open { overflow: hidden; }
[hidden] { display: none !important; }

.wrap { width: min(100%, 1480px); margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }

.eyebrow { font: 600 0.75rem/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze); }
.eyebrow--light { color: var(--bronze-light); }
.head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 56px); }
.head__title { font: 500 clamp(2.2rem, 4.6vw, 4.1rem)/1.04 var(--serif); letter-spacing: -0.012em; text-wrap: balance; }
.head__title em { color: var(--green); }
.head__text { max-width: 56ch; color: var(--ink-2); font-size: 1.0625rem; }
.head__text b { font-weight: 600; color: var(--ink); }
.head--split { align-items: end; }
@media (min-width: 1000px) { .head--split { grid-template-columns: 1.2fr 1fr; gap: 64px; } .head--split > div { display: grid; gap: 14px; } }
.note { color: var(--muted); }

/* ── 2 gumbi in povezave ──────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 28px; border: 1px solid transparent; border-radius: 2px; font: 600 0.875rem/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; text-align: center; transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--green); color: #fff; }
.btn--dark:hover { background: var(--ink); }
.btn--light { background: var(--ivory); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; background: rgba(20, 22, 21, 0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: none; font: 600 0.875rem/1.3 var(--sans); letter-spacing: 0.04em; color: var(--ink); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.4s var(--ease), color 0.3s; }
.link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--green); }
.link--light { color: #fff; }
.link--light:hover { color: var(--bronze-light); }

/* ── 3 glava in meni ──────────────────────────────────────────────────────── */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 28px; height: var(--header); padding-inline: var(--edge); color: #fff; transition: background-color 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.header.is-solid { background: rgba(246, 243, 236, 0.94); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
html.menu-open .header { background: transparent; color: #fff; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.brand__name { font: 600 1.75rem/0.95 var(--serif); letter-spacing: 0.02em; }
.brand__sub { margin-top: 3px; font: 600 0.5625rem/1 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; opacity: 0.85; }
.brand--light { color: #fff; }
.nav { display: none; gap: clamp(18px, 2.2vw, 36px); }
.nav a { position: relative; padding: 8px 0; font: 500 0.875rem/1 var(--sans); letter-spacing: 0.03em; text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__cta { display: none; min-height: 44px; padding: 10px 20px; border-color: currentColor; color: inherit; }
.header__cta:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.header.is-solid .header__cta:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.burger { position: relative; width: 48px; height: 48px; margin-right: -10px; border: 0; background: none; color: inherit; }
.burger i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger i:nth-of-type(1) { top: 19px; }
.burger i:nth-of-type(2) { top: 28px; }
.burger[aria-expanded="true"] i:nth-of-type(1) { top: 23.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-of-type(2) { top: 23.5px; transform: rotate(-45deg); }
@media (min-width: 1000px) { .nav { display: flex; } .header__cta { display: inline-flex; } .burger { display: none; } }

.menu { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: calc(var(--header) + 24px) var(--gutter) max(28px, env(safe-area-inset-bottom)); background: var(--green-deep); color: #fff; opacity: 0; transition: opacity 0.3s var(--ease); overflow-y: auto; }
.menu.is-open { opacity: 1; }
.menu nav { display: grid; }
.menu nav a { padding: 12px 0; border-bottom: 1px solid var(--line-light); font: 500 clamp(1.9rem, 8vw, 2.6rem)/1.15 var(--serif); text-decoration: none; opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(2) { transition-delay: 0.05s; }
.menu.is-open nav a:nth-child(3) { transition-delay: 0.1s; }
.menu.is-open nav a:nth-child(4) { transition-delay: 0.15s; }
.menu.is-open nav a:nth-child(5) { transition-delay: 0.2s; }
.menu__foot { display: grid; gap: 16px; }
.menu__tel { font: 500 1.5rem/1 var(--serif); text-decoration: none; text-align: center; }

/* ── 4 uvod ───────────────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--ink); }
.hero__stage { position: relative; height: 100vh; height: 100lvh; min-height: 520px; overflow: hidden; color: #fff; --low: calc(100lvh - 100svh); }
.hero--live { height: 560vh; }
.hero--live .hero__stage { position: sticky; top: 0; }
@media (max-width: 699px) { .hero--live { height: 470vh; } }
.hero__poster, .hero__poster img, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster img { object-fit: cover; }
.hero__canvas { opacity: 0; transition: opacity 0.7s var(--ease); }
.hero__stage.is-ready .hero__canvas { opacity: 1; }
/* Brez skripte ali z zmanjšanim gibanjem: mirna zaključna slika z naslovom. */
.hero__poster--final { display: none; }
html:not(.js) .hero__poster--final, .hero--static .hero__poster--final { display: block; }
html:not(.js) [data-hero-poster], .hero--static [data-hero-poster], html:not(.js) .hero__canvas, .hero--static .hero__canvas { display: none; }
.hero__shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, rgba(18, 20, 19, 0.5) 0%, rgba(18, 20, 19, 0) 22%),
  linear-gradient(0deg, rgba(18, 20, 19, 0.55) 0%, rgba(18, 20, 19, 0) 34%); }
/* Zatemnitev pod naslovom je lasten sloj: njeno prosojnost spreminja grafična kartica, brez ponovnega risanja. */
.hero__scrim { position: absolute; inset: 0; pointer-events: none; will-change: opacity; background: linear-gradient(90deg, rgba(18, 20, 19, 0.78) 0%, rgba(18, 20, 19, 0.5) 34%, rgba(18, 20, 19, 0) 68%); }
.hero--live .hero__scrim { opacity: 0; }
.hero .btn--ghost { background: rgba(20, 22, 21, 0.4); backdrop-filter: none; -webkit-backdrop-filter: none; }   /* zameglitev nad premikajočo se sliko je draga */
.hero .btn--ghost:hover { background: #fff; }

.hero__intro { position: absolute; left: var(--edge); right: var(--edge); bottom: calc(var(--low) + clamp(84px, 13vh, 132px)); display: grid; gap: 14px; max-width: 640px; will-change: transform, opacity; }
.hero__lead { font: 500 clamp(1.7rem, 3.4vw, 2.9rem)/1.1 var(--serif); letter-spacing: -0.005em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero--static .hero__intro, html:not(.js) .hero__intro, .hero--static .hero__cue, html:not(.js) .hero__cue, .hero--static .hero__chapters, html:not(.js) .hero__chapters, .hero--static .hero__skip, html:not(.js) .hero__skip { display: none; }

.hero__final { position: absolute; left: var(--edge); right: var(--edge); top: 50%; display: grid; gap: 22px; max-width: 700px; margin-top: -4vh; translate: 0 -50%; will-change: transform, opacity; }
.hero--live .hero__final { opacity: 0; pointer-events: none; }
.hero__title { font: 500 clamp(2.9rem, 6.6vw, 6rem)/0.98 var(--serif); letter-spacing: -0.02em; text-wrap: balance; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35); }
.hero__title em { color: var(--bronze-light); }
.hero__text { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: rgba(255, 255, 255, 0.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.hero__chapters { position: absolute; right: var(--edge); top: 50%; display: none; gap: 18px; translate: 0 -50%; opacity: 0; font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; }
.hero__chapters li { display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: rgba(255, 255, 255, 0.5); transition: color 0.5s var(--ease); }
.hero__chapters li::after { content: ""; width: 22px; height: 1px; background: currentColor; transition: width 0.5s var(--ease); }
.hero__chapters li span { opacity: 0.7; }
.hero__chapters li.is-active { color: #fff; }
.hero__chapters li.is-active::after { width: 56px; }
@media (min-width: 900px) { .hero__chapters { display: grid; } }

.hero__cue { position: absolute; left: 50%; bottom: calc(var(--low) + 30px); display: grid; justify-items: center; gap: 12px; translate: -50% 0; font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }
.hero__cue i { position: relative; width: 1px; height: 46px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.hero__cue i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero__cue.is-off { visibility: hidden; }
.hero__cue.is-off i::after { animation: none; }
.hero__skip { position: absolute; right: var(--edge); bottom: calc(var(--low) + 30px); padding: 8px 0; font: 600 0.75rem/1 var(--sans); letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.85); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.hero__skip:hover { color: #fff; border-color: #fff; }
.hero__note { position: absolute; left: var(--edge); bottom: calc(var(--low) + 30px); max-width: 30ch; font: 500 0.6875rem/1.4 var(--sans); letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.62); }
@media (max-width: 699px) {
  .hero__final { top: auto; bottom: calc(var(--low) + 74px); margin-top: 0; translate: none; gap: 16px; }
  .hero__scrim { background: linear-gradient(0deg, rgba(18, 20, 19, 0.88) 0%, rgba(18, 20, 19, 0.6) 36%, rgba(18, 20, 19, 0) 70%); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__intro { bottom: calc(var(--low) + 150px); }
  .hero__cue { bottom: calc(var(--low) + 62px); }
  .hero__cue i { height: 30px; }
  .hero__skip { top: calc(var(--header) + 4px); bottom: auto; }
  .hero__note { left: var(--gutter); right: var(--gutter); bottom: calc(var(--low) + 18px); max-width: none; text-align: center; }
}

/* ── 5 iskalnik ───────────────────────────────────────────────────────────── */
.search { position: relative; z-index: 2; margin-top: -8vh; padding-block: clamp(56px, 8vw, 120px) clamp(64px, 9vw, 140px); background: var(--ivory); border-radius: 26px 26px 0 0; box-shadow: 0 -34px 70px rgba(10, 12, 11, 0.28); }
html:not(.js) .filters { display: none; }   /* brez skripte iskalnik ne deluje, zato se ne pokaže */
.filters { margin-bottom: clamp(56px, 8vw, 120px); padding: clamp(20px, 2.6vw, 36px); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(29, 32, 30, 0.35); }
.filters__grid { display: grid; gap: 20px 18px; }
@media (min-width: 700px) { .filters__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .filters__grid { grid-template-columns: 1fr 1fr auto 1.05fr auto; align-items: end; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field__label { font: 600 0.6875rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field__label i { color: var(--bronze); font-style: normal; }
.field__label small { font-size: inherit; letter-spacing: 0.06em; text-transform: none; opacity: 0.8; }
.field select, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 2px; background: #fff; font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s; }
.field textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d201e' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; text-overflow: ellipsis; }
.field select:hover, .field input:hover, .field textarea:hover { border-color: rgba(29, 32, 30, 0.4); }
.field select:focus-visible, .field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(165, 129, 79, 0.22); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 2px; background: #fff; }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 16px; font: 500 0.9375rem/1 var(--sans); white-space: nowrap; transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.seg label + label span { border-left: 1px solid var(--line); }
.seg input:hover + span { background: var(--sand); }
.seg input:checked + span { background: var(--green); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.seg--rooms span { min-width: 46px; padding-inline: 12px; }
.seg--wrap { flex-wrap: wrap; border: 0; background: none; gap: 8px; }
.seg--wrap span { border: 1px solid var(--line); border-radius: 2px; background: #fff; }
.seg--wrap label + label span { border-left: 1px solid var(--line); }
.filters__bar { display: grid; gap: 16px; align-items: center; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.filters__count { font: 600 0.8125rem/1.4 var(--sans); letter-spacing: 0.04em; color: var(--ink-2); }
.filters__chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 0; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 12px 6px 14px; border: 1px solid var(--green); border-radius: 100px; background: rgba(47, 74, 62, 0.07); font: 500 0.8125rem/1.2 var(--sans); color: var(--green); transition: background-color 0.3s, color 0.3s; }
.chip i { font-style: normal; font-size: 1.05rem; line-height: 1; }
.chip:hover { background: var(--green); color: #fff; }
.filters__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
@media (min-width: 900px) { .filters__bar { grid-template-columns: auto 1fr auto; } .filters__actions { justify-content: flex-end; } }
@media (max-width: 699px) { .filters__actions .btn { flex: 1 1 100%; } }

/* ── 6 ponudba ────────────────────────────────────────────────────────────── */
.listings { display: grid; gap: clamp(36px, 4.4vw, 64px) clamp(20px, 2.4vw, 36px); }
@media (min-width: 700px) { .listings { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .listings { grid-template-columns: repeat(12, 1fr); }
  .card--a { grid-column: span 7; }
  .card--b { grid-column: span 5; }
  .card--c { grid-column: span 4; }
  .card--f { grid-column: span 12; }
}
.card { min-width: 0; }
.card__link { display: grid; gap: 18px; height: 100%; align-content: start; text-decoration: none; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
@media (min-width: 1000px) {
  .card--a .card__media { aspect-ratio: 7 / 5; }
  .card--b .card__media { aspect-ratio: 1 / 1; }   /* enaka višina kot pri veliki kartici ob njej */
  .card--f .card__link { grid-template-columns: 1.5fr 1fr; align-items: center; gap: 48px; }
  .card--f .card__media { aspect-ratio: 16 / 9; }
}
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease), filter 0.8s var(--ease); }
.card__link:hover .card__media img, .card__link:focus-visible .card__media img { transform: scale(1.08); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 22, 21, 0.38), rgba(20, 22, 21, 0) 45%); opacity: 0; transition: opacity 0.6s var(--ease); }
.card__link:hover .card__media::after { opacity: 1; }
.card__badges { position: absolute; left: 14px; top: 14px; z-index: 1; display: flex; gap: 6px; font: 600 0.625rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.card__badges b, .card__badges i, .detail__badges b, .detail__badges i { padding: 8px 10px; font-weight: 600; font-style: normal; }
.card__badges b { background: var(--ivory); color: var(--ink); }
.card__badges i { background: rgba(20, 22, 21, 0.62); color: #fff; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.card__body { display: grid; gap: 6px; }
.card__place { font: 600 0.6875rem/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze); }
.card__title { font: 500 clamp(1.55rem, 2.1vw, 2rem)/1.1 var(--serif); letter-spacing: -0.005em; }
.card--a .card__title, .card--f .card__title { font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
.card__meta { color: var(--ink-2); font-size: 0.9375rem; }
.card__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.card__price { font: 600 1.5rem/1.1 var(--serif); }
.card__more { display: inline-flex; align-items: center; gap: 8px; font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.card__more i { font-style: normal; transition: transform 0.45s var(--ease); }
.card__link:hover .card__more i, .card__link:focus-visible .card__more i { transform: translateX(6px); }
.card__link:focus-visible { outline-offset: 8px; }

.empty { display: grid; justify-items: center; gap: 14px; padding: clamp(40px, 7vw, 96px) 24px; border: 1px solid var(--line); background: var(--paper); text-align: center; }
.empty h3 { font: 500 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--serif); text-wrap: balance; }
.empty p { max-width: 52ch; color: var(--ink-2); }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* ── 7 prodaja ────────────────────────────────────────────────────────────── */
.sell { display: grid; background: var(--green-deep); color: #fff; }
.sell__media { position: relative; min-height: 76vw; overflow: hidden; --curtain: var(--green-deep); }
.sell__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.sell__inset { position: absolute; right: clamp(16px, 3vw, 44px); bottom: clamp(16px, 3vw, 44px); z-index: 1; width: min(40%, 280px); aspect-ratio: 4 / 5; margin: 0; border: 6px solid var(--ivory); background: var(--sand); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); overflow: hidden; }
.sell__inset img { width: 100%; height: 100%; object-fit: cover; }
.sell__body { display: grid; align-content: center; gap: 22px; padding: clamp(56px, 8vw, 128px) var(--gutter); }
.sell__title { font: 500 clamp(2.4rem, 5vw, 4.6rem)/1 var(--serif); letter-spacing: -0.015em; }
.sell__text { max-width: 50ch; font-size: 1.0625rem; color: rgba(255, 255, 255, 0.84); }
.sell__list { display: grid; margin-top: 8px; border-top: 1px solid var(--line-light); }
.sell__list li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.sell__list span { font: 500 1.25rem/1.3 var(--serif); color: var(--bronze-light); }
.sell__list h3 { font: 500 1.5rem/1.2 var(--serif); }
.sell__list p { margin-top: 4px; color: rgba(255, 255, 255, 0.74); font-size: 0.9688rem; }
.sell__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 10px; }
.sell__cta span { color: rgba(255, 255, 255, 0.7); font-size: 0.9375rem; }
@media (min-width: 1000px) { .sell { grid-template-columns: 1fr 1fr; } .sell__media { min-height: 780px; } .sell__body { padding-inline: clamp(48px, 6vw, 110px) var(--gutter); } }

/* ── 8 vrednote ───────────────────────────────────────────────────────────── */
.values { padding-block: clamp(72px, 10vw, 160px); }
.values__grid { display: grid; gap: clamp(36px, 5vw, 80px); }
.values__intro { display: grid; gap: 18px; align-content: start; }
.values__list { display: grid; }
.values__list li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 8px; padding: 26px 0; border-top: 1px solid var(--line); }
.values__list li:last-child { border-bottom: 1px solid var(--line); }
.values__list span { grid-row: span 2; font: 500 1.25rem/1.5 var(--serif); color: var(--bronze); }
.values__list h3 { font: 500 clamp(1.6rem, 2.3vw, 2.1rem)/1.15 var(--serif); }
.values__list p { color: var(--ink-2); max-width: 52ch; }
@media (min-width: 1000px) { .values__grid { grid-template-columns: 5fr 6fr; } .values__intro { position: sticky; top: calc(var(--header) + 40px); } }

/* ── 9 postopek ───────────────────────────────────────────────────────────── */
.process { padding-block: clamp(72px, 10vw, 150px); background: var(--sand); }
.steps { position: relative; display: grid; gap: 0; --progress: 0; }
.steps::before, .steps::after { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.steps::after { background: var(--green); transform: scaleY(var(--progress)); transform-origin: top; }
.steps li { position: relative; padding: 0 0 40px 64px; }
.steps li:last-child { padding-bottom: 0; }
.steps__no { position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--green); border-radius: 50%; background: var(--sand); font: 600 0.75rem/1 var(--sans); letter-spacing: 0.06em; color: var(--green); }
.steps h3 { font: 500 clamp(1.6rem, 2.2vw, 2.1rem)/1.15 var(--serif); }
.steps p { margin-top: 6px; color: var(--ink-2); max-width: 36ch; }
.process__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps::before, .steps::after { left: 0; right: 0; top: 19px; bottom: auto; width: auto; height: 1px; }
  .steps::after { transform: scaleX(var(--progress)); transform-origin: left; }
  .steps li { padding: 68px 0 0; }
}

/* ── 10 o podjetju ────────────────────────────────────────────────────────── */
.about { padding-block: clamp(72px, 10vw, 160px); }
.about__grid { display: grid; gap: clamp(36px, 5vw, 96px); align-items: center; }
.about__card { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; max-height: 640px; width: 100%; overflow: hidden; background: var(--green-deep); color: #fff; }
.about__card { --curtain: var(--ivory); }
.about__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; filter: saturate(0.6); }
.about__card::before { content: ""; position: absolute; inset: 18px; z-index: 1; border: 1px solid rgba(210, 182, 135, 0.55); background: linear-gradient(180deg, rgba(36, 56, 47, 0.2), rgba(36, 56, 47, 0.72)); }
.about__mono, .about__name { z-index: 2; }
.about__mono { position: relative; }
.about__mono { font: 500 clamp(7rem, 20vw, 13rem)/1 var(--serif); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--bronze-light); }
.about__name { position: absolute; left: 40px; bottom: 36px; font: 500 1.5rem/1.2 var(--serif); }
.about__name small { font: 600 0.625rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze-light); }
.about__body { display: grid; gap: 18px; justify-items: start; }
.about__text { max-width: 58ch; color: var(--ink-2); font-size: 1.0625rem; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 5fr 7fr; } }

/* ── 11 kontakt in obrazec ────────────────────────────────────────────────── */
.contact { padding-block: clamp(72px, 10vw, 150px); background: var(--paper); border-top: 1px solid var(--line); }
.contact__grid { display: grid; gap: clamp(40px, 5vw, 88px); }
.contact__info { display: grid; gap: 18px; align-content: start; }
.contact__card { display: grid; gap: 10px; margin-top: 14px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-2); }
.contact__firm { font: 500 1.5rem/1.2 var(--serif); color: var(--ink); }
.contact__tel { justify-self: start; font: 500 clamp(2.2rem, 4vw, 3.2rem)/1.1 var(--serif); color: var(--ink); text-decoration: none; transition: color 0.3s; }
.contact__tel:hover { color: var(--green); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.map { position: relative; margin-top: 18px; aspect-ratio: 16 / 10; min-height: 300px; width: 100%; overflow: hidden; background: var(--green-deep); color: #fff; }
.map::before { content: ""; position: absolute; inset: 0; opacity: 0.5; background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(32deg, transparent 48%, rgba(210, 182, 135, 0.35) 48.4%, rgba(210, 182, 135, 0.35) 49%, transparent 49.4%); background-size: 46px 46px, 46px 46px, 100% 100%; }
.map__cover { position: absolute; inset: 0; display: grid; align-content: center; justify-items: start; gap: 10px; padding: clamp(22px, 3vw, 40px); }
.map__title { font: 500 clamp(1.7rem, 2.6vw, 2.3rem)/1.1 var(--serif); }
.map__addr { margin-bottom: 8px; color: rgba(255, 255, 255, 0.8); }
.map__note { margin-top: 6px; max-width: 46ch; font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map.is-loaded .map__cover, .map.is-loaded::before { display: none; }

.form { display: grid; gap: 20px; align-content: start; padding: clamp(22px, 3vw, 44px); background: var(--ivory); border: 1px solid var(--line); }
.form__title { font: 500 clamp(1.8rem, 2.6vw, 2.4rem)/1.1 var(--serif); }
.form__hint { padding: 10px 14px; border-left: 2px solid var(--bronze); background: rgba(165, 129, 79, 0.1); font-size: 0.875rem; color: var(--ink-2); }
.form__trap { position: absolute; left: -9999px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 600px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field__error { min-height: 0; font: 500 0.8125rem/1.35 var(--sans); color: var(--error); }
.field__error:empty { display: none; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--error); }
.field.is-invalid .seg span { border-color: var(--error); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1px solid rgba(29, 32, 30, 0.45); border-radius: 2px; background: #fff; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.check input:checked { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center no-repeat; }
.field.is-invalid .check input { border-color: var(--error); }
.form__submit { justify-self: start; }
@media (max-width: 599px) { .form__submit { justify-self: stretch; } }
.form__result { padding: 16px 18px; border-left: 3px solid var(--green); background: rgba(47, 74, 62, 0.08); font-size: 0.9375rem; color: var(--ink-2); }
.form__result-title { font: 600 1rem/1.4 var(--sans); color: var(--ink); }
.form__result--note { border-color: var(--bronze); background: rgba(165, 129, 79, 0.12); }
.form__result--error { border-color: var(--error); background: rgba(162, 58, 43, 0.08); }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 1fr 1.05fr; align-items: start; } }

/* ── 12 noga ──────────────────────────────────────────────────────────────── */
.footer { padding-block: clamp(56px, 7vw, 100px) 28px; background: var(--ink); color: rgba(255, 255, 255, 0.78); font-size: 0.9375rem; }
.footer__grid { display: grid; gap: 36px 28px; }
.footer__brand p { margin-top: 18px; max-width: 30ch; }
.footer h3 { margin-bottom: 14px; font: 600 0.6875rem/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-light); }
.footer nav { display: grid; gap: 8px; justify-items: start; align-content: start; }
.footer a { text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer p + p { margin-top: 8px; }
.footer__legal { display: grid; gap: 8px; }
.footer__bottom { display: grid; gap: 8px; margin-top: clamp(40px, 5vw, 72px); padding-top: 22px; border-top: 1px solid var(--line-light); font-size: 0.8125rem; color: rgba(255, 255, 255, 0.58); }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.6fr 0.8fr 1fr 0.9fr; } .footer__bottom { grid-template-columns: 1fr auto; } }

/* ── 13 podrobnosti ───────────────────────────────────────────────────────── */
.detail { width: min(1240px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); overflow: hidden; }
.detail::backdrop { background: rgba(18, 20, 19, 0.74); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.detail[open] { animation: detail-in 0.5s var(--ease); }
.detail[open]::backdrop { animation: fade-in 0.4s ease; }
@keyframes detail-in { from { opacity: 0; transform: translateY(24px) scale(0.985); } }
@keyframes fade-in { from { opacity: 0; } }
.detail__inner { display: grid; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.detail__close { position: absolute; right: 12px; top: 12px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1.5rem; line-height: 1; transition: background-color 0.3s; }
.detail__close:hover { background: var(--green); }
.detail__gallery { min-width: 0; background: var(--ink); }
.detail__main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.detail__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s var(--ease); }
.detail__main img.is-shown { opacity: 1; }
.detail__nav { position: absolute; top: 50%; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(246, 243, 236, 0.92); color: var(--ink); font-size: 1.6rem; line-height: 1; translate: 0 -50%; transition: background-color 0.3s, transform 0.3s var(--ease); }
.detail__nav:hover { background: #fff; transform: scale(1.06); }
.detail__nav--prev { left: 14px; }
.detail__nav--next { right: 14px; }
.detail__counter { position: absolute; left: 16px; bottom: 14px; padding: 6px 10px; background: rgba(18, 20, 19, 0.6); color: #fff; font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.14em; }
.detail__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.detail__thumbs button { flex: 0 0 96px; aspect-ratio: 4 / 3; padding: 0; border: 0; background: none; opacity: 0.55; transition: opacity 0.3s; }
.detail__thumbs button:hover, .detail__thumbs button[aria-current="true"] { opacity: 1; }
.detail__thumbs button[aria-current="true"] { outline: 2px solid var(--bronze-light); outline-offset: -2px; }
.detail__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail__gallery.is-single .detail__nav, .detail__gallery.is-single .detail__thumbs, .detail__gallery.is-single .detail__counter { display: none; }
.detail__body { display: grid; gap: 14px; align-content: start; padding: clamp(22px, 3vw, 44px); }
.detail__badges { display: flex; gap: 6px; font: 600 0.625rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.detail__badges b { background: var(--green); color: #fff; }
.detail__badges i { border: 1px solid var(--line); color: var(--ink-2); padding-block: 7px; }
.detail__title { font: 500 clamp(2rem, 3.2vw, 2.9rem)/1.05 var(--serif); letter-spacing: -0.01em; padding-right: 36px; }
.detail__place { font: 600 0.6875rem/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze); }
.detail__price { font: 600 clamp(1.7rem, 2.4vw, 2.1rem)/1.1 var(--serif); }
.detail__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 4px; border-top: 1px solid var(--line); }
.detail__facts div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail__facts dt { font: 600 0.625rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.detail__facts dd { font-weight: 500; }
.detail__desc { color: var(--ink-2); }
.detail__features { display: flex; flex-wrap: wrap; gap: 8px; }
.detail__features li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; font-size: 0.8125rem; }
.detail__sample { padding: 10px 14px; border-left: 2px solid var(--bronze); background: rgba(165, 129, 79, 0.1); font-size: 0.8125rem; color: var(--ink-2); }
.detail__actions { display: grid; gap: 10px; margin-top: 6px; }
@media (min-width: 1000px) {
  .detail__inner { grid-template-columns: 1.35fr 1fr; overflow: hidden; }
  .detail__gallery { display: grid; grid-template-rows: 1fr auto; }
  .detail__main { aspect-ratio: auto; min-height: 420px; }
  .detail__body { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
}

/* ── 14 vstopne animacije ─────────────────────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="image"] { opacity: 1; transform: none; }
/* Slika se odkrije z zaveso v barvi ozadja. Samega elementa ne obrezujemo: obrezan element brskalnik
   šteje za nevidnega, zato se vstopna animacija sploh ne bi sprožila. */
.js [data-reveal="image"]::after { content: ""; position: absolute; inset: -1px; z-index: 3; background: var(--curtain, var(--ivory)); transform-origin: 50% 100%; transition: transform 1.25s var(--ease); pointer-events: none; }
.js [data-reveal="image"].is-in::after { transform: scaleY(0); }
.js .card[data-reveal] .card__media { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .card[data-reveal].is-in .card__media { clip-path: inset(0 0 0 0); }
/* Naslovi po vrsticah (js/motion.js): vsaka vrstica pride izza spodnjega roba svoje maske.
   Maska je malo višja od vrstice, da ne odreže strešic in spodnjih potegov črk. */
.js .lines:not(.lines--ready) { visibility: hidden; }
.lines .line-mask { padding-block: 0.14em; margin-top: -0.28em; }   /* sosednji maski se prekrijeta, višina naslova ostane enaka */
.lines .line-mask:first-of-type { margin-top: -0.14em; }
.lines .line-mask:last-of-type { margin-bottom: -0.14em; }
/* Mehko drsenje (Lenis, js/motion.js). Med drsenjem vgrajeni okvir (zemljevid) ne sme prestreči kolesca. */
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-scrolling iframe { pointer-events: none; }
.values__list li:nth-child(2), .sell__list li:nth-child(2), .steps li:nth-child(2) { --i: 1; }
.values__list li:nth-child(3), .sell__list li:nth-child(3), .steps li:nth-child(3) { --i: 2; }
.values__list li:nth-child(4), .steps li:nth-child(4) { --i: 3; }

/* ── 15 pravna stran ──────────────────────────────────────────────────────── */
.legal { padding-block: calc(var(--header) + clamp(40px, 6vw, 88px)) clamp(64px, 8vw, 120px); }
.legal .wrap { max-width: 860px; }
.legal h1 { font: 500 clamp(2.4rem, 5vw, 4rem)/1.05 var(--serif); margin-bottom: 14px; }
.legal h2 { margin: 52px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); font: 500 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--serif); scroll-margin-top: calc(var(--header) + 12px); }
.legal h3 { margin: 26px 0 6px; font: 600 1rem/1.4 var(--sans); }
.legal p, .legal li { color: var(--ink-2); max-width: 70ch; }
.legal p + p { margin-top: 10px; }
.legal ul { display: grid; gap: 8px; margin-top: 8px; padding-left: 20px; list-style: disc; }
.legal a { color: var(--green); }
.legal__draft { margin: 18px 0 8px; padding: 12px 16px; border-left: 2px solid var(--bronze); background: rgba(165, 129, 79, 0.12); font-size: 0.9375rem; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }

/* ── 16 zmanjšano gibanje ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal="image"], .js .card[data-reveal] .card__media { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal="image"]::after { display: none; }
  .sell__media > img { transform: none; }
}
