:root {
  --ink: #211813;
  --forest: #5b3926;
  --clay: #d9783f;
  --sunset: #f1a65a;
  --paper: #fff7ec;
  --line: #ecd7c4;
  --muted: #7d6c5c;
  --shadow: 0 22px 54px rgba(98, 50, 24, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(241, 166, 90, 0.2), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(217, 120, 63, 0.14), transparent 28%),
    linear-gradient(180deg, #fffaf3 0%, #fff1df 100%),
    var(--paper);
  font-family: Montserrat, Arial, sans-serif;
}

.sunset-gradient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 247, 236, 0.98) 0%, rgba(255, 239, 217, 0.92) 48%, rgba(255, 247, 236, 0.98) 100%);
}

.sunset-gradient-bg::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.16;
  background-image:
    linear-gradient(90deg, rgba(157, 83, 46, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(157, 83, 46, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.sunset-gradient-bg span {
  position: absolute;
  display: block;
  width: clamp(260px, 34vw, 540px);
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.38;
  mix-blend-mode: multiply;
  animation: sunset-drift 16s ease-in-out infinite alternate;
}

.sunset-gradient-bg span:nth-child(1) {
  left: -8vw;
  top: 18vh;
  background: radial-gradient(circle, rgba(255, 178, 91, 0.72), transparent 68%);
}

.sunset-gradient-bg span:nth-child(2) {
  right: -7vw;
  top: 34vh;
  background: radial-gradient(circle, rgba(220, 98, 50, 0.48), transparent 70%);
  animation-delay: -5s;
}

.sunset-gradient-bg span:nth-child(3) {
  left: 34vw;
  bottom: -16vh;
  background: radial-gradient(circle, rgba(255, 214, 154, 0.64), transparent 68%);
  animation-delay: -10s;
}

@keyframes sunset-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(32px, -24px, 0) scale(1.08); }
}

@keyframes orange-wave-sweep {
  0% {
    transform: translate3d(-18%, -10px, 0) rotate(-6deg) scale(1);
    opacity: 0.58;
  }
  45% {
    transform: translate3d(2%, 18px, 0) rotate(-3deg) scale(1.08);
    opacity: 0.86;
  }
  100% {
    transform: translate3d(18%, 2px, 0) rotate(-5deg) scale(1.02);
    opacity: 0.62;
  }
}

@keyframes orange-wave-sweep-reverse {
  0% {
    transform: translate3d(18%, 8px, 0) rotate(5deg) scale(1);
    opacity: 0.52;
  }
  50% {
    transform: translate3d(-3%, -18px, 0) rotate(2deg) scale(1.07);
    opacity: 0.8;
  }
  100% {
    transform: translate3d(-18%, 4px, 0) rotate(4deg) scale(1.03);
    opacity: 0.56;
  }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  width: 100%;
  margin: 0;
  padding: 14px clamp(18px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(255, 246, 234, 0.5), rgba(255, 246, 234, 0.24));
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 0;
  box-shadow: 0 14px 34px rgba(41, 22, 12, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.wordmark {
  grid-column: 1;
}

.header-cta {
  grid-column: 3;
  justify-self: end;
  width: max-content;
  white-space: nowrap;
}

.wordmark,
.primary-nav a,
.header-cta,
.button,
.text-link,
.property-card {
  text-decoration: none;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.wordmark img {
  width: clamp(132px, 16vw, 210px);
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.primary-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav a {
  position: relative;
  padding: 10px 2px;
  color: rgba(33, 24, 19, 0.78);
  transition: color 160ms ease, transform 160ms ease;
}

.primary-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: rgba(33, 24, 19, 0.96);
  transform: translateY(-1px);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.header-cta {
  min-height: 40px;
  padding: 0 16px;
  color: rgba(33, 24, 19, 0.82);
  background: transparent;
  border: 1px solid rgba(33, 24, 19, 0.36);
  box-shadow: none;
}

.header-cta:hover {
  color: #fff;
  background: rgba(33, 24, 19, 0.92);
  border-color: rgba(33, 24, 19, 0.92);
}

.button.dark {
  color: #fff;
  background: linear-gradient(135deg, #5b3926, #9d532e);
}

.button.light {
  color: #4a2b1c;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(91, 57, 38, 0.24);
}

.kicker {
  margin: 0 0 12px;
  color: #b55e31;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: Montserrat, Arial, sans-serif;
  letter-spacing: 0.075em;
  overflow-wrap: normal;
  word-break: normal;
}

p {
  line-height: 1.62;
}

.hero-section,
.catalog-section,
.about-section {
  width: min(1180px, calc(100% - 34px));
  margin: 34px auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  min-height: calc(100vh - 124px);
  padding: clamp(18px, 4vw, 44px) 0;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
}

.hero-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.24rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-card {
  position: relative;
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  background: #ddd0c0;
  border: 10px solid #fff;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.hero-card figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 5px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px rgba(24, 34, 29, 0.18);
}

.hero-card figcaption strong {
  font-size: 1.25rem;
}

.hero-card figcaption span {
  color: var(--muted);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
}

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

.stats-section article {
  padding: clamp(20px, 3vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(57, 45, 31, 0.08);
}

.stats-section strong {
  display: block;
  color: var(--forest);
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
}

.stats-section span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.055em;
}


.hero-home {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  place-items: center;
  grid-template-columns: 1fr;
  padding: calc(76px + clamp(28px, 5vw, 64px)) clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 186, 108, 0.38), transparent 26%),
    linear-gradient(180deg, rgba(64, 31, 12, 0.02) 0%, rgba(72, 36, 16, 0.25) 48%, rgba(44, 20, 10, 0.54) 100%),
    url("assets/jac-main-hero-sunset.png") center / cover no-repeat;
}

.hero-home .hero-copy {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vw, 30px);
  width: min(1040px, 100%);
}

.hero-home .hero-copy h1 {
  max-width: none;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(3.6rem, 10.5vw, 9.4rem);
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 0.86;
  white-space: nowrap;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.hero-home .hero-logo {
  width: min(620px, 72vw);
  max-height: min(68vh, 620px);
  object-fit: contain;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.32));
}

.hero-home .button-row {
  justify-content: center;
  margin-top: 0;
}

.hero-home .button.light {
  min-width: 118px;
  min-height: 32px;
  padding: 0 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
}

.hero-home .button.light:hover {
  background: rgba(255, 255, 255, 0.48);
}


.section-intro {
  position: relative;
  display: grid;
  gap: 12px;
  max-width: 820px;
  text-align: center;
  justify-items: center;
}

.catalog-section {
  position: relative;
  width: 100%;
  max-width: none;
  margin: -1px 0 0;
  padding: clamp(38px, 5vw, 70px) clamp(18px, 5vw, 64px) clamp(172px, 19vh, 232px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 253, 250, 0.985) 45%, rgba(255, 255, 255, 0.99) 100%),
    radial-gradient(ellipse at 20% 14%, rgba(255, 154, 76, 0.055), transparent 34%),
    radial-gradient(ellipse at 84% 86%, rgba(220, 88, 38, 0.045), transparent 36%);
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.catalog-section::before {
  position: absolute;
  inset: -18% -18vw auto -18vw;
  height: 62%;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(108deg, transparent 0%, transparent 30%, rgba(238, 112, 47, 0.34) 42%, rgba(255, 151, 74, 0.24) 51%, transparent 64%, transparent 100%),
    linear-gradient(112deg, transparent 0%, transparent 42%, rgba(196, 75, 30, 0.16) 50%, transparent 62%, transparent 100%);
  filter: blur(18px);
  opacity: 0.82;
  transform: translate3d(-4%, 0, 0) rotate(-5deg);
  animation: orange-wave-sweep 10s ease-in-out infinite alternate;
}

.catalog-section::after {
  position: absolute;
  inset: auto -20vw -16% -20vw;
  height: 52%;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(104deg, transparent 0%, transparent 28%, rgba(215, 82, 34, 0.24) 40%, rgba(255, 145, 70, 0.18) 52%, transparent 66%, transparent 100%),
    radial-gradient(ellipse at 30% 58%, rgba(255, 155, 78, 0.12), transparent 48%);
  filter: blur(20px);
  opacity: 0.78;
  transform: translate3d(5%, 0, 0) rotate(4deg);
  animation: orange-wave-sweep-reverse 12s ease-in-out infinite alternate;
}

.catalog-section > * {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.section-intro h2,
.about-section h2 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.45rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.section-intro p,
.about-section p {
  margin: 0;
  color: var(--muted);
}

.property-grid {
  display: flex;
  gap: 20px;
  width: min(1150px, 100%);
  margin: 28px auto 0;
  padding: 4px 0 18px;
  overflow: visible;
  scroll-snap-type: x proximity;
}

.property-card {
  flex: 0 0 min(370px, 82vw);
  overflow: hidden;
  color: inherit;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: 0 16px 34px rgba(99, 48, 20, 0.1);
  scroll-snap-align: start;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(99, 48, 20, 0.14);
}

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

.property-card div {
  padding: 20px;
}

.property-card span {
  color: #b55e31;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.property-card h3 {
  margin: 10px 0 8px;
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.property-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.view-all-link {
  display: flex;
  width: min(1150px, 100%);
  margin: 18px auto 0;
  color: var(--forest);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
}

.view-all-link:hover {
  text-decoration: underline;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(300px, 1fr);
  gap: 24px;
  padding: clamp(24px, 5vw, 44px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(57, 45, 31, 0.08);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--forest);
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 500;
}

.site-footer {
  position: relative;
  display: grid;
  padding: 22px clamp(18px, 5vw, 64px) 28px;
  color: var(--muted);
  background: #fff;
  border-top: 0;
  box-shadow: none;
  font-family: Montserrat, Arial, sans-serif;
}

.contact-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(900px, 100%);
  margin: clamp(52px, 7vw, 92px) auto 0;
  padding: clamp(16px, 3vw, 28px) 0 0;
  scroll-margin-top: 64px;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.contact-eyebrow {
  color: rgba(33, 24, 19, 0.48);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 5vw, 4.45rem);
  font-weight: 400;
  line-height: 0.96;
  text-transform: uppercase;
}

.contact-card p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.4vw, 1.08rem);
  line-height: 1.7;
}

#contact .contact-email {
  width: auto;
  margin-top: 4px;
  color: rgba(33, 24, 19, 0.86);
  background: transparent;
  border: 1px solid rgba(33, 24, 19, 0.36);
  box-shadow: none;
}

#contact .contact-email:hover,
#contact .contact-email:focus-visible {
  color: #fff;
  background: rgba(33, 24, 19, 0.86);
  border-color: rgba(33, 24, 19, 0.86);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-meta span {
  color: var(--ink);
  font-weight: 500;
  opacity: 0.68;
}

.footer-meta a {
  opacity: 0.68;
}

@media (max-width: 880px) {
  .site-header,
  .hero-section,
  .about-section {
    grid-template-columns: 1fr;
  }

  .primary-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-card,
  .hero-card img {
    min-height: 420px;
  }

  .stats-section {
    grid-template-columns: 1fr;
  }

  .property-grid {
    overflow-x: auto;
    overflow-y: visible;
  }
}

@media (max-width: 560px) {
  .header-cta,
  .button {
    width: 100%;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-card,
  .hero-card img {
    min-height: 340px;
  }
}

/* Properties page */
.properties-page main {
  min-height: 100vh;
  padding-top: 78px;
}

.properties-hero {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0 clamp(34px, 5vw, 64px);
}

.properties-hero::before {
  position: absolute;
  inset: 18% -8vw auto auto;
  width: min(620px, 58vw);
  height: 260px;
  pointer-events: none;
  content: "";
  background: linear-gradient(104deg, transparent 0%, rgba(238, 112, 47, 0.22) 40%, rgba(255, 151, 74, 0.18) 52%, transparent 72%);
  filter: blur(24px);
  transform: rotate(-7deg);
  animation: orange-wave-sweep 12s ease-in-out infinite alternate;
}

.properties-hero > * {
  position: relative;
  z-index: 1;
}

.properties-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.properties-hero h1 span {
  display: block;
}
.properties-hero p:not(.kicker) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.8vw, 1.14rem);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.property-directory {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto clamp(48px, 7vw, 92px);
}

.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(99, 48, 20, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.directory-toolbar > span {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.status-pills span,
.status-filter,
.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.status-pills span,
.status-filter {
  color: rgba(33, 24, 19, 0.82);
  background: transparent;
  border: 1px solid rgba(33, 24, 19, 0.34);
}

.status-filter {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: Montserrat, Arial, sans-serif;
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.status-filter:hover {
  color: rgba(33, 24, 19, 0.94);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(33, 24, 19, 0.58);
  transform: translateY(-1px);
}

.status-filter.is-active {
  color: #fff;
  background: rgba(33, 24, 19, 0.9);
  border-color: rgba(33, 24, 19, 0.9);
}

.status-filter.is-active:hover {
  color: #fff;
  background: rgba(33, 24, 19, 0.96);
  border-color: rgba(33, 24, 19, 0.96);
}


.status-pills .status-filter.is-active {
  color: #fff !important;
  background: rgba(33, 24, 19, 0.9) !important;
  background-color: rgba(33, 24, 19, 0.9) !important;
  border-color: rgba(33, 24, 19, 0.9) !important;
}

.status-pills .status-filter.is-active:hover {
  color: #fff !important;
  background: rgba(33, 24, 19, 0.96) !important;
  background-color: rgba(33, 24, 19, 0.96) !important;
  border-color: rgba(33, 24, 19, 0.96) !important;
}

.directory-card[hidden] {
  display: none;
}

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

.directory-card {
  overflow: hidden;
  color: inherit;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  box-shadow: 0 16px 38px rgba(99, 48, 20, 0.1);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.directory-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(99, 48, 20, 0.14);
}

.directory-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.directory-card-copy {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.status-tag.available {
  width: max-content;
  color: #5f351f;
  background: rgba(255, 244, 232, 0.95);
  border: 1px solid rgba(217, 120, 63, 0.26);
}

.status-tag.occupied {
  width: max-content;
  color: #695d53;
  background: rgba(244, 240, 235, 0.95);
  border: 1px solid rgba(125, 108, 92, 0.2);
}

.status-tag.coming-soon {
  width: max-content;
  color: #8c4c26;
  background: rgba(255, 235, 212, 0.95);
  border: 1px solid rgba(241, 166, 90, 0.36);
}

.directory-card h2 {
  margin: 2px 0 0;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.directory-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

@media (max-width: 640px) {
  .properties-page main {
    padding-top: 132px;
  }

  .properties-hero,
  .property-directory {
    width: min(100% - 28px, 1180px);
  }

  .directory-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-pills {
    justify-content: flex-start;
  }

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

/* Mobile optimization pass */
@media (max-width: 720px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    padding: 10px 14px 12px;
  }

  .wordmark {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 0;
    order: 1;
  }

  .wordmark img {
    width: clamp(150px, 48vw, 210px);
    max-height: 34px;
  }

  .primary-nav {
    display: flex;
    flex: 0 0 100%;
    justify-content: center;
    gap: clamp(18px, 7vw, 34px);
    width: 100%;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    order: 2;
  }

  .primary-nav a {
    padding: 4px 0;
  }

  .header-cta {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    min-height: 30px;
    padding: 0 12px;
    overflow: visible;
    font-size: 0.62rem;
    letter-spacing: 0.055em;
    text-overflow: clip;
    white-space: nowrap;
    order: 3;
  }

  .hero-home {
    min-height: 78svh;
    padding: 158px 18px 36px;
    background-position: center top;
  }

  .hero-home .hero-copy {
    gap: 18px;
  }

  .hero-home .hero-logo {
    width: min(58vw, 260px);
    max-height: 32vh;
  }

  .hero-home .button-row {
    width: min(100%, 290px);
  }

  .hero-home .button.light {
    width: 100%;
    min-height: 44px;
    font-size: 0.78rem;
  }

  .catalog-section {
    padding: 46px 18px 64px;
  }

  .section-intro h2,
  .about-section h2 {
    max-width: min(100%, 340px);
    font-size: clamp(1.95rem, 8.6vw, 2.55rem);
    line-height: 1.12;
    letter-spacing: 0.026em;
  }

  .property-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    width: min(100%, 420px);
    margin-top: 26px;
    padding: 0;
    overflow: visible;
  }

  .property-card {
    flex: none;
    width: 100%;
    border-radius: 24px;
  }

  .property-card img {
    aspect-ratio: 4 / 3;
  }

  .view-all-link {
    width: min(100%, 420px);
  }
}

@media (max-width: 640px) {
  .properties-page main {
    padding-top: 112px;
  }

  .properties-hero {
    width: min(100% - 32px, 1180px);
    padding: 58px 0 30px;
    text-align: left;
  }

  .properties-hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 9.8vw, 3rem);
    line-height: 1.02;
    letter-spacing: 0.03em;
    overflow-wrap: normal;
  }

  .properties-hero p:not(.kicker) {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.55;
  }

  .property-directory {
    width: min(100% - 32px, 1180px);
  }

  .directory-toolbar {
    padding: 18px;
    border-radius: 24px;
  }

  .status-pills {
    width: 100%;
    gap: 8px;
  }

  .status-pills span,
  .status-filter {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
  }

  .directory-card {
    border-radius: 24px;
  }

  .directory-card img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-inline: 12px;
  }

  .wordmark img {
    width: clamp(142px, 44vw, 176px);
  }

  .site-header {
    gap: 7px 14px;
  }

  .header-cta {
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.58rem;
  }

  .primary-nav {
    gap: clamp(16px, 6vw, 26px);
    font-size: 0.68rem;
  }

  .hero-home {
    min-height: 76svh;
    padding-top: 152px;
  }

  .hero-home .hero-logo {
    width: min(60vw, 240px);
    max-height: 30vh;
  }

  .section-intro h2 {
    max-width: min(100%, 320px);
    font-size: clamp(1.85rem, 8.2vw, 2.35rem);
    letter-spacing: 0.022em;
  }
}



/* Final mobile viewport hard stop */
@media (max-width: 640px) {
  .properties-hero,
  .property-directory {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin-left: auto;
    margin-right: auto;
  }

  .properties-hero h1,
  .properties-hero p:not(.kicker),
  .directory-toolbar,
  .directory-grid,
  .directory-card {
    width: 100%;
    max-width: 100%;
  }

  .properties-hero p:not(.kicker) {
    overflow-wrap: break-word;
  }
}


/* Property photo modal */
body.modal-open {
  overflow: hidden;
}

.property-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
}

.property-modal.is-open {
  display: grid;
}

.property-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 24, 19, 0.46);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.property-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: clamp(18px, 3vw, 34px);
  width: min(1320px, 100%);
  max-height: min(920px, calc(100vh - 28px));
  overflow: hidden;
  padding: clamp(14px, 2.6vw, 24px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  box-shadow: 0 34px 86px rgba(33, 24, 19, 0.28);
}

.property-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: rgba(33, 24, 19, 0.82);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(33, 24, 19, 0.16);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.property-modal__media {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.property-modal__media > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(99, 48, 20, 0.14);
}

.property-modal__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 8px;
}

.property-modal__thumbs button {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
}

.property-modal__thumbs button.is-active {
  border-color: rgba(33, 24, 19, 0.78);
}

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

.property-modal__copy {
  align-content: center;
  display: grid;
  gap: 16px;
  padding: clamp(6px, 2vw, 20px);
}

.property-modal__copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.property-modal__copy p {
  margin: 0;
  color: var(--muted);
}

.property-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.property-modal__actions .button {
  min-width: 160px;
  justify-content: center;
}

@media (max-width: 760px) {
  .property-modal {
    align-items: end;
    padding: 12px;
  }

  .property-modal__panel {
    grid-template-columns: 1fr;
    max-height: calc(100svh - 24px);
    overflow: auto;
    border-radius: 28px;
  }

  .property-modal__media {
    min-width: 0;
  }

  .property-modal__media > img {
    aspect-ratio: 4 / 3;
  }

  .property-modal__copy .button {
    width: 100%;
  }
}


.property-modal__copy .button.dark {
  color: rgba(33, 24, 19, 0.86);
  background: transparent;
  border: 1px solid rgba(33, 24, 19, 0.36);
  box-shadow: none;
}

.property-modal__copy .button.dark:hover {
  color: #fff;
  background: rgba(33, 24, 19, 0.92);
  border-color: rgba(33, 24, 19, 0.92);
}
