:root {
  --ink: #1f2a24;
  --muted: #68736c;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #e1ddd4;
  --sage: #6d816f;
  --clay: #b66b4e;
  --sun: #e7b451;
  --shadow: 0 18px 50px rgba(31, 42, 36, 0.13);
  --container: 1180px;
  --page-pad: max(22px, calc((100vw - var(--container)) / 2 + 24px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.modal-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 14px var(--page-pad);
  border-bottom: 1px solid rgba(225, 221, 212, 0.72);
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-weight: 800;
  letter-spacing: 0;
  min-width: 0;
}

.brand::before {
  content: "";
  width: 14px;
  height: 28px;
  margin-right: 10px;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(180deg, var(--clay), var(--sun));
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.95rem;
}

nav a,
.site-footer a {
  transition: color 160ms ease;
}

nav a:hover,
.site-footer a:hover {
  color: var(--clay);
}

.header-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.header-action,
.primary-button {
  color: #fff;
  background: var(--ink);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.hero {
  padding: clamp(24px, 4vw, 44px) var(--page-pad) 36px;
}

.listing-hero {
  display: grid;
  gap: 24px;
}

.listing-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
}

.listing-title-row p:not(.kicker) {
  max-width: 760px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.1rem, 6.4vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.15rem);
}

.listing-title-row p:not(.kicker),
.section-copy,
.availability-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.airbnb-photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(190px, 224px));
  gap: 8px;
  min-height: 448px;
}

.photo-tile,
.feature-tile button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.photo-tile-main {
  grid-row: span 2;
}

.photo-tile:first-child {
  border-radius: 8px 0 0 8px;
}

.photo-tile:nth-child(3) {
  border-radius: 0 8px 0 0;
}

.photo-tile:nth-child(5) {
  border-radius: 0 0 8px 0;
}

.photo-tile img,
.feature-tile button img {
  transition: transform 220ms ease, filter 220ms ease;
}

.photo-tile:hover img,
.feature-tile button:hover img {
  transform: scale(1.035);
  filter: brightness(0.92);
}

.show-all-photos {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(31, 42, 36, 0.16);
}

.show-all-photos::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-right: 9px;
  background:
    radial-gradient(circle, currentColor 2px, transparent 3px) 0 0 / 7px 7px,
    radial-gradient(circle, currentColor 2px, transparent 3px) 3.5px 3.5px / 7px 7px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 var(--page-pad);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.amenities-section {
  padding: clamp(48px, 6vw, 76px) var(--page-pad);
  border-top: 1px solid var(--line);
  background: #eef0e9;
}

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

.amenity-grid article,
.review-highlights article {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.amenity-grid strong,
.amenity-grid span,
.review-highlights strong,
.review-highlights p {
  display: block;
}

.amenity-grid strong,
.review-highlights strong {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.amenity-grid span,
.review-highlights p {
  margin: 0;
  color: var(--muted);
}

.quick-facts article {
  min-height: 120px;
  padding: 22px;
  background: var(--surface);
}

.quick-facts strong,
.quick-facts span {
  display: block;
}

.quick-facts strong {
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.quick-facts span {
  color: var(--muted);
}

.section,
.gallery-section,
.reviews,
.availability {
  padding: clamp(58px, 7vw, 88px) var(--page-pad);
}

.section,
.gallery-section,
.availability {
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(430px, 0.82fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}

.split h2,
.section-heading h2 {
  max-width: 760px;
}

.section-copy {
  max-width: 680px;
}

.section-copy p:first-child {
  margin-top: 0;
}

.section-heading {
  display: grid;
  gap: 6px;
  max-width: 780px;
  margin-bottom: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, 260px);
  gap: 14px;
}

.feature-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(31, 42, 36, 0.08);
}

.feature-tile button {
  text-align: left;
}

.feature-tile.large {
  grid-column: span 2;
  grid-row: span 2;
}

.feature-tile.wide {
  grid-column: span 2;
}

.feature-tile figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(31, 42, 36, 0.78);
  font-weight: 700;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 54px);
  color: #fff;
  background: rgba(12, 16, 14, 0.94);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  display: grid;
  gap: 12px;
  max-width: min(1120px, 86vw);
  max-height: 86vh;
  margin: 0;
}

.lightbox-figure img {
  width: auto;
  max-width: min(1120px, 86vw);
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.lightbox-figure figcaption {
  display: grid;
  gap: 6px;
  max-width: 760px;
  margin: 0 auto;
  color: #eef2ee;
  text-align: center;
}

.lightbox-figure figcaption strong,
.lightbox-figure figcaption span {
  display: block;
}

.lightbox-figure figcaption strong {
  font-weight: 800;
}

.lightbox-figure figcaption span {
  color: #cbd4cd;
  font-size: 0.95rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  font-size: 2rem;
}

.lightbox-nav {
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
  font-size: 2.5rem;
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.lightbox-count {
  position: absolute;
  left: 22px;
  bottom: 20px;
  color: #eef2ee;
  font-weight: 800;
}

.location-section {
  background: #eef0e9;
}

.location-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}

.location-grid img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(31, 42, 36, 0.08);
}

.nearby-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.nearby-strip img {
  aspect-ratio: 16 / 7;
  object-fit: contain;
  border-radius: 8px;
  background: var(--surface);
}

.reviews {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink);
  color: #fff;
}

.reviews .kicker {
  color: var(--sun);
}

.airbnb-review-panel {
  display: grid;
  grid-template-columns: minmax(250px, 0.38fr) minmax(280px, 0.36fr) minmax(220px, 0.26fr);
  gap: 1px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.airbnb-score,
.rating-breakdown,
.review-topics {
  padding: 24px;
  background: #fff;
  color: var(--ink);
}

.score-number {
  display: block;
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  font-weight: 900;
  line-height: 0.92;
}

.airbnb-score strong {
  display: block;
  margin-top: 8px;
  font-size: 1.18rem;
}

.airbnb-score p {
  margin: 10px 0 18px;
  color: var(--muted);
}

.review-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: #ff385c;
  font-weight: 800;
}

.rating-breakdown {
  display: grid;
  gap: 12px;
}

.rating-breakdown div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.rating-breakdown div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rating-breakdown span {
  color: var(--muted);
}

.review-topics {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 10px;
}

.review-topics span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 800;
}

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

.airbnb-review-cards article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.airbnb-review-cards div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.airbnb-review-cards div div {
  display: block;
  margin-bottom: 0;
}

.airbnb-review-cards strong,
.airbnb-review-cards span {
  display: block;
}

.airbnb-review-cards span {
  color: #c4ccc5;
  font-size: 0.9rem;
  white-space: nowrap;
}

.airbnb-review-cards p {
  margin: 0;
  color: #eef2ee;
}

.review-stars {
  color: var(--sun);
  letter-spacing: 0.08em;
}

.review-load-error {
  color: #eef2ee;
}

.availability {
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(420px, 0.82fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
}

.availability-copy {
  max-width: 520px;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.calendar-card {
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calendar-head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-align: center;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.icon-button span {
  font-size: 1.8rem;
  line-height: 1;
}

.calendar-status {
  min-height: 24px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-cell {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper);
  font-weight: 700;
}

.calendar-cell.weekday {
  min-height: 30px;
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
}

.calendar-cell.day {
  color: var(--ink);
}

.calendar-cell.booked {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.calendar-cell.today {
  outline: 2px solid var(--sun);
  outline-offset: 2px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px var(--page-pad);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer strong {
  color: var(--ink);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero,
  .split,
  .availability {
    grid-template-columns: 1fr;
  }

  .listing-title-row {
    grid-template-columns: 1fr;
  }

  .airbnb-photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(300px, 52vw) repeat(2, minmax(180px, 26vw));
    min-height: auto;
  }

  .photo-tile-main {
    grid-column: span 2;
    grid-row: auto;
  }

  .photo-tile:first-child {
    border-radius: 8px 8px 0 0;
  }

  .photo-tile:nth-child(3) {
    border-radius: 0;
  }

  .photo-tile:nth-child(4) {
    border-radius: 0 0 0 8px;
  }

  .photo-tile:nth-child(5) {
    border-radius: 0 0 8px 0;
  }

  .quick-facts,
  .amenity-grid,
  .review-highlights,
  .airbnb-review-cards,
  .nearby-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .airbnb-review-panel {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .airbnb-photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, minmax(230px, 68vw));
  }

  .photo-tile-main {
    grid-column: auto;
  }

  .photo-tile,
  .photo-tile:first-child,
  .photo-tile:nth-child(3),
  .photo-tile:nth-child(4),
  .photo-tile:nth-child(5) {
    border-radius: 8px;
  }

  .show-all-photos {
    right: 12px;
    bottom: 12px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .quick-facts,
  .amenity-grid,
  .review-highlights,
  .airbnb-review-cards,
  .gallery-grid,
  .location-grid,
  .nearby-strip,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .feature-tile.large,
  .feature-tile.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-grid {
    grid-auto-rows: minmax(250px, 72vw);
  }

  .calendar-cell {
    min-height: 40px;
    font-size: 0.9rem;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-figure,
  .lightbox-figure img {
    max-width: 94vw;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
    width: 46px;
    height: 46px;
  }

  .lightbox-prev {
    left: 72px;
  }

  .lightbox-next {
    right: 72px;
  }

  .lightbox-count {
    left: 18px;
    bottom: 31px;
  }

  .brand span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .airbnb-review-cards div {
    display: block;
  }
}
