:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #5b5b5b;
  --line: #dddddd;
  --accent: #2b5f57;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.wrap {
  width: min(1320px, 95vw);
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  padding: 0.35rem 0;
  display: none;
  z-index: 120;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: var(--ink);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: #f2f2ef;
  text-decoration: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.logo { height: 60px; width: auto; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 0.4rem;
  font-weight: 600;
}

.btn:hover { text-decoration: none; filter: brightness(0.95); }

.home-hero {
  position: relative;
  margin: 2rem 0;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  overflow: hidden;
  background: #1a1a1a;
}

.home-hero-image {
  width: 100%;
  height: clamp(420px, 62svh, 760px);
  object-fit: cover;
  display: block;
}

.home-hero-overlay {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  max-width: 760px;
  color: #fff;
  background: rgba(12, 12, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.55rem;
  padding: 0.8rem 0.9rem;
}

.home-hero-overlay h1 {
  margin: 0;
}

.home-hero-overlay p {
  margin: 0.55rem 0 0;
}

.section-title { margin: 2rem 0 1rem; }

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

.property-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  overflow: hidden;
}

.property-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.property-card-body { padding: 0.9rem; }

.meta { color: var(--muted); font-size: 0.95rem; }

.page-main {
  padding: 2rem 0;
  flex: 1 0 auto;
}

.property-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  overflow: hidden;
}

.property-hero img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.hero-slideshow {
  position: relative;
  width: 100%;
  max-height: 500px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #101010;
  cursor: default;
}

.property-hero--split {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(280px, 0.9fr);
  align-items: stretch;
}

.property-hero--split .hero-slideshow {
  order: 1;
  height: 100%;
  min-height: 100%;
  max-height: none;
  aspect-ratio: auto;
  border-right: 1px solid var(--line);
}

.property-hero--split .property-content {
  order: 2;
}

.property-hero--split {
  min-height: clamp(520px, 74svh, 860px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.property-hero--split .hero-slide {
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slideshow-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  background: rgba(20, 20, 20, 0.65);
  color: #fff;
  font-size: 0.82rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.hero-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  border: 1px solid #ffffff88;
  background: rgba(12, 12, 12, 0.6);
  color: #fff;
  border-radius: 999px;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
}

.hero-gallery-nav--prev {
  left: 0.75rem;
}

.hero-gallery-nav--next {
  right: 0.75rem;
}

.hero-gallery-nav:hover {
  background: rgba(12, 12, 12, 0.78);
}

.property-intro-overlay {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  max-width: 760px;
  color: #fff;
  background: rgba(12, 12, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.55rem;
  padding: 0.65rem 0.75rem;
  z-index: 2;
  pointer-events: none;
}

.property-intro-overlay p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.4;
}

.property-intro-overlay p + p {
  margin-top: 0.35rem;
}

.property-intro-inline {
  display: none;
  margin: 0 0 1rem;
}

.property-intro-inline p {
  margin: 0 0 0.6rem;
}

.property-intro-inline p:last-child {
  margin-bottom: 0;
}

.hero-slideshow--overlay .hero-slideshow-hint {
  top: 0.75rem;
  bottom: auto;
  z-index: 3;
}

.property-content { padding: 1rem 1.25rem 1.5rem; }

.property-content--centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-title-tight {
  margin-bottom: 0.15rem;
}

.section-title-tight + ul,
.section-title-tight + p {
  margin-top: 0;
}

.property-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.stat {
  border: 1px solid var(--line);
  background: #f3f4f4;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.9rem;
}

.gallery-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.9);
  display: none;
  z-index: 1000;
  padding: 1rem;
}

.lightbox.is-open {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
}

.lightbox-toolbar {
  display: flex;
  justify-content: flex-end;
}

.lightbox-close {
  border: 1px solid #ffffff55;
  background: transparent;
  color: #fff;
  border-radius: 0.35rem;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

.lightbox-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-nav {
  border: 1px solid #ffffff55;
  background: transparent;
  color: #fff;
  border-radius: 0.35rem;
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
}

.lightbox-image-wrap {
  overflow: auto;
  display: grid;
  place-items: center;
  min-height: min(72vh, 680px);
}

.lightbox-image {
  max-width: 100%;
  max-height: min(72vh, 680px);
  object-fit: contain;
  cursor: default;
}

.lightbox-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 0.4rem;
}

.lightbox-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 0.35rem;
  cursor: pointer;
}

.lightbox-thumb.is-active {
  border-color: #fff;
}

.content-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1rem 1.25rem;
}

.value-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.value-list--emoji {
  list-style: none;
  padding-left: 0;
}

.value-list--emoji li + li {
  margin-top: 0.35rem;
}

.about-page {
  display: grid;
  gap: 1.25rem;
}

.about-layout {
  min-height: clamp(520px, 74svh, 860px);
}

.about-hero-banner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #1a1a1a;
}

.about-hero-banner img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.03);
}

.about-layout .property-content h2:first-child {
  margin-top: 0;
}

.about-layout .property-content h2 + p {
  margin-top: 0;
}

.about-layout .property-content h2:not(:first-child) {
  margin-top: 1.1rem;
}

@media (max-width: 900px) {
  .properties-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero-overlay {
    position: static;
    max-width: none;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    background: rgba(12, 12, 12, 0.82);
  }
  .property-hero--split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .property-hero--split .hero-slideshow {
    height: clamp(280px, 48svh, 460px);
    min-height: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .hero-slideshow .property-intro-overlay {
    display: none;
  }
  .property-intro-inline {
    display: block;
  }
  .property-content--centered {
    justify-content: flex-start;
  }
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-hero-banner {
    width: 100%;
    height: clamp(360px, 56svh, 560px);
    min-height: 0;
  }
  .about-hero-banner .property-intro-overlay {
    display: none;
  }
}

@media (max-width: 620px) {
  .nav { flex-direction: column; align-items: flex-start; }
  .nav-links { flex-wrap: wrap; }
  .nav-dropdown-menu {
    position: static;
    margin-top: 0.45rem;
    min-width: 0;
  }
  .properties-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .home-hero-image {
    height: clamp(320px, 52svh, 520px);
  }
  .about-layout {
    gap: 0.75rem;
  }
}
