/* =============================================================================
   TEMA "voyage" — stylesheet.

   GORNJI DIO JE DEMO CSS U CIJELOSTI I NEIZMIJENJEN (RD: demo_pages/demo_web_pages/
   apartmani-voyage/assets/css/style.css, stil Ville Kovač) — upute prema demo pageu §6.4.
   Sve što tema dodaje stoji u bloku „TEMA VOYAGE — DODACI" na dnu i ne gazi RD selektore
   (§4.1). RD na vrhu već ima `[hidden] { display: none !important; }` (upute §8a).
   ============================================================================= */

/* Delfin Villa Sofia — varijanta u stilu Ville Kovač (kopija villa-kovac/assets/css/style.css).
   One full-screen photo, everything (nav, content) opens OVER it; the content lives in a frosted
   sheet that slides up over the photo. Additions for a multi-unit house are in the block
   "multi-unit additions" near the end. */

:root {
  --navy: #0b1f2e;
  --navy-2: #12304a;
  --ink: #17232d;
  --sea: #1f6f8b;
  --sea-2: #2f9fbf;
  --gold: #c9a45c;
  --gold-2: #e2c688;
  --gold-3: #f4e8cc;
  --paper: #fbfaf7;
  --paper-2: #f3f0e9;
  --muted: #61707c;
  --line: rgba(23, 35, 45, .1);
  --line-2: rgba(23, 35, 45, .18);
  --busy: #d5665a;
  --free: #e9f2ee;
  --font-d: "Fraunces", Georgia, "Times New Roman", serif;
  --font-b: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --top-h: 84px;
  --radius: 18px;
  --shadow: 0 30px 80px rgba(3, 12, 20, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow: hidden;              /* the page never scrolls — the sheet does */
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 500; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
ul, dl { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; } /* wins over .posts/.sec display rules */
::selection { background: var(--gold-2); color: var(--navy); }

/* ===================== hero photo ===================== */
.hero { position: fixed; inset: 0; z-index: 0; background: var(--navy); }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
  will-change: opacity, transform;
}
.hero__slide.is-on { opacity: 1; animation: kenburns 11s linear forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 15, 25, .55) 0%, rgba(5, 15, 25, 0) 30%),
    linear-gradient(0deg, rgba(5, 15, 25, .78) 0%, rgba(5, 15, 25, .25) 45%, rgba(5, 15, 25, 0) 70%),
    linear-gradient(90deg, rgba(5, 15, 25, .35) 0%, rgba(5, 15, 25, 0) 55%);
  transition: background .6s ease;
}
body.has-panel .hero__shade { background: rgba(5, 15, 25, .45); }
body.has-panel .hero__slide.is-on { animation-play-state: paused; }

/* ===================== header ===================== */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 clamp(18px, 3vw, 44px);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 14px; line-height: 1; white-space: nowrap; }
.brand__mark { height: 48px; width: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35)); }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-d); font-size: 26px; letter-spacing: .01em; font-weight: 500; }
.brand__name b { font-weight: 600; color: var(--gold-2); }
.brand__sub { margin-top: 5px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.brand__stars { color: var(--gold); letter-spacing: .12em; margin-right: 4px; }

.nav { display: flex; gap: 4px; }
.nav a {
  position: relative; padding: 8px 12px; font-size: 13.5px; font-weight: 500; letter-spacing: .04em;
  opacity: .88; transition: opacity .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1.5px;
  background: var(--gold-2); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.top__right { display: flex; align-items: center; gap: 14px; }
.top__book { display: inline-flex; }

/* language dropdown */
.langdd { position: relative; }
.langdd__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px); cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  transition: background .2s;
}
.langdd__btn:hover { background: rgba(255, 255, 255, .18); }
.langdd__chev { transition: transform .25s; }
.langdd.is-open .langdd__chev { transform: rotate(180deg); }
.langdd__list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  background: #fff; color: var(--ink); border-radius: 12px; padding: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.langdd.is-open .langdd__list { opacity: 1; transform: none; pointer-events: auto; }
.langdd__list li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  font-size: 14px; cursor: pointer;
}
.langdd__list li:hover { background: var(--paper-2); }
.langdd__list li.is-cur { background: var(--gold-3); }
.langdd__code { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--sea); width: 22px; }

/* burger + mobile nav */
.burger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.burger span { width: 24px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav {
  position: fixed; inset: 0; z-index: 35; padding: calc(var(--top-h) + 16px) 28px 40px;
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(8, 24, 36, .92); backdrop-filter: blur(14px); color: #fff;
  opacity: 0; pointer-events: none; transition: opacity .3s;
  overflow-y: auto; overscroll-behavior: contain; /* meni duži od ekrana mora se skrolati — body se nikad ne skrola */
}
.mnav.is-open { opacity: 1; pointer-events: auto; }
/* otvoren meni: header dobiva podlogu menija, pa se linkovi skrolaju ISPOD njega, ne preko loga */
body:has(.mnav.is-open) .top { background: rgba(8, 24, 36, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mnav a {
  font-family: var(--font-d); font-size: 26px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.mnav a.is-active { color: var(--gold-2); }

/* ===================== buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; letter-spacing: .03em; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 30px rgba(201, 164, 92, .3); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.top__book { padding: 10px 20px; }

/* ===================== home overlay ===================== */
.home {
  position: fixed; inset: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  padding: calc(var(--top-h) + 20px) clamp(18px, 3vw, 44px) 56px;
  color: #fff;
  transition: opacity .5s ease, transform .6s var(--ease);
}
body.has-panel .home { opacity: 0; transform: translateY(-16px); pointer-events: none; }
.home__content { max-width: 720px; }
.home__eyebrow {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2);
  margin-bottom: 14px; animation: rise .8s var(--ease) both;
}
.home__title {
  font-size: clamp(50px, 7.6vw, 104px); font-weight: 400; letter-spacing: -.015em; line-height: .98;
  margin-bottom: 16px; animation: rise .8s .1s var(--ease) both;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .35);
}
.home__tagline {
  font-size: clamp(16px, 1.4vw, 19px); max-width: 560px; opacity: .92; line-height: 1.55;
  margin-bottom: 26px; animation: rise .8s .2s var(--ease) both;
}
.home__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; animation: rise .8s .3s var(--ease) both; }
.home__stats {
  display: flex; flex-wrap: wrap; gap: 0 32px; animation: rise .8s .4s var(--ease) both;
}
.home__stats li { display: flex; flex-direction: column; padding: 4px 0; border-left: 1px solid rgba(255, 255, 255, .3); padding-left: 14px; }
.home__stats b { font-family: var(--font-d); font-size: 26px; font-weight: 500; line-height: 1; }
.home__stats span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.home__side { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; animation: rise .8s .5s var(--ease) both; }
.slider { text-align: right; }
.slider__cap { font-family: var(--font-d); font-style: italic; font-size: 17px; opacity: .85; margin: 0 0 10px; min-height: 22px; }
.slider__ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.slider__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s;
}
.slider__btn:hover { background: rgba(255, 255, 255, .22); }
.slider__dots { display: flex; gap: 6px; }
.slider__dots button {
  width: 26px; height: 3px; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .35);
  cursor: pointer; padding: 0; overflow: hidden; position: relative;
}
.slider__dots button::after {
  content: ""; position: absolute; inset: 0; background: var(--gold-2); transform: scaleX(0); transform-origin: left;
}
.slider__dots button.is-on::after { animation: fill 7s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.home__explore {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; opacity: .85;
}
.home__explore svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.home__foot {
  grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px;
  margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: 12px; opacity: .65;
}
.dev a { color: var(--gold-2); }
.dev a:hover { text-decoration: underline; }

/* ===================== the sheet (content panel) ===================== */
.panel {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--top-h); z-index: 30;
  display: flex; justify-content: center; padding: 0 clamp(0px, 2vw, 32px);
  pointer-events: none;
}
.panel__sheet {
  position: relative; width: min(1180px, 100%); height: 100%;
  background: rgba(251, 250, 247, .94);
  backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
  transform: translateY(104%); transition: transform .65s var(--ease);
  overflow: hidden;
}
body.has-panel .panel { pointer-events: auto; }
body.has-panel .panel__sheet { transform: translateY(0); }
.panel__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .85); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.panel__close:hover { background: var(--navy); color: #fff; transform: rotate(90deg); }
/* Touch: no X — the section closes by pulling it down from the top (main.js).
   The grab handle is the only hint that the sheet can be pulled. */
@media (hover: none) and (pointer: coarse) {
  .panel__close { display: none; }
  .panel__sheet::before {
    content: ""; position: absolute; top: 8px; left: 50%; z-index: 3; transform: translateX(-50%);
    width: 42px; height: 4px; border-radius: 4px; background: rgba(23, 35, 45, .22);
  }
}
.panel__scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.panel__scroll::-webkit-scrollbar { width: 10px; }
.panel__scroll::-webkit-scrollbar-thumb { background: rgba(23, 35, 45, .2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

.sec { padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 72px) 20px; }
.sec[hidden] { display: none; }
.sec__head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 44px); }
.kicker { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--sea); font-weight: 600; margin: 0 0 10px; }
.sec__head h2 { font-size: clamp(36px, 4.4vw, 54px); margin-bottom: 14px; }
.lead { font-size: 18px; line-height: 1.6; color: #2f3d48; }
.sec__sub { font-size: 26px; margin: clamp(30px, 4vw, 48px) 0 18px; }
.center { text-align: center; margin: 30px 0 10px; }
.mt { margin-top: 26px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; }
.card h3 { font-size: 22px; margin-bottom: 14px; }
.card--gold { background: linear-gradient(160deg, #fff8e8, #fff); border-color: rgba(201, 164, 92, .35); }
.card--navy { background: var(--navy); color: #fff; border-color: transparent; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---- about ---- */
.about__intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; margin-bottom: 28px; }
.about__text p { font-size: 16.5px; color: #2f3d48; }
.about__quote { font-family: var(--font-d); font-style: italic; font-size: 20px; color: var(--navy); border-left: 2px solid var(--gold); padding-left: 16px; }
.about__photo { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about__photo img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; }
.about__photo img:first-child { grid-column: 1 / -1; height: 230px; }
.facts { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.facts > * { padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.facts--tight { grid-template-columns: auto 1fr; }
.facts--tight dd { text-align: left; }
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.rooms li { display: flex; align-items: baseline; gap: 10px; font-size: 14px; }
.rooms b { font-family: var(--font-d); font-size: 26px; font-weight: 500; color: var(--sea); line-height: 1; }
.amen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.amen__g { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.amen__g h4 { font-family: var(--font-b); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sea); margin-bottom: 12px; }
.amen__g li { position: relative; padding: 5px 0 5px 20px; font-size: 14px; border-bottom: 1px dashed var(--line); }
.amen__g li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.amen__g li:last-child { border-bottom: 0; }
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.plan__img { margin: 0; } .plan__img img { width: 100%; border-radius: 10px; }
.plan__text h3 { font-size: 24px; margin-bottom: 10px; }
.host { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-top: 40px; padding: 28px; border-radius: 14px; background: var(--navy); color: #fff; }
.host__avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: var(--navy); font-family: var(--font-d); font-size: 26px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.host .kicker { color: var(--gold-2); }
.host h3 { font-size: 26px; margin-bottom: 8px; }
.host p { opacity: .9; }
.host__speaks { font-size: 13px; letter-spacing: .06em; opacity: .7 !important; margin: 0; }
.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testi__c { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; }
.testi__c q { quotes: none; font-family: var(--font-d); font-size: 17px; line-height: 1.45; color: var(--navy); flex: 1; margin-bottom: 16px; }
.testi__stars { color: var(--gold); letter-spacing: .1em; font-size: 13px; margin-bottom: 8px; }
.testi__c b { font-size: 14px; }
.testi__c small { color: var(--muted); font-size: 12.5px; }

/* ---- gallery ---- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s;
}
.filters button:hover { background: var(--paper-2); }
.filters button.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.filters button small { opacity: .6; margin-left: 4px; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gal a {
  position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--paper-2);
}
.gal a:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gal a:hover img { transform: scale(1.05); }
.gal figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: 13px; color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent); opacity: 0; transition: opacity .3s;
}
.gal a:hover figcaption { opacity: 1; }
.gal a.is-hidden { display: none; }

/* ---- pricing ---- */
.price { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.price__table { width: 100%; border-collapse: collapse; }
.price__table th { text-align: left; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 16px 22px; background: var(--paper-2); font-weight: 600; }
.price__table td { padding: 18px 22px; border-top: 1px solid var(--line); font-size: 15px; vertical-align: middle; }
.price__table td:first-child { font-family: var(--font-d); font-size: 19px; color: var(--navy); }
.price__table td:nth-child(3) { font-weight: 700; font-size: 20px; color: var(--sea); white-space: nowrap; }
.price__table tr.is-peak td { background: #fff8e8; }
.price__table tr.is-peak td:first-child::after { content: "★"; color: var(--gold); margin-left: 8px; font-size: 14px; vertical-align: middle; }
.ticks li, .dots li { position: relative; padding: 6px 0 6px 28px; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); }
/* kvačica je OPTIČKI centrirana: vrh „V" (najteži dio) stoji lijevo od središta njezina okvira,
   pa je pomaknuta ~1px udesno od geometrijskog centra (izmjereno na 100 % i 125 % zooma) */
.ticks li::after { content: ""; position: absolute; left: 5.5px; top: 16px; width: 6px; height: 3px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }
.dots li::before { content: ""; position: absolute; left: 6px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--sea); }

/* ---- booking / calendar ---- */
.cal__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.cal__unit { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.cal__unit select, .bform select, .bform input, .bform textarea, .contact input, .contact textarea {
  font: inherit; font-size: 14.5px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink);
  width: 100%;
}
.cal__unit select { width: auto; min-width: 260px; }
.cal__unit select:focus, .bform :focus, .contact :focus { outline: 2px solid var(--sea-2); outline-offset: 1px; }
.cal__legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.cal__legend > span { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line-2); display: inline-block; }
.lg--free { background: var(--free); }
.lg--busy { background: var(--busy); border-color: var(--busy); }
.lg--change { background: linear-gradient(135deg, var(--busy) 50%, var(--free) 50%); }
.cal__note { font-size: 13px; color: var(--muted); margin: 10px 0 18px; }
.cal { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.cal__nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin-top: 4px; }
.cal__nav:hover { background: var(--navy); color: #fff; }
.cal__months { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cal__m { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 14px; }
.cal__m h4 { font-size: 19px; text-align: center; margin-bottom: 10px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { font-size: 11px; text-align: center; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.cal__d { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13.5px; background: var(--free); color: var(--navy); }
.cal__d.is-pad { background: transparent; }
.cal__d.is-past { background: var(--paper-2); color: #b3bcc3; }
.cal__d.is-busy { background: var(--busy); color: #fff; font-weight: 600; }
.cal__d.is-in { background: linear-gradient(135deg, var(--free) 50%, var(--busy) 50%); color: var(--navy); }
.cal__d.is-out { background: linear-gradient(135deg, var(--busy) 50%, var(--free) 50%); color: var(--navy); }
.cal__d.is-in.is-out { background: var(--busy); color: #fff; }
.cal__d.is-today { box-shadow: inset 0 0 0 2px var(--sea); }
.bform { margin-top: 28px; }
.bform label, .contact label { display: block; margin-bottom: 14px; }
.bform label > span, .contact label > span { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.frow { display: grid; gap: 14px; }
.frow--4 { grid-template-columns: 1.6fr 1fr 1fr .7fr; }
.frow--3 { grid-template-columns: 1fr 1fr 1fr; }
.frow--2 { grid-template-columns: 1fr 1fr; }
.fact { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fact small { color: var(--muted); font-size: 12.5px; max-width: 460px; }
.ferr { color: var(--busy); font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.fok { padding: 24px; background: #edf6f1; border-radius: 12px; }
.fok h3 { font-size: 22px; color: #1d6b4a; margin-bottom: 6px; }
.fok p { margin: 0; }

/* ---- area ---- */
.area__pan { margin: 0 0 8px; border-radius: 14px; overflow: hidden; }
.area__pan img { width: 100%; height: 280px; object-fit: cover; }
.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.places--trips { grid-template-columns: repeat(3, 1fr); }
.place { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.place img { width: 100%; height: 160px; object-fit: cover; transition: transform .6s var(--ease); }
.place:hover img { transform: scale(1.04); }
.place__b { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.place__b h4 { font-size: 19px; margin-bottom: 4px; }
.place__d { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); font-weight: 600; margin-bottom: 8px; }
.place__b p { font-size: 14px; color: #3d4a55; margin: 0; }

/* ---- location ---- */
.loc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.loc__map { border-radius: 14px; overflow: hidden; min-height: 420px; border: 1px solid var(--line); }
.loc__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.dist { columns: 1; }
.dist li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.dist li b { white-space: nowrap; color: var(--sea); }
.reach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reach__c { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.reach__c h4 { font-size: 19px; margin-bottom: 8px; }
.reach__c p { font-size: 14px; color: #3d4a55; margin: 0; }
.loc__imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.loc__imgs img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; }
.ship { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: center; margin-top: 32px; background: var(--navy); color: #fff; border-radius: 14px; padding: 26px; }
.ship h3 { font-size: 24px; margin-bottom: 10px; }
.ship p { opacity: .9; margin: 0; }
.ship__video { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.ship__video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- blog ---- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.postc { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 200px 1fr; cursor: pointer; transition: box-shadow .3s, transform .3s var(--ease); }
.postc:hover { box-shadow: 0 16px 40px rgba(11, 31, 46, .12); transform: translateY(-2px); }
.postc img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.postc__b { padding: 20px 22px; display: flex; flex-direction: column; }
.postc__meta, .post__meta { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.postc__meta b, .post__meta b { color: var(--sea); }
.postc h4 { font-size: 21px; margin-bottom: 8px; }
.postc p { font-size: 14px; color: #3d4a55; flex: 1; }
.postc__read { font-size: 13px; font-weight: 600; color: var(--navy); border-bottom: 1.5px solid var(--gold); align-self: flex-start; }
.post { max-width: 780px; }
.post__back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 20px; color: var(--sea); }
.post__hero { width: 100%; height: 380px; object-fit: cover; border-radius: 14px; margin: 14px 0 24px; }
.post h3 { font-size: clamp(30px, 3.6vw, 40px); margin-bottom: 8px; }
.post p { font-size: 17px; color: #2f3d48; }
.post p:first-of-type { font-size: 19px; font-family: var(--font-d); color: var(--navy); }

/* ---- faq ---- */
.faq { max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--font-d); font-size: 19px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-b); font-size: 22px; color: var(--gold); transition: transform .3s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; margin: 0; color: #3d4a55; font-size: 15px; max-width: 700px; }

/* ---- contact ---- */
.contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; align-items: start; }
.contact__card h3 { font-size: 26px; margin: 16px 0 6px; }
.contact__addr { white-space: pre-line; opacity: .85; }
.contact__dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 18px 0; font-size: 15px; }
.contact__dl dt { opacity: .6; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; align-self: center; }
.contact__dl dd { margin: 0; } .contact__dl a { color: var(--gold-2); }
.contact__hours { font-size: 13px; opacity: .7; margin: 0; }

/* ---- panel footer ---- */
.pfoot { padding: 30px clamp(20px, 5vw, 72px) 40px; margin-top: 30px; border-top: 1px solid var(--line); }
.pfoot__nav { display: flex; justify-content: space-between; margin-bottom: 26px; }
.pfoot__nav a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-d); font-size: 19px; color: var(--navy); }
.pfoot__nav a:hover { color: var(--sea); }
.pfoot__mark { height: 34px; width: auto; align-self: center; }
.pfoot__brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.pfoot__brand .brand__name { font-size: 22px; color: var(--navy); } .pfoot__brand .brand__name b { color: var(--gold); }
.pfoot__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; color: var(--muted); }
.pfoot__legal .dev a { color: var(--sea); }

/* ===================== lightbox ===================== */
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(4, 12, 20, .94); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lb.is-open { opacity: 1; pointer-events: auto; }
.lb__fig { margin: 0; max-width: min(1200px, 92vw); text-align: center; color: #fff; }
.lb__fig img { max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb__fig figcaption { margin-top: 12px; font-size: 14px; display: flex; justify-content: center; gap: 18px; opacity: .8; }
.lb__close, .lb__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lb__close { top: 20px; right: 20px; }
.lb__btn { top: 50%; transform: translateY(-50%); }
.lb__btn--prev { left: 20px; } .lb__btn--next { right: 20px; }
.lb__close:hover, .lb__btn:hover { background: rgba(255, 255, 255, .22); }

/* ===================== multi-unit additions (not in villa-kovac) ===================== */
.brand__name b { font-weight: 500; }
.pfoot__mark { height: 46px; } /* the source logo carries small lettering; Kovač's 34 px makes it unreadable */
/* apartments section: one card per unit, photo alternates sides */
.units { display: grid; gap: 22px; }
.unitc { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.unitc:nth-child(even) .unitc__img { order: 2; }
.unitc__img { position: relative; min-height: 380px; border: 0; padding: 0; margin: 0; cursor: pointer; background: var(--paper-2); overflow: hidden; }
.unitc__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.unitc__img:hover img { transform: scale(1.04); }
.unitc__count { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 31, 46, .78); color: #fff; font-size: 12.5px; font-weight: 600; }
.unitc__b { padding: 28px 30px 30px; display: flex; flex-direction: column; }
.unitc__b h3 { font-size: 36px; margin-bottom: 6px; }
.unitc__title { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.unitc__facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 18px; }
.unitc__facts li { display: flex; flex-direction: column; padding-left: 12px; border-left: 1px solid var(--line-2); }
.unitc__facts b { font-family: var(--font-d); font-size: 24px; font-weight: 500; color: var(--sea); line-height: 1.1; }
.unitc__facts span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.unitc__desc { font-size: 15px; color: #2f3d48; }
.unitc__beds { font-size: 14px; margin-bottom: 12px; }
.unitc__beds b { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); margin-right: 8px; }
.unitc .ticks { columns: 2; column-gap: 22px; margin-bottom: 22px; }
.unitc .ticks li { break-inside: avoid; font-size: 14px; }
.unitc__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.btn--line { border-color: var(--line-2); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--paper-2); }
/* services reuse .place cards; the price sits where the distance would */
.places--svc { grid-template-columns: repeat(3, 1fr); }
/* trips without a photo (the source has no photos of the surroundings) */
.place--txt { background: linear-gradient(160deg, #fff8e8, #fff); border-color: rgba(201, 164, 92, .35); }
.place--txt .place__b { padding: 22px 22px 24px; }
/* rates: one column per unit, the season cell carries its period */
.price__table--units tr.is-peak td:first-child::after { display: none; } /* star is inline after the name instead (main.js) */
.price__table--units .peak { color: var(--gold); font-size: 14px; margin-left: 8px; vertical-align: middle; }
.price__table--units td:first-child small { display: block; font-family: var(--font-b); font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.price__table--units th small { display: block; font-size: 10.5px; letter-spacing: .1em; font-weight: 500; text-transform: none; margin-top: 2px; }
.price__table--units td:nth-child(n+2) { font-weight: 700; font-size: 19px; color: var(--sea); white-space: nowrap; }
.host__quote { font-family: var(--font-d); font-style: italic; font-size: 19px; opacity: 1 !important; color: var(--gold-3); }
/* ===================== demo notice — themed to this page ===================== */
#demo-notice {
  --dn-bg: rgba(251, 250, 247, .96);
  --dn-color: #0b1f2e;
  --dn-muted: #61707c;
  --dn-accent: #c9a45c;
  --dn-accent-hover: #b08e46;
  --dn-accent-color: #0b1f2e;
  --dn-border: rgba(201, 164, 92, .4);
  --dn-radius: 14px;
  --dn-shadow: 0 24px 60px rgba(3, 12, 20, .4);
  --dn-font: "Manrope", system-ui, sans-serif;
}

/* ===================== responsive ===================== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: flex; }
  .amen, .places { grid-template-columns: repeat(2, 1fr); }
  .places--trips { grid-template-columns: repeat(3, 1fr); }
  .testi { grid-template-columns: 1fr; }
  .reach { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --top-h: 68px; }
  .brand__name { font-size: 22px; }
  .brand { gap: 10px; } .brand__mark { height: 38px; }
  .top__book { display: none; }
  .home { grid-template-columns: 1fr; padding-bottom: 28px; }
  .home__side { align-items: flex-start; margin-top: 22px; gap: 14px; }
  .slider { text-align: left; } .slider__ctrl { justify-content: flex-start; }
  .home__explore { display: none; }
  .home__stats { gap: 0 18px; } .home__stats b { font-size: 24px; }
  .home__foot { font-size: 11px; }
  .panel { padding: 0; }
  .panel__sheet { border-radius: 14px 14px 0 0; }
  .grid2, .about__intro, .plan, .loc, .ship, .contact { grid-template-columns: 1fr; }
  .about__photo img:first-child { height: 200px; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .gal a:nth-child(7n+1) { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 9; }
  .cal__months { grid-template-columns: 1fr; }
  .cal__m:nth-child(2) { display: none; }
  .frow--4, .frow--3 { grid-template-columns: 1fr 1fr; }
  .loc__imgs { grid-template-columns: 1fr; }
  .places--trips { grid-template-columns: repeat(2, 1fr); }
  .postc { grid-template-columns: 1fr; } .postc img { height: 180px; min-height: 0; }
  .post__hero { height: 240px; }
  .price__table th:nth-child(4), .price__table td:nth-child(4) { display: none; }
  .price__table td:first-child { font-size: 18px; }
  .price__table th, .price__table td { padding: 12px 14px; }
}
@media (max-width: 560px) {
  .brand__sub { display: none; } /* the mark takes its room next to the language button */
  .home { padding-left: 18px; padding-right: 18px; }
  .home__title { font-size: 48px; }
  .home__stats li { padding-left: 10px; }
  .sec { padding: 28px 18px 10px; }
  .card { padding: 20px 18px; }
  .amen, .places, .places--trips, .gal, .frow--4, .frow--3, .frow--2, .rooms { grid-template-columns: 1fr; }
  .gal a:nth-child(7n+1) { grid-column: span 1; }
  .cal { grid-template-columns: 1fr; }
  .cal__nav { position: absolute; top: 12px; z-index: 2; width: 34px; height: 34px; }
  .cal__nav--prev { left: 12px; } .cal__nav--next { right: 12px; }
  .cal__unit select { min-width: 0; width: 100%; }
  .cal__unit { flex-direction: column; align-items: stretch; width: 100%; }
  .cal__legend { gap: 12px; }
  .host { grid-template-columns: 1fr; }
  .pfoot__nav a { font-size: 17px; }
  .lb__btn { width: 40px; height: 40px; } .lb__btn--prev { left: 8px; } .lb__btn--next { right: 8px; }
}
@media (max-width: 1100px) {
  .places--svc { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .unitc { grid-template-columns: 1fr; }
  .unitc:nth-child(even) .unitc__img { order: 0; }
  .unitc__img { min-height: 240px; }
  .price__table--units th:nth-child(4), .price__table--units td:nth-child(4) { display: table-cell; }
  .price__table--units td:nth-child(n+2) { font-size: 16px; }
}
@media (max-width: 560px) {
  .brand__text { display: none; } /* the logo already carries the name; the long name would run under the language button */
  .unitc__b { padding: 22px 18px 24px; }
  .unitc .ticks { columns: 1; }
  .places--svc { grid-template-columns: 1fr; }
  .price__table--units th, .price__table--units td { padding: 10px 8px; }
  .price__table--units td:first-child { font-size: 15px; }
  .price__table--units td:nth-child(n+2) { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ===================== apartmani-voyage additions (not in villa-kovac / delfin) ===================== */
/* the source has no logo: the header and the panel footer carry the typographic name only */
.brand { gap: 0; }
/* seven units: the rates table scrolls sideways inside its card instead of squeezing,
   the season column stays put (nothing is hidden on mobile) */
.price { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price__table--units th:first-child, .price__table--units td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
.price__table--units th:first-child { background: var(--paper-2); }
.price__table--units tr.is-peak td:first-child { background: #fff8e8; } /* same cream as Kovač's peak row */
.price__table--units th, .price__table--units td { padding-left: 14px; padding-right: 14px; }
.price__table--units td:nth-child(n+2) { font-size: 17px; text-align: center; }
.price__table--units th:nth-child(n+2) { text-align: center; }
.price__hint { display: none; font-size: 12.5px; color: var(--muted); margin: -10px 0 18px; }
@media (max-width: 1100px) {
  .price__table--units { min-width: 760px; }
  .price__hint { display: block; }
}
@media (max-width: 560px) {
  .brand__text { display: flex; } /* no logo here — the name IS the brand, it must stay */
  .brand__name { font-size: 19px; }
  .price__table--units { min-width: 640px; }
}
@media (max-width: 360px) {
  .brand__name { font-size: 16px; }
}

/* datepicker kit theme — Kovač palette (navy selection, gold tint for hover and arrows; as apartment-ancora) */
:root {
  --dp-bg: #fff;
  --dp-color: var(--ink);
  --dp-muted: var(--muted);
  --dp-border: var(--line-2);
  --dp-accent: var(--navy);
  --dp-accent-color: #fff;
  --dp-range: var(--gold-3);
  --dp-hover: var(--gold-3);
  --dp-nav-bg: var(--gold-3);
  --dp-nav-color: #7a5c22;
  --dp-nav-hover-bg: var(--gold);
  --dp-nav-hover-color: var(--navy);
  --dp-today: var(--sea);
  --dp-busy: var(--busy);
  --dp-radius: 14px;
  --dp-shadow: 0 18px 48px rgba(3, 12, 20, .22);
  --dp-font: var(--font-b);
}


/* =============================================================================
   TEMA VOYAGE — DODACI (sve ispod RD-a; RD selektori se ovdje NE redefiniraju, samo dopunjuju
   ono što tema ispisuje drukčije od demo markupa ili čega u demou nema)
   ============================================================================= */

/* ---------- core widgeti u paleti RD-a ----------
   Picker datuma (`core/ui/dateinput.js`) i cjenik imaju vlastite tokene s neutralnim
   defaultima; ovdje dobivaju paletu RD-a (RD je isto činio za svoj kit `--dp-*`). */
:root {
  --ap-date-bg: #fff;
  --ap-date-fg: var(--ink);
  --ap-date-line: var(--line-2);
  --ap-date-hover: var(--gold-3);
  --ap-date-sel-bg: var(--navy);
  --ap-date-sel-fg: #fff;
  --ap-date-muted: var(--muted);
  --ap-date-radius: 14px;
  --ap-cj-accent: var(--navy);
}

/* ---------- razvojni /pregled: obična stranica koja se skrola ---------- */
body.is-plain { overflow: auto; height: auto; background: var(--paper); color: var(--ink); }

/* ---------- fotografija iza svega ----------
   Zatamnjenje je postavka mjesta (slot `hero`, kalup `hero_section`): 100 % = preljev RD-a.
   Naslovni ekran leži preko fotografije, ali PROPUŠTA klikove kroz prazna mjesta — tako klik u
   MEM-u po fotografiji pogodi njezin marker (`.hero`), a sadržaj ekrana i dalje prima klikove. */
.hero__shade { opacity: calc(var(--img-shade, 100) / 100); }
.hero__slide.is-lqip { filter: blur(12px); transform: scale(1.06); }
.home { pointer-events: none; }
.home__content, .home__side, .home__foot { pointer-events: auto; }
body.has-panel .home__content, body.has-panel .home__side, body.has-panel .home__foot { pointer-events: none; }

/* ---------- tekstovi koje tema ispisuje kao blok (rich SSD/EAD) umjesto RD-ovog `<p>` ---------- */
.lead > p:last-child, .home__tagline > p:last-child, .about__quote > p:last-child,
.host__quote > p:last-child, .contact__hours > p:last-child, .faq__a > p:last-child,
.amen__list > p:last-child, .place__p > p:last-child, .reach__p > p:last-child,
.facts dd > p:last-child, .postc__b p:last-child { margin-bottom: 0; }
.lead p { margin: 0 0 .6em; }
.about__quote { margin: 0 0 1em; }
.host__quote { margin: 0 0 1em; }
.host__quote p { opacity: 1; }
.place__p { font-size: 14px; color: #3d4a55; margin: 0; }
.faq__a { padding: 0 0 18px; margin: 0; color: #3d4a55; font-size: 15px; max-width: 700px; }
.faq__cat { font-size: 22px; margin: 26px 0 12px; }
.faq__cat:first-child { margin-top: 0; }
.unitc__desc p { margin: 0 0 1em; }

/* ---------- O kući: kućni red ide kroz house_rules() (upute §4.2d) ----------
   Retci su u obliku RD-ovog popisa činjenica (crtkani razdjelnik); dio ispod teksta pravila je
   napomena ili vlasnikov opis — isti oblik kao opis uz sadržaj smještaja. */
.facts--tight + .ruleslist { margin-top: 8px; }
.ruleslist li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.ruleslist li:last-child { border-bottom: 0; }
.ruleslist .ap-rule-text { font-weight: 600; }
.ap-rule-note, .ap-rule-desc { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; font-weight: 400; }

/* oprema kuće: stavke su ZNAČAJKE objekta (MEFZ ugovor, upute §4.2c) — RD točka iz `.amen__g li`
   ostaje; znak ✓/✗ je sadržaj pa stoji nevidljiv na mjestu točke, a stavke koje NEMA su
   prigušene i precrtane (nikad skrivene) — isto pravilo kao `.ticks` jedinice */
.amen__list { margin: 0; padding: 0; list-style: none; }
.amen__g .ap-feat-mark {
  position: absolute; left: 0; top: 9px; width: 10px; height: 10px;
  overflow: hidden; color: transparent; font-size: 8px; line-height: 10px;
}
.amen__g li.is-off { opacity: .55; }
.amen__g li.is-off::before { background: var(--line-2); }
.amen__g li.is-off .ap-feat-name { text-decoration: line-through; text-decoration-thickness: 1px; }
.amen__g li.is-highlighted .ap-feat-name { font-weight: 700; }

/* preporuka: ime i „odakle i kada" su JEDAN EAD podatak, pa su u zajedničkom omotaču */
.testi__who { display: flex; flex-direction: column; }
.testi__c q p { margin: 0; }

/* ---------- ZNAČAJKE jedinice (`.ticks`, MEFZ ugovor upute §4.2c) ----------
   RD crta kvačicu kroz ::before/::after; znak ✓/✗ je ipak SADRŽAJ (čitač ekrana, MEM ručka) —
   zato stoji u `.ap-feat-mark` točno na mjestu kruga, proziran. Stavka koje NEMA (✗) ostaje na
   popisu, prigušena i precrtana — nikad skrivena. */
.ticks li { position: relative; }
.ticks .ap-feat-mark {
  position: absolute; left: 0; top: 10px; width: 16px; height: 16px;
  overflow: hidden; color: transparent; font-size: 11px; line-height: 16px; text-align: center;
}
.ticks li.is-off { opacity: .55; }
.ticks li.is-off::before { background: var(--line-2); }
.ticks li.is-off::after { content: "\2715"; left: 0; top: 10px; width: 16px; height: 16px; border: 0; transform: none; font-size: 10px; line-height: 16px; text-align: center; color: var(--navy); }
.ticks li.is-off .ap-feat-name { text-decoration: line-through; text-decoration-thickness: 1px; }
.ticks li.is-highlighted .ap-feat-name { font-weight: 700; }
.ap-feat-fee { margin-left: 6px; font-size: 12px; color: var(--sea); font-weight: 600; }
.ap-feat-desc { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }

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

/* ---------- jezični izbornik: stavke su poveznice (jezik = druga adresa) ---------- */
.langdd__list li { padding: 0; }
.langdd__list li a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; }
/* zastavica (core lang_flag) samo u popisu; gumb ostaje globus + kod */
.langdd__flag { flex: 0 0 auto; width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11, 31, 46, .12); }
.langdd__list .langdd__code { width: 20px; }

/* ---------- galerija: chip filtra nosi natpis u vlastitom spanu (marker) ---------- */
.filters button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- poveznica u tekstu koji je napisao vlasnik (upute §4.4a) ---------- */
.ap-link { color: var(--sea); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
.ap-link:hover { color: var(--navy); text-decoration-thickness: 2px; }
.card--navy .ap-link, .host .ap-link { color: var(--gold-2); }
.card--navy .ap-link:hover, .host .ap-link:hover { color: #fff; }
.ap-link-ext::after { content: "\2197"; display: inline-block; margin-left: .18em; font-size: .82em; text-decoration: none; }

/* ---------- forme: statusne poruke ([#MEFS]) i dev natpis ----------
   Kontejner je STALAN (nosi `magic_group` pozicije); prazan nema ni visinu ni razmak. Poruke su
   u bojama RD-a: upozorenje kao `.ferr`, potvrda kao `.fok`. */
.form-status:empty { display: none; }
.form-status { margin: 0 0 12px; }
.form-status .form-warn, .form-status .is-warn, .form-status .form-error { color: var(--busy); font-size: 14px; font-weight: 600; }
.form-status .form-ok, .form-status .is-ok { padding: 18px 22px; background: #edf6f1; border-radius: 12px; color: #1d6b4a; font-weight: 600; }
.form-status button { margin-top: 8px; font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; }
.form-hint { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
.form-debug { display: inline-block; margin: 12px 0 0; padding: .4rem .7rem; border: 1px dashed #b45309; border-radius: 8px; background: #fffbeb; color: #92400e; font-size: .8rem; font-weight: 600; }
.bform .fact small span, .bform .fact small { color: var(--muted); }

/* ---------- video (facade) — normativ ui--video-poster ----------
   Medij može biti i YouTube video: svugdje se vidi kao smrznuta slika s gumbom „Play", a pravi
   okvir ubacuje `site.js` tek na klik. Roditelj gumba mora biti pozicioniran. */
.video-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: 64px; height: 44px; border: 0; border-radius: 13px; background: rgba(23, 23, 23, .82);
  cursor: pointer; pointer-events: auto; transition: background .2s, transform .2s;
}
.video-play::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%);
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff;
}
.video-play:hover, .video-play:focus-visible { background: #f00; transform: translate(-50%, -50%) scale(1.06); }
.gal a { position: relative; }
/* GALERIJA BEZ RUPA — RD velika pločica (`7n+1`, 2×2) ima `aspect-ratio: auto`, pa joj visinu
   daje sama fotografija: uspravna slika rastegne oba njezina reda, a pločice pokraj nje ostanu
   na 3:2 i ispod njih zjape rupe (demo ima samo vodoravne slike, pa se ondje ne vidi). Slika
   zato visinu NE određuje (apsolutna, puni okvir), a `dense` popunjava mjesto koje preskoči
   pločica 2×2 kad ne stane u red — i ono koje ostane kad filtar sakrije dio pločica. */
.gal { grid-auto-flow: dense; }
.gal a:nth-child(7n+1) img { position: absolute; inset: 0; }
/* …a kad filtar ostavi veliku pločicu BEZ susjeda, redovi nemaju visinu od koje bi je uzela i
   pločica bi se sklopila — zato najmanja visina (RD apartments-divna; zajednički popravak teme,
   odluka vlasnika projekta 2026-10-20). SAMO iznad 900 px: ispod toga je pločica 16:9 u jednom
   redu i na uskom mobitelu niža od 240 px, pa bi pravilo promijenilo i stranicu bez filtra. */
@media (min-width: 901px) {
  .gal a:nth-child(7n+1) { min-height: 240px; }
}
/* …a velika pločica kao ZADNJA vidljiva (8, 15 … slika) ostavila bi praznu ćeliju pokraj sebe,
   pa ide u širinu jednog reda; na dva stupca neparan broj ćelija daje punu širinu zadnjoj
   (`layoutGal()` u site.js — RD 2026-10-21, `renderGalTiles()`). */
@media (min-width: 901px) {
  .gal a.is-wide { grid-row: span 1; min-height: 0; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .gal a.is-full2 { grid-column: span 2; aspect-ratio: 16 / 9; }
}
.video-frame { position: absolute; inset: 0; z-index: 3; background: #000; border-radius: 8px; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- lightbox: pozornica nosi i player videa ---------- */
.lb__stage { position: relative; display: flex; justify-content: center; }
.lb__stage.is-video { width: min(1100px, 92vw); aspect-ratio: 16 / 9; }
.lb__stage.is-video img { visibility: hidden; }
.lb__stage .video-frame { border-radius: 8px; }

/* ---------- prazno mjesto za sliku (vidi ga samo prijavljeni admin) ---------- */
.place > .magic-empty-slot { display: block; height: 160px; }
.plan__img > .magic-empty-slot { display: block; min-height: 220px; }

/* ---------- privola za kolačiće (normativ ui--privola-za-kolacice) ----------
   Položaj i izgled kao demo obavijest RD-a: kartica dolje desno, na mobitelu traka preko dna. */
.cookie-pop {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: min(380px, calc(100vw - 40px));
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .35s ease, visibility .35s, transform .35s ease;
}
.cookie-pop.show { opacity: 1; visibility: visible; transform: none; }
.cookie-card {
  padding: 20px 22px 18px; background: rgba(251, 250, 247, .96); color: var(--navy);
  border: 1px solid rgba(201, 164, 92, .4); border-radius: 14px; box-shadow: 0 24px 60px rgba(3, 12, 20, .4);
  font-family: var(--font-b);
}
.cookie-card .kicker { display: block; margin-bottom: 6px; }
.cookie-card h3 { font-family: var(--font-b); margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.cookie-card p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.cookie-card .btn { padding: 9px 22px; font-size: 14px; background: var(--gold); color: var(--navy); box-shadow: none; }
.cookie-card .btn:hover { background: #b08e46; }
@media (max-width: 768px) {
  .cookie-pop { right: 0; bottom: 0; left: 0; width: 100%; transform: translateY(100%); }
  .cookie-pop.show { transform: none; }
  .cookie-card { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .cookie-card .kicker, .cookie-card h3 { display: none; }
  .cookie-card p { margin: 0; flex: 1; font-size: 12.5px; }
}

/* ---------- MEM: kalendar crta klijent; ćelija dana je stvarni cilj klika (normativ ui--mem-indikator-dosega) ---------- */
.cal__d[data-ap-day] { cursor: default; }

/* ---------- LICENCA / AUTOR SLIKE preko slike, dolje desno (upute za izradu teme §6.3c) ----------
   `media_credit()` (core) ispisuje potpis odmah iza `<img>`, i SAMO kad ga vlasnik upiše u podatke
   o slici (MMEFC) — bez njega nijedan od ovih selektora ništa ne pogađa. Okvir `.img-cr` dobiva
   slika čiji element nije pozicioniran (`vy_img_credit()`); figure/pločice/kartice koje jesu
   ili postaju pozicionirane tek kad potpis postoji (`:has`). Izgled je RD apartments-divna
   (`.place__cr`). */
.media-credit {
  position: absolute; right: 6px; bottom: 6px; z-index: 2; max-width: calc(100% - 12px);
  padding: 2px 7px; border-radius: 4px; background: rgba(3, 12, 20, .55); color: #fff;
  font-size: 10px; line-height: 1.4; font-weight: 400; letter-spacing: 0; text-transform: none;
  opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none;
  transition: opacity .2s;
}
a.media-credit:hover { opacity: 1; color: #fff; }
.media-credit[hidden] { display: none; }
.img-cr { position: relative; display: block; overflow: hidden; }
.plan__img:has(> .media-credit), .area__pan:has(> .media-credit) { position: relative; }
/* fotografije uz opis kuće: okvir preuzima ulogu slike u rešetki (prva preko cijele širine) */
.about__photo > .img-cr { border-radius: 12px; }
.about__photo > .img-cr:first-child { grid-column: 1 / -1; }
.about__photo > .img-cr:not(:first-child) img { height: 150px; }
.loc__imgs > .img-cr { border-radius: 12px; }
.gal__it:has(> .media-credit) { position: relative; }
.lb__stage .media-credit { right: 10px; bottom: 10px; font-size: 11px; }
.hero__cr { position: absolute; right: 12px; bottom: 12px; }
