:root {
  --bg: #0f172a;
  --surface: #111827;
  --surface-soft: #172033;
  --line: #263449;
  --muted: #94a3b8;
  --text: #e5e7eb;
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --success: #4ade80;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body:has(dialog[open]) {
  overflow: hidden;
}

img {
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--accent);
  color: #07111d;
  font-weight: 800;
  line-height: 1.2;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.btn.small {
  min-height: 40px;
  padding: 9px 14px;
}

.airbnb-link {
  gap: 8px;
  border-color: #ff5a5f;
  background: #fff;
  color: #222;
}

.airbnb-link:hover {
  background: #fff7f7;
  filter: none;
}

.airbnb-logo {
  display: block;
  width: 73px;
  height: auto;
}

.airbnb-badge .airbnb-logo {
  width: 55px;
}

.breadcrumb {
  margin: 22px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--text);
}

.property-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

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

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

h1 {
  max-width: 820px;
  margin-bottom: 8px;
  font-size: clamp(2.15rem, 5vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h3 {
  line-height: 1.3;
}

.property-subtitle {
  margin-bottom: 0;
  color: var(--muted);
}

.heading-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.86);
  color: #cbd5e1;
  font-size: 0.84rem;
  white-space: nowrap;
}

.airbnb-badge {
  border-color: rgba(255, 90, 95, 0.52);
  background: rgba(255, 90, 95, 0.08);
}

.photo-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 230px);
  gap: 8px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
}

.photo-mosaic .photo-button:first-child {
  grid-row: 1 / span 2;
}

.photo-button {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #0b1220;
  cursor: pointer;
}

.photo-button::after {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 22, 0.18);
  content: "";
  opacity: 0;
  transition: opacity 160ms ease;
}

.photo-button:hover::after,
.photo-button:focus-visible::after {
  opacity: 1;
}

.photo-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 240ms ease;
}

.photo-button:hover img {
  transform: scale(1.025);
}

.show-photos {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.32);
  color: #fff;
  backdrop-filter: blur(10px);
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  padding: 64px 0;
}

.lead {
  color: #cbd5e1;
  font-size: 1.08rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 42px;
}

.fact,
.panel,
.booking-panel,
.availability {
  border: 1px solid var(--line);
  background: var(--surface);
}

.fact {
  padding: 16px;
  border-radius: 16px;
}

.fact strong,
.fact span {
  display: block;
}

.fact strong {
  font-size: 1.15rem;
}

.fact span {
  color: var(--muted);
  font-size: 0.85rem;
}

.section-block {
  padding-top: 36px;
  border-top: 1px solid var(--line);
  margin-top: 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-grid li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: #cbd5e1;
}

.feature-icon {
  font-size: 1.1rem;
}

.booking-panel {
  position: sticky;
  top: 24px;
  padding: 24px;
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2);
}

.booking-panel h2 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.booking-panel p {
  color: var(--muted);
  font-size: 0.92rem;
}

.booking-panel .btn {
  width: 100%;
  margin-top: 10px;
}

.booking-note {
  margin: 14px 0 0;
  text-align: center;
}

.gallery-section {
  padding: 6px 0 70px;
}

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

.section-heading-row h2,
.section-heading-row p {
  margin-bottom: 0;
}

.section-heading-row p {
  color: var(--muted);
}

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

.gallery-grid .photo-button {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
}

.gallery-grid .photo-button:nth-child(5n + 1) {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.photo-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(6, 13, 24, 0.72);
  color: #fff;
  font-size: 0.76rem;
  backdrop-filter: blur(8px);
}

.availability-section {
  padding: 64px 0;
  background: rgba(5, 11, 21, 0.28);
  border-block: 1px solid var(--line);
}

.availability-wrap {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 42px;
  align-items: center;
}

.availability-copy p {
  color: var(--muted);
}

.availability {
  padding: 20px;
  border-radius: 22px;
}

.availability-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.availability-title {
  margin: 0;
  font-size: 1.05rem;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-nav button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}

.calendar-nav button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-month {
  min-width: 126px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.availability-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 5px;
  table-layout: fixed;
}

.availability-grid th {
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.availability-grid td {
  padding: 0;
  text-align: center;
}

.calendar-day {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  font-size: 0.8rem;
}

.calendar-day.available {
  background: rgba(74, 222, 128, 0.13);
  color: #bbf7d0;
}

.calendar-day.unavailable {
  background: rgba(148, 163, 184, 0.08);
  color: #64748b;
  text-decoration: line-through;
}

.calendar-day.past {
  color: #475569;
}

.calendar-day.today {
  outline: 1px solid var(--accent);
}

.calendar-legend {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.76rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-swatch.available {
  background: var(--success);
}

.legend-swatch.unavailable {
  background: #64748b;
}

.calendar-status,
.availability-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.availability-note {
  margin: 13px 0 0;
}

.other-stay {
  padding: 68px 0;
}

.other-stay-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.other-stay-card h2 {
  margin-bottom: 5px;
  font-size: 1.65rem;
}

.other-stay-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer a:hover {
  color: var(--text);
}

.lightbox {
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(2, 6, 15, 0.94);
  backdrop-filter: blur(12px);
}

.lightbox-shell {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
}

.lightbox-figure {
  margin: 0;
  text-align: center;
}

.lightbox-image {
  max-height: 78vh;
  border-radius: 16px;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 12px;
  color: #cbd5e1;
}

.lightbox-count {
  display: block;
  color: #94a3b8;
  font-size: 0.78rem;
}

.lightbox-control {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 3;
  font-size: 1.35rem;
}

.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;
}

:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.8);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .photo-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 280px repeat(2, 150px);
  }

  .photo-mosaic .photo-button:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .main-grid,
  .availability-wrap {
    grid-template-columns: 1fr;
  }

  .booking-panel {
    position: static;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    align-items: flex-start;
    padding: 18px 0;
  }

  .site-nav {
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.82rem;
  }

  .site-nav .btn {
    display: none;
  }

  .property-heading,
  .section-heading-row,
  .other-stay-card,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .heading-badges {
    justify-content: flex-start;
  }

  .photo-mosaic {
    grid-template-rows: 245px 125px;
  }

  .photo-mosaic .photo-button:nth-child(n + 4) {
    display: none;
  }

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

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .gallery-grid .photo-button,
  .gallery-grid .photo-button:nth-child(5n + 1) {
    grid-column: auto;
    aspect-ratio: 1;
  }

  .availability-section,
  .main-grid {
    padding-block: 48px;
  }

  .lightbox-shell {
    grid-template-columns: 1fr;
  }

  .lightbox-prev,
  .lightbox-next {
    position: fixed;
    top: 50%;
    z-index: 2;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}
