/* =========================================================================
   Apartmani Topalović — Bovansko jezero
   Jedan stylesheet, bez frameworka. Mobile-first.
   ========================================================================= */

/* ---------- Fontovi (self-hosted, latin + latin-ext za š đ č ć ž) -------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/self/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/self/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/self/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/self/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

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

  /* Boje — jezero, bor, pesak */
  --pine-950: #08150f;
  --pine-900: #0d241b;
  --pine-800: #123425;
  --pine-700: #17462f;
  --pine-600: #1f5c3d;
  --pine-500: #2c7a51;
  --pine-300: #7fb896;
  --pine-100: #dcece2;

  --clay-600: #a85b2b;
  --clay-500: #c47338;
  --clay-300: #e8b489;
  --clay-100: #f7e9dc;

  --sand-50: #fbf8f3;
  --sand-100: #f4eee4;
  --sand-200: #e7ddcd;

  --paper: var(--sand-50);
  --surface: #ffffff;
  --surface-2: var(--sand-100);
  --line: #e2dbcd;
  --ink: #16211c;
  --ink-2: #3c4a44;
  --muted: #6b7a73;
  --brand: var(--pine-700);
  --brand-hover: var(--pine-600);
  --accent: var(--clay-600);
  --on-brand: #f6fbf8;

  --focus: var(--clay-500);

  /* Tipografija */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.94rem);
  --step-0:  clamp(1rem, 0.95rem + 0.24vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.11rem + 0.44vw, 1.5rem);
  --step-2:  clamp(1.44rem, 1.28rem + 0.78vw, 2rem);
  --step-3:  clamp(1.73rem, 1.46rem + 1.32vw, 2.66rem);
  --step-4:  clamp(2.07rem, 1.63rem + 2.15vw, 3.55rem);
  --step-5:  clamp(2.49rem, 1.77rem + 3.44vw, 4.73rem);

  /* Prostor */
  --gap: clamp(1rem, 0.7rem + 1.4vw, 1.75rem);
  --section-y: clamp(3rem, 2rem + 5vw, 6rem);
  --wrap: 1200px;
  --wrap-narrow: 68ch;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(16 32 26 / 0.06), 0 2px 6px rgb(16 32 26 / 0.05);
  --shadow-md: 0 4px 12px rgb(16 32 26 / 0.08), 0 12px 32px rgb(16 32 26 / 0.07);
  --shadow-lg: 0 12px 28px rgb(16 32 26 / 0.12), 0 32px 64px rgb(16 32 26 / 0.10);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 260ms;

  --header-h: 4.5rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0b120f;
    --surface: #121b17;
    --surface-2: #17231d;
    --line: #26352d;
    --ink: #e7efe9;
    --ink-2: #b8c7bf;
    --muted: #8c9d94;
    --brand: var(--pine-300);
    --brand-hover: #9dcdb0;
    --accent: var(--clay-300);
    --on-brand: #08150f;
    --focus: var(--clay-300);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 12px rgb(0 0 0 / 0.45), 0 12px 32px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 12px 28px rgb(0 0 0 / 0.5), 0 32px 64px rgb(0 0 0 / 0.4);
  }
}
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #0b120f;
  --surface: #121b17;
  --surface-2: #17231d;
  --line: #26352d;
  --ink: #e7efe9;
  --ink-2: #b8c7bf;
  --muted: #8c9d94;
  --brand: var(--pine-300);
  --brand-hover: #9dcdb0;
  --accent: var(--clay-300);
  --on-brand: #08150f;
  --focus: var(--clay-300);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 0.45), 0 12px 32px rgb(0 0 0 / 0.35);
  --shadow-lg: 0 12px 28px rgb(0 0 0 / 0.5), 0 32px 64px rgb(0 0 0 / 0.4);
}

/* -------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@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;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  overflow-x: hidden;
}

img, picture, video, canvas, svg, iframe { display: block; max-width: 100%; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4, li { overflow-wrap: break-word; }

:where(a) { color: var(--brand); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:where(a):hover { color: var(--brand-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--pine-300); color: var(--pine-950); }

/* ---------------------------- Tipografija ------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p { text-wrap: pretty; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.center .eyebrow { justify-content: center; }

/* ------------------------------- Layout --------------------------------- */
.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}
@media (min-width: 48rem) { .wrap { width: min(100% - 4rem, var(--wrap)); } }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.55); }
.section--alt { background: var(--surface-2); }

.prose { max-width: var(--wrap-narrow); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 + p, .prose h3 + p { margin-top: 0.6em; }

.center { text-align: center; }
.center .prose, .center .section-head,
.prose.center, .section-head.center { margin-inline: auto; }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 0.85rem; color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }

.stack > * + * { margin-top: var(--gap); }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.divider { height: 1px; background: var(--line); border: 0; }

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -100%;
  z-index: 200;
  background: var(--brand);
  color: var(--on-brand);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 0.5rem; color: var(--on-brand); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ------------------------------- Dugmad --------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--on-brand);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.8em 1.5em;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--brand-hover); color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--surface-2); color: var(--ink); border-color: var(--brand); }

.btn--accent { --btn-bg: var(--accent); --btn-fg: #fff; }
.btn--accent:hover { background: var(--clay-500); color: #fff; }
:root[data-theme='dark'] .btn--accent, :root:not([data-theme='light']) .btn--accent { --btn-fg: var(--pine-950); }

.btn--on-dark { --btn-bg: rgb(255 255 255 / 0.14); --btn-fg: #fff; --btn-bd: rgb(255 255 255 / 0.35); backdrop-filter: blur(8px); }
.btn--on-dark:hover { background: rgb(255 255 255 / 0.26); color: #fff; }

.btn--sm { padding: 0.55em 1.1em; font-size: var(--step--1); }
.btn--block { width: 100%; }

.btn .icon { width: 1.15em; height: 1.15em; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.center .btn-row { justify-content: center; }

/* Tekstualni link sa strelicom */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
}
.arrow-link::after {
  content: '→';
  transition: transform var(--dur) var(--ease);
}
.arrow-link:hover::after { transform: translateX(0.25em); }

/* -------------------------------- Header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
/* Providan header preko hero slike */
.site-header.is-over-hero {
  background: transparent;
  backdrop-filter: none;
  color: #fff;
}
.site-header.is-over-hero .brand-name,
.site-header.is-over-hero .nav-link { color: #fff; }
.site-header.is-over-hero .brand-tag { color: rgb(255 255 255 / 0.72); }
.site-header.is-over-hero .nav-link::after { background: #fff; }
.site-header.is-over-hero .btn--ghost { --btn-fg: #fff; --btn-bd: rgb(255 255 255 / 0.4); }
.site-header.is-over-hero .btn--ghost:hover { --btn-bg: rgb(255 255 255 / 0.16); color: #fff; }
.site-header.is-over-hero .icon-btn {
  color: #fff;
  border-color: rgb(255 255 255 / 0.45);
  background: rgb(8 21 15 / 0.32);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  flex: none;
}
.brand-mark {
  width: 2.5rem; height: 2.5rem;
  border-radius: 12px;
  object-fit: cover;
  background: var(--pine-700);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.primary-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.2vw, 1.1rem);
  list-style: none;
  padding: 0;
}
.nav-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0.35rem; right: 0.35rem; bottom: 0.2rem;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current='page']::after { transform: scaleX(1); }
.nav-link[aria-current='page'] { font-weight: 650; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
@media (hover: hover) {
  .icon-btn:hover { background: var(--surface-2); border-color: var(--brand); }
}
.icon-btn .icon { width: 1.2rem; height: 1.2rem; }
.nav-toggle { display: none; }
.nav-toggle-close { display: none; }
.nav-scrim { display: none; }

/* Mobilna navigacija */
@media (max-width: 61.99rem) {
  .nav-toggle {
    display: inline-grid;
    width: 3rem; height: 3rem;
    border-width: 1.5px;
  }
  .nav-toggle .icon { width: 1.7rem; height: 1.7rem; stroke-width: 2; }
  .header-actions { margin-left: auto; }
  .nav-toggle[aria-expanded='true'] .nav-toggle-open { display: none; }
  .nav-toggle[aria-expanded='true'] .nav-toggle-close { display: block; }

  /* Fioka izlazi s desne strane, ispod hedera. */
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    bottom: 0;
    right: 0;
    z-index: 95;
    width: min(20rem, 84vw);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 1.25rem 1.75rem;
    display: grid;
    align-content: start;
    /* Zatvorena fioka se sece clip-path-om, ne pomera se van ekrana:
       fixed element gurnut desno od viewporta pravi horizontalni skrol. */
    clip-path: inset(0 0 0 100%);
    opacity: 0;
    pointer-events: none;
    transition: clip-path 300ms var(--ease), opacity 200ms var(--ease);
  }
  .primary-nav[data-open='true'] { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 90;
    background: rgb(12 18 15 / 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms var(--ease);
    border: 0;
  }
  .nav-scrim[data-open='true'] { opacity: 1; pointer-events: auto; }

  /* Dok je meni otvoren, heder dobija punu podlogu da dugme i logo
     ne ostanu beli preko svetle fioke. backdrop-filter mora da ode:
     element sa filterom postaje containing block za fixed potomke,
     pa bi fioka bila zarobljena unutar hedera. */
  html.nav-open .site-header {
    background: var(--paper);
    backdrop-filter: none;
  }
  html.nav-open .site-header.is-over-hero {
    background: var(--paper);
    backdrop-filter: none;
    color: var(--ink);
    border-bottom-color: var(--line);
  }
  html.nav-open .site-header.is-over-hero .brand-name,
  html.nav-open .site-header.is-over-hero .nav-link,
  html.nav-open .site-header.is-over-hero .icon-btn { color: var(--ink); }
  html.nav-open .site-header.is-over-hero .brand-tag { color: var(--muted); }
  html.nav-open .site-header.is-over-hero .icon-btn {
    border-color: var(--line);
    background: transparent;
    backdrop-filter: none;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    padding: 0.9rem 0.25rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current='page'] { color: var(--brand); }
  .nav-cta { margin-top: 1.25rem; display: grid; gap: 0.6rem; }
  /* Otvoreni panel ima punu pozadinu, pa vraca normalne boje teme. */
  .site-header.is-over-hero .primary-nav[data-open='true'] { color: var(--ink); }
  .site-header.is-over-hero .primary-nav[data-open='true'] .nav-link { color: var(--ink); }
  .site-header.is-over-hero .primary-nav[data-open='true'] .btn--ghost {
    --btn-fg: var(--ink); --btn-bd: var(--line);
  }
}
@media (min-width: 62rem) {
  .primary-nav { display: flex; align-items: center; gap: 1.25rem; }
  .nav-cta { display: flex; align-items: center; gap: 0.5rem; }
}

/* --------------------------------- Hero --------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--pine-950);
  min-height: clamp(30rem, 78svh, 46rem);
  margin-top: calc(var(--header-h) * -1);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.hero--compact { min-height: clamp(20rem, 46svh, 28rem); }

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  position: absolute; inset: 0;
  transition: opacity 1200ms var(--ease), transform 9s linear;
  transform: scale(1.06);
}
.hero-media img.is-active { opacity: 1; transform: scale(1); }
.hero-media img:only-child { opacity: 1; transform: none; }

.hero::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(6 20 14 / 0.86) 0%, rgb(6 20 14 / 0.45) 38%, rgb(6 20 14 / 0.15) 65%, rgb(6 20 14 / 0.5) 100%);
}

.hero-content {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem));
}
/* Tekst se drzi leve ivice mreze; sirinu ogranicavamo iznutra, ne na .wrap-u,
   da margin-inline:auto ne bi centrirao ceo blok. */
.hero-content > * { max-width: 46rem; }
.hero h1 { color: #fff; font-size: var(--step-5); text-shadow: 0 2px 30px rgb(0 0 0 / 0.35); }
.hero .eyebrow { color: var(--clay-300); }
.hero p {
  margin-top: 1rem;
  font-size: var(--step-1);
  color: rgb(255 255 255 / 0.9);
  max-width: 40ch;
  text-shadow: 0 1px 16px rgb(0 0 0 / 0.4);
}
.hero .btn-row { margin-top: 2rem; }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 2rem;
  list-style: none; padding: 0;
}
.hero-badges li {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  font-size: var(--step--1);
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.13);
  border: 1px solid rgb(255 255 255 / 0.22);
  backdrop-filter: blur(6px);
  color: #fff;
}
.hero-badges .icon { width: 1em; height: 1em; }

.hero-dots {
  position: absolute;
  right: max(1rem, 50% - var(--wrap) / 2);
  bottom: clamp(2.5rem, 6vw, 4.5rem);
  display: flex; gap: 0.5rem;
  z-index: 2;
}
.hero-dots button {
  width: 2rem; height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.35);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.hero-dots button[aria-current='true'] { background: #fff; }

/* Scroll hint */
.hero-scroll {
  position: absolute;
  left: 50%; bottom: 1.25rem;
  transform: translateX(-50%);
  color: rgb(255 255 255 / 0.75);
  z-index: 2;
}
.hero-scroll .icon { width: 1.5rem; height: 1.5rem; animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Na uskim ekranima dugmad se slazu vertikalno pa bi ih tackice i strelica
   preklopile - sklanjamo strelicu i spustamo tackice uz levu ivicu. */
@media (max-width: 48rem) {
  .hero-scroll { display: none; }
  .hero-dots { left: 1rem; right: auto; bottom: 1.4rem; }
  .hero-content { padding-bottom: 4.5rem; }
  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn-row .btn { width: 100%; }
}

/* --------------------------- Kartice / sadržaj -------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--pine-300); }

.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }

.card-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card-body h3 { font-size: var(--step-1); }
.card-body p { color: var(--ink-2); font-size: var(--step--1); line-height: 1.6; }
.card-body .arrow-link { margin-top: auto; padding-top: 0.4rem; font-size: var(--step--1); }

.tag {
  position: absolute; top: 0.85rem; left: 0.85rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: rgb(8 21 15 / 0.72);
  color: #fff;
  backdrop-filter: blur(6px);
}

/* Apartman — veliki blok naizmenično */
.unit {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 56rem) {
  .unit { grid-template-columns: 1.05fr 1fr; }
  .unit--reverse .unit-media { order: 2; }
}
.unit-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.unit-media img { width: 100%; height: 100%; object-fit: cover; }
.unit-body h3 { font-size: var(--step-3); }
.unit-body > * + * { margin-top: 1rem; }

.stars { display: inline-flex; gap: 0.15rem; color: var(--clay-500); vertical-align: middle; }
.stars .icon { width: 1rem; height: 1rem; }

.specs {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem;
  list-style: none; padding: 0;
}
.specs li {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-size: var(--step--1);
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.specs .icon { width: 1.05em; height: 1.05em; color: var(--brand); flex: none; }

/* Lista opreme */
.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.6rem 1.25rem;
  list-style: none; padding: 0;
}
.amenities li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.amenities .icon { width: 1.1em; height: 1.1em; margin-top: 0.35em; color: var(--brand); flex: none; }

/* Statistika */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: var(--gap); }
.stat { text-align: center; padding: 1.25rem 0.75rem; }
.stat dt { font-size: var(--step--1); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.stat dd {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  color: var(--brand);
  margin: 0.25rem 0 0;
}

/* Feature (ikonica + tekst) */
.feature { display: grid; gap: 0.75rem; }
.feature-icon {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: var(--radius);
  background: var(--pine-100);
  color: var(--pine-700);
}
:root[data-theme='dark'] .feature-icon,
:root:not([data-theme='light']) .feature-icon { background: var(--pine-800); color: var(--pine-300); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .feature-icon { background: var(--pine-100); color: var(--pine-700); }
}
.feature-icon .icon { width: 1.5rem; height: 1.5rem; }
.feature h3 { font-size: var(--step-1); }
.feature p { color: var(--ink-2); font-size: var(--step--1); line-height: 1.6; }

/* ------------------------------- Galerija ------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
}
.gallery a {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  cursor: zoom-in;
}
.gallery a.is-wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery a.is-tall { grid-row: span 2; aspect-ratio: 3 / 4; }
@media (max-width: 34rem) {
  .gallery a.is-wide { grid-column: span 2; }
  .gallery a.is-tall { grid-row: auto; aspect-ratio: 4 / 3; }
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease), filter 300ms var(--ease);
}
.gallery a::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(8 21 15 / 0.45), transparent 55%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.gallery a:hover img { transform: scale(1.06); }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }

/* Filter dugmad */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.filters button {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.filters button:hover { border-color: var(--brand); color: var(--ink); }
.filters button[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* ------------------------------- Lightbox ------------------------------- */
.lightbox {
  border: 0;
  padding: 0;
  width: 100%; max-width: 100%;
  height: 100%; max-height: 100%;
  background: rgb(6 14 10 / 0.94);
  color: #fff;
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgb(6 14 10 / 0.9); }
.lightbox-inner {
  position: relative;
  width: 100%; height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  gap: 1rem;
}
.lightbox-figure {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100svh - 9rem);
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.5);
}
.lightbox figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: var(--step--1);
  color: rgb(255 255 255 / 0.75);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.25);
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background-color var(--dur) var(--ease);
}
.lightbox-nav:hover { background: rgb(255 255 255 / 0.24); }
.lightbox-prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.lightbox-next { right: clamp(0.5rem, 2vw, 1.5rem); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.25);
  background: rgb(255 255 255 / 0.1);
  color: #fff; cursor: pointer;
}
.lightbox-close:hover { background: rgb(255 255 255 / 0.24); }
.lightbox-nav .icon, .lightbox-close .icon { width: 1.35rem; height: 1.35rem; }
.lightbox-counter { font-size: var(--step--1); color: rgb(255 255 255 / 0.6); font-variant-numeric: tabular-nums; }

/* --------------------------------- Video -------------------------------- */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--pine-900);
  box-shadow: var(--shadow-md);
}
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed--portrait { aspect-ratio: 9 / 16; max-width: 26rem; margin-inline: auto; }
.video-embed video { object-fit: cover; }

/* Facade — YouTube se učitava tek na klik (bez third-party skripti pri loadu) */
.yt-facade { cursor: pointer; border: 0; padding: 0; display: block; width: 100%; }
.yt-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-facade::after {
  content: '';
  position: absolute; inset: 0;
  background: rgb(8 21 15 / 0.25);
  transition: background-color var(--dur) var(--ease);
}
.yt-facade:hover::after { background: rgb(8 21 15 / 0.1); }
.yt-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: grid; place-items: center;
  width: 4.5rem; height: 4.5rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  color: var(--pine-800);
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.35);
  transition: transform var(--dur) var(--ease);
  pointer-events: none;
}
.yt-facade:hover .yt-play { transform: translate(-50%, -50%) scale(1.09); }
.yt-play .icon { width: 1.75rem; height: 1.75rem; margin-left: 3px; }
.video-caption { margin-top: 0.75rem; font-size: var(--step--1); color: var(--muted); }

/* Panel / box */
.panel > h2 { font-size: var(--step-1); }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

/* Istaknuta kontakt kartica */
.contact-card {
  text-align: center;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  align-content: start;
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
}
.contact-card .feature-icon { width: 3.25rem; height: 3.25rem; margin-bottom: 0.25rem; }
.contact-card .feature-icon .icon { width: 1.5rem; height: 1.5rem; }
.contact-card .label {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
}
.contact-card .value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.value:hover { color: var(--brand); }
.contact-card .value--sm { font-size: var(--step-1); }
.contact-card .btn { margin-top: 0.75rem; }

/* Obicna lista linkova (van futera) */
.link-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; margin-top: 0.75rem; }
.link-list a { font-weight: 600; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* --------------------------------- CTA ---------------------------------- */
.cta {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  color: #fff;
  text-align: center;
}
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgb(8 21 15 / 0.85), rgb(23 70 47 / 0.7));
}
.cta h2 { color: #fff; }
.cta p { color: rgb(255 255 255 / 0.85); margin-top: 0.9rem; max-width: 52ch; margin-inline: auto; }
.cta .btn-row { margin-top: 2rem; justify-content: center; }

/* ------------------------------- Dešavanja ------------------------------ */
.timeline { display: grid; gap: 0.5rem; }
.event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.event:last-child { border-bottom: 0; }
.event-date {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--brand);
  white-space: nowrap;
}
.event-title { font-size: var(--step-0); }
.event-meta { font-size: var(--step--1); color: var(--muted); margin-top: 0.15rem; }

.month-head {
  display: flex; align-items: center; gap: 1rem;
  margin: 2.25rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}
.month-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.month-head:first-child { margin-top: 0; }

/* -------------------------------- Footer -------------------------------- */
.site-footer {
  background: var(--pine-950);
  color: rgb(230 240 234 / 0.78);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  margin-top: var(--section-y);
  font-size: var(--step--1);
}
.site-footer h2, .site-footer h3 { color: #fff; font-size: var(--step-0); font-family: var(--font-sans); font-weight: 650; letter-spacing: 0.02em; }
.footer-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.footer-brand { max-width: 34ch; }
.footer-brand .brand-name { color: #fff; font-size: 1.15rem; }
.footer-brand .brand-tag { color: rgb(230 240 234 / 0.55); }
.footer-brand p { margin-top: 1rem; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 0.6rem; margin-top: 1rem; }
.footer-links a { color: rgb(230 240 234 / 0.78); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: grid; gap: 0.7rem; margin-top: 1rem; list-style: none; padding: 0; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact .icon { width: 1.05em; height: 1.05em; margin-top: 0.4em; color: var(--pine-300); flex: none; }
.footer-contact a { color: rgb(230 240 234 / 0.85); text-decoration: none; }
.footer-contact a:hover { color: #fff; }

.socials { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.socials a {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.16);
  color: rgb(230 240 234 / 0.8);
  transition: all var(--dur) var(--ease);
}
.socials a:hover { background: var(--pine-700); border-color: var(--pine-500); color: #fff; transform: translateY(-2px); }
.socials .icon { width: 1.1rem; height: 1.1rem; }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between; align-items: center;
  color: rgb(230 240 234 / 0.55);
  font-size: 0.82rem;
}
.footer-bottom a { color: inherit; }

/* --------------------------- Reveal on scroll --------------------------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  }
  [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* --------------------------------- Print -------------------------------- */
@media print {
  .site-header, .site-footer, .hero-dots, .hero-scroll, .btn, .filters { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; color: #000; }
}
