:root {
  color-scheme: light;
  --ink: #171512;
  --muted: #5f5a51;
  --paper: #f6f1e7;
  --panel: #fffdf8;
  --line: rgba(23, 21, 18, 0.16);
  --gold: #c38a2e;
  --green: #285f4d;
  --brick: #a65343;
  --blue: #365f78;
  --shadow: 0 24px 70px rgba(23, 21, 18, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.site-hero {
  min-height: 94vh;
  background:
    linear-gradient(120deg, rgba(195, 138, 46, 0.22), rgba(54, 95, 120, 0.12)),
    var(--paper);
}

.nav {
  width: min(1180px, calc(100% - 36px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  font-size: 0.78rem;
  box-shadow: 0 12px 28px rgba(195, 138, 46, 0.28);
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-grid {
  width: min(1180px, calc(100% - 36px));
  min-height: calc(94vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 44px;
  align-items: center;
  padding: 56px 0 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 8.2vw, 7.7rem);
  line-height: 0.93;
  font-weight: 500;
  letter-spacing: 0;
}

.lede {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions, .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions { margin-top: 30px; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 0 17px;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  background: var(--ink);
  color: var(--panel);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.stats span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.stats b { color: var(--ink); }

.hero-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  border: 1px solid rgba(255, 253, 248, 0.76);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel img:first-child { grid-row: span 2; aspect-ratio: 1 / 2.22; }

main { padding: 42px clamp(18px, 4vw, 48px) 70px; }

.audience-band, .availability, .contact {
  width: min(1180px, 100%);
  margin: 0 auto 34px;
}

.audience-band {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  gap: 28px;
  align-items: start;
}

.audience-band h2, .availability h2, .contact h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.audience-grid article, .availability, .contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.audience-grid article { padding: 18px; }
.audience-grid h3 { margin: 0 0 8px; font-size: 0.98rem; }
.audience-grid a, .text-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 700;
  cursor: pointer;
}
.audience-grid p, .availability p, .contact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.toolbar {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px 160px;
  gap: 12px;
}

input, select {
  height: 46px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}

.grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.photo { position: relative; background: #e6e0d5; }
.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(23, 21, 18, 0.78);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

.body h2 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

.meta, .calendar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill, .date-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #faf7ef;
  color: var(--muted);
  padding: 4px 8px;
  font-size: 0.78rem;
}

.amenities {
  min-height: 38px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.date-chip { border-radius: 7px; }
.date-chip.open {
  border-color: rgba(40, 95, 77, 0.28);
  background: #eef8f2;
  color: var(--green);
}

.actions {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
}

.price { color: var(--green); font-weight: 900; }
.details-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}

.availability, .contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding: 26px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}
.modal[aria-hidden="false"] { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(23, 21, 18, 0.55); }
.modal-panel {
  position: relative;
  width: min(1060px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  margin: 14px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}
.modal-close {
  position: sticky;
  top: 12px;
  z-index: 2;
  float: right;
  width: 36px;
  height: 36px;
  margin: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.detail-hero {
  clear: both;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  padding: 20px;
}
.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
}
.detail-gallery img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
}
.detail-side h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.18;
}
.detail-section { padding: 0 20px 20px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.detail-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #faf7ef;
}
.detail-box h3 { margin: 0 0 9px; font-size: 0.9rem; }
.detail-box p, .detail-box li {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}
.detail-box ul { margin: 0; padding-left: 18px; }

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
}
.chat-toggle {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-weight: 900;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.chat-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(380px, calc(100vw - 36px));
  display: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.chat-widget.open .chat-panel { display: block; }
.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fbf6ec;
}
.chat-head span { display: block; color: var(--muted); font-size: 0.78rem; }
.chat-head button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.chat-log {
  max-height: 270px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
}
.message {
  max-width: 88%;
  border-radius: 8px;
  background: #f0eadf;
  padding: 10px 11px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}
.message.user {
  align-self: flex-end;
  background: var(--green);
  color: #fff;
}
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 14px 12px;
}
.quick-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
}
.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.chat-form button {
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(18px, 4vw, 48px) 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}
footer span:first-child { color: var(--ink); font-weight: 900; }

@media (max-width: 980px) {
  .site-hero { min-height: auto; }
  .hero-grid, .audience-band, .detail-hero, .detail-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .audience-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: 1fr; }
  .availability, .contact { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .nav { height: 62px; width: calc(100% - 28px); }
  .brand { font-size: 0.82rem; }
  .brand-mark { width: 34px; height: 34px; }
  .nav-links { display: none; }
  .hero-grid { width: calc(100% - 28px); gap: 24px; padding: 28px 0 34px; }
  h1 { font-size: 3rem; line-height: 0.98; }
  .lede { font-size: 1rem; line-height: 1.55; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; }
  .stats span { min-height: 48px; display: flex; align-items: center; font-size: 0.76rem; }
  .hero-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .hero-panel img, .hero-panel img:first-child { aspect-ratio: 1; box-shadow: none; }
  main { padding: 22px 12px 50px; }
  .toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 0 -12px 14px;
    padding: 10px 12px;
    background: rgba(246, 241, 231, 0.96);
    border-bottom: 1px solid var(--line);
  }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .photo img { aspect-ratio: 16 / 11; }
  .modal-panel {
    width: 100vw;
    max-height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .detail-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .detail-gallery img {
    flex: 0 0 82%;
    min-height: 230px;
    max-height: 270px;
    scroll-snap-align: start;
  }
  .chat-widget { right: 12px; bottom: 12px; }
  footer { flex-direction: column; }
}
