:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #25211f;
  --muted: #6f6762;
  --soft: #f7f4f1;
  --line: #ded8d2;
  --accent: #df6152;
  --accent-dark: #ba453a;
  --sand: #eee7dd;
  --sage: #74806e;
  --sea: #7aa5ac;
  --shadow: 0 18px 55px rgba(48, 38, 30, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(222, 216, 210, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #22201d;
  border-radius: 50%;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-cta,
.reserve-button {
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(223, 97, 82, 0.24);
}

.header-cta {
  padding: 13px 18px;
}

.hero-shell,
.content-shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero-shell {
  padding: 34px 0 48px;
}

.hero-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.location-line {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1.3;
}

.rating-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.rating-line svg,
.review-score svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

.rating-line a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gallery-grid {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(190px, 1fr));
  gap: 8px;
  height: min(570px, 56vw);
  min-height: 390px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--sand);
}

.gallery-card img,
.floorplan-frame img {
  transition: transform 420ms ease;
}

.gallery-card:hover img {
  transform: scale(1.035);
}

.gallery-card-main {
  grid-row: 1 / 3;
  border-radius: var(--radius) 0 0 var(--radius);
}

.gallery-card:nth-child(3) {
  border-radius: 0 var(--radius) 0 0;
}

.gallery-card:nth-child(5) {
  border-radius: 0 0 var(--radius) 0;
}

.show-gallery {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 33, 31, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
}

.show-gallery svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 365px;
  gap: 72px;
  align-items: start;
  padding-bottom: 80px;
}

.listing-column {
  min-width: 0;
}

.summary-block,
.highlight-list,
.description-block,
.section-block {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.summary-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
}

.summary-block p,
.description-block p,
.location-section p {
  color: var(--muted);
}

.summary-block h2,
.summary-block p {
  margin-bottom: 0;
}

.host-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #2f2a27;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
}

.highlight-list {
  display: grid;
  gap: 24px;
}

.highlight-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
}

.highlight-item svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.highlight-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.description-block p {
  max-width: 720px;
  margin-bottom: 14px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.amenity-grid,
.sleep-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.amenity-grid div,
.sleep-grid div {
  min-height: 58px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.amenity-grid span,
.sleep-grid strong,
.sleep-grid span {
  display: block;
}

.amenity-grid span,
.sleep-grid strong {
  font-weight: 750;
}

.sleep-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.extra-amenity {
  display: none;
}

.amenity-grid.expanded .extra-amenity {
  display: block;
}

.map-mock {
  position: relative;
  overflow: hidden;
  height: 315px;
  margin-top: 20px;
  border-radius: var(--radius);
  background: #e9e2d7;
  border: 1px solid var(--line);
}

.floorplan-frame {
  display: block;
  width: 100%;
  max-width: 680px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.floorplan-frame img {
  height: auto;
  object-fit: contain;
}

.floorplan-frame:hover img {
  transform: scale(1.01);
}

.map-water {
  position: absolute;
  inset: 0 0 0 58%;
  background: linear-gradient(145deg, #a7cdd3, #76a5ad);
}

.map-park {
  position: absolute;
  left: 42%;
  top: 0;
  width: 25%;
  height: 100%;
  background: rgba(116, 128, 110, 0.28);
  transform: skewX(-12deg);
}

.map-road {
  position: absolute;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 1px rgba(37, 33, 31, 0.05);
}

.road-one {
  left: 6%;
  top: 35%;
  width: 57%;
  transform: rotate(-7deg);
}

.road-two {
  left: 2%;
  top: 59%;
  width: 54%;
  transform: rotate(10deg);
}

.road-three {
  left: 31%;
  top: 13%;
  width: 10px;
  height: 74%;
  transform: rotate(6deg);
}

.map-pin {
  position: absolute;
  left: 40%;
  top: 44%;
  transform: translate(-50%, -50%);
  padding: 10px 13px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.review-score {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.review-score h2 {
  margin-bottom: 0;
}

.review-grid figure {
  margin: 0;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--soft);
}

.review-grid blockquote {
  margin: 0 0 18px;
  color: #3f3833;
}

.review-grid figcaption {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.booking-card {
  position: sticky;
  top: 100px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
}

.price-line strong {
  font-size: 24px;
  line-height: 1;
}

.price-line span,
.microcopy {
  color: var(--muted);
  font-size: 14px;
}

.date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #bbb2ab;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.date-grid label:first-child {
  border-right: 1px solid #bbb2ab;
}

.date-grid label,
.guest-field {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
}

.date-grid span,
.guest-field span {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  outline: none;
}

.guest-field {
  margin-bottom: 18px;
  border: solid #bbb2ab;
  border-width: 0 1px 1px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.reserve-button {
  width: 100%;
  padding: 16px 18px;
  font-size: 15px;
}

.reserve-button:hover,
.header-cta:hover {
  background: var(--accent-dark);
}

.microcopy {
  margin: 13px 0 20px;
  text-align: center;
}

.fee-breakdown {
  display: grid;
  gap: 13px;
  margin: 0;
}

.fee-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #4a433e;
}

.fee-breakdown dt,
.fee-breakdown dd {
  margin: 0;
}

.fee-breakdown dt {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fee-breakdown .total-line {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.fee-breakdown .total-line dt {
  color: var(--ink);
  text-decoration: none;
}

.booking-note {
  min-height: 0;
  margin-top: 16px;
  color: var(--sage);
  font-size: 14px;
  font-weight: 700;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 16, 15, 0.76);
}

.gallery-modal.is-open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(980px, 100%);
  padding: 14px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

.modal-panel img {
  height: min(68vh, 650px);
  border-radius: 6px;
}

.modal-panel p {
  margin: 12px 4px 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

@media (max-width: 900px) {
  .site-header {
    min-height: 68px;
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hero-shell,
  .content-shell {
    width: min(100% - 32px, var(--max));
  }

  .hero-copy {
    display: block;
  }

  h1 {
    font-size: 41px;
  }

  .rating-line {
    margin-top: 12px;
  }

  .gallery-grid {
    display: flex;
    gap: 8px;
    height: 340px;
    min-height: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .gallery-card,
  .gallery-card-main,
  .gallery-card:nth-child(3),
  .gallery-card:nth-child(5) {
    flex: 0 0 84%;
    border-radius: var(--radius);
    scroll-snap-align: start;
  }

  .show-gallery {
    display: none;
  }

  .content-shell {
    display: block;
    padding-bottom: 54px;
  }

  .booking-card {
    position: relative;
    top: auto;
    margin-top: 28px;
  }
}

@media (max-width: 620px) {
  body {
    overflow-x: hidden;
  }

  .brand span:last-child {
    font-size: 15px;
  }

  .header-cta {
    display: none;
  }

  .hero-shell {
    padding-top: 24px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 22px;
  }

  .gallery-grid {
    height: 290px;
  }

  .summary-block {
    display: block;
    align-items: flex-start;
  }

  .summary-block h2 {
    max-width: 320px;
    font-size: 21px;
  }

  .summary-block p {
    max-width: 330px;
    overflow-wrap: break-word;
  }

  .host-avatar {
    display: none;
  }

  .amenity-grid,
  .sleep-grid,
  .review-grid,
  .date-grid {
    grid-template-columns: 1fr;
  }

  .date-grid label:first-child {
    border-right: 0;
    border-bottom: 1px solid #bbb2ab;
  }

  .fee-breakdown div {
    gap: 12px;
  }
}
