/* ==========================================================================
   Felix apartmani – „Odmor među vinogradima”
   Urednički seoski boutique: papir, tinta, terakota (crijep), maslina (vinograd).
   Redoslijed: tokeni → osnova → tipografija → komponente → animacije → smanjeno kretanje
   ========================================================================== */

/* ---------- Tokeni ---------- */
:root {
  --paper: #f4eee3;
  --paper-2: #eae0cf;
  --paper-3: #ded0b8;
  --ink: #2a211b;
  --ink-soft: #6e5f52;
  --ink-faint: #8f8072;
  --terracotta: #b25a36;
  --terracotta-deep: #964829;
  --terracotta-light: #e09a74;
  --olive: #5c6744;
  --olive-light: #b7bf98;
  --forest: #232b1d;
  --forest-2: #2e3826;
  --cream: #efe6d6;
  --line: rgba(42, 33, 27, .14);
  --line-strong: rgba(42, 33, 27, .28);
  --line-light: rgba(239, 230, 214, .18);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t1: .6s;
  --t2: 1s;
  --t3: 1.6s;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1320px;
  --header-h: 84px;
  --section: clamp(5.5rem, 11vw, 9.5rem);
  --radius: 3px;
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  -webkit-text-size-adjust: 100%;
}
html:has(dialog[open]) { overflow: hidden; }

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

/* zrnatost papira preko cijele stranice */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
figure { margin: 0; }
[hidden] { display: none !important; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .7rem 1rem; background: var(--ink); color: var(--paper); border-radius: var(--radius);
  text-decoration: none; transition: top .3s var(--ease);
}
.skip:focus { top: 1rem; }

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

/* placeholderi – vidljivi samo uz ?ph u URL-u */
.show-ph .ph { outline: 2px dashed #e0a100; outline-offset: 2px; background: #fff3c4; color: var(--ink); }

/* ---------- Tipografija ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 360;
  font-variation-settings: "SOFT" 100;
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(3.3rem, 9.2vw, 8.4rem); font-weight: 320; line-height: .94; letter-spacing: -.025em; }
h2 { font-size: clamp(2.4rem, 5.4vw, 4.8rem); }
h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
h1 em, h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--terracotta);
}

.lead { font-size: clamp(1.08rem, 1.3vw, 1.22rem); color: var(--ink-soft); max-width: 36em; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}

/* oznaka sekcije: „01 — Smještaj” */
.label {
  display: flex; align-items: center; gap: .85rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.6rem;
}
.label__num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.05rem; letter-spacing: 0; text-transform: none;
  color: var(--terracotta);
}
.label::after {
  content: ""; width: 56px; height: 1px; background: currentColor; opacity: .45;
  transform-origin: left; transition: transform 1.4s var(--ease) .25s;
}

/* ---------- Gumbi i poveznice ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.05rem 1.7rem;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 .92rem/1 var(--sans); letter-spacing: .03em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--solid { background: var(--terracotta); color: #fff8ef; }
.btn--solid:hover { background: var(--terracotta-deep); }
.btn--line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn--sm { padding: .78rem 1.15rem; font-size: .84rem; }
.btn .icon { width: 1em; height: 1em; }

.link {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 0 0 .3rem; border: 0; background: none; cursor: pointer;
  font: 600 .95rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1px;
  transition: background-size .7s var(--ease), color .4s;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link .icon { width: 1.05em; height: 1.05em; transition: transform .6s var(--ease); }
.link:hover .icon { transform: translateX(4px); }
.link--light { color: var(--cream); }

/* društvene mreže (Facebook, Instagram) */
.social { display: flex; flex-wrap: wrap; gap: .6rem; }
.social__link {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .7rem 1.15rem .7rem .9rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .88rem; font-weight: 600; letter-spacing: .02em; text-decoration: none;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.social__link .icon { width: 18px; height: 18px; }
.social__link:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.social--round .social__link { width: 46px; height: 46px; padding: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--header-h);
  color: #fff8ef;
  transition: translate .6s var(--ease), background-color .5s, color .5s, box-shadow .5s;
}
.header.is-solid {
  background: rgba(244, 238, 227, .9);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { translate: 0 -100%; }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin: 0; }
.logo__name {
  font-family: var(--serif); font-style: italic; font-weight: 420;
  font-variation-settings: "SOFT" 100; font-size: 2.05rem; letter-spacing: -.02em;
}
.logo__sub { font-size: .64rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; margin-top: .3rem; opacity: .8; }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav__list { display: flex; gap: 2rem; }
.nav__list a {
  font-size: .93rem; font-weight: 500; text-decoration: none; letter-spacing: .02em;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 100% 100%; background-size: 0 1px;
  padding-bottom: .25rem;
  transition: background-size .6s var(--ease);
}
.nav__list a:hover { background-size: 100% 1px; background-position: 0 100%; }
.nav__cta { padding: .85rem 1.35rem; }

.lang { display: flex; gap: .15rem; font-size: .74rem; font-weight: 700; letter-spacing: .12em; }
.lang__btn {
  border: 0; background: none; cursor: pointer; padding: .4rem .35rem;
  opacity: .5; transition: opacity .3s;
  font-weight: 700;
}
.lang__btn:hover, .lang__btn.is-active { opacity: 1; }
.lang__btn.is-active { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; }

.nav__social { display: none; }

.burger {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }

@media (max-width: 1000px) {
  .burger { display: block; }
  .header .logo { position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 2.4rem;
    justify-content: safe center;   /* ako sadržaj ne stane, počinje od vrha umjesto da se odreže */
    /* sadržaj počinje ispod loga i križića; na niskim ekranima izbornik se može skrolati */
    padding: calc(var(--header-h) + 1.25rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--paper); color: var(--ink);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .8s var(--ease), visibility 0s .8s;
  }
  .nav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease); }
  .nav__list { flex-direction: column; align-items: center; gap: 1.1rem; }
  .nav__list a { font-family: var(--serif); font-size: 2.2rem; font-weight: 340; font-variation-settings: "SOFT" 100; letter-spacing: -.01em; }
  .nav__list li { opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease), translate .8s var(--ease); }
  .nav.is-open .nav__list li { opacity: 1; translate: 0 0; }
  .nav.is-open .nav__list li:nth-child(2) { transition-delay: .05s; }
  .nav.is-open .nav__list li:nth-child(3) { transition-delay: .1s; }
  .nav.is-open .nav__list li:nth-child(4) { transition-delay: .15s; }
  .nav.is-open .nav__list li:nth-child(5) { transition-delay: .2s; }
  .nav__social { display: flex; }
  /* niži mobiteli (npr. iPhone SE ili ekran smanjen trakom preglednika) */
  @media (max-height: 740px) {
    .nav { gap: 1.6rem; }
    .nav__list { gap: .55rem; }
    .nav__list a { font-size: 1.85rem; }
  }
  /* bez translate/backdrop-filter na headeru, inače fiksni izbornik ostaje zarobljen u visini headera */
  .menu-open .header {
    color: var(--ink); background: transparent; box-shadow: none;
    translate: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 600px; max-height: 1080px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: var(--forest);
  color: #fff8ef;
}
.hero__slides { position: absolute; inset: 0; animation: heroIn 2.6s var(--ease) both; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--t3) var(--ease-io); }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide:first-child img { object-position: 55% 60%; }
.hero__slide.is-active img,
.hero__slide.is-leaving img { animation: kenburns 9s linear both; }

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 16, 12, .55) 0%, rgba(20, 16, 12, 0) 24%),
    linear-gradient(90deg, rgba(20, 16, 12, .5) 0%, rgba(20, 16, 12, .18) 45%, rgba(20, 16, 12, 0) 70%),
    linear-gradient(0deg, rgba(20, 16, 12, .82) 0%, rgba(20, 16, 12, .38) 42%, rgba(20, 16, 12, 0) 72%);
}

.hero__content { position: relative; z-index: 2; padding-bottom: clamp(7.5rem, 15vh, 10rem); }
.hero__title { max-width: 12ch; margin-bottom: 1.6rem; }
/* eyebrow unutar h1 – vraća izgled samostalne oznake iznad naslova */
.hero__title .eyebrow {
  display: block; width: max-content; max-width: calc(100vw - 2 * var(--gutter));
  font-family: var(--sans); font-variation-settings: normal; line-height: 1.65;
}
.hero__words { display: block; }
.hero__title em { color: #f3d3b8; }
.hero__title .line { display: block; overflow: hidden; padding: .08em 0 .14em; margin: -.08em 0 -.14em; }
.hero__title .line > span { display: block; translate: 0 108%; animation: rise 1.5s var(--ease) .3s forwards; }
.hero__title .line + .line > span { animation-delay: .45s; }
.hero__lead { max-width: 33em; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255, 248, 239, .88); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; margin-top: 2.2rem; }
.hero__in { opacity: 0; animation: fadeUp 1.3s var(--ease) .95s forwards; }
.hero__actions.hero__in { animation-delay: 1.1s; }

.hero__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  padding: 0 0 clamp(1.4rem, 3.5vh, 2.2rem);
  font-size: .8rem; letter-spacing: .06em;
}
.hero__bar.hero__in { animation-delay: 1.3s; }
.hero__controls { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.hero__dots { display: flex; gap: .45rem; }
.hero__dot {
  position: relative; width: 34px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer;
}
.hero__dot::before, .hero__fill {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px;
  background: rgba(255, 248, 239, .3);
}
.hero__fill { background: #fff8ef; transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active .hero__fill { animation: progress 7s linear forwards; }
.hero.is-paused .hero__fill,
.hero.is-paused .hero__slide img { animation-play-state: paused; }
.hero__pause {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid rgba(255, 248, 239, .35); border-radius: 50%; background: none; cursor: pointer;
  transition: border-color .3s, background-color .3s;
}
.hero__pause:hover { border-color: #fff8ef; background: rgba(255, 248, 239, .1); }
.hero__pause .icon { width: 14px; height: 14px; }
.hero__pause .icon--play,
.hero__pause[aria-pressed="true"] .icon--pause { display: none; }
.hero__pause[aria-pressed="true"] .icon--play { display: block; }
.hero__caption {
  margin: 0; padding-left: .4rem; color: rgba(255, 248, 239, .8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .35s, translate .5s var(--ease);
}
.hero__caption.is-changing { opacity: 0; translate: 0 6px; }
.hero__rating { margin: 0; color: rgba(255, 248, 239, .8); white-space: nowrap; }
.hero__rating .star { color: #f3d3b8; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 0; z-index: 2;
  width: 24px; height: 64px; margin-left: -12px;
  color: #fff8ef; transition: opacity .6s;
}
.scroll-cue span { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255, 248, 239, .3); }
.scroll-cue span::after {
  content: ""; position: absolute; left: -2px; top: 0; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  animation: cue 2.6s var(--ease-io) infinite;
}
.scrolled .scroll-cue { opacity: 0; pointer-events: none; }

@media (max-width: 760px) {
  .hero__rating, .scroll-cue { display: none; }
  .hero__content { padding-bottom: 6.5rem; }
}

/* ---------- Sekcije ---------- */
.section { padding: var(--section) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head--split {
  max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end;
}
.section-head--split h2 { margin: 0; }
.section-head--split .lead { margin: 0; justify-self: end; max-width: 26em; }
@media (max-width: 760px) {
  .section-head--split { grid-template-columns: 1fr; }
  .section-head--split .lead { justify-self: start; }
}

/* zajednički okvir za fotografije (otkrivanje „zavjesom”) */
.media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--arch { border-radius: 999px 999px var(--radius) var(--radius); }

/* ---------- Dobrodošli ---------- */
.intro__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem;
  align-items: center;
}
.intro__media { grid-column: 1 / span 5; aspect-ratio: 3 / 4; }
.intro__text { grid-column: 7 / span 6; }
.intro__statement {
  font-family: var(--serif); font-weight: 320; font-variation-settings: "SOFT" 100;
  font-size: clamp(1.7rem, 3.1vw, 2.75rem); line-height: 1.22; letter-spacing: -.012em;
  margin-bottom: 1.6rem;
}
.intro__statement em { font-style: italic; color: var(--terracotta); }
.intro__body { color: var(--ink-soft); max-width: 34em; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  border-top: 1px solid var(--line);
}
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .35rem; padding: 1.4rem 1rem 0 0; }
.fact + .fact { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.fact dd {
  font-family: var(--serif); font-weight: 300; font-variation-settings: "SOFT" 100;
  font-size: clamp(2.3rem, 3.8vw, 3.4rem); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.fact dt { font-size: .82rem; color: var(--ink-soft); line-height: 1.35; }

@media (max-width: 960px) {
  .intro__media { grid-column: 1 / -1; width: min(72%, 420px); justify-self: center; }
  .intro__text { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n + 3) { margin-top: 1.4rem; border-top: 1px solid var(--line); }
}

/* ---------- Traka s riječima ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: clamp(1.1rem, 2.2vw, 1.8rem) 0;
  user-select: none;
}
.marquee__track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.6rem); padding-right: clamp(1.4rem, 3vw, 2.6rem);
  font-family: var(--serif); font-style: italic; font-weight: 300; font-variation-settings: "SOFT" 100;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.1; white-space: nowrap;
  color: var(--ink);
}
.marquee__group i {
  width: .32em; height: .32em; flex: none;
  background: var(--terracotta);
  border-radius: 0 60% 0 60%;          /* listić */
  transform: rotate(-12deg);
}

/* ---------- 01 Smještaj: pločice ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.75rem); }
.tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 5 / 4; color: #fff8ef; text-decoration: none;
  isolation: isolate;
}
.tile__media { position: absolute; inset: 0; border-radius: 0; transition: scale 1.6s var(--ease); }
.tile:hover .tile__media { scale: 1.04; }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(20, 16, 12, .75) 0%, rgba(20, 16, 12, .2) 45%, rgba(20, 16, 12, 0) 70%);
  transition: opacity .8s var(--ease);
}
.tile__body { position: absolute; left: 0; right: 4.5rem; bottom: 0; z-index: 2; padding: clamp(1.4rem, 3vw, 2.4rem); }
.tile__addr { font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-bottom: .6rem; opacity: .85; }
.tile__title { font-size: clamp(1.8rem, 3vw, 2.7rem); margin-bottom: .4rem; }
.tile__meta { margin: 0; font-size: .92rem; opacity: .8; }
.tile__go {
  position: absolute; right: clamp(1.4rem, 3vw, 2.4rem); bottom: clamp(1.4rem, 3vw, 2.4rem); z-index: 2;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 248, 239, .5);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s;
}
.tile__go .icon { transition: transform .6s var(--ease); }
.tile:hover .tile__go { background: #fff8ef; color: var(--ink); border-color: #fff8ef; }
.tile:hover .tile__go .icon { transform: translateX(3px); }
.tile__badge {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2;
  padding: .45rem .8rem; border-radius: 999px;
  background: rgba(244, 238, 227, .92); color: var(--ink);
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
}
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 4 / 3.4; }
}

/* ---------- Kuće ---------- */
.house { padding-top: calc(var(--section) * .6); }
.house + .house { border-top: 1px solid var(--line); padding-top: var(--section); }
.house__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: center; }
.house__media { grid-column: 1 / span 6; position: relative; padding-bottom: 14%; }
.house__text { grid-column: 8 / span 5; }
.house--mirror .house__media { grid-column: 7 / span 6; grid-row: 1; }
.house--mirror .house__text { grid-column: 1 / span 5; grid-row: 1; }

.house__main { width: 78%; aspect-ratio: 4 / 5; }
.house__inset {
  position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 3;
  box-shadow: 0 0 0 10px var(--paper);
}
.house--mirror .house__main { margin-left: auto; }
.house--mirror .house__inset { right: auto; left: 0; }

.house__intro { color: var(--ink-soft); font-size: 1.08rem; max-width: 32em; }
.features {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.6rem;
  margin: 2rem 0 2.2rem; border-top: 1px solid var(--line);
}
.features li {
  position: relative; padding: .85rem 0 .85rem 1.25rem;
  border-bottom: 1px solid var(--line); font-size: .95rem;
}
.features li::before {
  content: ""; position: absolute; left: 0; top: 1.3rem;
  width: 7px; height: 7px; background: var(--olive); border-radius: 0 60% 0 60%;
}
.house__meta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.house__links { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; }
.rating { display: flex; align-items: center; gap: .9rem; margin: 0; }
.rating__num {
  font-family: var(--serif); font-weight: 300; font-variation-settings: "SOFT" 100;
  font-size: 3rem; line-height: 1; color: var(--terracotta); letter-spacing: -.02em;
}
.rating__label { font-size: .8rem; line-height: 1.35; color: var(--ink-soft); max-width: 9.5em; }

@media (max-width: 960px) {
  .house__media, .house--mirror .house__media { grid-column: 1 / -1; grid-row: auto; max-width: 620px; padding-bottom: 18%; }
  .house__text, .house--mirror .house__text { grid-column: 1 / -1; grid-row: auto; }
  .house--mirror .house__main { margin-left: 0; }
  .house--mirror .house__inset { left: auto; right: 0; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .house__inset { box-shadow: 0 0 0 6px var(--paper); }
}

/* ---------- Drone video (Kletište) ---------- */
.film { position: relative; margin: clamp(4rem, 8vw, 6.5rem) 0 0; }
.film__frame {
  position: relative; overflow: hidden; aspect-ratio: 21 / 9; border-radius: var(--radius);
  background: var(--forest);
}
.film__video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .8s var(--ease-io);
}
/* kratko zatamnjenje kad se petlja vraća na početak */
.film.is-fading .film__video { opacity: 0; }
.film__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(20, 16, 12, .55) 0%, rgba(20, 16, 12, 0) 38%);
}
.film__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: clamp(1rem, 2.4vw, 1.6rem) clamp(1.1rem, 2.6vw, 1.9rem);
  color: #fff8ef;
}
.film__label {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.film__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta-light); }
.film:not(.is-paused).is-playing .film__dot { animation: pulse 2.4s var(--ease-io) infinite; }
.film__toggle {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; flex: none;
  border: 1px solid rgba(255, 248, 239, .45); border-radius: 50%; background: rgba(20, 16, 12, .25);
  cursor: pointer; transition: background-color .3s, border-color .3s;
}
.film__toggle:hover { background: rgba(255, 248, 239, .14); border-color: #fff8ef; }
.film__toggle .icon { width: 16px; height: 16px; }
.film__toggle .icon--play,
.film__toggle[aria-pressed="true"] .icon--pause { display: none; }
.film__toggle[aria-pressed="true"] .icon--play { display: block; }
@media (max-width: 760px) {
  .film__frame { aspect-ratio: 4 / 3; }
  .film__label { min-width: 0; font-size: .68rem; letter-spacing: .12em; }
}

/* ---------- Apartmani (kartice) ---------- */
.apts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 2.6vw, 2.6rem);
  margin-top: clamp(4rem, 8vw, 6.5rem);
}
.apt { display: flex; flex-direction: column; min-width: 0; }
.apt__media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; text-align: left; overflow: hidden; border-radius: var(--radius);
}
.apt__frame { aspect-ratio: 4 / 3; transition: scale 1.6s var(--ease); }
.apt__media:hover .apt__frame { scale: 1.035; }
.apt__img { position: absolute; inset: 0; }
.apt__img--alt { opacity: 0; transition: opacity .9s var(--ease-io); }
.apt__media:hover .apt__img--alt { opacity: 1; }
.apt__count {
  position: absolute; left: .9rem; top: .9rem;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .65rem; border-radius: 999px;
  background: rgba(244, 238, 227, .92); color: var(--ink);
  font-size: .78rem; font-weight: 700;
}
.apt__count .icon { width: 14px; height: 14px; }
.apt__view {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.1rem 1rem;
  background: linear-gradient(0deg, rgba(20, 16, 12, .65), rgba(20, 16, 12, 0));
  color: #fff8ef; font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  translate: 0 100%; transition: translate .7s var(--ease);
}
.apt__media:hover .apt__view, .apt__media:focus-visible .apt__view { translate: 0 0; }

.apt__body { display: flex; flex-direction: column; flex: 1; padding-top: 1.5rem; }
.apt__tag {
  position: absolute; right: .9rem; top: .9rem;
  padding: .38rem .7rem; border-radius: 999px;
  background: var(--terracotta); color: #fff8ef;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.apt__name { font-size: clamp(1.9rem, 2.6vw, 2.4rem); margin-bottom: .55rem; }
.apt__sub { display: block; margin-top: .3rem; font-family: var(--sans); font-size: .85rem; font-weight: 500; letter-spacing: .04em; color: var(--ink-soft); }
.apt__sub:empty { display: none; }
.apt__desc { color: var(--ink-soft); font-size: .98rem; }
.apt__meta {
  margin-bottom: .6rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--olive);
}
.apt__beds { border-top: 1px solid var(--line); margin-bottom: 1rem; }
.apt__beds li { padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.apt__tags { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-bottom: 1.6rem; font-size: .83rem; color: var(--ink-soft); }
.apt__tags li { position: relative; }
.apt__tags li + li::before { content: "·"; position: absolute; left: -.6rem; color: var(--ink-faint); }
.apt__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }

@media (hover: none) {
  .apt__view { display: none; }
}
/* bez JS-a: vodoravni niz kartica */
@media (max-width: 959px) {
  .apts {
    display: flex; gap: 1.1rem; align-items: flex-start;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .5rem;
    scrollbar-width: none;
  }
  .apts::-webkit-scrollbar { display: none; }
  .apt { flex: 0 0 min(46%, 420px); scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .apt { flex-basis: 84%; }
}

/* mobitel i tablet: slideshow (JS dodaje .apts-slider) – imena apartmana gore,
   jedan apartman na cijeloj širini, strelice na fotografiji i swipe */
.apts-hint, .apts-tabs, .apts-arrows { display: none; }
@media (max-width: 959px) {
  .apts-slider { margin-top: clamp(4rem, 8vw, 6.5rem); }
  .apts-hint {
    display: block; margin: 0 0 .8rem;
    font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    color: var(--olive);
  }
  .apts-tabs {
    position: relative; display: flex; gap: .25rem;
    margin-bottom: 1.25rem; padding: .25rem;
    border: 1px solid var(--line-strong); border-radius: 999px;
    overflow-x: auto; scrollbar-width: none;
  }
  .apts-tabs::-webkit-scrollbar { display: none; }
  .apts-tab {
    flex: 1 0 auto; padding: .72rem 1rem;
    border: 0; border-radius: 999px; background: none; cursor: pointer;
    font-size: .88rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
    color: var(--ink-soft);
    transition: background-color .5s var(--ease), color .5s var(--ease);
  }
  .apts-tab:hover { color: var(--ink); }
  .apts-tab[aria-current="true"] { background: var(--ink); color: var(--paper); }
  .apts-tab:focus-visible { outline-offset: -2px; }

  .apts-stage { position: relative; }
  .apts-slider .apts { position: relative; gap: var(--gutter); margin: 0; padding: 0; scroll-padding-inline: 0; }
  .apts-slider .apt { flex-basis: 100%; scroll-snap-stop: always; }

  /* strelice leže točno preko fotografije (ista širina i omjer 4:3) */
  .apts-arrows {
    position: absolute; top: 0; left: 0; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; aspect-ratio: 4 / 3; padding: 0 .75rem;
    pointer-events: none;
  }
  .apts-arrow {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; cursor: pointer; pointer-events: auto;
    background: rgba(244, 238, 227, .92); color: var(--ink);
    box-shadow: 0 8px 20px -10px rgba(20, 16, 12, .6);
    transition: opacity .4s var(--ease), visibility 0s, scale .4s var(--ease);
  }
  .apts-arrow:active { scale: .92; }
  .apts-arrow:disabled { opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
  .apts-arrow .icon { width: 18px; height: 18px; stroke-width: 1.8; }
}
/* uski mobiteli: sva tri imena stanu u red */
@media (max-width: 380px) {
  .apts-tab { padding-inline: .6rem; font-size: .84rem; }
}
/* tablet: fotografija lijevo, opis desno */
@media (min-width: 601px) and (max-width: 959px) {
  .apts-slider .apt { display: grid; grid-template-columns: 54% 1fr; column-gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
  .apts-slider .apt__body { padding-top: 0; }
  .apts-arrows { width: 54%; }
}

/* ---------- 02 Proslave ---------- */
.events { background: var(--forest); color: var(--cream); }
.events .label { color: var(--olive-light); }
.events .label__num, .events h2 em { color: var(--terracotta-light); }
.events__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: center; }
.events__media { grid-column: 1 / span 7; position: relative; padding: 0 0 12% 0; }
.events__main { width: 86%; aspect-ratio: 4 / 3; }
.events__arch {
  position: absolute; right: 0; bottom: 0; width: 34%; aspect-ratio: 3 / 4;
  box-shadow: 0 0 0 10px var(--forest);
}
.events__text { grid-column: 9 / span 4; }
.events__intro { color: rgba(239, 230, 214, .78); font-size: 1.05rem; }
.occasions { margin: 2rem 0 1.4rem; border-top: 1px solid var(--line-light); }
.occasions li {
  padding: .8rem 0; border-bottom: 1px solid var(--line-light);
  font-family: var(--serif); font-weight: 340; font-variation-settings: "SOFT" 100;
  font-size: 1.3rem;
}
.events__note { color: rgba(239, 230, 214, .7); font-size: .93rem; }
.events__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.8rem; margin-top: 2rem; }
.events .media { background: var(--forest-2); }

@media (max-width: 960px) {
  .events__media { grid-column: 1 / -1; max-width: 680px; }
  .events__text { grid-column: 1 / -1; }
}

/* ---------- Sadržaji ---------- */
.amenities { padding-bottom: calc(var(--section) * .7); }
.amenity-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.amenity-grid li {
  display: flex; flex-direction: column; gap: .35rem;
  padding: clamp(1.4rem, 2.6vw, 2.2rem) clamp(1rem, 2vw, 1.6rem);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.amenity-grid .icon { width: 30px; height: 30px; color: var(--olive); stroke-width: 1.25; margin-bottom: .9rem; }
.amenity-grid strong { font-family: var(--serif); font-weight: 400; font-variation-settings: "SOFT" 100; font-size: 1.22rem; line-height: 1.2; }
.amenity-grid span { font-size: .84rem; color: var(--ink-soft); }
@media (max-width: 860px) { .amenity-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 03 Galerija ---------- */
.gallery { background: var(--paper-2); }
.mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 250px); grid-auto-flow: dense;
  gap: clamp(.5rem, 1vw, .9rem);
}
.mosaic__item { padding: 0; border: 0; cursor: zoom-in; }
.mosaic__item img { transition: scale 1.6s var(--ease), filter .6s; }
.mosaic__item:hover img { scale: 1.05; }
.mosaic__item--wide { grid-column: span 2; }
.mosaic__item--tall { grid-row: span 2; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
}
.follow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.75rem); padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.follow__text {
  margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 340; font-variation-settings: "SOFT" 100;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.3;
}

/* ---------- 04 Okolica ---------- */
.hills {
  display: block; width: 100%; height: auto; margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}
.hills .hills__vine { stroke: var(--olive); stroke-width: 1.6; }
.hills .hills__sun { stroke: var(--terracotta); }
.hills__label {
  fill: var(--ink-soft); stroke: none;
  font-family: var(--serif); font-style: italic; font-size: 17px; letter-spacing: .02em;
  transition: opacity 1.2s var(--ease) 1.4s;
}
@media (max-width: 600px) {
  /* ilustracija se jako smanji – deblje linije, bez sitnih natpisa */
  .hills { stroke-width: 3; }
  .hills .hills__vine { stroke-width: 3.6; }
  .hills__label { display: none; }
}
.distances { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.distances li { display: flex; flex-direction: column; gap: .3rem; padding: 1.6rem 1.4rem 0 0; }
.distances li + li { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.distances__km {
  font-family: var(--serif); font-weight: 300; font-variation-settings: "SOFT" 100;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1; color: var(--terracotta); letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.distances strong { font-weight: 600; }
.distances span:last-child { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .distances { grid-template-columns: 1fr 1fr; }
  .distances li:nth-child(3) { padding-left: 0; border-left: 0; }
  .distances li:nth-child(n + 3) { margin-top: 1.6rem; border-top: 1px solid var(--line); }
}

/* ---------- Česta pitanja ---------- */
.faq { background: var(--paper-2); }
.faq__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; }
.faq__head { grid-column: 1 / span 5; align-self: start; }
.faq__list { grid-column: 7 / span 6; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 400; font-variation-settings: "SOFT" 100;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.3;
  transition: color .3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none;
  font-family: var(--sans); font-size: 1.5rem; line-height: 1; color: var(--terracotta);
  transition: rotate .4s var(--ease);
}
.faq__item[open] summary::after { rotate: 45deg; }
.faq__item summary:hover { color: var(--terracotta); }
.faq__item p { margin: 0 0 1.4rem; max-width: 40em; color: var(--ink-soft); }
.faq__item a { color: var(--ink); font-weight: 600; transition: color .3s; }
.faq__item a:hover { color: var(--terracotta); }
@media (max-width: 960px) {
  .faq__head, .faq__list { grid-column: 1 / -1; }
}

/* ---------- 05 Kontakt ---------- */
.contact { border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; }
.contact__text { grid-column: 1 / span 6; }
.contact__maps { grid-column: 8 / span 5; display: grid; gap: 1.2rem; align-content: start; }
.contact h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.contact__book { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2.2rem 0 2.8rem; }
.contact__list { border-top: 1px solid var(--line); max-width: 560px; }
.contact__list > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact__list dt { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); align-self: center; }
.contact__list a { font-weight: 600; text-decoration: none; word-break: break-word; transition: color .3s; }
.contact__list a:hover { color: var(--terracotta); }

.map {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius);
  background-color: var(--paper-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240' fill='none' stroke='%232a211b' stroke-opacity='.09'%3E%3Cpath d='M-20 60c40-30 80 10 120-10s70-40 160-10M-20 110c50-25 90 15 130-5s80-35 150-5M-20 160c45-20 85 20 135 0s75-30 145 0M-20 210c55-25 95 10 140-5s70-25 140 5'/%3E%3C/svg%3E");
}
.map__ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 1.5rem; }
.map__pin { width: 30px; height: 30px; color: var(--terracotta); margin-bottom: .7rem; }
.map__addr { margin: 0 0 .2rem; font-family: var(--serif); font-size: 1.3rem; font-variation-settings: "SOFT" 100; }
.map__addr strong { font-weight: 500; }
.map__note { font-size: .86rem; color: var(--ink-soft); margin-bottom: 1rem; }
.map__actions { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.12) saturate(.9); animation: fadeIn .8s var(--ease); }
.map.is-loaded .map__ph { visibility: hidden; }
.map__privacy { margin: 0; font-size: .8rem; color: var(--ink-faint); }

@media (max-width: 960px) {
  .contact__text, .contact__maps { grid-column: 1 / -1; }
  .contact__maps { grid-template-columns: 1fr 1fr; }
  .map__privacy { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .contact__maps { grid-template-columns: 1fr; }
  .contact__list > div { grid-template-columns: 1fr; gap: .2rem; }
  .contact__book .btn { flex: 1 1 100%; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding: clamp(3rem, 7vw, 5rem) 0 2rem; overflow: hidden; }
.footer__word {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  font-family: var(--serif); font-style: italic; font-weight: 300; font-variation-settings: "SOFT" 100;
  font-size: clamp(6rem, 25vw, 21rem); line-height: .8; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(239, 230, 214, .32);
}
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-light); }
.footer__brand { font-family: var(--serif); font-size: 1.4rem; font-variation-settings: "SOFT" 100; margin-bottom: .3rem; }
.footer__small { font-size: .88rem; opacity: .65; }
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: .45rem; font-size: .93rem; }
.footer a { text-decoration: none; opacity: .82; transition: opacity .3s; }
.footer a:hover { opacity: 1; }
.footer__social { margin-top: 1.4rem; }
.footer .social__link { border-color: var(--line-light); opacity: 1; }
.footer .social__link:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.footer__legal { margin: 1.4rem 0 0; font-size: .8rem; opacity: .5; }
@media (max-width: 760px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:first-child { grid-column: 1 / -1; }
  .footer { padding-bottom: 6.5rem; }
}

/* ---------- Ljepljiva traka (mobitel) ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none; align-items: center; gap: .6rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(244, 238, 227, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  translate: 0 110%; visibility: hidden;
  transition: translate .6s var(--ease), visibility 0s .6s;
}
.sticky-bar.is-visible { translate: 0 0; visibility: visible; transition: translate .6s var(--ease); }
.sticky-bar .btn { flex: 1; }
.sticky-bar__icon {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%; text-decoration: none;
}
@media (max-width: 760px) { .sticky-bar { display: flex; } }

/* ---------- Modal: izbor kuće ---------- */
.modal {
  width: min(600px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 0; border-radius: 6px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 100px -20px rgba(20, 16, 12, .5);
}
.modal[open] { animation: modalIn .7s var(--ease); }
.modal::backdrop { background: rgba(20, 16, 12, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .5s; }
.modal h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 1.4rem; }
.modal .label { margin-bottom: 1rem; }
.modal__close {
  position: absolute; top: 1rem; right: 1rem;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink-soft);
  transition: background-color .3s;
}
.modal__close:hover { background: var(--paper-2); }
.choices { display: grid; gap: .8rem; }
.choice {
  display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 1.1rem;
  padding: .65rem 1.1rem .65rem .65rem;
  border: 1px solid var(--line); border-radius: 4px; text-decoration: none;
  transition: border-color .4s, background-color .4s;
}
.choice:hover { border-color: var(--ink); background: rgba(255, 253, 249, .5); }
.choice img { width: 96px; height: 72px; object-fit: cover; border-radius: 2px; }
.choice__text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.choice strong { font-family: var(--serif); font-weight: 450; font-variation-settings: "SOFT" 100; font-size: 1.25rem; }
.choice small { font-size: .84rem; color: var(--ink-soft); }
.choice > .icon { transition: transform .6s var(--ease); }
.choice:hover > .icon { transform: translate(2px, -2px); }
.modal__note { margin: 1.4rem 0 0; font-size: .86rem; color: var(--ink-soft); }
@media (max-width: 480px) {
  .choice { grid-template-columns: 72px 1fr; }
  .choice img { width: 72px; height: 56px; }
  .choice > .icon { display: none; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(18, 14, 10, .96); color: var(--cream);
  touch-action: pan-y pinch-zoom;
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: fadeIn .5s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 4.5rem 4.5rem 0; }
.lightbox__img {
  max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain;
  border-radius: 2px; user-select: none; -webkit-user-drag: none;
  transition: opacity .45s var(--ease), scale .9s var(--ease);
}
.lightbox.is-loading .lightbox__img { opacity: 0; scale: .985; }
.lightbox__bar { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.6rem 1.5rem; font-size: .85rem; letter-spacing: .06em; }
.lightbox__title { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; letter-spacing: 0; }
.lightbox__count { margin: 0; opacity: .7; font-variant-numeric: tabular-nums; }
.lightbox__btn {
  position: fixed; display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 1px solid rgba(239, 230, 214, .25); border-radius: 50%; background: rgba(18, 14, 10, .4); cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.lightbox__btn:hover { background: rgba(239, 230, 214, .12); border-color: rgba(239, 230, 214, .6); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .lightbox__stage { padding: 4.2rem .6rem 0; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 4.6rem; translate: none; width: 46px; height: 46px; }
}

/* ==========================================================================
   Animacije
   ========================================================================== */

/* pojavljivanje teksta pri skrolanju (samo kad radi JS) */
.js .js-reveal {
  opacity: 0; translate: 0 18px;
  transition: opacity 1.1s var(--ease), translate 1.1s var(--ease);
}
.js .js-reveal.is-in { opacity: 1; translate: 0 0; }
.js .js-stagger > * {
  opacity: 0; translate: 0 14px;
  transition: opacity .9s var(--ease), translate .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 85ms);
}
.js .js-stagger.is-in > * { opacity: 1; translate: 0 0; }
.js .label::after { transform: scaleX(0); }
.js .label.is-in::after { transform: none; }

/* fotografije se otkrivaju „zavjesom” i smiruju iz povećanja.
   clip-path je na slici, ne na okviru: IntersectionObserver prati okvir,
   a okvir s clip-path: inset(100%) Chrome bi računao kao nevidljiv. */
.js .media img {
  clip-path: inset(100% 0 0 0); scale: 1.12;
  transition: clip-path 1.5s var(--ease), scale 2s var(--ease), opacity .9s var(--ease-io);
}
.js .media.is-in img { clip-path: inset(0 0 0 0); scale: 1; }
/* hover povećanja nakon otkrivanja */
.js .mosaic__item.is-in:hover img { scale: 1.05; }

/* video se otkriva istom „zavjesom” kao fotografije (clip-path na unutarnjem okviru, .film se promatra) */
.js .film__frame { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease); }
.js .film.is-in .film__frame { clip-path: inset(0 0 0 0); }
.js .film__bar { opacity: 0; transition: opacity 1s var(--ease) .7s; }
.js .film.is-in .film__bar { opacity: 1; }

/* paralaksa preko CSS scroll-driven animacija (bez JS-a) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .media--plx img {
      position: absolute; left: 0; top: -8%; height: 116%;
      animation: parallax linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

/* ilustracija koja se sama crta */
.js .draw path, .js .draw circle {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 140ms);
}
.js .draw.is-in path, .js .draw.is-in circle { stroke-dashoffset: 0; }
.js .draw .hills__label { opacity: 0; }
.js .draw.is-in .hills__label { opacity: 1; }

@keyframes heroIn { from { scale: 1.12; } to { scale: 1; } }
@keyframes kenburns { from { scale: 1; } to { scale: 1.08; } }
@keyframes rise { to { translate: 0 0; } }
@keyframes fadeUp { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes cue {
  0% { translate: 0 0; opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { translate: 0 59px; opacity: 0; }
}
@keyframes marquee { to { translate: -50% 0; } }
@keyframes parallax { from { translate: 0 -6%; } to { translate: 0 6%; } }
@keyframes modalIn { from { opacity: 0; translate: 0 18px; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Smanjeno kretanje ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .marquee__track, .scroll-cue { animation: none !important; }
  .scroll-cue, .hero__pause { display: none; }
  .js .js-reveal, .js .js-stagger > * { opacity: 1; translate: none; }
  .js .label::after { transform: none; }
  .js .media img { clip-path: none; scale: 1; }
  .js .film__frame { clip-path: none; }
  .js .film__bar { opacity: 1; }
  .js .draw path, .js .draw circle { stroke-dashoffset: 0; }
  .js .draw .hills__label { opacity: 1; }
}
