/* Aparthouse Kodea – design B "The place first"
   White page, deep green accent, Inter Tight (self-hosted), real photos. */

@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/inter-tight-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/inter-tight-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #1d1f1e;          /* main text */
  --muted: #5b605d;        /* secondary text */
  --line: #e4e6e4;         /* hairlines */
  --soft: #f3f5f3;         /* light grey-green panels */
  --green: #24543f;        /* accent: buttons, links */
  --green-dark: #1a3f2f;
  --white: #ffffff;
  --wrap: 1180px;
  --pad: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--white); color: var(--ink);
  font: 400 17px/1.55 "Inter Tight", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 600; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 24px; background: var(--green); color: var(--white); font-weight: 600; font-size: 16px;
  text-decoration: none; border: 0; border-radius: 4px; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--green-dark); }
.btn.ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn.ghost:hover { background: var(--soft); }
:focus-visible { outline: 3px solid #e0a526; outline-offset: 2px; }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px var(--pad); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px); }
.logo { font-weight: 700; letter-spacing: .14em; font-size: 15px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.nav nav a { color: var(--ink); text-decoration: none; }
.nav nav a:hover { color: var(--green); }
.nav .lang { padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
.nav .nav-book { color: var(--white); background: var(--green); padding: 9px 14px; border-radius: 4px; }
.nav .nav-book:hover { color: var(--white); background: var(--green-dark); }

/* ---------- hero ---------- */
.hero-photo { position: relative; max-width: var(--wrap); margin: 0 auto; display: grid;
  grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(64vh, 580px); }
.hero-main { grid-row: 1 / 3; min-height: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-main img { object-position: center 60%; }
.hero-side { position: relative; margin: 0; min-height: 0; }
.hero-side figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 3px;
  background: rgba(255,255,255,.92); font-size: 13px; font-weight: 600; color: var(--ink); }
.hero-side:first-of-type figcaption { bottom: auto; top: 10px; }  /* the bar covers the bottom of the lower photo */
.hero-facts { list-style: none; padding: 0; margin: 18px 0 14px; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px; }
.hero-facts li { padding: 6px 12px; border-radius: 999px; background: var(--soft); font-size: 15px; font-weight: 500; }
.bar { position: absolute; left: var(--pad); right: var(--pad); bottom: -40px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; padding: 18px 22px; background: var(--white);
  box-shadow: 0 10px 30px rgba(20,30,25,.14); border-radius: 4px; }
.bar-text { display: flex; flex-direction: column; gap: 2px; }
.bar-text strong { font-size: 17px; }
.bar .btn { white-space: nowrap; flex-shrink: 0; }
.bar-text span { color: var(--muted); font-size: 15px; }
.hero-head { max-width: var(--wrap); margin: 0 auto; padding: 80px var(--pad) 40px; display: grid;
  grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.hero-head p { font-size: 18px; color: #333835; }
.score { font-size: 15px !important; color: var(--muted) !important; }
.score strong { color: var(--ink); }

/* ---------- generic section ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--pad); }
.section.tint { max-width: none; background: var(--soft); }
.section.tint > .inner { max-width: var(--wrap); margin: 0 auto; }
.lead { font-size: 18px; color: #333835; max-width: 640px; }

/* ---------- apartments ---------- */
.apt { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; margin-top: 28px; }
.apt-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.apt-photos button { padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.apt-photos button:first-child { grid-row: span 2; }
.apt-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .3s; }
.apt-photos button:hover img { transform: scale(1.03); }
.apt-info .meta { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.apt-info ul { list-style: none; padding: 0; margin: 0 0 22px; }
.apt-info li { padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px; }
.apt-info li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 6px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.apt-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- why direct ---------- */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 24px; }
.three div { border-top: 2px solid var(--green); padding-top: 16px; }
.three p { color: #333835; font-size: 16px; }

/* ---------- welcome ---------- */
.welcome { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.welcome img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.welcome blockquote { margin: 22px 0 0; padding-left: 18px; border-left: 2px solid var(--green); font-size: 17px; }
.welcome cite { display: block; margin-top: 6px; font-style: normal; color: var(--muted); font-size: 14px; }

/* ---------- location ---------- */
.loc { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; margin: 22px 0; }
.facts b { display: block; font-size: 24px; font-weight: 600; }
.facts span { color: var(--muted); font-size: 15px; }
.map { width: 100%; height: 360px; border: 0; background: var(--soft); }
.addr { font-size: 15px; color: var(--muted); }

/* ---------- booking ---------- */
.book .lead { margin-bottom: 28px; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.book-side h3 { margin: 30px 0 12px; }
.book-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.book-benefits li { position: relative; padding: 12px 14px 12px 44px; background: var(--soft); border-radius: 6px;
  font-weight: 500; font-size: 16px; }
.book-benefits li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 11px; height: 6px; margin-top: -5px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.book-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.book-steps li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.book-steps span { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-weight: 600; font-size: 14px; }
.cal-name { font-weight: 600; margin: 14px 0 6px; }
.cal-frame { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.book-ask { margin-top: 26px; padding: 18px 20px; border: 1px dashed #c9d3cd; border-radius: 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.book-ask p { margin: 0; font-weight: 600; }
.book-card { background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 32px rgba(20,30,25,.10); padding: 14px 14px 6px; }
.book-card-label { display: flex; align-items: center; gap: 8px; margin: 2px 4px 10px; font-size: 14px; font-weight: 600; color: var(--green); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fa66b; box-shadow: 0 0 0 3px rgba(63,166,107,.2); }
.book-frame { width: 100%; height: 900px; border: 0; display: block; }  /* bentral.js sets the real height */
.book-note { font-size: 14px; color: var(--muted); }
.book-card .book-note { margin: 8px 4px; }

/* ---------- our date picker (booking-picker.js builds it) ---------- */
.book-card { padding: 22px 22px 12px; }
.picker { position: relative; }
.pk-head { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pk-box { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 8px; }
.pk-box span { font-size: 13px; color: var(--muted); font-weight: 500; }
.pk-box strong { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-box.is-active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(36,84,63,.10); }
.pk-arrow { align-self: center; color: var(--muted); }
.pk-nights { flex-basis: 100%; font-size: 15px; font-weight: 600; color: var(--green); min-height: 0; }
.pk-nights:empty { display: none; }
.pk-nav { position: relative; height: 0; display: flex; justify-content: space-between; z-index: 1; }
.pk-nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; }
.pk-nav button:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.pk-nav button:disabled { opacity: .3; cursor: default; }
.pk-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 28px; }
.pk-title { margin: 0 0 10px; height: 36px; line-height: 36px; text-align: center; font-weight: 600; text-transform: capitalize; }
.pk-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.pk-wd { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 6px; text-transform: capitalize; }
.pk-day { height: 42px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer;
  border-radius: 50%; position: relative; }
.pk-day:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--green); }
.pk-day:disabled { color: #c3c8c5; cursor: default; }
.pk-day.is-today { font-weight: 700; }
.pk-day.is-in { background: #e3ece6; border-radius: 0; }
.pk-day.is-start, .pk-day.is-end { background: var(--green); color: #fff; font-weight: 600; }
.pk-day.is-start { border-radius: 50% 0 0 50%; }
.pk-day.is-end { border-radius: 0 50% 50% 0; }
.pk-day.is-start.is-solo { border-radius: 50%; }   /* arrival picked, no departure yet */
.pk-day:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.pk-msg { margin: 14px 2px 12px; min-height: 22px; font-size: 15px; color: var(--muted); }
.pk-msg.is-warn { color: #9a3b22; font-weight: 600; }
.pk-go { width: 100%; }
.pk-go:disabled { background: #b9c4be; cursor: not-allowed; }
.booked-dates { margin: 14px 4px 0; }
.booked-dates summary { cursor: pointer; color: var(--green); font-weight: 600; font-size: 15px; padding: 6px 0; }
.booked-dates .cal-frame { margin-top: 6px; }

/* full-screen panel with the Bentral form */
.book-panel { position: fixed; inset: 0; z-index: 60; background: #fff; overflow-y: auto; overscroll-behavior: contain; }
.book-panel[hidden] { display: none; }
.book-panel-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px var(--pad); background: #fff; border-bottom: 1px solid var(--line); }
.book-panel-head div { display: flex; flex-direction: column; min-width: 0; }
.book-panel-head strong { font-size: 17px; }
.book-panel-dates { font-size: 14px; color: var(--muted); }
.book-panel-close { flex: 0 0 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.book-panel-close:hover { border-color: var(--green); color: var(--green); }
.book-panel-body { max-width: 760px; margin: 0 auto; padding: 16px var(--pad) 40px; }
body.panel-open { overflow: hidden; }
body.panel-open #kodea-chat { display: none; }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; margin-top: 28px; }
.reviews figure { margin: 0; }
.reviews blockquote { margin: 0 0 10px; font-size: 16px; }
.reviews figcaption { font-size: 14px; color: var(--muted); }
.stars { color: var(--green); letter-spacing: 2px; font-size: 14px; margin-bottom: 8px; }

/* ---------- breakfast ---------- */
.breakfast { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-top: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #333835; padding-bottom: 8px; }

/* ---------- legal page ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin-top: 32px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px var(--pad) 48px; max-width: var(--wrap); margin: 24px auto 0;
  font-size: 15px; color: var(--muted); }
.footer p { margin: 0 0 6px; }

/* ---------- gallery (full screen) ---------- */
.gallery { position: fixed; inset: 0; z-index: 50; background: rgba(12,16,14,.94); display: none;
  align-items: center; justify-content: center; }
.gallery.open { display: flex; }
.gallery img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; }
.gallery button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px;
  border-radius: 50%; font-size: 26px; cursor: pointer; }
.gallery .g-prev { left: 16px; } .gallery .g-next { right: 16px; }
.gallery .g-close { top: 16px; right: 16px; }
.gallery .g-count { position: absolute; bottom: 18px; color: #fff; font-size: 14px; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .nav nav a:not(.lang):not(.nav-book) { display: none; }
  .hero-head, .apt, .welcome, .loc, .breakfast { grid-template-columns: 1fr; gap: 28px; }
  /* booking on small screens: benefits, then the form, then steps + calendar */
  .book-grid { display: flex; flex-direction: column; gap: 22px; }
  .book-side { display: contents; }
  .book-benefits { order: 1; }
  .book-card { order: 2; position: static; }
  .book-side > *:not(.book-benefits) { order: 3; }
  .book-side h3 { margin: 8px 0 -10px; }
  .three, .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-photo { display: block; height: auto; }
  .hero-side { display: none; }  /* phones: only the house with the sign */
  .hero-facts { display: flex; flex-wrap: wrap; }  /* long Slovenian labels: let them flow */
  .hero-photo img { height: 46vh; object-position: 22% 42%; }  /* keep the sign in view */
  .bar { position: relative; left: auto; right: auto; bottom: auto; flex-direction: column; align-items: stretch; margin: -28px var(--pad) 0; }
  .bar .btn { width: 100%; }
  .hero-head { padding-top: 40px; }
  .logo { font-size: 13px; letter-spacing: .1em; }
  .nav .nav-book { padding: 8px 10px; font-size: 14px; }
  .section { padding: 44px var(--pad); }
  .map { height: 280px; }
}

/* 404 page */
.notfound { max-width: 640px; margin: 0 auto; padding-top: 80px; padding-bottom: 80px; }
.notfound h2 { margin-top: 48px; }
