/* CASA ISTRIANA KAVRAN — mediteranski / topli stil
   Palette: peščena, terakota, oliva, morje, krema
   Type: Cormorant Garamond (display) + Mulish (body)
*/
/* Local font fallbacks with adjusted metrics — minimize FOUT layout shift */
@font-face {
  font-family: "Cormorant Garamond Fallback";
  src: local("Georgia");
  size-adjust: 102%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Mulish Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 25%;
}

:root {
  /* Colors */
  --c-cream: #FAF6EE;
  --c-sand: #EFE6D8;
  --c-sand-deep: #E2D5BE;
  --c-stone: #C7BAA4;
  --c-clay: #B85A3D;
  --c-clay-dark: #8E3F2A;
  --c-olive: #7A8454;
  --c-olive-dark: #4F5A33;
  --c-sea: #3E6B7C;
  --c-ink: #2A2620;
  --c-ink-light: #5C544A;
  --c-line: rgba(42,38,32,.12);
  --c-line-strong: rgba(42,38,32,.22);

  /* Typography — fallback fonts with matched metrics first, real fonts after */
  --f-display: "Cormorant Garamond", "Cormorant Garamond Fallback", "Cardo", Georgia, serif;
  --f-body: "Mulish", "Mulish Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --container: 1240px;
  --container-narrow: 980px;

  /* Radius / Shadow */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 20px;
  --shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -8px rgba(42,38,32,.12);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Subtle paper texture overlay (cream noise) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.55  0 0 0 0 0.45  0 0 0 0.05 0'/></filter><rect width='240' height='240' filter='url(%23n)' /></svg>");
  opacity: .55;
  z-index: 1;
  mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 2; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* Typography */
.h-display, h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  color: var(--c-ink);
}
.h-display, h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--c-ink-light); }
.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-clay);
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 26px;
}
.eyebrow::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 18px; height: 1px;
  background: var(--c-clay);
}
.eyebrow--light { color: var(--c-sand); }
.eyebrow--light::before { background: var(--c-sand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-clay);
  color: var(--c-cream);
}
.btn--primary:hover { background: var(--c-clay-dark); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--c-cream);
  border-color: rgba(250,246,238,.55);
}
.btn--ghost:hover { background: rgba(250,246,238,.12); border-color: var(--c-cream); }
.btn--lg { padding: 16px 32px; font-size: 14px; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,246,238,.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--c-ink); }
.brand__mark { width: 38px; height: 38px; flex-shrink: 0; color: var(--c-clay); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--f-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.brand__sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-light);
  margin-top: 2px;
}
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute; bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: var(--c-clay);
  transition: width .25s ease, left .25s ease;
}
.nav a:hover { color: var(--c-clay); }
.nav a:hover::after { width: 100%; left: 0; }
.topbar__actions { display: flex; align-items: center; gap: 14px; }

/* Lang switcher */
.lang { position: relative; }
.lang__btn {
  display: flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-ink);
}
.lang__btn:hover { border-color: var(--c-clay); color: var(--c-clay); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 8px;
  min-width: 160px;
  margin: 0; list-style: none;
  box-shadow: var(--shadow-card);
  display: none;
}
.lang__menu.is-open { display: block; }
.lang__menu li {
  padding: 9px 12px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}
.lang__menu li:hover { background: var(--c-sand); }
.lang__menu li.is-active { background: var(--c-clay); color: var(--c-cream); }

/* HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--c-cream);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Fallback background — shows while video loads OR if it fails */
  background-image: url("/photos/casa-hero-poster.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
/* Hide the <img> tag (kept for SEO/og fallback) */
.hero__media img {
  display: none;
}
.hero__overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(0,0,0,.15) 0%, transparent 60%),
    linear-gradient(180deg, rgba(42,38,32,.35) 0%, rgba(42,38,32,.55) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(80px, 14vw, 120px) clamp(40px, 8vw, 80px);
  max-width: 880px;
}
.hero__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--c-sand);
  margin-bottom: 32px;
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--c-cream);
}
.hero__title-line {
  display: block;
}
.hero__title-line:nth-child(1) {}
.hero__title-line:nth-child(2) {
  font-style: italic;
  color: #F2D7A8;
}
.hero__lede {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 560px;
  color: rgba(250,246,238,.92);
  margin-bottom: 40px;
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 64px;
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(250,246,238,.22);
}
.hero__meta-item {}
.hero__meta-num {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--c-cream);
}
.hero__meta-unit {
  font-size: 0.5em;
  vertical-align: super;
  color: rgba(250,246,238,.65);
  margin-left: 2px;
}
.hero__meta-lbl {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,246,238,.7);
  margin-top: 4px;
}
.hero__meta-divider {
  width: 1px; height: 32px;
  background: rgba(250,246,238,.25);
}

/* ============= AVAILABILITY BAR (under nav) ============= */
.avail-bar {
  position: sticky;
  top: 64px; /* matches topbar height */
  z-index: 90;
  background: linear-gradient(180deg, var(--c-ink) 0%, #3a342c 100%);
  color: var(--c-cream);
  border-bottom: 1px solid rgba(184,90,61,.25);
  box-shadow: 0 4px 16px -8px rgba(0,0,0,.3);
}
.avail-bar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.avail-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-clay);
  font-weight: 600;
  flex-shrink: 0;
}
.avail-bar__label svg {
  opacity: 0.85;
}
.avail-bar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.avail-bar__slot {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(250,246,238,.06);
  border: 1px solid rgba(250,246,238,.12);
  border-radius: 999px;
  color: var(--c-cream);
  font-size: 13px;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.avail-bar__slot:hover {
  background: var(--c-clay);
  border-color: var(--c-clay);
  transform: translateY(-1px);
}
.avail-bar__slot__dates {
  font-family: var(--f-display);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
.avail-bar__slot__nights {
  font-size: 11px;
  color: rgba(250,246,238,.55);
  letter-spacing: 0.04em;
}
.avail-bar__slot:hover .avail-bar__slot__nights {
  color: rgba(250,246,238,.85);
}
.avail-bar__cta {
  color: var(--c-clay);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  flex-shrink: 0;
  transition: color .2s;
}
.avail-bar__cta:hover {
  color: var(--c-cream);
}
@media (max-width: 920px) {
  .avail-bar__inner { gap: 12px; padding: 10px 0; }
  .avail-bar__label { font-size: 10px; }
  .avail-bar__slot { padding: 6px 11px; font-size: 12px; }
  .avail-bar__slot__dates { font-size: 0.9rem; }
  .avail-bar__cta { font-size: 11px; }
}
@media (max-width: 720px) {
  .avail-bar__inner {
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
  }
  .avail-bar__label {
    flex-shrink: 0;
    font-size: 9px;
    letter-spacing: 0.18em;
    gap: 6px;
  }
  .avail-bar__label svg { width: 12px; height: 12px; }
  .avail-bar__cta { display: none; }
  /* Horizontal scrolling list */
  .avail-bar__list {
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    position: relative;
  }
  /* Inner track that animates - duplicated content for seamless loop */
  .avail-bar__track {
    display: flex;
    gap: 6px;
    animation: availMarquee 30s linear infinite;
    flex-shrink: 0;
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  /* Pause on touch/hover so user can read */
  .avail-bar__list:hover .avail-bar__track,
  .avail-bar__list:active .avail-bar__track {
    animation-play-state: paused;
  }
  @keyframes availMarquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-33.3333%, 0, 0); }
  }
  .avail-bar__slot {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
  }
  .avail-bar__slot__dates { font-size: 0.88rem; }
  .avail-bar__slot__nights { font-size: 10px; }
}

.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: rgba(250,246,238,.6);
  z-index: 3;
  transition: color .2s;
}
.hero__scroll:hover { color: var(--c-cream); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section { padding: clamp(48px, 8vw, 120px) 0; }
.section__head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.section__head--centered { text-align: center; margin-inline: auto; }
.section__head--centered .eyebrow { padding-left: 0; }
.section__head--centered .eyebrow::before { display: none; }
.section__head-sub {
  font-size: 1.05rem;
  margin-top: 16px;
  max-width: 600px;
}
.section__head--centered .section__head-sub { margin-inline: auto; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.grid--reverse > *:first-child { order: 2; }
.grid--reverse > *:last-child { order: 1; }
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .grid--reverse > *:first-child { order: 0; }
  .grid--reverse > *:last-child { order: 0; }
}

/* About section */
.section--about {
  background: linear-gradient(180deg, var(--c-cream) 0%, var(--c-sand) 100%);
}
.about__col-text p { font-size: 1.05rem; max-width: 540px; }
.about__col-text .h-display { margin-bottom: 28px; }
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
  margin-top: 48px;
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
}
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature__icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  color: var(--c-olive);
  margin-top: 2px;
}
.feature__title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--c-ink);
}
.feature__desc {
  font-size: 14px;
  color: var(--c-ink-light);
  line-height: 1.45;
}
.about__col-image {
  position: relative;
}
.about__figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}
.about__figure img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  object-position: 22% center;
  transition: transform .8s ease;
}
.about__figure:hover img { transform: scale(1.02); }
.about__figure figcaption {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(250,246,238,.92);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--c-ink-light);
}
.about__decor--tag {
  position: absolute;
  top: -16px; right: -16px;
  background: var(--c-clay);
  color: var(--c-cream);
  border-radius: 999px;
  padding: 16px 22px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  transform: rotate(8deg);
  box-shadow: var(--shadow-card);
}

/* Quote band */
/* Quote band — olive green, intimate but romantic */
.quoteband {
  position: relative;
  padding: clamp(80px, 11vw, 130px) 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(184,90,61,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(242,215,168,.08) 0%, transparent 65%),
    linear-gradient(180deg, #6B7548 0%, #4F5A33 100%);
  color: #FAF6EE;
}
/* warm grain on top to feel less digital */
.quoteband::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.95  0 0 0 0 0.85  0 0 0 0.08 0'/></filter><rect width='320' height='320' filter='url(%23n)' /></svg>");
  mix-blend-mode: overlay;
  opacity: .6;
  pointer-events: none;
}
/* very subtle warm glow center-top */
.quoteband::after {
  content: "";
  position: absolute;
  top: -100px; left: 50%;
  width: 400px; height: 400px;
  margin-left: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,215,168,.18) 0%, rgba(242,215,168,.05) 35%, transparent 65%);
  pointer-events: none;
}

/* Olive branch decoration left & right */
.quoteband__decor {
  position: absolute;
  z-index: 2;
  color: rgba(250,246,238,.32);
  pointer-events: none;
}
.quoteband__decor svg { width: 100%; height: auto; display: block; }
.quoteband__decor--left {
  top: 50%;
  left: clamp(16px, 4vw, 64px);
  width: clamp(70px, 9vw, 110px);
  transform: translateY(-50%) rotate(-14deg);
}
.quoteband__decor--right {
  top: 50%;
  right: clamp(16px, 4vw, 64px);
  width: clamp(70px, 9vw, 110px);
  transform: translateY(-50%) rotate(14deg) scaleX(-1);
}
@media (max-width: 720px) {
  .quoteband__decor--left, .quoteband__decor--right {
    top: auto; bottom: 18px;
    width: 56px;
    opacity: .55;
  }
  .quoteband__decor--left { bottom: auto; top: 18px; }
}

/* Ornament star above quote */
.quoteband__star {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
  color: rgba(242,215,168,.65);
  position: relative; z-index: 2;
}
.quoteband__star svg { width: 24px; height: 24px; display: block; }

.quote {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.45rem, 2.8vw, 2.3rem);
  line-height: 1.4;
  text-align: center;
  margin: 0 auto;
  max-width: 820px;
  position: relative;
  z-index: 2;
  color: #FAF6EE;
  letter-spacing: -0.005em;
}

/* Big curly opening quote — pure decoration above */
.quote__mark {
  display: block;
  font-family: var(--f-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(4rem, 7vw, 6rem);
  line-height: 0.7;
  color: rgba(242,215,168,.42);
  margin-bottom: 16px;
  user-select: none;
}

.quote em {
  font-style: italic;
  color: inherit;
  display: inline;
}

.quote__src {
  display: block;
  margin-top: 32px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 500;
  font-family: var(--f-body);
  color: rgba(250,246,238,.55);
  position: relative;
}
.quote__src::before, .quote__src::after {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: rgba(250,246,238,.32);
  vertical-align: middle;
  margin: 0 12px;
}

/* Gallery — masonry */
/* ============= GALLERY VIDEO (above masonry) ============= */
.gallery__video {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 24px;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-ink);
  cursor: pointer;
  box-shadow: 0 20px 60px -24px rgba(42,38,32,.4);
}
.gallery__video-el {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--c-ink);
}
@media (max-width: 720px) {
  .gallery__video {
    aspect-ratio: 9 / 16;
    max-width: 360px;
  }
}
.gallery__video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 80px;
  height: 80px;
  border: 0;
  background: transparent;
  color: var(--c-cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, opacity .25s;
  z-index: 2;
}
.gallery__video-play svg { width: 80px; height: 80px; }
.gallery__video-play:hover { transform: scale(1.08); }
.gallery__video.is-playing .gallery__video-play {
  opacity: 0;
  pointer-events: none;
}
.gallery__video-sound,
.gallery__video-fs {
  position: absolute;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(42,38,32,.65);
  color: var(--c-cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all .2s;
  z-index: 3;
}
.gallery__video-sound { right: 14px; }
.gallery__video-fs { right: 66px; }
.gallery__video-sound:hover,
.gallery__video-fs:hover { background: var(--c-clay); }
.gallery__video-sound-on { display: none; }
.gallery__video-sound.is-on .gallery__video-sound-on { display: block; }
.gallery__video-sound.is-on .gallery__video-sound-off { display: none; }

.section--gallery { background: var(--c-sand); }
.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
@media (max-width: 900px) { .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 500px) { .masonry { grid-template-columns: 1fr; grid-auto-rows: 240px; } }
.masonry__item {
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  position: relative;
  cursor: zoom-in;
  background: var(--c-stone);
}
.masonry__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.masonry__item:hover img { transform: scale(1.06); }
.masonry__item--big { grid-column: span 2; grid-row: span 2; }
.masonry__item--tall { grid-row: span 2; }
@media (max-width: 900px) {
  .masonry__item--big, .masonry__item--tall { grid-column: span 1; grid-row: span 1; }
}

/* Location */
.section--location { background: var(--c-cream); }
.location__text p { max-width: 540px; font-size: 1.05rem; }
.distances {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.distances li {
  display: flex; align-items: baseline; gap: 8px;
  padding: 16px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-cream);
  flex-wrap: wrap;
}
.distances__num {
  font-family: var(--f-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--c-clay);
}
.distances__unit {
  font-size: 12px;
  color: var(--c-ink-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.distances__lbl {
  font-size: 13px;
  margin-left: auto;
  color: var(--c-ink-light);
}
.map-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/5;
}
.map-frame iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: sepia(.08) saturate(.92);
}
.map-frame__link {
  position: absolute;
  bottom: 16px; left: 16px;
  background: var(--c-cream);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-clay);
  box-shadow: var(--shadow-card);
}
.map-frame__link:hover { background: var(--c-clay); color: var(--c-cream); }

/* ============= V SOSEŠČINI / AROUND ============= */
.section--around {
  background: linear-gradient(180deg, var(--c-cream) 0%, var(--c-sand) 100%);
}
.around-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.around-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--c-cream);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.around-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-clay), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.around-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--c-line-strong);
}
.around-card:hover::before { opacity: 1; }
.around-card__visual {
  color: var(--c-olive);
  margin-bottom: 20px;
  opacity: 0.65;
}
.around-card__visual svg {
  width: 56px; height: 56px;
  display: block;
}
.around-card__dist {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.around-card__num {
  font-family: var(--f-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--c-clay);
  font-weight: 500;
}
.around-card__unit {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-light);
  font-weight: 600;
}
.around-card h3 {
  font-family: var(--f-display);
  font-size: 1.45rem;
  margin: 0 0 10px;
  color: var(--c-ink);
}
.around-card__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-ink-light);
}

/* ============= GOOD TO KNOW / GTK ============= */
.section--gtk {
  background: var(--c-sand);
}
.gtk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.gtk-card {
  padding: 32px 28px;
  background: var(--c-cream);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  transition: transform .25s, box-shadow .25s;
}
.gtk-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.gtk-card__icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--c-clay) 0%, var(--c-clay-dark) 100%);
  border-radius: 12px;
  color: var(--c-cream);
  box-shadow: 0 4px 12px -4px rgba(184,90,61,.35);
}
.gtk-card__icon svg {
  width: 24px; height: 24px;
}
.gtk-card h3 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  margin: 0 0 10px;
  color: var(--c-ink);
  line-height: 1.2;
}
.gtk-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-ink-light);
}
.gtk-card p strong {
  color: var(--c-clay);
  font-weight: 600;
}

/* Book section */
.section--book {
  background: var(--c-ink);
  color: var(--c-sand);
  position: relative;
  overflow: hidden;
}
.section--book::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(184,90,61,.18) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(122,132,84,.15) 0%, transparent 50%);
  pointer-events: none;
}
.book {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 860px) { .book { grid-template-columns: 1fr; gap: 40px; } }
.book__text .h-display { color: var(--c-cream); margin-bottom: 16px; }
.book__text p { color: rgba(239,230,216,.85); font-size: 1.08rem; }
.book__text strong { color: var(--c-cream); font-weight: 600; }
.book__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.book__cards--single {
  grid-template-columns: 1fr;
  max-width: 480px;
}
@media (max-width: 600px) { .book__cards { grid-template-columns: 1fr; } }
.bookcard {
  display: flex; flex-direction: column;
  padding: 28px;
  border-radius: var(--r-md);
  border: 1px solid rgba(239,230,216,.12);
  background: rgba(239,230,216,.04);
  color: var(--c-cream);
  transition: transform .25s, background .25s, border-color .25s;
  min-height: 260px;
}
.bookcard:hover {
  transform: translateY(-3px);
  background: rgba(239,230,216,.08);
  border-color: rgba(239,230,216,.32);
}
.bookcard--direct {
  background: var(--c-clay);
  border-color: var(--c-clay);
}
.bookcard--direct:hover { background: var(--c-clay-dark); }
.bookcard__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 16px;
}
.bookcard__name {
  font-family: var(--f-display);
  font-size: 1.6rem;
}
.bookcard__score { text-align: right; }
.bookcard__score strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: #F2D7A8;
}
.bookcard--direct .bookcard__score strong { color: var(--c-cream); }
.bookcard__score span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.bookcard__body {
  flex: 1;
}
.bookcard__body p {
  color: inherit;
  opacity: 0.78;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.bookcard__cta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(239,230,216,.18);
  font-size: 14px;
  font-weight: 600;
}
.bookcard--direct .bookcard__cta { border-top-color: rgba(239,230,216,.32); }

/* Footer */
.footer {
  background: var(--c-ink);
  color: var(--c-stone);
  padding: 72px 0 24px;
  border-top: 1px solid rgba(239,230,216,.08);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(239,230,216,.1);
}
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.brand--footer { color: var(--c-sand); }
.brand--footer .brand__mark { color: var(--c-clay); }
.brand--footer .brand__name { color: var(--c-cream); }
.brand--footer .brand__sub { color: var(--c-stone); }
.footer__desc {
  font-size: 14px;
  margin-top: 20px;
  max-width: 340px;
  color: var(--c-stone);
  line-height: 1.55;
}
.footer__col h4 {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-cream);
  margin: 0 0 18px;
}
.footer__col ul {
  list-style: none;
  padding: 0; margin: 0;
}
.footer__col li {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.55;
}
.footer__col a:hover { color: var(--c-clay); }
.footer__base {
  display: flex; justify-content: space-between;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(199,186,164,.7);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 16px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,18,14,.96);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r-md);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(239,230,216,.3);
  color: var(--c-cream);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover {
  background: rgba(239,230,216,.12);
  border-color: var(--c-cream);
}
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 32px; line-height: 1; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__caption {
  position: absolute; bottom: 24px;
  color: var(--c-stone);
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* Responsive nav */
@media (max-width: 900px) {
  .nav { display: none; }
  .topbar__inner { height: 64px; }
  .brand__sub { display: none; }
}
@media (max-width: 500px) {
  .topbar__actions .btn { padding: 12px 18px; font-size: 13px; }
  .topbar__actions .lang__btn { padding: 7px 11px; }
}

/* ============= BURGER + MOBILE NAV ============= */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, border-color .2s ease;
}
.burger:hover { background: rgba(0,0,0,.04); }
.burger__line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.burger.is-open .burger__line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open .burger__line:nth-child(2) { opacity: 0; }
.burger.is-open .burger__line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .topbar__actions .btn--primary { display: none; }
}

.mnav {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.mnav[hidden] { display: none; }
.mnav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,18,15,.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .28s ease;
}
.mnav.is-open .mnav__backdrop { opacity: 1; }
.mnav__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(360px, 86vw);
  height: 100%;
  background: var(--c-paper, #faf6ee);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 26px 32px;
  box-shadow: -20px 0 60px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,.0,.2,1);
  overflow-y: auto;
}
.mnav.is-open .mnav__panel { transform: translateX(0); }
.mnav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
}
.mnav__title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 20px;
  letter-spacing: .02em;
  color: var(--c-ink);
}
.mnav__close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--c-line-strong);
  background: transparent;
  border-radius: 999px;
  color: var(--c-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.mnav__close:hover { background: rgba(0,0,0,.04); }
.mnav__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 8px 0 18px;
}
.mnav__links a {
  display: block;
  padding: 14px 4px;
  font-size: 17px;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
  transition: color .2s ease, padding-left .2s ease;
}
.mnav__links a:hover { color: var(--c-clay); padding-left: 8px; }
.mnav__cta {
  margin-top: auto;
  text-align: center;
  font-size: 15px;
  padding: 14px 22px;
}

body.mnav-open { overflow: hidden; }

/* ============= AVAILABILITY CALENDAR ============= */
.availability {
  background: rgba(250,246,238,.06);
  border: 1px solid rgba(250,246,238,.12);
  border-radius: var(--r-md);
  padding: 32px 28px;
  margin: 0 auto 48px;
  max-width: 920px;
  color: var(--c-cream);
}
.availability__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.availability__head h3 {
  font-family: var(--f-display);
  font-size: 1.6rem;
  margin: 0;
  color: var(--c-cream);
}
.availability__legend {
  display: flex;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(250,246,238,.7);
}
.availability__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.availability__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.availability__dot--free { background: #87A06A; }
.availability__dot--blocked { background: rgba(250,246,238,.22); }

.availability__nav {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.availability__nav-btn {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(250,246,238,.22);
  background: transparent;
  color: var(--c-cream);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  margin-top: 36px; /* line up with first row of dates */
}
.availability__nav-btn:hover {
  background: var(--c-clay);
  border-color: var(--c-clay);
}
.availability__nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.availability__months {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.cal-month {
  font-size: 12px;
}
.cal-month__title {
  font-family: var(--f-display);
  font-size: 1.15rem;
  text-align: center;
  margin: 0 0 12px;
  color: var(--c-cream);
  letter-spacing: 0.02em;
}
.cal-month__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-month__dow {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,246,238,.45);
  padding: 6px 0;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 50%;
  transition: all .15s;
  cursor: default;
  color: rgba(250,246,238,.8);
}
.cal-day--empty { visibility: hidden; }
.cal-day--past { color: rgba(250,246,238,.2); }
.cal-day--free {
  background: rgba(135,160,106,.18);
  color: var(--c-cream);
  cursor: pointer;
}
.cal-day--free:hover {
  background: #87A06A;
  transform: scale(1.1);
}
.cal-day--blocked {
  background: rgba(250,246,238,.06);
  color: rgba(250,246,238,.3);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.cal-day--today {
  outline: 1px solid var(--c-clay);
  outline-offset: -1px;
}

.availability__hint {
  font-size: 13px;
  color: rgba(250,246,238,.55);
  text-align: center;
  margin: 16px 0 0;
}
.availability__loading {
  text-align: center;
  color: rgba(250,246,238,.55);
  font-style: italic;
  margin: 24px 0 0;
}
.availability--loaded .availability__loading {
  display: none;
}
.availability--error .availability__months {
  display: none;
}

@media (max-width: 720px) {
  .availability { padding: 24px 16px; }
  .availability__nav-btn { margin-top: 28px; }
  .cal-day { font-size: 11px; }
}

/* ============= CONTACT SECTION ============= */
.section--contact {
  background: linear-gradient(180deg, var(--c-sand) 0%, var(--c-cream) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 24px;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--c-clay);
}
.contact-card__icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-clay) 0%, var(--c-clay-dark) 100%);
  color: var(--c-cream);
  border-radius: 14px;
  box-shadow: 0 4px 12px -4px rgba(184,90,61,.4);
}
.contact-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-card__label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink-light);
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-card__value {
  font-family: var(--f-display);
  font-size: 1.3rem;
  color: var(--c-ink);
  line-height: 1.2;
  word-break: break-word;
}
.contact-card__hint {
  font-size: 13px;
  color: var(--c-ink-light);
  margin-top: 2px;
}
.contact-card__arrow {
  flex-shrink: 0;
  color: var(--c-clay);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s, transform .25s;
}
.contact-card:hover .contact-card__arrow {
  opacity: 1;
  transform: translateX(0);
}


/* ============= COOKIE BANNER ============= */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 200;
  background: var(--c-ink);
  color: var(--c-sand);
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  animation: cookieIn .4s ease-out;
  max-width: 720px;
  margin: 0 auto;
}
@keyframes cookieIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(239,230,216,.92);
  flex: 1;
  min-width: 240px;
}
.cookie-banner a {
  color: var(--c-clay);
  font-weight: 600;
}
.cookie-banner a:hover { color: #F2D7A8; }
.cookie-banner__btn {
  background: var(--c-clay);
  color: var(--c-cream);
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  font-family: var(--f-body);
}
.cookie-banner__btn:hover { background: var(--c-clay-dark); }

/* ============= FOOTER LEGAL LINKS ============= */
.footer__legal {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.footer__legal a {
  font-size: 12px;
  color: rgba(199,186,164,.7);
  letter-spacing: 0.04em;
}
.footer__legal a:hover { color: var(--c-clay); }
