/* Lič Hills — base styles. Tokens per lic-hills-knjiga-standarda.pdf v1.0 */

:root {
  --jela:     #22302A;
  --magla:    #F2EFE8;
  --mahovina: #7D8C7C;
  --kamen:    #C9C3B6;
  --bor:      #3F5247;
  --mjed:     #B08D57;

  --font-naslov: 'EB Garamond', Georgia, serif;
  --font-tekst:  'Poppins', 'Helvetica Neue', Arial, sans-serif;

  --radius: 2px;
  --container: 1120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* No scroll-behavior:smooth here on purpose — it fights the scroll-linked video
   dock animation in js/main.js (the page keeps easing after the user stops
   scrolling, so the video drifts and can settle at the wrong spot). */

body {
  background: var(--jela);
  color: var(--magla);
  font-family: var(--font-tekst);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.70;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2 {
  font-family: var(--font-naslov);
  font-weight: 400;
  font-style: normal;
}

h1 {
  font-size: 48px;
  line-height: 1.15;
}

h2 {
  font-size: 32px;
  line-height: 1.20;
}

h3 {
  font-family: var(--font-tekst);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

p {
  max-width: 70ch;
}

small, .small-print {
  font-size: 13px;
  line-height: 1.60;
  letter-spacing: 0.01em;
  color: var(--mahovina);
}

.eyebrow, nav a, .nav-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 300;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Light "breathing" sections — the pause, not the norm */
.section--magla {
  background: var(--magla);
  color: var(--jela);
}

.section--magla .rule,
.section--magla small {
  color: var(--bor);
}

/* Thin accent rule — mjed, used sparingly */
.rule {
  width: 48px;
  height: 1px;
  background: var(--mjed);
  border: none;
  margin: 24px 0;
}

/* Reserve CTA — the one place mjed fills a surface */
.btn {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--mjed);
  color: var(--mjed);
  padding: 14px 32px;
  font-family: var(--font-tekst);
  font-weight: 300;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease;
}

.btn:hover {
  background: var(--mjed);
  color: var(--jela);
}

.btn--fill {
  background: var(--mjed);
  color: var(--jela);
}

.btn--fill:hover {
  background: transparent;
  color: var(--mjed);
}

/* Header / nav — fixed and persistent, always visible over whatever sits beneath it.
   Per the standards book (12 — Smjernice za web): logo 40px, shrinks to 28px with a
   solid jela background once scrolled. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease;
}

.site-header--scrolled {
  padding: 16px 0;
  background: var(--jela);
}

.site-header__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

/* Brand mark — the provided horizontal SVG, recolored via mask so it reads on our
   dark surfaces. The book's own -tamni file is meant for LIGHT backgrounds (see
   page 16); we're using it here as a stand-in until the -svijetli variant is supplied. */
.brand-logo {
  justify-self: start;
  display: block;
  height: 64px;
  width: calc(64px * 237.3 / 90);
  background-color: var(--magla);
  -webkit-mask-image: url('../lic-hills-logo-horizontalni-tamni.svg');
  mask-image: url('../lic-hills-logo-horizontalni-tamni.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: left center;
  mask-position: left center;
  transition: height 0.3s ease, width 0.3s ease;
}

.site-header--scrolled .brand-logo {
  height: 46px;
  width: calc(46px * 237.3 / 90);
}

.site-header__center {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.site-header__socials {
  display: flex;
  gap: 18px;
}

.site-header__socials a {
  color: var(--kamen);
  transition: color 0.3s ease;
}

.site-header__socials a:hover {
  color: var(--magla);
}

.site-header__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.2em;
}

.lang-sep {
  color: var(--mahovina);
}

.lang-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-tekst);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--mahovina);
  cursor: pointer;
  transition: color 0.3s ease;
}

.lang-btn.is-active {
  color: var(--magla);
}

.lang-btn:hover {
  color: var(--magla);
}

.btn--pill {
  justify-self: end;
  border-radius: 999px;
  padding: 12px 30px;
}

/* Homepage video hero — full screen while the user views it, then follows the
   scroll and docks into .media-dock-grid__slot (see js/main.js for the mechanics) */
.video-hero-spacer {
  /* No position:relative here on purpose — #videoHero switches to position:absolute
     once docked, and its `top`/`left` are computed as document-relative coordinates
     (js/main.js). Giving this spacer a position would make IT the containing block
     instead of the document, throwing that math off by the spacer's own offset. */
  height: 100vh;
}

.video-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 50;
  overflow: hidden;
  background: linear-gradient(180deg, #182420 0%, #22302A 55%, #1b2621 100%);
  border: 0 solid var(--kamen);
  transform-origin: top left;
  will-change: transform;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='rgba(34,48,42,0.6)' stroke='%23F2EFE8' stroke-width='1'/%3E%3Cpath d='M10 13v6h4l5 4V9l-5 4h-4z' fill='none' stroke='%23F2EFE8' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M21 13l5 6M26 13l-5 6' stroke='%23F2EFE8' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") 16 16, pointer;
}

.video-hero--unmuted {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='rgba(34,48,42,0.6)' stroke='%23F2EFE8' stroke-width='1'/%3E%3Cpath d='M10 13v6h4l5 4V9l-5 4h-4z' fill='none' stroke='%23F2EFE8' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M21 12a6 6 0 010 8M24 10a9.5 9.5 0 010 12' fill='none' stroke='%23F2EFE8' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") 16 16, pointer;
}

/* Border fades in only once docked — a 1px border around the fullscreen video
   would look like a stray line around the whole viewport before that. */
.video-hero--docked {
  border-width: 1px;
}

.page-content {
  position: relative;
  z-index: 2;
  background: var(--jela);
}

.video-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.video-hero--ready .video-hero__media {
  opacity: 1;
}

.video-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 48, 42, 0.4); /* jela @ 40% */
  pointer-events: none;
}

/* Hero content (sits inside .video-hero) */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  text-align: center;
  transition: opacity 0.15s ease-out;
}

.hero__logo {
  width: 64px;
  height: auto;
  margin-bottom: 40px;
}

.hero-title {
  color: var(--magla);
  max-width: 20ch;
}

.hero__subtitle {
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--kamen);
}

.video-hero__scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 16px;
  transition: opacity 0.15s ease-out;
}

.hero__scroll-cue {
  width: 1px;
  height: 48px;
  background: var(--kamen);
  opacity: 0.5;
}

.video-hero__scroll-label {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--kamen);
  opacity: 0.7;
}

/* Section rhythm — one idea per screen, generous vertical pacing */
.section {
  padding: 160px 0;
}

.section--tight {
  padding: 120px 0;
}

.media-dock-section {
  padding-bottom: 40px;
}

#kuca {
  padding-top: 110px;
}

/* Video dock grid — the hero video (still #videoHero, driven by js/main.js) settles
   into .media-dock-grid__slot as the user scrolls; a second placeholder clip sits
   staggered lower-right, overlapping it — a big, centered, diagonal pairing rather
   than a tucked-away side column. */
.media-dock-section .eyebrow {
  color: var(--mjed);
  display: block;
  margin-bottom: 32px;
}

/* Wider than the standard 1120px content column on purpose — this section reads
   as an immersive video showcase, so it's allowed to use more of the screen. */
.media-dock-section > .container {
  max-width: 1440px;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--kamen);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #182420 0%, #22302A 55%, #1b2621 100%);
  color: var(--mjed);
}

.media-dock-grid {
  /* Box height is unchanged (≈40.5vh); the grid is now exactly as tall as the
     staggered pair, so there is no empty strip under the second video. */
  --box-h: 40.5vh;
  --stagger: 23.5vh;
  position: relative;
  height: calc(var(--box-h) + var(--stagger));
}

.media-dock-grid__slot {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: var(--box-h);
}

.media-dock-grid__second {
  position: absolute;
  top: var(--stagger);
  right: 0;
  width: 60%;
  height: var(--box-h);
  overflow: hidden;
  border: 1px solid var(--kamen);
  border-radius: var(--radius);
  background: var(--jela);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='rgba(34,48,42,0.6)' stroke='%23F2EFE8' stroke-width='1'/%3E%3Cpath d='M10 13v6h4l5 4V9l-5 4h-4z' fill='none' stroke='%23F2EFE8' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M21 13l5 6M26 13l-5 6' stroke='%23F2EFE8' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") 16 16, pointer;
}

.media-dock-grid__second--unmuted {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='rgba(34,48,42,0.6)' stroke='%23F2EFE8' stroke-width='1'/%3E%3Cpath d='M10 13v6h4l5 4V9l-5 4h-4z' fill='none' stroke='%23F2EFE8' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M21 12a6 6 0 010 8M24 10a9.5 9.5 0 010 12' fill='none' stroke='%23F2EFE8' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") 16 16, pointer;
}

.media-dock-grid__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section headings shared by content sections below the fold */
.section-head {
  margin-bottom: 56px;
}

.section-head .eyebrow {
  color: var(--mjed);
  display: block;
  margin-bottom: 24px;
}

.section-head h2 {
  color: var(--magla);
}

/* Photo galleries — Kuća / Okolica placeholders, 3:2 per brand book */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
  aspect-ratio: 3 / 2;
  background: var(--bor);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gallery-item figcaption {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--kamen);
}

.gallery-item--photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.gallery-item--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.gallery-item--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(34, 48, 42, 0.7) 0%, rgba(34, 48, 42, 0.4) 22%, rgba(34, 48, 42, 0) 55%);
  pointer-events: none;
}

.gallery-item--photo:hover img,
.gallery-item--photo:focus-visible img {
  opacity: 0.88;
}

.gallery-item--photo:focus-visible {
  outline: 1px solid var(--mjed);
  outline-offset: 3px;
}

.gallery-item__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--magla);
}

.gallery-item__count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--kamen);
}

/* Photo viewer */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 20px;
  background: rgba(34, 48, 42, 0.97);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox[hidden] { display: none; }
.lightbox--open { opacity: 1; }

.lightbox__close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--kamen);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover { color: var(--magla); }

.lightbox__main {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.lightbox__stage {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  transition: opacity 0.25s ease;
}

.lightbox__stage img.is-changing { opacity: 0; }

.lightbox__nav {
  flex: none;
  padding: 16px 8px;
  background: none;
  border: none;
  color: var(--kamen);
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox--single .lightbox__nav,
.lightbox--single .lightbox__thumbs,
.lightbox--single .lightbox__counter { display: none; }

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: 1200px;
  width: 100%;
  margin: 14px auto 0;
  padding: 0 56px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--kamen);
}

.lightbox__thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.lightbox__thumb {
  width: 84px;
  aspect-ratio: 3 / 2;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.lightbox__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb:hover { opacity: 0.85; }
.lightbox__thumb.is-active { opacity: 1; border-color: var(--mjed); }

/* Feature blocks */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}

.feature {
  text-align: left;
}

.feature__index {
  font-family: var(--font-naslov);
  font-size: 13px;
  color: var(--mjed);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  display: block;
}

.feature h3 {
  color: var(--magla);
  margin-bottom: 16px;
}

.feature p {
  color: var(--mahovina);
  font-size: 15px;
}

/* Footer */
.site-footer {
  background: var(--bor);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(201, 195, 182, 0.15);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.site-footer .logo-mark {
  font-family: var(--font-naslov);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--magla);
}

.site-footer__area {
  margin-top: 8px;
  color: var(--mahovina);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--kamen);
}

.site-footer__label {
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--mahovina);
}

.site-footer__col a { transition: color 0.3s ease; }
.site-footer__col a[href]:hover { color: var(--magla); }

.site-footer__bottom {
  margin-top: 64px;
}

.site-footer__bottom .small-print {
  color: var(--mahovina);
}

/* Booking modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(34, 48, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bor);
  border-radius: var(--radius);
  padding: 56px 40px 40px;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--kamen);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s ease;
}

.modal__close:hover {
  color: var(--magla);
}

.modal h2 {
  color: var(--magla);
  margin-bottom: 32px;
  text-align: center;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.booking-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--kamen);
}

.booking-form input {
  background: var(--jela);
  border: 1px solid var(--kamen);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--magla);
  font-family: var(--font-tekst);
  font-weight: 300;
  font-size: 14px;
}

.booking-form input:focus {
  outline: none;
  border-color: var(--mjed);
}

.booking-form .btn {
  margin-top: 12px;
  text-align: center;
}

/* Checkout page */
.checkout {
  padding: 180px 0 120px;
  min-height: 100vh;
}

.checkout__container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
}

.checkout__summary .eyebrow,
.checkout__payment .eyebrow {
  color: var(--mjed);
  display: block;
  margin-bottom: 24px;
}

.checkout__summary h1 {
  margin-bottom: 48px;
}

.checkout__details {
  border-top: 1px solid rgba(201, 195, 182, 0.2);
}

.checkout__row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(201, 195, 182, 0.2);
}

.checkout__row dt {
  color: var(--mahovina);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.checkout__row dd {
  color: var(--magla);
}

.checkout__total-row {
  margin-top: 24px;
  color: var(--mahovina);
  font-size: 13px;
}

.checkout__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--mjed);
  font-family: var(--font-naslov);
  font-size: 24px;
  color: var(--magla);
}

.checkout__payment {
  background: var(--bor);
  border-radius: var(--radius);
  padding: 40px;
  align-self: start;
}

.checkout__payment h2 {
  color: var(--magla);
  margin-bottom: 16px;
}

.checkout__payment p {
  margin-bottom: 32px;
}

.checkout__pay {
  width: 100%;
  text-align: center;
}

.checkout__pay-status {
  margin-top: 16px;
  text-align: center;
}

/* Post-payment confirmation page (reuses the checkout summary/receipt styles) */
.confirmation__lead {
  max-width: 46ch;
  margin-bottom: 40px;
  color: var(--kamen);
}

.confirmation__preview {
  margin: -16px 0 28px;
  color: var(--mjed);
}

.confirmation .checkout__summary h1 {
  margin-bottom: 24px;
}

.confirmation__arrival .checkout__details {
  margin-top: 8px;
}

.is-placeholder {
  color: var(--mahovina);
  font-style: italic;
}

.confirmation__location {
  margin-top: 120px;
}

.confirmation__location .eyebrow {
  display: block;
  margin-bottom: 24px;
  color: var(--mjed);
}

.confirmation__address {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 32px;
  margin: 16px 0 32px;
  color: var(--kamen);
}

.confirmation__directions {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--mjed);
  border-bottom: 1px solid var(--mjed);
  padding-bottom: 2px;
}

.confirmation__map {
  height: 460px;
  border: 1px solid var(--kamen);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--jela);
}

.confirmation__map--failed {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bor);
}

.confirmation__map--failed::after {
  content: "4";
  color: var(--mahovina);
}

.house-marker {
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid var(--mjed);
  border-radius: 50%;
  background: rgba(176, 141, 87, 0.25);
  box-sizing: border-box;
}

.house-marker::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--mjed);
}

.confirmation__map .maplibregl-ctrl-attrib {
  background: rgba(34, 48, 42, 0.8);
  color: var(--mahovina);
  font: 300 10px/1.4 var(--font-tekst);
}

.confirmation__map .maplibregl-ctrl-attrib a { color: var(--kamen); }

.confirmation__map .maplibregl-ctrl-group {
  background: var(--bor);
  border-radius: var(--radius);
  box-shadow: none;
}

.confirmation__map .maplibregl-ctrl-group button + button {
  border-top: 1px solid rgba(201, 195, 182, 0.2);
}

.confirmation__map .maplibregl-ctrl-icon { filter: invert(0.9) sepia(0.2); }

@media (max-width: 860px) {
  .confirmation__location { margin-top: 80px; }
  .confirmation__map { height: 340px; }
}

@media (max-width: 860px) {
  .checkout__container { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 860px) {
  h2 { font-size: 26px; }
  .features { grid-template-columns: 1fr; gap: 56px; }
  .section { padding: 100px 0; }
  .site-header__grid { grid-template-columns: auto auto; justify-content: space-between; }
  .brand-logo { height: 40px; width: calc(40px * 237.3 / 90); }
  .site-header--scrolled .brand-logo { height: 34px; width: calc(34px * 237.3 / 90); }
  .btn--pill { padding: 10px 20px; }
  .site-header__center { display: none; }
  .media-dock-grid { height: auto; display: flex; flex-direction: column; gap: 20px; }
  .media-dock-grid__slot { position: relative; inset: auto; top: auto; left: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .media-dock-grid__second { position: relative; inset: auto; top: auto; right: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  /* Full-frame 16:9 hero on phones (see initVideoDock) */
  .video-hero { top: calc((100vh - 56.25vw) / 2); height: 56.25vw; }
  .hero__scroll-cue { display: none; }
  .video-hero__scroll-cue { bottom: 10px; }
  .gallery-grid, .gallery-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .media-dock-section { padding-bottom: 20px; }
  #kuca { padding-top: 70px; }
  .lightbox { padding: 12px 8px 14px; }
  .lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; padding: 12px 6px; background: rgba(34, 48, 42, 0.55); border-radius: var(--radius); color: var(--magla); }
  .lightbox__nav--prev { left: 2px; }
  .lightbox__nav--next { right: 2px; }
  .lightbox__bar { padding: 0 12px; }
  .lightbox__thumb { width: 56px; }
  .booking-form__row { grid-template-columns: 1fr; }
}

.confirmation__map .maplibregl-ctrl-attrib-button { filter: invert(0.85); }

/* Prices / contact pages (reuse the checkout layout) */
.page-lead {
  max-width: 46ch;
  margin-bottom: 40px;
  color: var(--kamen);
}

.page-note {
  margin-top: 24px;
}

.booking-form__code small {
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--mahovina);
}

.booking-form__code input {
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

a.is-placeholder {
  color: var(--mahovina);
  font-style: italic;
}

.checkout__row dd a[href] {
  border-bottom: 1px solid var(--mjed);
}

.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bottom { margin-top: 40px; }
}

.booking-form__error {
  color: var(--mjed);
  text-transform: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout__form {
  margin-top: 8px;
}

/* Author display rules (e.g. .btn) must never override the hidden attribute. */
[hidden] {
  display: none !important;
}
