:root {
  color-scheme: light;
  --ink: #222222;
  --muted: #6a6a6a;
  --line: #dddddd;
  --soft: #f7f7f7;
  --surface: #ffffff;
  --accent: #c7553d;
  --accent-dark: #943923;
  --success: #1f6f4a;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

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

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  min-height: 80px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 850;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

nav {
  display: flex;
  gap: 24px;
  justify-content: center;
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.header-cta {
  background: var(--accent);
  border-radius: 999px;
  color: white;
  font-size: 0.9rem;
  font-weight: 850;
  padding: 11px 16px;
  white-space: nowrap;
}

.listing-shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 26px 24px 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  letter-spacing: 0;
  line-height: 1.12;
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: 0;
  line-height: 1.18;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.listing-title {
  padding-bottom: 20px;
}

.title-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-weight: 700;
  gap: 10px 16px;
}

.title-meta a {
  color: var(--ink);
  text-decoration: underline;
}

.photo-mosaic {
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 190px);
  margin-bottom: 34px;
  overflow: hidden;
  position: relative;
}

.mobile-photo-actions,
.mobile-reserve-bar,
.mobile-title-stats,
.mobile-only,
.photo-count {
  display: none;
}

.photo-mosaic figure {
  margin: 0;
  overflow: hidden;
}

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

.mosaic-main {
  grid-row: span 2;
}

.show-photos {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--ink);
  border-radius: 8px;
  bottom: 18px;
  font-weight: 850;
  padding: 10px 14px;
  position: absolute;
  right: 18px;
}

.listing-layout {
  align-items: start;
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

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

.content-section,
.summary-block {
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
  scroll-margin-top: 96px;
}

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

.host-chip {
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 5px;
  min-width: 210px;
  padding: 16px;
}

.host-avatar {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: white;
  display: none;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.host-chip span,
.host-chip small {
  font-weight: 850;
}

.host-chip small {
  color: var(--muted);
  line-height: 1.35;
}

.favourite-strip {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 24px 0 4px;
  padding: 18px 20px;
}

.favourite-strip strong {
  font-size: 1.02rem;
}

.favourite-strip span {
  color: var(--muted);
  font-weight: 700;
}

.highlight-list,
.sleep-grid,
.amenity-grid,
.score-grid,
.guest-review-grid,
.gallery-grid,
.rules-grid {
  display: grid;
  gap: 14px;
}

.highlight-list,
.review-themes,
.guest-review-grid,
.rules-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sleep-grid,
.score-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.highlight-list article,
.sleep-grid article,
.score-grid div,
.guest-review-card,
.rules-grid article,
.location-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.sleep-grid article {
  display: grid;
  gap: 8px;
}

.sleep-grid img {
  border-radius: 10px;
  display: none;
  height: 132px;
  object-fit: cover;
  width: 100%;
}

.sleep-grid span,
.score-grid span,
.location-card span {
  color: var(--muted);
  display: block;
  font-weight: 700;
}

.map-preview {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(135deg, #dceec8 0%, #edf4df 45%, #d7e6c5 100%);
  background-size: 58px 58px, 58px 58px, cover;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: none;
  min-height: 280px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.map-preview::after {
  align-items: center;
  background: #e8175d;
  border-radius: 999px 999px 999px 0;
  color: white;
  content: "Stay";
  display: flex;
  font-weight: 900;
  height: 76px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 76px;
}

.map-preview::before {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  content: "Approximate area";
  font-weight: 850;
  padding: 10px 14px;
  position: absolute;
  right: 16px;
  top: 16px;
}

.map-preview strong,
.map-preview span {
  color: #52664c;
  display: block;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.amenity-grid > span {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  font-weight: 720;
  gap: 18px;
  grid-template-columns: 32px 1fr;
  line-height: 1.25;
  padding: 16px 0;
}

.amenity-grid .amenity-icon {
  color: var(--ink);
  display: block;
  fill: none;
  height: 28px;
  justify-self: start;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
  width: 28px;
}

.icon-credit {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 12px 0 0;
}

.icon-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.score-grid {
  margin-bottom: 18px;
}

.score-grid strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.review-note {
  font-size: 0.94rem;
}

.review-tags {
  display: none;
}

.guest-review-grid {
  margin-top: 18px;
}

.review-meta {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
  font-weight: 850;
  margin-bottom: 10px;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.photo-card {
  border-radius: 12px;
  min-height: 210px;
  overflow: hidden;
  position: relative;
}

.photo-card img {
  height: 100%;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.photo-card figcaption {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  bottom: 0;
  color: white;
  font-weight: 850;
  left: 0;
  padding: 42px 16px 14px;
  position: absolute;
  right: 0;
}

.photo-card.featured,
.photo-card.wide {
  grid-column: span 2;
}

.outline-button,
button {
  border: 1px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 850;
  justify-content: center;
  margin-top: 18px;
  min-height: 46px;
  padding: 12px 18px;
}

.outline-button {
  background: white;
  color: var(--ink);
}

.outline-button[hidden] {
  display: none;
}

.booking-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px;
  position: sticky;
  top: 104px;
}

.booking-card-head {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.booking-card-head strong {
  font-size: 1.35rem;
}

.booking-card-head span,
.booking-note {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.booking-form {
  display: grid;
  gap: 12px;
}

.date-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  font-size: 0.75rem;
  font-weight: 850;
  gap: 6px;
  text-transform: uppercase;
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 11px;
  text-transform: none;
  width: 100%;
}

textarea {
  resize: vertical;
}

.consent {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 1fr;
  text-transform: none;
}

.consent input {
  min-height: 18px;
}

.booking-form button {
  background: var(--accent);
  border: 0;
  color: white;
  margin-top: 4px;
  width: 100%;
}

.booking-form button:hover {
  background: var(--accent-dark);
}

.form-status {
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0;
}

.calendar-card {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.calendar-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-head span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

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

.day {
  align-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 850;
  justify-content: center;
}

.day.available {
  background: #edf7ef;
  color: var(--success);
}

.day.blocked {
  background: #f4e1dc;
  color: #8f351f;
  text-decoration: line-through;
}

.day.selected {
  background: var(--ink);
  color: white;
}

footer {
  border-top: 1px solid var(--line);
  margin: 48px auto 0;
  max-width: 1120px;
  padding: 24px;
}

footer p {
  font-size: 0.94rem;
}

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

  .site-header nav {
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .listing-layout {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .booking-card {
    order: -1;
    position: static;
  }

  .photo-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 150px 150px;
  }

  .mosaic-main {
    grid-column: span 2;
    grid-row: span 1;
  }

  .highlight-list,
  .sleep-grid,
  .score-grid,
  .guest-review-grid,
  .gallery-grid,
  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 18px;
  }

  body {
    padding-bottom: 132px;
  }

  .site-header {
    display: none;
  }

  .mobile-photo-actions {
    align-items: center;
    display: flex;
    justify-content: space-between;
    left: 0;
    padding: 18px 20px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 50;
  }

  .mobile-photo-actions a {
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    min-width: 44px;
    padding: 0 14px;
  }

  .mobile-photo-actions > a {
    font-size: 1.55rem;
    padding-bottom: 3px;
  }

  .mobile-photo-actions span {
    display: flex;
    gap: 10px;
  }

  .listing-shell {
    display: flex;
    flex-direction: column;
    max-width: none;
    padding: 0;
  }

  h1 {
    font-size: clamp(1.72rem, 8.2vw, 2.15rem);
    line-height: 1.08;
    text-align: center;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.08;
    margin-bottom: 22px;
  }

  p {
    font-size: 1.03rem;
    line-height: 1.55;
  }

  .listing-title {
    background: white;
    border-radius: 34px 34px 0 0;
    margin-top: -64px;
    order: 2;
    padding: 22px 20px 20px;
    position: relative;
    z-index: 2;
  }

  .eyebrow {
    text-align: center;
  }

  .title-meta {
    display: grid;
    gap: 8px;
    justify-items: center;
    margin-bottom: 16px;
    text-align: center;
  }

  .mobile-title-stats {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0;
    grid-template-columns: 1fr 1.18fr 1fr;
    padding-top: 14px;
  }

  .mobile-title-stats div {
    border-right: 1px solid var(--line);
    display: grid;
    gap: 6px;
    justify-items: center;
    min-width: 0;
    padding: 0 8px;
    text-align: center;
  }

  .mobile-title-stats div:last-child {
    border-right: 0;
  }

  .mobile-title-stats strong {
    font-size: 1.08rem;
    line-height: 1.12;
  }

  .mobile-title-stats span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 780;
  }

  .photo-mosaic {
    border-radius: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(390px, 52vh);
    margin: 0;
    order: 1;
  }

  .photo-mosaic figure:not(.mosaic-main) {
    display: none;
  }

  .mosaic-main {
    grid-column: span 1;
  }

  .photo-count {
    background: rgba(0, 0, 0, 0.72);
    border-radius: 8px;
    bottom: 58px;
    color: white;
    display: inline-flex;
    font-weight: 900;
    padding: 8px 11px;
    position: absolute;
    right: 18px;
  }

  .show-photos {
    display: none;
  }

  .listing-layout {
    display: grid;
    gap: 0;
    order: 3;
    padding: 0 22px;
  }

  .listing-content {
    order: 1;
  }

  .content-section,
  .summary-block {
    padding: 36px 0;
    scroll-margin-top: 18px;
  }

  .summary-block {
    display: grid;
  }

  .host-chip {
    align-items: center;
    border: 0;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 4px 14px;
    grid-template-columns: 54px 1fr;
    min-width: 0;
    padding: 26px 0 0;
  }

  .host-avatar {
    display: inline-flex;
    grid-row: span 2;
  }

  .favourite-strip {
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    display: grid;
    justify-items: center;
    margin: 0;
    padding: 26px 22px;
    text-align: center;
  }

  .favourite-strip strong {
    font-size: 1.7rem;
    line-height: 1.1;
  }

  .highlight-list,
  .score-grid,
  .gallery-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .highlight-list {
    display: flex;
    margin-right: -22px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .highlight-list article {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .intro-copy {
    max-height: 184px;
    overflow: hidden;
  }

  .sleep-grid {
    display: flex;
    gap: 14px;
    margin-right: -22px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .sleep-grid article {
    border: 0;
    flex: 0 0 72%;
    padding: 0;
    scroll-snap-align: start;
  }

  .sleep-grid img {
    display: block;
  }

  .amenity-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .amenity-grid > span {
    align-items: center;
    display: grid;
    font-size: 1.18rem;
    gap: 18px;
    grid-template-columns: 36px 1fr;
    min-height: 62px;
    overflow-wrap: anywhere;
  }

  .amenity-grid .amenity-icon {
    height: 30px;
    width: 30px;
  }

  .mobile-only {
    display: inline-flex;
  }

  .score-grid {
    border-bottom: 0;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
    padding-bottom: 0;
  }

  .score-grid div {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 12px;
    text-align: left;
  }

  .score-grid div:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .score-grid strong {
    font-size: 1.18rem;
    margin-bottom: 4px;
  }

  .score-grid span {
    font-size: 0.88rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .review-tags {
    display: flex;
    gap: 12px;
    margin: 18px -22px 20px 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .review-tags::-webkit-scrollbar {
    display: none;
  }

  .review-tags span {
    border: 1px solid var(--line);
    border-radius: 999px;
    flex: 0 0 auto;
    font-weight: 850;
    padding: 13px 18px;
  }

  .guest-review-grid {
    display: flex;
    gap: 18px;
    margin-right: -22px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .guest-review-grid::-webkit-scrollbar {
    display: none;
  }

  .guest-review-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    flex: 0 0 84%;
    padding: 16px;
    scroll-snap-align: start;
  }

  .map-preview {
    display: block;
    margin-top: 18px;
  }

  .location-card {
    border: 0;
    padding: 0;
  }

  .rules-grid article {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 22px 0;
    position: relative;
  }

  .rules-grid article::after {
    color: var(--muted);
    content: ">";
    font-size: 1.6rem;
    font-weight: 500;
    position: absolute;
    right: 0;
    top: 26px;
  }

  .booking-card {
    box-shadow: none;
    margin-top: 26px;
    order: 2;
    position: static;
  }

  .photo-card,
  .photo-card.featured,
  .photo-card.wide {
    grid-column: span 1;
    min-height: 240px;
  }

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

  .outline-button {
    width: 100%;
  }

  footer {
    margin-top: 0;
    padding: 22px;
  }

  .mobile-reserve-bar {
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    bottom: 0;
    box-shadow: 0 -18px 38px rgba(0, 0, 0, 0.12);
    display: block;
    left: 0;
    position: fixed;
    right: 0;
    z-index: 45;
  }

  .mobile-urgency {
    background: #f2f2f2;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
    font-weight: 900;
    padding: 9px 18px;
    text-align: center;
  }

  .mobile-reserve-row {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr auto;
    padding: 13px 18px 16px;
  }

  .mobile-reserve-row strong,
  .mobile-reserve-row span {
    display: block;
  }

  .mobile-reserve-row strong {
    font-size: 1.1rem;
  }

  .mobile-reserve-row span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 760;
  }

  .mobile-reserve-row a {
    background: #e8175d;
    border-radius: 999px;
    color: white;
    font-size: 1rem;
    font-weight: 900;
    min-width: 132px;
    padding: 14px 20px;
    text-align: center;
  }
}
