:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --text: #151515;
  --muted: #6f6a62;
  --line: rgba(20, 20, 20, 0.10);
  --dark: #202722;
  --dark-2: #121512;
  --accent: #8d6f47;
  --accent-soft: #e7dccb;
  --shadow: 0 24px 60px rgba(18, 21, 18, 0.10);
  --radius: 24px;
  --radius-sm: 15px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(141,111,71,.16), transparent 32%),
    radial-gradient(circle at 90% 5%, rgba(32,39,34,.10), transparent 30%);
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.65);
  background: rgba(247,244,238,.82);
  backdrop-filter: blur(16px);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--dark);
  font-size: 12px;
  letter-spacing: .06em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 10px 13px;
  color: #4d4a45;
  font-size: 14px;
  font-weight: 650;
  border-radius: 999px;
}
.nav-links a:hover { background: rgba(255,255,255,.8); color: var(--text); }
.nav-cta { background: var(--dark) !important; color: white !important; padding-inline: 18px !important; }
.menu-btn { display: none; border: 0; background: var(--surface); padding: 9px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }

.hero { padding: 64px 22px 30px; }
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: 34px;
  align-items: stretch;
}
.hero-copy {
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 34px;
  padding: clamp(34px, 5vw, 64px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.overline {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
}
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.045em; }
h1 {
  max-width: 760px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 700;
}
h2 { font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(30px, 4vw, 48px); font-weight: 700; }
h3 { font-size: 22px; }
.lead { margin: 22px 0 0; max-width: 620px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--dark); color: white; box-shadow: 0 16px 38px rgba(32,39,34,.22); }
.btn-light { background: white; color: var(--dark); border-color: var(--line); }
.full { width: 100%; }
.trust-row {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.trust-row strong { display: block; font-size: 22px; }
.trust-row span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.hero-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 210px;
  gap: 16px;
}
.gallery-main, .gallery-small {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, #d7c8b2, #f7f2e8 52%, #9d8b72);
  box-shadow: var(--shadow);
}
.gallery-main { grid-column: 1 / -1; }
.gallery-main::before, .gallery-small::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.30), transparent 52%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 1px, transparent 1px 16px);
}
.gallery-small.one { background: linear-gradient(135deg, #dfd4c3, #f5eee2, #786a59); }
.gallery-small.two { background: linear-gradient(135deg, #c8d0c3, #f6f3ec, #7b8374); }
.photo-label, .gallery-small span {
  position: absolute;
  left: 22px;
  bottom: 20px;
  color: white;
  font-weight: 800;
  z-index: 1;
}
.photo-label { font-size: 26px; letter-spacing: -0.04em; }

.availability-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.availability-strip div {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(18,21,18,.06);
}
.availability-strip span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.availability-strip strong { font-size: 15px; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 78px 22px;
}
.section-title { max-width: 720px; margin-bottom: 28px; }
.section-title.centered { margin-inline: auto; text-align: center; }
.section-title p:not(.overline) { color: var(--muted); }
.apartment-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(380px, 1.05fr);
  gap: 18px;
  align-items: stretch;
}
.text-card, .location-card, .food-panel, .booking-copy, .booking-form, .rule-grid div, .guide-grid article, .rate-card {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 18px 46px rgba(18,21,18,.07);
}
.large-card { border-radius: var(--radius); padding: 34px; font-size: 18px; color: #3f3d38; }
.large-card p { margin: 0; }
.large-card p + p { margin-top: 18px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.feature-grid div {
  min-height: 146px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.feature-grid strong, .feature-grid span { display: block; }
.feature-grid strong { font-size: 18px; margin-bottom: 10px; }
.feature-grid span { color: var(--muted); }

.location-section {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1fr);
  gap: 20px;
  align-items: stretch;
}
.location-card { border-radius: 32px; padding: 42px; }
.location-card p:not(.overline) { color: var(--muted); max-width: 620px; }
.distance-grid {
  display: grid;
  gap: 12px;
}
.distance-grid div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border-radius: 20px;
  background: var(--dark);
  color: white;
}
.distance-grid span { color: rgba(255,255,255,.78); }
.distance-grid strong { white-space: nowrap; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.guide-grid article { border-radius: 24px; padding: 26px; min-height: 230px; }
.number { display: inline-flex; color: var(--accent); font-weight: 900; margin-bottom: 36px; }
.guide-grid p { color: var(--muted); margin-bottom: 0; }
.food-panel {
  margin-top: 16px;
  border-radius: 28px;
  padding: 30px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  align-items: center;
}
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list span {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 750;
  color: #3f3d38;
}

.booking-section {
  display: grid;
  grid-template-columns: minmax(330px, .8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: start;
}
.booking-copy, .booking-form { border-radius: 32px; padding: 34px; }
.booking-copy { position: sticky; top: 92px; }
.booking-copy p:not(.overline) { color: var(--muted); }
.rate-card { margin-top: 26px; border-radius: 22px; padding: 18px; display: grid; gap: 12px; }
.rate-card div { padding: 12px; border-radius: 16px; background: var(--surface-soft); }
.rate-card span, .rate-card small { display: block; color: var(--muted); }
.rate-card strong { display: block; font-size: 24px; margin: 2px 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
label { display: grid; gap: 8px; color: #34322f; font-weight: 800; font-size: 14px; }
input, select {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0 14px;
  color: var(--text);
  outline: none;
}
input:focus, select:focus { border-color: rgba(141,111,71,.7); box-shadow: 0 0 0 4px rgba(141,111,71,.12); }
input[readonly] { cursor: pointer; background: #fff; }
.price-box {
  margin: 22px 0;
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-soft);
}
.price-box div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.price-box div:last-child { border-bottom: 0; }
.price-box span { color: var(--muted); }
.price-box strong { font-weight: 900; }
.price-box .total { background: #fff; }
.price-box .total strong { font-size: 20px; }
.price-box .deposit { background: var(--accent-soft); }
.small-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

.rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.rule-grid div { border-radius: 22px; padding: 24px; }
.rule-grid strong, .rule-grid span { display: block; }
.rule-grid span { margin-top: 6px; color: var(--muted); }
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 22px 54px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}
.footer strong { color: var(--text); }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 21, 18, .58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal.open { display: flex; }
.modal-card {
  width: min(560px, 100%);
  background: var(--surface);
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 30px 90px rgba(0,0,0,.3);
  position: relative;
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  border: 0;
  background: var(--surface-soft);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 24px;
}
.payment-panel { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-top: 16px; }
.payment-panel p { margin-bottom: 0; color: var(--muted); }

.date-picker {
  position: absolute;
  display: none;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 22px 70px rgba(0,0,0,.18);
}
.date-picker.open { display: block; }
.date-picker-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 4px 12px; }
.date-picker-header button { border: 0; background: var(--surface-soft); border-radius: 12px; width: 38px; height: 38px; cursor: pointer; font-size: 22px; }
.date-picker-weekdays, .date-picker-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.date-picker-weekdays span { text-align: center; color: var(--muted); font-size: 12px; font-weight: 800; padding-bottom: 4px; }
.date-day, .date-blank { height: 38px; border-radius: 12px; }
.date-day { border: 0; background: var(--surface-soft); cursor: pointer; font-weight: 750; }
.date-day:hover { background: var(--accent-soft); }
.date-day.selected { background: var(--dark); color: white; }
.date-day:disabled { opacity: .32; cursor: not-allowed; }

@media (max-width: 940px) {
  .nav { padding: 14px 16px; }
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 22px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .hero { padding-top: 28px; }
  .hero-grid, .apartment-layout, .location-section, .booking-section, .food-panel { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; }
  .hero-gallery { grid-template-rows: 340px 150px; }
  .availability-strip, .guide-grid, .rule-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-copy { position: static; }
}

@media (max-width: 620px) {
  .brand span:last-child { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero, .section, .availability-strip { padding-left: 14px; padding-right: 14px; }
  .hero-copy, .booking-copy, .booking-form, .location-card, .large-card { border-radius: 24px; padding: 24px; }
  .hero-gallery { grid-template-rows: 280px 128px; gap: 10px; }
  .gallery-main, .gallery-small { border-radius: 24px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .trust-row, .availability-strip, .feature-grid, .guide-grid, .rule-grid, .form-grid { grid-template-columns: 1fr; }
  .distance-grid div { align-items: flex-start; flex-direction: column; }
  .section { padding-top: 52px; padding-bottom: 52px; }
  .footer { flex-direction: column; }
  .date-picker { left: 14px !important; right: 14px; width: auto !important; }
}
