:root {
  --bg: #f7f1e8;
  --bg-soft: #fffaf3;
  --surface: #fffdf9;
  --text: #2d2a26;
  --muted: #746b61;
  --brand: #8d5b3c;
  --brand-dark: #633d29;
  --cta: #d65f2e;
  --cta-dark: #ad421b;
  --accent: #9baf78;
  --accent-dark: #687b4d;
  --border: rgba(102, 78, 61, 0.14);
  --shadow-sm: 0 12px 34px rgba(86, 64, 48, 0.09);
  --shadow: 0 26px 70px rgba(86, 64, 48, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

section[id] {
  scroll-margin-top: 6rem;
}

body {
  min-height: 100vh;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(circle at 4% 8%, rgba(155, 175, 120, 0.17), transparent 24rem),
    radial-gradient(circle at 96% 82%, rgba(141, 91, 60, 0.11), transparent 28rem),
    var(--bg);
  font-family: "Manrope", sans-serif;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
.display-font {
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

img {
  display: block;
}

a {
  color: inherit;
}

:where(.btn, .nav-link, .dropdown-item, .brand-logo, .footer a) {
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

.container {
  --bs-gutter-x: 2rem;
  max-width: 1220px;
}

.site-navbar {
  min-height: 78px;
  padding: 0.65rem 0;
  background: rgba(255, 250, 243, 0.9);
  border-bottom: 1px solid rgba(102, 78, 61, 0.09);
  backdrop-filter: blur(18px);
}

.site-navbar .nav-link {
  position: relative;
  padding: 0.65rem 0.85rem !important;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active,
.site-navbar .dropdown-toggle.show {
  color: var(--brand-dark);
}

.site-navbar .nav-link.active::after {
  position: absolute;
  right: 0.85rem;
  bottom: 0.3rem;
  left: 0.85rem;
  height: 2px;
  background: var(--brand);
  border-radius: 999px;
  content: "";
}

.navbar-toggler {
  padding: 0.45rem 0.6rem;
  border-color: var(--border);
  border-radius: 12px;
}

.dropdown-menu {
  background: rgba(255, 253, 249, 0.98);
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
}

.dropdown-item {
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.dropdown-item:hover,
.dropdown-item.active {
  color: var(--brand-dark);
  background: rgba(141, 91, 60, 0.09);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.logo-mark {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

.brand-name {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn {
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--cta);
  --bs-btn-border-color: var(--cta);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--cta-dark);
  --bs-btn-hover-border-color: var(--cta-dark);
  --bs-btn-active-bg: var(--cta-dark);
  --bs-btn-focus-shadow-rgb: 214, 95, 46;
  box-shadow: 0 10px 25px rgba(214, 95, 46, 0.25);
}

.btn-outline-brand {
  --bs-btn-color: var(--cta-dark);
  --bs-btn-border-color: rgba(214, 95, 46, 0.4);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--cta);
  --bs-btn-hover-border-color: var(--cta);
}

.btn-lg {
  --bs-btn-font-size: 0.94rem;
  --bs-btn-padding-y: 0.78rem;
  --bs-btn-padding-x: 1.35rem;
}

.detail-hero-panel .btn-light,
.contact-panel .btn-light {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--cta);
  --bs-btn-border-color: var(--cta);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--cta-dark);
  --bs-btn-hover-border-color: var(--cta-dark);
  box-shadow: 0 12px 28px rgba(214, 95, 46, 0.32);
}

.detail-hero-panel .btn-outline-light,
.contact-panel .btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: var(--cta);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--cta);
  --bs-btn-hover-border-color: var(--cta);
  background: rgba(214, 95, 46, 0.14);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.7rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero {
  padding: 8.5rem 0 5.5rem;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(1rem, 3vw, 2.5rem) 0;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 5.3vw, 5.1rem);
}

.hero-lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 650px;
  aspect-ratio: 1;
  margin-left: auto;
}

.hero-photo-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 10px solid rgba(255, 253, 249, 0.82);
  border-radius: 32px 180px 32px 32px;
  box-shadow: var(--shadow);
}

.hero-note {
  position: absolute;
  right: -1rem;
  bottom: 1.5rem;
  max-width: 220px;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.hero-note strong {
  display: block;
  color: var(--brand-dark);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.hero-note span {
  color: var(--muted);
  font-size: 0.82rem;
}

.quick-facts {
  position: relative;
  z-index: 3;
  margin-top: -2rem;
  padding-bottom: 1.5rem;
}

.quick-fact {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.quick-fact-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  flex: 0 0 auto;
  color: var(--brand-dark);
  background: rgba(155, 175, 120, 0.23);
  border-radius: 50%;
}

.quick-fact-icon i {
  font-size: 1.15rem;
}

.quick-fact strong,
.quick-fact small {
  display: block;
}

.quick-fact strong {
  color: var(--brand-dark);
  font-size: 0.9rem;
  line-height: 1.3;
}

.quick-fact small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-soft {
  background: rgba(255, 253, 249, 0.65);
  border-top: 1px solid rgba(102, 78, 61, 0.07);
  border-bottom: 1px solid rgba(102, 78, 61, 0.07);
}

.section-head {
  max-width: 760px;
  margin-bottom: 2.6rem;
}

.section-head.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head.centered .eyebrow::before {
  display: none;
}

.section-head h2 {
  font-size: clamp(2.35rem, 4vw, 3.75rem);
}

.section-head p {
  max-width: 640px;
  color: var(--muted);
}

.section-head.centered p {
  margin-right: auto;
  margin-left: auto;
}

.surface-card {
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.apartment-card {
  position: relative;
  display: flex;
  height: 100%;
  overflow: hidden;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow 220ms ease;
}

.apartment-card:hover {
  color: inherit;
  box-shadow: 0 18px 44px rgba(86, 64, 48, 0.13);
}

.apartment-card:focus-visible {
  outline: 3px solid rgba(214, 95, 46, 0.35);
  outline-offset: 4px;
}

.apartment-card .card-media {
  position: relative;
  height: 255px;
  overflow: hidden;
}

.apartment-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.apartment-card:hover .card-media img {
  transform: scale(1.025);
}

.media-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  padding: 0.38rem 0.75rem;
  color: var(--brand-dark);
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(102, 78, 61, 0.1);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.apartment-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card-cta {
  pointer-events: none;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-bottom: 1.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.card-meta i {
  margin-right: 0.3rem;
  color: var(--brand);
}

.barn-collage {
  display: grid;
  height: 100%;
  min-height: 560px;
  gap: 0.9rem;
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-rows: 1fr 1fr;
}

.barn-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.barn-collage img:first-child {
  grid-row: 1 / 3;
}

.feature-list {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 60px;
  padding: 0.85rem 1rem;
  background: rgba(155, 175, 120, 0.1);
  border: 1px solid rgba(104, 123, 77, 0.16);
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 650;
}

.feature-item i {
  color: var(--accent-dark);
}

.trip-card {
  position: relative;
  height: 100%;
  min-height: 290px;
  overflow: hidden;
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.trip-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 31, 24, 0.02), rgba(28, 31, 24, 0.83));
  content: "";
}

.trip-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.trip-card:hover img {
  transform: scale(1.045);
}

.trip-card-content {
  position: absolute;
  right: 1.35rem;
  bottom: 1.25rem;
  left: 1.35rem;
  z-index: 1;
}

.trip-card h3 {
  color: #fff;
}

.trip-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.87rem;
}

.contact-panel {
  position: relative;
  height: 100%;
  padding: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
  background: var(--brand-dark);
  border-radius: var(--radius-xl);
  color: rgba(255, 255, 255, 0.82);
}

.contact-panel h2,
.contact-panel h3 {
  color: #fff;
}

.contact-panel .eyebrow {
  color: #d8e4bb;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
}

.contact-link:hover {
  color: #d8e4bb;
}

.contact-link i {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.social-photo {
  position: relative;
  height: 100%;
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.social-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-photo-content {
  position: absolute;
  inset: auto 1.5rem 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.detail-hero {
  padding: 7.8rem 0 2rem;
}

.detail-hero-panel {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.detail-hero-panel::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(29, 27, 24, 0.84) 0%, rgba(29, 27, 24, 0.48) 50%, rgba(29, 27, 24, 0.08) 100%);
  content: "";
}

.detail-hero-panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  max-width: 670px;
  padding: clamp(2rem, 7vw, 5.5rem);
  color: rgba(255, 255, 255, 0.82);
}

.detail-hero-content h1 {
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.detail-hero-content .eyebrow {
  color: #d8e4bb;
}

.detail-facts {
  position: relative;
  z-index: 2;
  margin: -3.2rem auto 0;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.detail-fact {
  padding: 0.6rem 1.2rem;
  text-align: center;
}

.detail-fact + .detail-fact {
  border-left: 1px solid var(--border);
}

.detail-fact span {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-fact strong {
  display: block;
  margin-top: 0.18rem;
  color: var(--brand-dark);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: 1.35rem;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-template-rows: 250px 250px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #e9dfd2;
  border: 0;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}

.gallery-item:first-child {
  grid-row: 1 / 3;
}

.gallery-grid:has(> .gallery-item:nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 250px);
}

.gallery-grid:has(> .gallery-item:nth-child(6):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, 250px);
}

.gallery-grid:has(> .gallery-item:nth-child(4):last-child) .gallery-item:first-child,
.gallery-grid:has(> .gallery-item:nth-child(6):last-child) .gallery-item:first-child {
  grid-column: auto;
  grid-row: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease, filter 400ms ease;
}

.gallery-item:hover img {
  filter: brightness(0.9);
  transform: scale(1.035);
}

.info-card {
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.amenities {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.amenity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.amenity i {
  color: var(--accent-dark);
}

.apartment-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.lightbox-modal .modal-content {
  background: transparent;
  border: 0;
}

.lightbox-modal .modal-body {
  padding: 0;
}

.lightbox-modal img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: -2.7rem;
  right: 0;
  filter: invert(1);
}

.footer {
  padding: 4.5rem 0 2rem;
  background: #272821;
  color: rgba(255, 255, 255, 0.66);
}

.footer .logo-mark {
  width: 4.25rem;
  height: 4.25rem;
  filter: invert(1);
}

.footer .brand-name {
  color: #fff;
}

.footer h3 {
  color: #fff;
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .site-navbar .nav-link.active::after {
    display: none;
  }

  .navbar-collapse {
    margin-top: 0.7rem;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }

  .hero {
    padding-top: 7.3rem;
  }

  .hero h1 {
    max-width: 15ch;
  }

  .hero-visual {
    max-width: 620px;
    margin: 2rem auto 0;
  }

  .hero-photo-main {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .barn-collage {
    min-height: 480px;
  }

  .detail-hero-panel {
    min-height: 520px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 370px 220px 220px;
  }

  .gallery-item:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .gallery-grid:has(> .gallery-item:nth-child(4):last-child),
  .gallery-grid:has(> .gallery-item:nth-child(6):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 220px);
  }

  .gallery-grid:has(> .gallery-item:nth-child(6):last-child) {
    grid-template-rows: repeat(3, 220px);
  }

  .gallery-grid:has(> .gallery-item:nth-child(4):last-child) .gallery-item:first-child,
  .gallery-grid:has(> .gallery-item:nth-child(6):last-child) .gallery-item:first-child {
    grid-column: auto;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding-bottom: 4rem;
  }

  .hero-visual {
    min-height: 0;
  }

  .hero-note {
    right: 0;
    bottom: 1rem;
  }

  .quick-fact {
    justify-content: flex-start;
  }

  .detail-hero-panel {
    min-height: 560px;
  }

  .detail-hero-panel::after {
    background: linear-gradient(180deg, rgba(29, 27, 24, 0.28), rgba(29, 27, 24, 0.88));
  }

  .detail-hero-content {
    position: absolute;
    bottom: 0;
    padding: 1.75rem;
  }

  .detail-hero-content h1 {
    font-size: 2.55rem;
  }

  .detail-hero-content .lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .detail-facts {
    margin: 1rem 0 0 !important;
    padding: 0.75rem 1.2rem;
  }

  .detail-fact + .detail-fact {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 300px 180px 180px;
  }

  .amenities {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .container {
    --bs-gutter-x: 1.35rem;
  }

  .row.g-5 {
    --bs-gutter-x: 1.35rem;
  }

  .site-navbar {
    min-height: 64px;
    padding: 0.2rem 0;
  }

  .logo-mark {
    width: 2.65rem;
    height: 2.65rem;
  }

  .brand-logo {
    gap: 0.55rem;
  }

  .brand-name {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .navbar-toggler {
    padding: 0.32rem 0.5rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-visual {
    min-height: 0;
  }

  .hero-photo-main {
    border-width: 6px;
    border-radius: 24px 105px 24px 24px;
  }

  .hero-note {
    max-width: 175px;
    padding: 0.75rem 0.9rem;
  }

  .quick-facts {
    margin-top: -1.25rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .barn-collage {
    min-height: 410px;
    gap: 0.55rem;
  }

  .detail-hero {
    padding-top: 5.4rem;
  }

  .detail-hero-panel {
    min-height: 560px;
    border-radius: 24px;
  }

  .detail-hero-content {
    padding: 1.35rem;
  }

  .detail-hero-content h1 {
    font-size: 2.25rem;
  }

  .detail-hero-content .lead {
    margin-bottom: 1.1rem !important;
    font-size: 0.94rem;
  }

  .detail-hero-content .btn-lg {
    padding: 0.7rem 1rem;
    font-size: 0.84rem;
  }

  .detail-fact {
    padding: 0.75rem 0.4rem;
  }

  .detail-fact strong {
    font-size: 1.15rem;
  }

  .gallery-grid {
    display: flex;
    flex-direction: column;
  }

  .gallery-item,
  .gallery-item:first-child {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  :where(.btn, .nav-link, .dropdown-item, .brand-logo, .footer a) {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
