/* MT FORM — apartment page
   Variant 1a (desktop) + 2a (mobile), one responsive document.
   Breakpoint: 1024px. Mobile-first is NOT used here — the desktop layout is
   the base and the mobile layout is the override, matching the mock order. */

:root {
  --ink: #241F1B;
  --ink-soft: #4A423A;
  --ink-muted: #6B6259;
  --line-dark: #4A423A;
  --paper: #FDFCFA;
  --paper-warm: #F7F3EC;
  --paper-warm-2: #F2ECE3;
  --line: #EDE6DB;
  --line-strong: #E4DBCE;
  --line-mid: #DCD2C4;
  --stone: #9A8F80;
  --stone-dark: #8A8073;
  --stone-light: #CFC6B9;
  --sand: #A79A88;
  --sand-pale: #CFC6B9;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad-x: 56px;
  --pad-y: 96px;
  --gap: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: #8A7A66; }
button { font-family: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: 66px; line-height: 1.04; }
h2 { font-size: 42px; line-height: 1.16; }
h3 { font-size: 26px; line-height: 1.2; }
p { margin: 0 0 20px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 22px;
}
.label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}
.section { padding: var(--pad-y) var(--pad-x); }
.section--warm { background: var(--paper-warm); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .eyebrow, .section--dark .label { color: var(--sand); }
.section--dark p { color: var(--sand-pale); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.section__intro { font-size: 14px; line-height: 1.8; color: var(--ink-muted); max-width: 340px; }

/* buttons */
.btn {
  display: inline-block;
  padding: 17px 22px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: background .2s;
}
.btn:hover { background: #3D352D; color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #EFE8DE; color: var(--ink); }
.btn--block { display: block; width: 100%; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad-x);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; white-space: nowrap; margin: 0; }
.brand__name { font-family: var(--serif); font-size: 22px; }
.brand__name span { font-family: var(--sans); font-weight: 300; letter-spacing: 0.34em; font-size: 15px; }
.brand__place { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone); }

.nav { display: flex; flex-wrap: wrap; gap: 30px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.masthead__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.masthead .btn { padding: 12px 22px; font-size: 11px; letter-spacing: 0.2em; }

.lang { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.14em; }
.lang__sep { color: var(--stone-light); }
.lang button,
.lang a {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 11px; letter-spacing: 0.14em; color: var(--stone);
  border-bottom: 1px solid transparent;
  text-decoration: none;
}
.lang button[aria-pressed="true"],
.lang a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 660px; background: var(--ink); overflow: hidden; }
.hero picture { display: block; width: 100%; height: 100%; }
.hero img { opacity: 0.92; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,31,27,.32) 0%, rgba(36,31,27,.05) 45%, rgba(36,31,27,.55) 100%);
}
.hero__body {
  position: absolute; z-index: 1; inset: auto 56px 52px 56px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  color: var(--paper);
}
.hero__text { max-width: 640px; }
.hero__kicker { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 20px; opacity: .85; }
.hero__price { text-align: right; flex-shrink: 0; }
.hero__price .label { color: rgba(253,252,250,.8); }

/* price with a struck-through original */
.price { display: flex; align-items: baseline; gap: 10px; }
.price--right { justify-content: flex-end; }
.price__was { font-size: 16px; text-decoration: line-through; opacity: .7; }
.price__now { font-family: var(--serif); font-size: 46px; line-height: 1; }
.price__unit { font-size: 12px; letter-spacing: 0.14em; opacity: .8; }

/* ---------- facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}
.facts > div { padding: 26px 28px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: none; }
.facts dt { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1; }

/* ---------- two-column blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.split--sidebar { grid-template-columns: 320px 1fr; }
.split--form { grid-template-columns: 1fr 380px; }

.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.spec li { list-style: none; }
ul.plain { margin: 0; padding: 0; list-style: none; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.pair figure { width: 100%; overflow: hidden; }
.pair picture { display: block; width: 100%; height: 280px; }
.pair img { width: 100%; height: 280px; object-fit: cover; }

.figure--natural picture { display: block; width: 100%; height: auto; }
.figure--natural img,
img.img--natural {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

/* ---------- gallery mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: var(--gap); }
.mosaic picture { display: block; width: 100%; height: 100%; }
.mosaic figure { cursor: zoom-in; }
.mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic figure:nth-child(2) { grid-row: span 2; }
.mosaic figure:nth-child(6),
.mosaic figure:nth-child(8) { grid-column: span 2; }

/* ---------- amenities ---------- */
.amenity-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.amenity-groups h3 { font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.amenity-groups ul { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--ink-soft); }

/* ---------- booking panel ---------- */
.panel { background: var(--paper); color: var(--ink); padding: 34px; }

#dostepnosc .split { align-items: center; }

.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.cal__month { font-family: var(--serif); font-size: 26px; }
.cal__nav { display: flex; gap: 8px; }
.cal__nav button {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-mid); background: transparent; color: var(--ink);
  font-size: 15px; cursor: pointer; transition: background .2s;
}
.cal__nav button:hover { background: #EFE8DE; }
.cal__nav button:disabled { opacity: .35; cursor: default; }

table.cal { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
table.cal th {
  font-size: 11px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--stone); padding-bottom: 6px;
}
table.cal td { padding: 0; }
.day {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 52px; padding: 2px 0;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-strong);
  font-size: 14px; letter-spacing: 0.02em; cursor: pointer;
  transition: background .18s, color .18s;
  line-height: 1.1;
}
.day__num { display: block; }
.day__price {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0;
  color: var(--stone-dark);
  font-weight: 300;
}
.day:hover:not([disabled]) { background: #EFE8DE; }
.day[data-state="past"] { border-color: transparent; background: none; color: var(--stone-light); cursor: default; }
.day[data-state="booked"] {
  background: repeating-linear-gradient(135deg, #EDE5D9 0 5px, #E3DACD 5px 10px);
  border-color: #E3DACD; color: #B2A695; text-decoration: line-through; cursor: not-allowed;
}
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day[aria-pressed="true"] .day__price { color: var(--sand-pale); }
.day[data-state="between"] { background: #EFE8DE; border-color: #EFE8DE; }
.cal__empty { height: 52px; }

.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: #7C7268; margin: 22px 0; }
.legend li { display: flex; align-items: center; gap: 8px; }
.swatch { width: 12px; height: 12px; display: block; }
.swatch--free { border: 1px solid var(--line-mid); background: var(--paper); }
.swatch--booked { background: repeating-linear-gradient(135deg, #EDE5D9 0 5px, #E3DACD 5px 10px); }
.swatch--picked { background: var(--ink); }

.stay { border-top: 1px solid var(--line-strong); padding-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.stay__dates { display: flex; gap: 14px; }
.stay__date { flex: 1; border: 1px solid var(--line-strong); background: var(--paper); padding: 12px 14px; }
.stay__date dt { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); margin-bottom: 6px; }
.stay__date dd { margin: 0; font-size: 15px; }
.stay__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.stay__note { font-size: 13px; color: #7C7268; line-height: 1.6; max-width: 220px; }
.stay__total { text-align: right; }
.stay__total .label { display: block; margin-bottom: 4px; }
.stay__sum { font-family: var(--serif); font-size: 34px; line-height: 1; }
.stay__reset {
  align-self: flex-start; background: none; border: none; padding: 0; cursor: pointer;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--stone); border-bottom: 1px solid var(--line-mid);
}

/* ---------- distances ---------- */
.distances { display: flex; flex-direction: column; gap: 34px; }
.distances h3 { font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 6px; }
.distances dl { margin: 0; }
.distances div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.distances dt { flex: 1; }
.distances dd { margin: 0; color: var(--stone-dark); flex-shrink: 0; }
.nearby { background: var(--paper-warm); padding: 26px 28px; }
.nearby p { font-size: 15px; color: var(--ink-soft); line-height: 1.9; margin: 14px 0 0; }
.section--dark .distances h3 { border-bottom-color: var(--line-dark); }
.section--dark .distances div { border-bottom-color: var(--line-dark); }
.section--dark .distances dd { color: var(--sand); }

/* ---------- review ---------- */
.review { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: center; }
.review__score { font-family: var(--serif); font-size: 64px; line-height: 1; }
.review__word { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-dark); margin-top: 6px; }
.review__count { font-size: 13px; color: var(--stone); margin-top: 4px; }
.review blockquote { margin: 0 0 22px; font-family: var(--serif); font-size: 30px; line-height: 1.5; text-wrap: pretty; }
.review figcaption { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone-dark); }

/* ---------- house rules ---------- */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); margin: 0; }
.rules > div { background: var(--paper); padding: 28px 30px; }
.rules dt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); margin-bottom: 10px; }
.rules dd { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }

/* ---------- contact / footer ---------- */
.contact { padding: 88px var(--pad-x) 44px; background: var(--ink); color: var(--paper); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; padding-bottom: 64px; border-bottom: 1px solid var(--line-dark); }
.contact address { font-style: normal; margin-top: 36px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--sand-pale); }
.contact__details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  padding: 64px 0; border-bottom: 1px solid var(--line-dark);
}
.contact__details .eyebrow { color: var(--sand); }
.contact__details h2 { margin-bottom: 20px; }
.contact__details p { color: var(--sand-pale); }
.contact__details-address {
  font-style: normal; margin-top: 28px; display: flex; flex-direction: column; gap: 8px;
  font-size: 15px; color: var(--sand-pale);
}
.contact__details-address a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.contact__details-address a:hover { color: var(--sand-pale); }
.contact__map {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  background: #1a1714; overflow: hidden;
}
.contact__map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.form { display: flex; flex-direction: column; gap: 14px; }
.form__row { display: flex; gap: 14px; }
.form__row > * { flex: 1; min-width: 0; }
.form input, .form textarea {
  background: transparent; border: 1px solid var(--line-dark); color: var(--paper);
  padding: 15px 16px; font-family: var(--sans); font-size: 14px; font-weight: 300;
}
.form textarea { resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #8A8073; }
.form input:focus, .form textarea:focus { outline: 1px solid var(--sand); outline-offset: -1px; }
.form button:disabled { opacity: .45; cursor: default; }
.alert { font-size: 14px; line-height: 1.6; margin: 0; }
.alert--success { color: var(--sand-pale); }
.alert--error { color: #E8C4B8; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.colophon { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; font-size: 12px; color: var(--stone-dark); letter-spacing: 0.06em; }

.booking-bar { display: none; }

/* ---------- gallery lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(36, 31, 27, 0.92);
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(253, 252, 250, 0.35);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(253, 252, 250, 0.1);
  border-color: var(--paper);
}
.lightbox__close { top: 20px; right: 20px; font-size: 22px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

body.lightbox-open { overflow: hidden; }

/* =========================================================
   MOBILE — variant 2a
   ========================================================= */
/* narrow desktops: keep the nav on one line */
@media (min-width: 1025px) and (max-width: 1240px) {
  :root { --pad-x: 36px; }
  .nav { gap: 20px; font-size: 11px; }
  .masthead .btn { padding: 12px 16px; letter-spacing: 0.16em; }
  h1 { font-size: 52px; }
  h2 { font-size: 36px; }
  .split, .split--form { gap: 48px; }
}

@media (max-width: 1024px) {
  :root { --pad-x: 20px; --pad-y: 44px; --gap: 12px; }

  h1 { font-size: 34px; line-height: 1.12; }
  h2 { font-size: 29px; line-height: 1.2; }
  p { font-size: 15px; line-height: 1.8; }
  .eyebrow { font-size: 9px; letter-spacing: 0.26em; margin-bottom: 16px; }

  /* masthead collapses to brand + language + burger; nav is a disclosure */
  .masthead { padding: 16px var(--pad-x); flex-wrap: wrap; }
  .brand__name { font-size: 19px; }
  .brand__name span { font-size: 13px; }
  .masthead .btn { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 34px; height: 34px; padding: 0;
    background: none; border: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1px; background: var(--ink); }
  .nav {
    order: 3; flex-basis: 100%;
    flex-direction: column; gap: 0;
    font-size: 15px; letter-spacing: 0.06em; text-transform: none;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 13px 0; border-top: 1px solid var(--line-strong); }

  .hero { height: 440px; }
  .hero__body { inset: auto 20px 24px 20px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__kicker { font-size: 9px; letter-spacing: 0.26em; margin-bottom: 14px; }
  .hero__price { text-align: left; }
  .price--right { justify-content: flex-start; }
  .price__now { font-size: 34px; }

  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .facts > div:nth-child(even) { border-right: none; }
  .facts > div:nth-last-child(-n+2) { border-bottom: none; }
  .facts dt { font-size: 9px; margin-bottom: 6px; }
  .facts dd { font-size: 22px; }

  .split, .split--sidebar, .split--form, .review, .contact__grid, .contact__details { grid-template-columns: 1fr; gap: 30px; }
  .spec, .pair { grid-template-columns: 1fr; }
  .spec { gap: 10px; }
  .pair picture { height: 220px; }
  .pair img { height: 220px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
  .section__intro { max-width: none; }

  /* gallery: horizontal filmstrip, then a 2-up grid */
  .mosaic {
    display: flex; gap: var(--gap);
    grid-auto-rows: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .mosaic figure { flex: 0 0 250px; height: 300px; scroll-snap-align: start; }
  .mosaic figure:nth-child(1), .mosaic figure:nth-child(2),
  .mosaic figure:nth-child(6), .mosaic figure:nth-child(8) { grid-column: auto; grid-row: auto; }

  .amenity-groups { grid-template-columns: 1fr; gap: 26px; }
  .rules { grid-template-columns: 1fr; }
  .rules > div { padding: 20px 22px; }

  .panel { padding: 20px; }
  table.cal { border-spacing: 4px; }
  .day, .cal__empty { height: 48px; }
  .day__price { font-size: 8px; }
  .review__score { font-size: 44px; }
  .review blockquote { font-size: 21px; line-height: 1.55; }
  .distances div { font-size: 14px; }

  .contact { padding: 44px var(--pad-x) 24px; }
  .contact__grid, .contact__details { padding-bottom: 30px; }
  .contact__details { padding-top: 30px; }
  .contact__map { aspect-ratio: 1 / 1; }
  .colophon { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* sticky booking bar, mobile only */
  .booking-bar {
    position: sticky; bottom: 0; z-index: 9;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px var(--pad-x);
    background: var(--paper); border-top: 1px solid var(--line);
  }
  .booking-bar .price__now { font-size: 24px; line-height: 1.1; }
  .booking-bar .price__was { font-size: 13px; color: var(--stone); opacity: 1; }
  .booking-bar .btn { padding: 15px 26px; }
  .booking-bar__unit { font-size: 11px; color: var(--stone-dark); letter-spacing: 0.06em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .masthead, .booking-bar, .lang, .nav-toggle, .cal__nav { display: none; }
  .hero { height: 380px; }
}
