/* Sodyba prie prūdo — redesign */
:root {
  --paper: #f7f2e8;
  --paper-2: #efe7d7;
  --card: #fffdf8;
  --ink: #1d2620;
  --ink-2: #4a554d;
  --muted: #5f6862;      /* ≥4.5:1 on card, paper and paper-2 */
  --line: #e2d8c4;
  --forest: #29453a;
  --forest-2: #36584a;
  --forest-ink: #f3efe4;
  --wood: #94552a;       /* white text on it 5.9:1; as text on paper/wood-soft ≥4.6:1 */
  --wood-2: #7a4420;
  --wood-soft: #f2e2cf;
  --brick: #b4532f;
  --ok: #2f7a4f;
  --warn: #b7791f;
  --bad: #b03a2e;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(29, 38, 32, .06), 0 8px 24px rgba(29, 38, 32, .08);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--wood); margin-bottom: 12px; display: block;
}
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }
.section { padding: 96px 0; }
.section-head { margin-bottom: 44px; max-width: 720px; }
.section-head p { margin-top: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  --bg: var(--forest); --fg: var(--forest-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font: 700 .95rem/1 var(--body);
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--forest-2); box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-wood { --bg: var(--wood); --fg: #fff; }
.btn-wood:hover { background: var(--wood-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); }
.btn-light { --bg: rgba(255,255,255,.14); --fg: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255,255,255,.24); }
.btn-sm { padding: 9px 14px; font-size: .85rem; }
:focus-visible { outline: 3px solid var(--wood); outline-offset: 2px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s, box-shadow .25s, color .25s;
  color: #fff;
}
.site-header.solid { background: rgba(247, 242, 232, .94); backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--body); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: inherit; text-decoration: none; font-weight: 600; font-size: .92rem; opacity: .9; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.lang { display: flex; border: 1px solid currentColor; border-radius: 999px; overflow: hidden; opacity: .9; }
.lang button { background: none; border: 0; color: inherit; font: 700 .75rem var(--body); padding: 6px 10px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: currentColor; }
.lang button[aria-pressed="true"] span { color: var(--forest); filter: none; }
.site-header.solid .lang button[aria-pressed="true"] span { color: var(--paper); }
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }

/* Hero */
.hero {
  position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end;
  color: #fff; padding: 120px 0 56px; overflow: hidden; background: var(--forest);
}
.hero-bg { position: absolute; inset: 0; background: url("../img/p10.jpg") center 60% / cover no-repeat; transform: scale(1.03); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 24, 18, .55) 0%, rgba(14, 24, 18, .15) 35%, rgba(14, 24, 18, .75) 100%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); max-width: 14ch; font-weight: 500; }
.hero h1 em { font-style: italic; color: #f4d6b3; }
.hero p.lead { color: rgba(255,255,255,.9); margin: 18px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.quick {
  margin-top: 44px; background: var(--card); color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,.25); display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: stretch; overflow: hidden; max-width: 900px;
}
.quick > * { min-width: 0; }
.quick-result {
  margin-top: 12px; max-width: 900px; background: var(--card); color: var(--ink); border-radius: var(--radius);
  padding: 16px 20px; display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap;
  box-shadow: 0 20px 50px rgba(0,0,0,.25); border-left: 5px solid var(--forest);
}
.quick-result:empty { display: none; }
.quick-result.bad { border-left-color: var(--wood); }
.quick-result p { margin: 0; }
.quick-result .qr-main { flex: 1 1 320px; }
.quick-result .qr-title { font-weight: 800; font-size: 1.05rem; }
.quick-result .qr-tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--forest); color: #fff; font-size: .8rem; margin-right: 4px; vertical-align: 1px; }
.quick-result .qr-line { color: var(--ink-2); margin-top: 2px; }
.quick-result .qr-line a { font-weight: 700; color: var(--ink); }
.quick-result .qr-note { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.quick-result .chip {
  border: 1.5px solid var(--forest); background: #fff; color: var(--forest); border-radius: 999px;
  padding: 10px 16px; font: 700 .95rem var(--body); cursor: pointer;
}
.quick-result .chip:hover { background: var(--forest); color: #fff; }
.quick label { display: block; padding: 14px 20px; border-right: 1px solid var(--line); cursor: pointer; }
.quick label span { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.quick input, .quick select { border: 0; background: none; font: 600 1rem var(--body); color: var(--ink); padding: 4px 0 0; width: 100%; outline: none; }
.quick .btn { border-radius: 0; padding: 0 30px; font-size: 1rem; }

/* Facts */
.facts { background: var(--forest); color: var(--forest-ink); }
.facts ul { list-style: none; margin: 0; padding: 30px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.facts li { display: flex; align-items: baseline; gap: 12px; }
.facts b { font-family: var(--display); font-size: 2.3rem; font-weight: 500; color: #f4d6b3; line-height: 1; }
.facts span { font-size: .92rem; opacity: .85; line-height: 1.35; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about-photos { position: relative; aspect-ratio: 1 / 1.05; }
.about-photos img { position: absolute; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.about-photos .a { inset: 0 22% 22% 0; width: 78%; height: 78%; }
.about-photos .b { right: 0; bottom: 0; width: 46%; height: 52%; border: 6px solid var(--paper); }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.features li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: .95rem; }
.features svg { flex: none; width: 22px; height: 22px; color: var(--wood); margin-top: 1px; }
.signature {
  margin-top: 28px; padding: 16px 20px; border-left: 3px solid var(--wood); background: var(--wood-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .95rem; color: var(--ink-2);
}

/* Spaces */
.spaces { background: var(--paper-2); }
.space-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.space {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.space img { aspect-ratio: 4 / 3.3; object-fit: cover; width: 100%; transition: transform .5s; }
.space:hover img { transform: scale(1.04); }
.space .img { overflow: hidden; }
.space-body { padding: 20px 22px 24px; }
.space-body p { color: var(--ink-2); font-size: .94rem; margin: 8px 0 0; }

/* Gallery */
.gallery {
  display: grid; gap: 12px;
  grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense;
}
.gallery button { padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .4s; }
.gallery button:hover img { transform: scale(1.05); filter: brightness(1.05); }
.gallery .w2 { grid-column: span 2; }
.gallery .h2 { grid-row: span 2; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(12, 16, 13, .94); display: none;
  align-items: center; justify-content: center; padding: 40px 64px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 100%; border-radius: 6px; }
.lightbox .lb-btn {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px;
  border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center;
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .85rem; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; }
.price-card {
  background: var(--forest); color: var(--forest-ink); border-radius: var(--radius); padding: 40px;
  position: relative; overflow: hidden;
}
.price-card .amount { font-family: var(--display); font-size: 4.4rem; line-height: 1; font-weight: 500; color: #f4d6b3; margin: 16px 0 4px; }
.price-card .amount small { font-size: 1.2rem; font-family: var(--body); font-weight: 600; color: var(--forest-ink); opacity: .8; }
.price-card ul { margin: 24px 0 28px; padding: 0; list-style: none; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: center; }
.price-card li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f4d6b3; flex: none; }
.price-card .note { font-size: .85rem; opacity: .75; margin: 0; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px; }
.info-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 24px; }
.info-card dt { color: var(--muted); font-size: .9rem; }
.info-card dd { margin: 0; font-weight: 600; }

/* Booking */
.booking { background: var(--paper-2); }
.booking-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.type-switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper-2); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.type-switch button {
  border: 0; background: none; padding: 10px 12px; border-radius: 999px; font: 700 .9rem var(--body);
  color: var(--ink-2); cursor: pointer;
}
.type-switch button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head .btn { width: 40px; height: 40px; padding: 0; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cal-month h4 { margin: 0 0 10px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.day {
  aspect-ratio: 1; border: 0; background: none; border-radius: 8px; font: 600 .92rem var(--body); color: var(--ink);
  cursor: pointer; position: relative; display: grid; place-items: center; padding: 0;
}
.day:hover:not(:disabled) { background: var(--wood-soft); }
.day:disabled { color: #b9b5ab; cursor: not-allowed; }
.day.today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--wood); }
.day.busy { background: repeating-linear-gradient(-45deg, #eee7da 0 4px, #e3dacb 4px 8px); color: #a49d8f; text-decoration: line-through; }
.day.pending { background: repeating-linear-gradient(-45deg, #f6ead7 0 4px, #efdcc0 4px 8px); color: #a7845a; }
.day.in-range { background: #dfe9e2; border-radius: 0; }
.day.start, .day.end { background: var(--forest); color: #fff; }
.day.start { border-radius: 8px 0 0 8px; }
.day.end { border-radius: 0 8px 8px 0; }
.day.start.end { border-radius: 8px; }
.day.checkout-only { color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; font-size: .8rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.legend .l-free { border: 1px solid var(--line); }
.legend .l-sel { background: var(--forest); }
.legend .l-pend { background: repeating-linear-gradient(-45deg, #f6ead7 0 3px, #efdcc0 3px 6px); }
.legend .l-busy { background: repeating-linear-gradient(-45deg, #eee7da 0 3px, #d8cfbe 3px 6px); }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: 500 .98rem var(--body); color: var(--ink); background: #fff;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--forest); outline-offset: 0; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.summary {
  background: var(--paper); border-radius: var(--radius-sm); padding: 16px 18px; margin: 6px 0 18px;
  font-size: .93rem;
}
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.summary .line span:first-child { color: var(--ink-2); }
.summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 800; font-size: 1.05rem; }
.summary .empty { color: var(--muted); margin: 0; }
.hold-box {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -8px 0 18px;
  padding: 10px 14px; border-radius: var(--radius-sm); background: #e4efe7; color: #1f5a3a; font-size: .9rem; font-weight: 600;
}
.hold-box:empty { display: none; }
.hold-box b { font-variant-numeric: tabular-nums; font-size: 1rem; }
.hold-box.warn { background: #fbecd2; color: #6e4510; }
.hold-box.expired { background: var(--paper-2); color: var(--ink-2); font-weight: 500; justify-content: space-between; }
.hint { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.form-error { color: var(--bad); font-size: .88rem; font-weight: 600; min-height: 1.2em; margin: 0 0 10px; }
.success { text-align: center; padding: 20px 6px; }
.success:focus { outline: none; }
.success .tick { width: 64px; height: 64px; border-radius: 50%; background: #e1efe6; color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }
.success .ref { font-family: ui-monospace, Consolas, monospace; background: var(--paper-2); padding: 3px 8px; border-radius: 6px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.slot { border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); padding: 9px 0; font: 600 .9rem var(--body); cursor: pointer; color: var(--ink); }
.slot:hover:not(:disabled) { border-color: var(--forest); }
.slot[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.slot:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }

/* Location */
.loc-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: stretch; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; border: 1px solid var(--line); background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--wood-soft); color: var(--wood-2); display: grid; place-items: center; flex: none; }
.contact-list small { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a, .contact-list strong { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.contact-list a:hover { color: var(--forest); text-decoration: underline; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 40px 0; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer a { color: rgba(255,255,255,.85); }

.mobile-cta { display: none; }

/* Responsive */
@media (max-width: 1020px) {
  .space-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-grid, .price-grid, .loc-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photos { max-width: 560px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper); color: var(--ink); padding: 12px 20px 20px; gap: 0; box-shadow: 0 10px 20px rgba(0,0,0,.1);
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--line); display: block; }
  .nav .btn-book { display: none; }
  .quick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .quick label { padding: 12px 14px; }
  .quick label:nth-child(2) { border-right: 0; }
  .quick label:nth-child(3) { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--line); }
  .quick .btn { grid-column: 1 / -1; padding: 16px; }
  .quick label:nth-child(1), .quick label:nth-child(2) { border-bottom: 0; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery .w2 { grid-column: span 2; }
  .cal-months { grid-template-columns: 1fr; }
  .cal-month + .cal-month { display: none; }
  .section { padding: 72px 0; }
  .mobile-cta {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 40;
    box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .25s, opacity .25s;
  }
  .mobile-cta.hide { transform: translateY(120%); opacity: 0; pointer-events: none; }
  .site-footer { padding-bottom: 90px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .features { grid-template-columns: 1fr; }
  .space-grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .panel { padding: 20px 16px; }
  .price-card { padding: 30px 24px; }
  .info-card { padding: 24px; }
  .info-card dl { grid-template-columns: 1fr; gap: 2px; }
  .info-card dd { margin-bottom: 10px; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .brand-name small { display: none; }
  .lightbox { padding: 20px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
