:root {
  --mist: #EDF0EA;
  --paper: #FAFBF8;
  --forest: #1E3B2F;
  --forest-2: #2C5242;
  --ink: #18221D;
  --muted: #56645C;
  --wood: #B7793B;
  --wood-soft: #E9D6BE;
  --red: #A81F24;
  --red-dark: #86171B;
  --line: #CBD3CB;
  --serif: "Alegreya", Georgia, serif;
  --sans: "Alegreya Sans", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.1875rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--forest-2); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--wood); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0 0 .5em; color: var(--forest); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.375rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section-lede { max-width: 62ch; color: var(--muted); font-size: 1.25rem; margin-bottom: 2.2em; }
.small { font-size: .95rem; color: var(--muted); }

/* ştergar band */
.band { display: block; width: 100%; height: 24px; background: var(--paper); }
.st-red { fill: var(--red); }
.st-dark { fill: var(--forest); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 6px;
  font: 700 1.0625rem/1 var(--sans); text-decoration: none;
  border: 2px solid transparent; transition: background-color .15s, color .15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--forest); }
.btn-green { background: #1F7A4D; color: #fff; }
.btn-green:hover { background: #17603c; color: #fff; }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--forest-2); color: #fff; }

/* top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  height: 60px; padding: 0 var(--gutter);
  color: #fff; transition: background-color .25s, box-shadow .25s;
}
.topbar.is-solid { background: var(--forest); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.brand { font: 800 1.375rem/1 var(--serif); color: #fff; text-decoration: none; }
.brand:hover { color: var(--wood-soft); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a, .topbar-phone { color: #fff; text-decoration: none; font-weight: 500; }
.nav a:hover, .topbar-phone:hover { color: var(--wood-soft); }
.topbar-phone { font-weight: 700; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.35); }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(10,24,18,.55) 0, rgba(10,24,18,0) 120px),
    linear-gradient(to top, rgba(10,24,18,.88) 0%, rgba(10,24,18,.45) 45%, rgba(10,24,18,0) 75%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 120px var(--gutter) clamp(40px, 7vw, 80px); }
.hero-place { font-size: 1.125rem; font-weight: 500; color: var(--wood-soft); margin-bottom: .6em; }
.hero h1 {
  color: #fff; font-weight: 800;
  font-size: clamp(4rem, 13vw, 10.5rem); line-height: .86; letter-spacing: -.025em;
  margin-bottom: .28em;
}
.hero-lede { max-width: 40ch; font-size: clamp(1.1875rem, 2vw, 1.375rem); line-height: 1.5; }
.hero-price { font-size: 1.1875rem; margin-bottom: 1.6em; }
.hero-price strong { font: 700 1.75rem/1 var(--serif); color: #fff; margin-right: .2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* about */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-text p { max-width: 58ch; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 2em 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-size: .95rem; color: var(--muted); }
.facts dd { margin: 0; font: 700 1.375rem/1.25 var(--serif); color: var(--forest); }
.about-photos { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-photos img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; }
.about-photos img:last-child { margin-top: 48px; }

/* dotari */
.dotari-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.dotari-col { border-top: 3px solid var(--forest); padding-top: 18px; }
.dotari-col ul { list-style: none; margin: 0; padding: 0; }
.dotari-col li { position: relative; padding: 7px 0 7px 22px; }
.dotari-col li::before {
  content: ""; position: absolute; left: 2px; top: .95em;
  width: 8px; height: 8px; background: var(--red); transform: rotate(45deg);
}
.note { margin-top: 2em; padding: 16px 20px; background: var(--wood-soft); border-radius: 4px; max-width: 62ch; }

/* spaces */
.spaces { background: var(--paper); }
.spaces-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.spaces-photos { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: auto auto; gap: 12px; }
.spaces-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.sp-a { grid-row: span 2; aspect-ratio: 3/4; }
.sp-b, .sp-c { aspect-ratio: 1; }
.plain { padding-left: 1.1em; margin: 0 0 1em; }
.plain li { padding: 3px 0; }
.plain li::marker { color: var(--red); }

/* gallery */
.gallery-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.gallery-head h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font: 500 1rem/1 var(--sans); color: var(--forest);
  background: transparent; border: 1.5px solid var(--forest); border-radius: 999px;
  padding: 10px 16px; cursor: pointer;
}
.filter:hover { background: rgba(30,59,47,.08); }
.filter.is-on { background: var(--forest); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.grid button {
  display: block; width: 100%; padding: 0; border: 0; background: var(--line);
  cursor: zoom-in; border-radius: 4px; overflow: hidden; aspect-ratio: 4/3;
}
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.grid button:hover img { transform: scale(1.04); }
.show-all { margin-top: 20px; }
.more { margin-top: 20px; color: var(--muted); }

/* why */
.why { background: var(--forest); color: #EAF0EB; }
.why h2 { color: #fff; grid-column: 1 / -1; }
.why-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px clamp(32px, 6vw, 72px); align-items: start; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li { padding: 16px 0 16px 28px; border-top: 1px solid rgba(255,255,255,.18); position: relative; max-width: 60ch; }
.why-list li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 9px; height: 9px; background: var(--wood); transform: rotate(45deg); }
.why-list strong { color: #fff; }
.why-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; position: sticky; top: 84px; }

/* prices */
.table-wrap { overflow-x: auto; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); }
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: .95rem; font-weight: 500; color: var(--muted); background: var(--mist); }
.price-table tbody th { font-weight: 500; }
.price-table tbody td:nth-child(2) { font: 700 1.25rem/1.2 var(--serif); color: var(--forest); }
.price-table tr:last-child > * { border-bottom: 0; }
.price-table tr.main { background: #F6EDE2; }
.price-table tr.nye th span { display: block; font-size: .9rem; color: var(--muted); font-weight: 400; }
.terms { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px 48px; margin-top: 40px; }
.terms p { color: var(--muted); max-width: 62ch; }

/* booking */
.booking { background: var(--paper); }
.steps { list-style: none; counter-reset: s; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 32px; }
.steps li { counter-increment: s; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; font: 700 1.25rem/1 var(--serif);
}
.steps strong { display: block; color: var(--forest); font-size: 1.1875rem; }
.booker { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cal-box { position: relative; background: var(--mist); border-radius: 6px; padding: 20px 24px 18px; min-width: 0; }
.cal-nav { position: absolute; top: 14px; left: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.cal-arrow {
  pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--paper); color: var(--forest); font-size: 1.6rem; line-height: 1;
}
.cal-arrow:hover:not(:disabled) { background: var(--forest); color: #fff; }
.cal-arrow:disabled { opacity: .35; cursor: default; }
.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
.cal-title { text-align: center; font: 700 1.25rem/40px var(--serif); color: var(--forest); margin: 0 0 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 0; }
.cal-wd { text-align: center; font-size: .875rem; color: var(--muted); padding-bottom: 4px; }
.cal-day {
  aspect-ratio: 1; min-height: 38px; border: 0; background: transparent; cursor: pointer;
  font: 500 1rem/1 var(--sans); color: var(--ink); border-radius: 50%; position: relative;
  font-variant-numeric: tabular-nums;
}
.cal-day:hover:not(:disabled) { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--forest); }
.cal-day.is-today { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cal-day.is-past { color: #A5AFA8; text-decoration: none; background: none; }
.cal-day:disabled { cursor: default; }
.cal-day.is-range { background: #CFE0D5; border-radius: 0; color: var(--forest); }
.cal-day.is-start, .cal-day.is-end { background: var(--forest); color: #fff; text-decoration: none; }
.cal-day.is-start { border-radius: 50% 0 0 50%; }
.cal-day.is-end { border-radius: 0 50% 50% 0; }
.cal-day.is-start:not(:has(~ .is-range, ~ .is-end)) { border-radius: 50%; }
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 6px; padding: 0; font-size: .95rem; color: var(--muted); }
.cal-legend li { display: flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; display: inline-block; border-radius: 3px; }
.lg-free { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.lg-sel { background: var(--forest); }
.cal-status { font-size: .95rem; color: var(--muted); margin: 0; }

.summary { background: var(--mist); border-radius: 6px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.summary h3 { margin: 0; }
.sum-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.sum-dates div { background: var(--paper); border-radius: 4px; padding: 10px 12px; }
.sum-dates dt { font-size: .875rem; color: var(--muted); }
.sum-dates dd { margin: 0; font-weight: 700; color: var(--forest); line-height: 1.3; }
.sum-price { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
.sum-price p { margin: 0; display: flex; justify-content: space-between; gap: 12px; }
.sum-total { align-items: baseline; margin-bottom: 4px !important; }
.sum-total strong { font: 800 1.75rem/1.2 var(--serif); color: var(--forest); }
.sum-line { font-size: 1rem; color: var(--muted); }
.sum-msg { margin: 0; padding: 10px 12px; border-radius: 4px; background: rgba(168,31,36,.1); color: var(--red-dark); font-size: 1rem; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .95rem; font-weight: 500; color: var(--forest); }
.field input, .field select, .field textarea {
  font: 400 1.0625rem/1.4 var(--sans); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 4px; padding: 10px 12px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); outline: none; box-shadow: 0 0 0 3px rgba(30,59,47,.15); }
.field textarea { resize: vertical; }
.btn-block { width: 100%; }
.btn:disabled { background: #9DB0A5; cursor: not-allowed; }
.link-btn { align-self: center; background: none; border: 0; color: var(--muted); font: 500 .95rem var(--sans); text-decoration: underline; cursor: pointer; padding: 4px; }
.contact-card {
  margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px; border-radius: 6px; background: var(--forest); color: #D8E2DB;
}
.contact-card .small { color: #B9C8BE; margin: 6px 0 0; }
.contact-label { margin: 0; font-size: 1rem; }
.contact-phone { font: 800 clamp(2rem, 5vw, 3rem)/1.1 var(--serif); color: #fff; text-decoration: none; }
.contact-phone:hover { color: var(--wood-soft); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* location */
.location-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.address { font: 700 1.375rem/1.3 var(--serif); color: var(--forest); }
.distances { list-style: none; padding: 0; margin: 1.2em 0 1.4em; border-top: 1px solid var(--line); max-width: 360px; }
.distances li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.distances li span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.map { width: 100%; height: 440px; border: 0; border-radius: 6px; background: var(--line); }

/* around */
.around { background: var(--paper); }
.around-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.around-grid > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.sights { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sights li { padding: 8px 14px; background: var(--mist); border-radius: 4px; border-left: 3px solid var(--wood); }

/* footer */
.footer { background: var(--forest); color: #C9D6CD; padding-bottom: 40px; }
.band-foot { background: var(--forest); margin-bottom: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.footer p { margin: 0 0 .4em; }
.footer a { color: #fff; }
.footer-brand { font: 700 1.5rem/1.2 var(--serif); color: #fff; }

/* mobile bar */
.mobile-bar { display: none; }

/* lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8,16,12,.94); color: #fff;
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(8,16,12,.94); }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); object-fit: contain; border-radius: 2px; }
.lightbox p { margin: 12px 16px 0; text-align: center; color: #CFDAD3; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .topbar-phone { margin-left: auto; border: 0; padding: 0; }
  .about-grid, .spaces-grid, .why-grid, .location-grid, .around-grid, .booker, .terms { grid-template-columns: 1fr; }
  .dotari-grid { grid-template-columns: 1fr; gap: 28px; }
  .why-img { position: static; aspect-ratio: 16/10; }
  .spaces-photos { order: 2; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  body { font-size: 1.125rem; padding-bottom: 64px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 4px 0 0 56px; min-height: 40px; }
  .facts dd { font-size: 1.1875rem; }
  .about-photos img:last-child { margin-top: 28px; }
  .cal-box { padding: 16px 12px 14px; }
  .map { height: 320px; }
  .hero-actions .btn { flex: 1 1 220px; }
  .hero-inner { padding-bottom: 88px; }
  .table-wrap { background: none; border: 0; }
  .price-table { min-width: 0; }
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; }
  .price-table tr { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; padding: 14px 16px; }
  .price-table tr.main { background: #F6EDE2; }
  .price-table tr > * { padding: 3px 0; border: 0; }
  .price-table tbody th { font-weight: 700; color: var(--forest); padding-bottom: 6px; }
  .price-table td { display: flex; justify-content: space-between; gap: 12px; }
  .price-table td::before { content: attr(data-label); color: var(--muted); font: 400 1rem/1.4 var(--sans); }
  .contact-card { padding: 22px; }
  .contact-actions, .contact-actions .btn { width: 100%; }
  .contact-actions .btn { flex: 1 1 140px; width: auto; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; inset: auto 0 0 0; z-index: 30; height: 60px;
    background: var(--forest); border-top: 3px solid var(--red);
  }
  .mobile-bar a { display: grid; place-items: center; color: #fff; text-decoration: none; font-weight: 700; }
  .mobile-bar a + a { border-left: 1px solid rgba(255,255,255,.2); }
  .mobile-bar a:last-child { background: var(--red); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
