:root {
  --ink: #111513;
  --forest: #1e2d24;
  --forest-deep: #101a15;
  --green: #7ac943;
  --green-dark: #4f8e2d;
  --ivory: #f4f2ee;
  --stone: #a8a49c;
  --wood: #c08b52;
  --line: rgba(244, 242, 238, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  font-family: Montserrat, Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ivory);
  background: var(--ink);
  overflow-x: hidden;
}

body.is-lightbox-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

img {
  max-width: 100%;
}

.detail-header {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(24px, calc((100vw - 1440px) / 2));
  background: rgba(12, 17, 14, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.detail-brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(122, 201, 67, 0.42);
  border-radius: 6px;
  background: #0b0e0c;
}

.detail-brand-mark svg {
  width: 34px;
  fill: var(--ivory);
}

.detail-brand-mark svg path + path {
  fill: none;
  stroke: var(--ivory);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-brand strong,
.detail-brand small {
  display: block;
}

.detail-brand strong {
  font-size: 20px;
  line-height: 1;
}

.detail-brand small {
  margin-top: 5px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.detail-nav a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
}

.detail-nav .nav-book {
  color: #0b1308;
  background: var(--green);
  border-color: var(--green);
}

.house-hero {
  min-height: 82svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 150px max(24px, calc((100vw - 1440px) / 2)) 70px;
  overflow: hidden;
}

.house-hero > img,
.house-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.house-hero > img {
  z-index: -2;
  object-fit: cover;
}

.house-hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 9, 0.82), rgba(7, 11, 9, 0.18) 68%),
    linear-gradient(0deg, rgba(7, 11, 9, 0.88), transparent 52%);
}

.house-hero-content {
  width: min(880px, 100%);
}

.house-hero-content .eyebrow,
.section-heading .eyebrow,
.booking-band .eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.house-hero h1 {
  margin: 0;
  font-size: 72px;
  line-height: 0.96;
}

.house-hero-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #e4e6e1;
  font-size: 21px;
  line-height: 1.5;
}

.house-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.house-facts span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(244, 242, 238, 0.28);
  border-radius: 4px;
  background: rgba(11, 15, 12, 0.56);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

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

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 900;
}

.button-primary {
  color: #0b1308;
  background: var(--green);
  border-color: var(--green);
}

.button-dark {
  background: rgba(11, 15, 12, 0.72);
  backdrop-filter: blur(10px);
}

.detail-section {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-heading h2,
.booking-band h2 {
  margin: 0;
  font-size: 54px;
  line-height: 1.02;
}

.section-heading p:last-child {
  max-width: 720px;
  color: var(--stone);
  font-size: 18px;
  line-height: 1.6;
}

.gallery-featured {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
  grid-template-rows: repeat(2, 260px);
  gap: 12px;
}

.gallery-button {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #202722;
  cursor: zoom-in;
}

.gallery-button:first-child {
  grid-row: 1 / 3;
}

.gallery-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 280ms ease, filter 280ms ease;
}

.gallery-button:hover img {
  transform: scale(1.025);
  filter: brightness(1.08);
}

.gallery-button .photo-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 9px 12px;
  color: var(--ivory);
  background: rgba(8, 12, 10, 0.78);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
}

.gallery-all {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.gallery-all .gallery-button {
  aspect-ratio: 7 / 4;
}

.story-band {
  background: var(--ivory);
  color: var(--ink);
}

.story-layout {
  width: min(1440px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 80px;
  margin: 0 auto;
  padding: 104px 0;
}

.story-intro {
  position: sticky;
  top: 110px;
  align-self: start;
}

.story-intro .eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.story-intro h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1.04;
}

.story-copy {
  display: grid;
  gap: 22px;
}

.story-copy p {
  margin: 0;
  color: #323834;
  font-size: 20px;
  line-height: 1.7;
}

.story-copy p:first-child {
  color: var(--forest);
  font-size: 26px;
  font-weight: 700;
}

.amenities-band {
  background: var(--forest-deep);
}

.amenity-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.amenity-group {
  min-width: 0;
  padding: 26px 22px 4px;
  border-right: 1px solid var(--line);
}

.amenity-group:first-child {
  padding-left: 0;
}

.amenity-group:last-child {
  border-right: 0;
}

.amenity-group h3 {
  min-height: 48px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 18px;
  line-height: 1.35;
}

.amenity-group ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.amenity-group li {
  position: relative;
  padding-left: 17px;
  color: #d9ddd8;
  font-size: 15px;
  line-height: 1.45;
}

.amenity-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.booking-band {
  width: min(1440px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  margin: 96px auto;
  padding: 54px;
  border: 1px solid rgba(122, 201, 67, 0.34);
  border-radius: 6px;
  background: #1b241e;
  box-shadow: var(--shadow);
}

.booking-band p:last-child {
  max-width: 780px;
  margin: 18px 0 0;
  color: #cfd4cf;
  font-size: 18px;
  line-height: 1.6;
}

.booking-actions {
  display: grid;
  gap: 10px;
  min-width: 270px;
}

.booking-note {
  color: var(--stone);
  font-size: 12px;
  text-align: center;
}

.other-houses {
  border-top: 1px solid var(--line);
}

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

.other-house {
  min-height: 410px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 6px;
  background: #202722;
}

.other-house img,
.other-house::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.other-house img {
  object-fit: cover;
  transition: transform 300ms ease;
}

.other-house::after {
  content: "";
  background: linear-gradient(0deg, rgba(5, 8, 6, 0.88), transparent 70%);
}

.other-house:hover img {
  transform: scale(1.025);
}

.other-house div {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.other-house span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.other-house h3 {
  margin: 8px 0 0;
  font-size: 34px;
}

.detail-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(24px, calc((100vw - 1440px) / 2));
  color: var(--stone);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.detail-footer a {
  color: var(--ivory);
  text-decoration-color: rgba(244, 242, 238, 0.35);
  text-underline-offset: 3px;
}

.detail-footer a:hover {
  color: var(--lime);
}

.mobile-book {
  display: none;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--ivory);
  background: rgba(4, 6, 5, 0.97);
  border: 0;
}

.lightbox::backdrop {
  background: rgba(4, 6, 5, 0.97);
}

.lightbox-inner {
  position: relative;
  width: min(1680px, 100%);
  height: 100%;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 22px 92px 34px;
  overflow: hidden;
}

.lightbox-image {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  justify-self: center;
  align-self: center;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 30px;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 28px;
}

.lightbox-prev {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
}

.lightbox-next {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
}

.lightbox-count {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--stone);
  font-size: 14px;
}

@media (max-width: 1050px) {
  .house-hero h1 {
    font-size: 54px;
  }

  .gallery-featured {
    grid-template-columns: 1.4fr 1fr;
  }

  .gallery-featured .gallery-button:nth-child(4),
  .gallery-featured .gallery-button:nth-child(5) {
    display: none;
  }

  .gallery-all {
    grid-template-columns: repeat(3, 1fr);
  }

  .story-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .story-intro {
    position: static;
  }

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

  .amenity-group,
  .amenity-group:first-child {
    padding: 26px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .booking-band {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .booking-actions {
    width: min(100%, 380px);
  }
}

@media (max-width: 680px) {
  .detail-header {
    min-height: 68px;
    padding: 10px 14px;
  }

  .detail-brand-mark {
    width: 44px;
    height: 44px;
  }

  .detail-brand strong {
    font-size: 17px;
  }

  .detail-brand small {
    font-size: 9px;
  }

  .detail-nav a:first-child {
    display: none;
  }

  .detail-nav .nav-book {
    min-height: 44px;
    padding: 0 13px;
    font-size: 12px;
  }

  .house-hero {
    min-height: 78svh;
    padding: 112px 14px 44px;
  }

  .house-hero h1 {
    font-size: 39px;
  }

  .house-hero-lead {
    font-size: 17px;
  }

  .house-facts {
    gap: 7px;
    margin-top: 20px;
  }

  .house-facts span {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .house-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-section {
    width: min(100% - 28px, 1440px);
    padding: 68px 0;
  }

  .section-heading h2,
  .booking-band h2 {
    font-size: 36px;
  }

  .section-heading p:last-child {
    font-size: 16px;
  }

  .gallery-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 330px 150px;
    gap: 8px;
  }

  .gallery-featured .gallery-button:first-child {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .gallery-featured .gallery-button:nth-child(2),
  .gallery-featured .gallery-button:nth-child(3) {
    grid-row: 2;
  }

  .gallery-all {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
  }

  .story-layout {
    width: min(100% - 28px, 1440px);
    padding: 72px 0;
  }

  .story-intro h2 {
    font-size: 36px;
  }

  .story-copy p,
  .story-copy p:first-child {
    font-size: 18px;
  }

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

  .amenity-group,
  .amenity-group:first-child {
    padding: 24px 0;
  }

  .amenity-group h3 {
    min-height: 0;
  }

  .booking-band {
    width: min(100% - 28px, 1440px);
    gap: 30px;
    margin: 68px auto;
    padding: 28px 22px;
  }

  .booking-actions {
    min-width: 0;
  }

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

  .other-house {
    min-height: 330px;
  }

  .other-house h3 {
    font-size: 28px;
  }

  .detail-footer {
    flex-direction: column;
    padding: 28px 14px 96px;
  }

  .mobile-book {
    position: fixed;
    z-index: 45;
    left: 14px;
    right: 14px;
    bottom: 14px;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b1308;
    background: var(--green);
    border-radius: 4px;
    box-shadow: var(--shadow);
    font-weight: 900;
  }

  .lightbox-inner {
    padding: 58px 10px 46px;
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 42px;
    height: 42px;
  }

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

  .lightbox-prev {
    left: 10px;
  }

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