/* ==========================================================================
   Vila Lanterna — style.css
   1. Fontovi          6. Hero i pretraga      11. Kalendar i upit
   2. Varijable        7. Sekcije početne      12. Lightbox
   3. Osnova           8. Kartice apartmana    13. Lokacija i karta
   4. Komponente       9. Lista apartmana      14. Kontakt i FAQ
   5. Zaglavlje       10. Stranica apartmana   15. Podnožje, 404, animacije
   ========================================================================== */

/* ---------- 1. Fontovi (lokalni, bez vanjskih servisa) ---------- */
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/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: 100 900; font-display: swap;
  src: url('/fonts/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;
}
@font-face {
  font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url('/fonts/fraunces-latin-italic.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: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/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: 100 900; font-display: swap;
  src: url('/fonts/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;
}

/* ---------- 2. Varijable ---------- */
:root {
  --bg: #faf7f1;
  --surface: #ffffff;
  --sand: #f0eadd;
  --sand-deep: #e2d9c8;
  --ink: #13232e;
  --ink-soft: #3c4c57;
  --muted: #66757f;
  --line: #e4ddcf;
  --sea: #0e4d6c;
  --sea-dark: #0a3549;
  --sea-tint: #e3eef3;
  --lamp: #d99a2b;
  --danger: #b3261e;
  --ok: #1d6b4a;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 18px 50px -24px rgba(19, 35, 46, .35);
  --header-h: 76px;
}

/* ---------- 3. Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: -.015em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sea); color: #fff; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

/* ---------- 4. Komponente ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sea);
}
.eyebrow::before { content: ''; width: 2rem; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 44ch; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .lead { margin-top: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .7rem 1.5rem; border: 1px solid transparent; border-radius: 999px;
  font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn--primary { background: var(--sea); color: #fff; }
.btn--primary:hover { background: var(--sea-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sand); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--sea); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .15rem; }
.link-arrow svg { width: 1em; height: 1em; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

.field { display: grid; gap: .4rem; }
.field label, .field__label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .65rem .9rem; background: var(--surface);
  border: 1px solid var(--sand-deep); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-tint); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field__error { font-size: .85rem; color: var(--danger); }
.note { font-size: .85rem; color: var(--muted); }
.demo-note { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; background: var(--sand); border-radius: var(--radius); font-size: .85rem; color: var(--ink-soft); }
.demo-note svg { width: 1.1rem; height: 1.1rem; flex: none; margin-top: .15rem; color: var(--lamp); }

/* ---------- 5. Zaglavlje ---------- */
.concept-bar { background: var(--ink); color: #dfe7ec; font-size: .8rem; text-align: center; padding: .5rem var(--gutter); line-height: 1.4; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 247, 241, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.logo__mark { width: 2.1rem; height: 2.1rem; color: var(--sea); flex: none; }
.logo__mark .lamp { fill: var(--lamp); }
.logo__text { display: grid; line-height: 1.1; }
.logo__name { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.01em; }
.logo__sub { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nav__link { position: relative; font-size: .95rem; font-weight: 500; text-decoration: none; padding-block: .5rem; }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: var(--sea); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav__link:hover::after, .nav__link[aria-current='page']::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { color: var(--sea); }
.header-tools { display: flex; align-items: center; gap: 1rem; }
.lang { display: inline-flex; border: 1px solid var(--sand-deep); border-radius: 999px; padding: 2px; background: var(--surface); }
.lang__btn { border: 0; background: transparent; min-width: 2.4rem; height: 2rem; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.lang__btn:hover { color: var(--ink); }
.lang__btn[aria-pressed='true'] { background: var(--ink); color: #fff; }
.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--sand-deep); border-radius: 50%; background: var(--surface); align-items: center; justify-content: center; }
.nav-toggle svg { width: 1.2rem; height: 1.2rem; }
.header-cta { min-height: 2.6rem; padding: .5rem 1.2rem; font-size: .88rem; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem;
    display: none; box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 1rem; }
}
@media (min-width: 961px) { .nav .btn { display: none; } }
@media (max-width: 420px) { .logo__sub { display: none; } .logo__name { font-size: 1.15rem; } }

/* ---------- 6. Hero i pretraga ---------- */
.hero { position: relative; isolation: isolate; color: #fff; display: grid; align-items: end; min-height: min(86vh, 820px); padding-block: clamp(3rem, 8vw, 6rem) clamp(6rem, 10vw, 8rem); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 30, 42, .25) 0%, rgba(10, 30, 42, .1) 35%, rgba(10, 30, 42, .78) 100%); }
.hero .eyebrow { color: #fff; }
.hero h1 { max-width: 17ch; text-wrap: balance; }
.hero__lead { margin-top: 1.5rem; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .9); }

.search-wrap { position: relative; z-index: 2; margin-top: clamp(-4.5rem, -6vw, -3.25rem); }
.search {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 1rem; align-items: end;
  background: var(--surface); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; box-shadow: var(--shadow);
}
.search .btn { min-height: 3rem; }
.search__error { grid-column: 1 / -1; }
@media (max-width: 820px) { .search { grid-template-columns: 1fr 1fr; } .search .btn { grid-column: 1 / -1; } }
@media (max-width: 440px) { .search { grid-template-columns: 1fr; } }

/* ---------- 7. Sekcije početne ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.intro__text p + p { margin-top: 1.1rem; }
.intro__text h2 { margin-bottom: 1.5rem; max-width: 16ch; text-wrap: balance; }
.intro__text p { color: var(--ink-soft); max-width: 52ch; }
.intro__media { position: relative; padding-bottom: 14%; padding-left: 14%; }
.intro__media img { border-radius: var(--radius); }
.intro__img-a { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.intro__img-b { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border: 8px solid var(--bg); box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.stat__n { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; color: var(--sea); margin-bottom: .5rem; white-space: nowrap; }
.stat__l { font-size: .88rem; color: var(--muted); line-height: 1.4; display: block; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .intro__media { order: -1; max-width: 520px; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; gap: 1.25rem; } .stat { display: flex; align-items: baseline; gap: 1rem; } .stat__n { min-width: 5.5rem; margin: 0; } }

.incl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.incl__item { background: var(--bg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.incl__icon { width: 2rem; height: 2rem; color: var(--sea); margin-bottom: 1.1rem; }
.incl__item h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin-bottom: .35rem; }
.incl__item p { font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .incl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .incl { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split__text h2 { margin-bottom: 1.25rem; text-wrap: balance; }
.split__text .lead { margin-bottom: 2rem; }
.dist { display: grid; gap: .75rem; margin-bottom: 2rem; }
.dist li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); font-size: .98rem; }
.dist span:last-child { color: var(--muted); white-space: nowrap; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.review { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 1.75rem; border-top: 2px solid var(--sea); }
.review p { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.45; font-style: italic; }
.review footer { margin-top: auto; font-size: .88rem; color: var(--muted); font-weight: 500; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

.cta-band { position: relative; isolation: isolate; color: #fff; text-align: center; padding-block: clamp(5rem, 11vw, 9rem); }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(10, 30, 42, .55); }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 44ch; margin: 0 auto 2rem; color: rgba(255, 255, 255, .9); font-size: 1.1rem; }

/* ---------- 8. Kartice apartmana ---------- */
.apt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.2vw, 2rem); }
.apt-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .apt-grid, .apt-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .apt-grid, .apt-grid--3 { grid-template-columns: 1fr; } }
.apt-card { position: relative; display: flex; flex-direction: column; }
.apt-card__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--sand); }
.apt-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.apt-card:hover .apt-card__media img { transform: scale(1.05); }
.apt-card__body { padding-top: 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.apt-card__meta { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.apt-card h3 a { text-decoration: none; }
.apt-card h3 a::after { content: ''; position: absolute; inset: 0; }
.apt-card__tag { font-size: .95rem; color: var(--ink-soft); }
.apt-card__price { margin-top: auto; padding-top: .75rem; font-size: .95rem; color: var(--muted); }
.apt-card__price strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; color: var(--ink); }

/* ---------- 9. Lista apartmana ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 1rem; }
.page-head .lead { max-width: 56ch; }
.filterbar { display: grid; grid-template-columns: 1fr 1fr 1fr auto auto; gap: 1rem; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
.filterbar__msg { grid-column: 1 / -1; }
@media (max-width: 860px) { .filterbar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .filterbar { grid-template-columns: 1fr; } }
.list-meta { margin: 2rem 0 1.25rem; font-size: .9rem; color: var(--muted); }
.apt-list { display: grid; gap: 1.5rem; }
.apt-row { position: relative; display: grid; grid-template-columns: minmax(240px, 400px) 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.apt-row:hover { box-shadow: var(--shadow); border-color: var(--sand-deep); }
.apt-row__media { overflow: hidden; background: var(--sand); min-height: 260px; }
.apt-row__media img { width: 100%; height: 100%; object-fit: cover; }
.apt-row__body { padding: clamp(1.25rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: .75rem; }
.apt-row h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.apt-row h2 a { text-decoration: none; }
.apt-row h2 a::after { content: ''; position: absolute; inset: 0; }
.apt-row__facts { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; padding: .25rem .7rem; border: 1px solid var(--sand-deep); border-radius: 999px; font-size: .8rem; color: var(--ink-soft); background: var(--bg); }
.apt-row__foot { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; border-top: 1px solid var(--line); }
.apt-row__price strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; }
.apt-row__price span { display: block; font-size: .85rem; color: var(--muted); }
.apt-row__price em { font-style: normal; font-size: .9rem; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; }
.status::before { content: ''; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.status--ok { color: var(--ok); }
.status--no { color: var(--danger); }
.status--warn { color: #8a5a00; }
.apt-row.is-unavailable .apt-row__media img { filter: grayscale(.7); opacity: .75; }
.apt-row .btn { position: relative; z-index: 1; }
@media (max-width: 720px) { .apt-row { grid-template-columns: 1fr; } .apt-row__media { aspect-ratio: 16 / 10; min-height: 0; } }

/* ---------- 10. Stranica apartmana ---------- */
.crumb { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.crumb:hover { color: var(--sea); }
.crumb svg { width: 1em; height: 1em; }
.apt-head { padding-block: clamp(2rem, 4vw, 3.25rem) 1.75rem; }
.apt-head h1 { font-size: clamp(2.3rem, 4.6vw, 3.75rem); margin-bottom: .75rem; }
.apt-head__tag { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .6rem; aspect-ratio: 16 / 7.5; position: relative; }
.gallery__item { position: relative; overflow: hidden; border: 0; padding: 0; background: var(--sand); border-radius: var(--radius); cursor: zoom-in; }
.gallery__item:first-child { grid-row: 1 / -1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery--4 .gallery__item:nth-child(4) { grid-column: 2 / -1; }
.gallery__all { position: absolute; right: 1rem; bottom: 1rem; min-height: 2.5rem; padding: .4rem 1rem; font-size: .85rem; box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; }
  .gallery__item { aspect-ratio: 4 / 3; }
  .gallery__item:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
  .gallery--4 .gallery__item:nth-child(4) { grid-column: auto; }
  .gallery--4 .gallery__item:nth-child(n+4), .gallery--5 .gallery__item:nth-child(n+4) { display: none; }
}

.apt-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-block: clamp(2.5rem, 5vw, 4rem) var(--section); }
.apt-main > section + section { margin-top: clamp(2.25rem, 4vw, 3.25rem); padding-top: clamp(2.25rem, 4vw, 3.25rem); border-top: 1px solid var(--line); }
.apt-main h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 1.25rem; }
.apt-main p { color: var(--ink-soft); max-width: 62ch; }
.apt-main p + p { margin-top: 1rem; }
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem 1.5rem; }
.amenities li { display: flex; align-items: center; gap: .75rem; font-size: .98rem; }
.amenities svg { width: 1.15rem; height: 1.15rem; color: var(--sea); flex: none; }
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 460px; }
.price-table th, .price-table td { text-align: left; padding: .85rem .75rem .85rem 0; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price-table td:nth-child(3) { font-family: var(--font-display); font-size: 1.2rem; }
.price-table + .note, .table-wrap + .note { margin-top: 1rem; }
.rules { display: grid; gap: .65rem; }
.rules li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); }
.rules li::before { content: ''; position: absolute; left: 0; top: .7em; width: .7rem; height: 1px; background: var(--sea); }
.apt-layout > * { min-width: 0; }
@media (max-width: 980px) { .apt-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 11. Kalendar i upit ---------- */
.booking { position: sticky; top: calc(var(--header-h) + 1.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 2.5vw, 1.75rem); box-shadow: var(--shadow); }
@media (max-width: 980px) { .booking { position: static; } }
.booking__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.booking__top h2 { font-size: 1.35rem; }
.booking__from { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.booking__from strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--ink); }
.booking__hint { font-size: .9rem; color: var(--sea); font-weight: 500; min-height: 1.5em; margin-bottom: .75rem; }
.booking__hint.is-error { color: var(--danger); }

.cal__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.cal__title { font-family: var(--font-display); font-size: 1.15rem; text-transform: capitalize; }
.cal__btn { width: 2.4rem; height: 2.4rem; border: 1px solid var(--sand-deep); border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; }
.cal__btn:hover:not([disabled]) { background: var(--sand); }
.cal__btn[disabled] { opacity: .35; cursor: not-allowed; }
.cal__btn svg { width: 1rem; height: 1rem; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; }
.cal__wd { text-align: center; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: .5rem; }
.cal__day { position: relative; aspect-ratio: 1; border: 0; background: transparent; font-size: .92rem; font-variant-numeric: tabular-nums; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0; }
.cal__day:hover:not([disabled]):not(.is-start):not(.is-end) { background: var(--sea-tint); }
.cal__day[disabled] { cursor: not-allowed; color: #b6bfc5; }
.cal__day.is-booked { color: #a7b0b6; text-decoration: line-through; background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(19, 35, 46, .06) 4px 5px); border-radius: 0; }
.cal__day.is-today::after { content: ''; position: absolute; bottom: 14%; width: 4px; height: 4px; border-radius: 50%; background: var(--lamp); }
.cal__day.is-range { background: var(--sea-tint); border-radius: 0; }
.cal__day.is-start, .cal__day.is-end { background: var(--sea); color: #fff; font-weight: 600; text-decoration: none; }
.cal__day.is-start.has-end { border-radius: 50% 0 0 50%; }
.cal__day.is-end { border-radius: 0 50% 50% 0; }
.cal__day.is-checkout-only { color: var(--ink); text-decoration: none; cursor: pointer; }
.cal__legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.cal__legend span { display: inline-flex; align-items: center; gap: .45rem; }
.cal__legend i { width: .9rem; height: .9rem; border-radius: 3px; border: 1px solid var(--sand-deep); }
.cal__legend .l-booked { background: repeating-linear-gradient(135deg, #fff 0 3px, rgba(19, 35, 46, .18) 3px 4px); }
.cal__legend .l-selected { background: var(--sea); border-color: var(--sea); }

.booking__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 1.25rem; }
.booking__date { background: var(--bg); padding: .65rem .85rem; }
.booking__date span { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.booking__date strong { font-weight: 500; font-size: .98rem; }
.booking .field { margin-top: 1rem; }
.quote { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; font-size: .95rem; }
.quote__row { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-soft); }
.quote__row small { color: var(--muted); font-size: .8rem; }
.quote__total { margin-top: .5rem; padding-top: .85rem; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); align-items: baseline; }
.quote__total span:last-child { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; }
.booking__actions { display: grid; gap: .75rem; margin-top: 1.25rem; }
.text-btn { border: 0; background: none; padding: .25rem; font-size: .88rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; justify-self: center; }
.text-btn:hover { color: var(--ink); }
.booking__summary { background: var(--bg); border-radius: var(--radius); padding: .9rem 1rem; font-size: .92rem; margin-bottom: 1.25rem; display: grid; gap: .2rem; }
.booking__summary strong { font-weight: 600; }
.form-grid { display: grid; gap: 1rem; }
.confirm { text-align: center; padding: 1rem 0; }
.confirm__icon { width: 3.25rem; height: 3.25rem; margin: 0 auto 1.25rem; color: var(--ok); }
.confirm h3 { margin-bottom: .75rem; }
.confirm p { color: var(--ink-soft); font-size: .95rem; }
.confirm__ref { margin: 1.25rem 0; padding: .9rem; background: var(--sand); border-radius: var(--radius); font-size: .85rem; color: var(--muted); }
.confirm__ref strong { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; color: var(--ink); letter-spacing: .04em; }

/* ---------- 12. Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: #fff; }
.lightbox::backdrop { background: rgba(8, 20, 28, .94); }
.lightbox__stage { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 1rem clamp(1rem, 4vw, 3rem) 1.5rem; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; padding-bottom: .75rem; }
.lightbox__figure { min-height: 0; display: flex; align-items: center; justify-content: center; }
.lightbox__figure img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox__caption { text-align: center; padding-top: .9rem; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.lightbox__btn { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox__btn:focus-visible { outline-color: #fff; }
.lightbox__btn svg { width: 1.2rem; height: 1.2rem; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lightbox__nav--next { right: clamp(.5rem, 2vw, 1.5rem); }

/* ---------- 13. Lokacija i karta ---------- */
.map-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 1.5rem; align-items: stretch; }
.map { min-height: 520px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sand); z-index: 0; }
.poi-list { display: grid; gap: .6rem; align-content: start; }
.poi { width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .2s, box-shadow .2s; }
.poi:hover, .poi.is-active { border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-tint); }
.poi__n { grid-row: 1 / 3; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sea-tint); color: var(--sea); display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; }
.poi--house .poi__n { background: var(--sea); color: #fff; }
.poi__n svg { width: 1rem; height: 1rem; }
.poi__name { font-weight: 600; display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.poi__name small { font-weight: 500; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.poi__desc { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.map-note { margin-top: 1rem; }
@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; } .map { min-height: 380px; } }

.vl-pin { background: var(--surface); color: var(--sea); border: 2px solid var(--sea); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 13px/1 var(--font-body); box-shadow: 0 4px 12px rgba(19, 35, 46, .3); }
.vl-pin--house { background: var(--sea); color: #fff; width: 40px; height: 40px; }
.vl-pin--house svg { width: 20px; height: 20px; }
.vl-pin.is-active { background: var(--lamp); border-color: var(--lamp); color: #fff; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper { border-radius: var(--radius-lg); }
.leaflet-popup-content { margin: .85rem 1rem; font-size: .9rem; line-height: 1.45; }
.leaflet-popup-content strong { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; margin-bottom: .15rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); counter-reset: step; }
.step { padding-top: 1.5rem; border-top: 1px solid var(--ink); counter-increment: step; }
.step::before { content: '0' counter(step); display: block; font-family: var(--font-display); font-size: 1rem; color: var(--sea); margin-bottom: .75rem; }
.step h3 { margin-bottom: .6rem; }
.step p { color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.around { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.around__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.25rem; }
.around__item h3 { margin-bottom: .5rem; }
.around__item p { color: var(--ink-soft); max-width: 50ch; }
@media (max-width: 680px) { .around { grid-template-columns: 1fr; } }

/* ---------- 14. Kontakt i FAQ ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__list { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
.contact__list dt { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.contact__list dd { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.35; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--sea); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.card h2 { font-size: 1.6rem; margin-bottom: 1.5rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 1.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: .7rem; height: .7rem; border-right: 1.5px solid var(--sea); border-bottom: 1.5px solid var(--sea); transform: rotate(45deg); transition: transform .25s; flex: none; margin-right: .35rem; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 2.5rem 1.5rem 0; color: var(--ink-soft); max-width: 68ch; }

/* ---------- 15. Podnožje, 404, animacije ---------- */
.site-footer { background: var(--ink); color: #c8d3da; padding-block: clamp(3rem, 6vw, 5rem) 2rem; font-size: .95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.site-footer .logo { color: #fff; margin-bottom: 1rem; }
.site-footer .logo__mark { color: #fff; }
.site-footer .logo__sub { color: #93a4ae; }
.site-footer h2 { font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #93a4ae; margin-bottom: 1rem; }
.site-footer li + li { margin-top: .5rem; }
.footer-about { max-width: 34ch; }
.footer-bottom { padding-top: 1.75rem; display: grid; gap: .5rem; font-size: .82rem; color: #93a4ae; }
.footer-bottom strong { color: #e9c26d; font-weight: 500; }
.footer-bottom a { color: #fff; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--section); }
.notfound__code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 10rem); line-height: 1; color: var(--sea-tint); -webkit-text-stroke: 1px var(--sea); }
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); margin: 1rem 0; }
.notfound p { color: var(--ink-soft); margin-bottom: 2rem; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
