:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #717171;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --accent-green: #22c55e;
  --accent-blue: #38bdf8;
  --surface: #f7f7f7;
  --border: #dddddd;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --max: 1120px;
  --font: "Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Logo file has a solid black background — lighten blend hides black on white */
.brand-logo,
.footer-logo {
  mix-blend-mode: lighten;
}

.brand-logo {
  width: auto;
  height: 52px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-name {
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand:hover .brand-logo {
  transform: scale(1.02);
}

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

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.nav a:hover,
.nav a.active {
  background: var(--surface);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--text);
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn.primary {
  background: linear-gradient(to right, var(--brand), var(--brand-dark));
  border-color: transparent;
  color: #fff;
}

.btn.primary:hover {
  background: linear-gradient(to right, var(--brand-dark), #c2410c);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
}

/* Gallery */
.gallery {
  padding: 24px 0 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  background: #eee;
  cursor: pointer;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item:first-child {
  grid-row: 1 / span 2;
}

.gallery-more {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow);
}

/* Hero meta */
.hero-meta {
  padding: 28px 0 8px;
}

.hero-meta h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-meta .sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
}

.hero-meta .sub .rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-weight: 600;
}

.hero-meta .sub .dot::before {
  content: "·";
  margin-right: 8px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff8f0;
  border: 1px solid #f0dcc4;
  color: #8b5a2b;
  font-size: 13px;
  font-weight: 600;
}

/* Layout */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 80px;
  padding: 32px 0 80px;
  align-items: start;
}

.section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.section:first-child {
  border-top: none;
  padding-top: 8px;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.section p {
  margin: 0 0 14px;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 8px 0 0;
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  font-size: 22px;
}

.stat strong {
  display: block;
  font-size: 14px;
}

.stat span {
  font-size: 14px;
  color: var(--muted);
}

.highlights {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

.highlight {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}

.highlight-icon {
  font-size: 24px;
  line-height: 1;
}

.highlight h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.highlight p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

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

.amenity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.amenity::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.sleep-grid {
  display: grid;
  gap: 16px;
}

.sleep-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sleep-card .icon {
  font-size: 28px;
}

.sleep-card strong {
  display: block;
  margin-bottom: 2px;
}

.sleep-card span {
  color: var(--muted);
  font-size: 14px;
}

.rules-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.rules-list li {
  margin-bottom: 10px;
}

.reviews-grid {
  display: grid;
  gap: 20px;
}

.review-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.review-top strong {
  font-size: 15px;
}

.review-stars {
  color: var(--brand);
  letter-spacing: 1px;
}

.review-card p {
  margin: 0;
  color: var(--text);
}

.host-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
}

.host-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
}

.host-avatar.has-photo {
  background: none;
  overflow: hidden;
  border: 2px solid var(--border);
}

.host-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.host-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.badge.superhost {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.all-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.photo-thumb {
  border: none;
  padding: 0;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.photo-thumb:hover img {
  transform: scale(1.05);
}

@media (max-width: 960px) {
  .all-photos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .all-photos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.host-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.host-card .meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
}

.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

/* Booking card */
.booking-card {
  position: sticky;
  top: 96px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  background: #fff;
}

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

.booking-card .price-line strong {
  font-size: 22px;
}

.booking-card .price-line span {
  color: var(--muted);
  font-size: 15px;
}

.booking-card .cta {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  font-size: 16px;
}

.booking-note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.booking-features {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
}

.booking-feature {
  display: flex;
  gap: 12px;
  font-size: 14px;
}

.booking-feature .icon {
  font-size: 18px;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: auto;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 22px;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
}

.nav-drawer.open {
  pointer-events: auto;
}

.nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s;
}

.nav-drawer.open .nav-overlay {
  opacity: 1;
}

.nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  padding: 88px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.25s;
  display: grid;
  gap: 8px;
  align-content: start;
}

.nav-drawer.open .nav-panel {
  transform: translateX(0);
}

.nav-panel a {
  padding: 14px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.nav-panel a:hover {
  background: var(--surface);
}

/* Responsive */
@media (max-width: 960px) {
  .page-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .booking-card {
    position: static;
    order: -1;
    margin-bottom: 8px;
  }

  .nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px;
  }

  .gallery-item:first-child {
    grid-column: 1 / span 2;
    grid-row: auto;
    height: 240px;
  }

  .gallery-item:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .brand-logo {
    height: 44px;
  }

  .brand-name {
    font-size: 13px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-logo {
    height: 48px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item,
  .gallery-item:first-child {
    height: 220px;
    grid-column: auto;
  }

  .gallery-item:nth-child(n + 2) {
    display: none;
  }

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

  .header-actions .btn.ghost {
    display: none;
  }
}
