/* Longs Road Properties
   Plain CSS, no build step. Colors and type live in the variables below. */

:root {
  --cream: #f8f8f8;
  --paper: #ffffff;
  --ink: #242524;
  --ink-soft: #5d5e5c;
  --brick: #8d795d;        /* bronze accent */
  --brick-dark: #75644c;
  --brass: #8d795d;
  --slate: #4a4b4a;
  --line: #e3e0da;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);

  /* Headings: thin, all caps, widely spaced. Body: Libre Franklin. */
  --serif: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --sans: "Libre Franklin", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 0;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 300 16px/1.75 var(--sans);
}

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

a { color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--brick-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: .1em; }
strong, b { font-weight: 500; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font: 500 .78rem/1.4 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}

.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 44em; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .6em 1em; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.brand {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  line-height: 1.05;
}
.brand-name { font: 300 1.35rem/1 var(--serif); letter-spacing: .3em; word-spacing: -.3em; text-transform: uppercase; margin-left: -.058em; }
.brand-sub {
  font: 500 .58rem/1 var(--sans); letter-spacing: .42em; text-transform: uppercase;
  color: var(--brick); margin-top: .4rem;
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; align-items: center; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .4rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brick); color: var(--ink); }
.nav .btn { padding: .8rem 1.1rem; color: #fff; border-bottom: 1px solid var(--brick); }
.nav .btn:hover { color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .55rem .8rem; font: 500 .75rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.2rem; }
  .nav li a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { margin-top: 1rem; text-align: center; }
}

/* Buttons */

.btn {
  display: inline-block; background: var(--brick); color: #fff; text-decoration: none;
  font: 500 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  padding: 1rem 1.3rem; border-radius: var(--radius);
  border: 1px solid var(--brick); cursor: pointer; transition: background .25s, border-color .25s, color .25s;
}
.btn:hover { background: var(--brick-dark); border-color: var(--brick-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--brick); }
.btn-ghost:hover { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Photo placeholders: swap each .photo div for an <img> once photos arrive */

.photo {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background-color: #4a4b4a;
  background-image:
    linear-gradient(160deg, rgba(27,36,48,.05), rgba(27,36,48,.55)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(0,0,0,.18) 22px 24px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(0,0,0,.14) 46px 48px);
  min-height: 240px;
}
.photo.alt { background-color: #5b5a57; }
.photo.light { background-color: #9a968e; }
.photo > span {
  position: absolute; left: 14px; bottom: 12px; right: 14px;
  color: rgba(255,255,255,.92); font: 500 .8rem/1.3 var(--sans); letter-spacing: .04em;
}
.photo img, .photo video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* Content the owner still needs to supply */
.tbd {
  background: #fbecc4; border-bottom: 1px dashed var(--brass);
  padding: 0 .2em; border-radius: 2px; color: var(--ink);
}

/* Hero */

.hero { position: relative; color: #fff; min-height: min(86vh, 760px); display: flex; align-items: flex-end; clip-path: inset(0); }
/* Pinned to the screen so the page scrolls over it */
.hero .photo { position: fixed; inset: 0; border-radius: 0; min-height: 0; z-index: -1; }
/* Streamed background video: a 16:9 frame scaled to cover the screen, not clickable */
.hero-stream { background-size: cover; background-position: center; filter: brightness(1.12); }
.hero-stream iframe {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: max(100vw, 177.78vh); height: max(100vh, 56.25vw); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .9s ease;
}
.hero-stream.is-playing iframe { opacity: 1; }
.hero .photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,20,32,0) 45%, rgba(12,20,32,.6));
}
/* Keep the headline readable over the brighter video */
.hero .wrap { text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.hero .wrap { position: relative; z-index: 1; padding-top: 6rem; padding-bottom: clamp(3rem, 8vw, 6rem); width: 100%; }
.hero h1 { max-width: 13em; }
.hero p { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 32em; color: rgba(255,255,255,.9); margin-bottom: 2rem; }
.hero .eyebrow { color: rgba(255,255,255,.88); }

.page-hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

/* Sections */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.tight { padding-top: clamp(2rem, 5vw, 3rem); }
.section.paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.section-head h2 { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split .photo { min-height: 420px; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .split .photo { min-height: 280px; }
}

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.pillars article { border-top: 2px solid var(--brick); padding-top: 1.3rem; }
.pillars p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* Cards */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card .photo { border-radius: 0; min-height: 220px; }
.card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-body .meta { color: var(--ink-soft); font-size: .95rem; }
.card-body .price { font: 400 1.2rem var(--serif); letter-spacing: .04em; color: var(--brick); margin-top: .3rem; }
.card-body .btn-row { margin-top: auto; padding-top: 1rem; }
.card-body .btn { padding: .75rem 1.1rem; font-size: .9rem; }

.facts { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .4rem 0 0; }
.facts li {
  font-size: .8rem; font-weight: 500; color: var(--ink-soft);
  background: var(--cream); border: 1px solid var(--line); border-radius: 99px; padding: .25rem .7rem;
}

.badge {
  display: inline-block; font: 600 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: #3f6b4a; padding: .4rem .6rem; border-radius: 3px; align-self: flex-start;
}

.empty {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.4rem;
  color: var(--ink-soft); background: var(--paper);
}

/* Gallery */

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: .8rem; }
.gallery .photo { min-height: 0; }
.gallery .photo:first-child { grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 160px 160px; }
  .gallery .photo:first-child { grid-column: span 2; grid-row: auto; }
}

/* Detail list */

.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem 2rem; margin: 0; }
.details div { border-top: 1px solid var(--line); padding-top: .8rem; }
.details dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.details dd { margin: .2rem 0 0; font: 300 1.15rem/1.4 var(--serif); }

/* Tables */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* Forms */

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
legend { font: 300 1.3rem var(--serif); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; padding: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.row.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .row, .row.three { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label, .field .label { font-weight: 500; font-size: .9rem; }
.field .hint { font-size: .85rem; color: var(--ink-soft); }
.req { color: var(--brick); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"],
select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #c8d0db; border-radius: var(--radius);
  padding: .75rem .85rem; min-height: 48px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid rgba(141, 121, 93, .5); outline-offset: 2px; border-color: var(--brick);
}
input[type="file"] { font: inherit; font-size: .95rem; }

.choices { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.choices label { display: flex; align-items: center; gap: .45rem; font-weight: 400; font-size: 1rem; }
.choices input { width: 18px; height: 18px; accent-color: var(--brick); }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--brick); flex-shrink: 0; }

.notice { background: var(--cream); border-left: 3px solid var(--brass); padding: 1rem 1.2rem; font-size: .92rem; color: var(--ink-soft); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 1.5rem; }
.notice strong { color: var(--ink); }
.notice.alert { border-left-color: var(--brick); background: #f3efe8; color: var(--ink); }

.aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.2rem; }
.aside .box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.aside h3 { font-size: 1.15rem; }
.aside p, .aside li { font-size: .95rem; color: var(--ink-soft); }
.aside ul { padding-left: 1.1rem; margin: 0; }
.aside .phone { font: 400 1.4rem var(--serif); letter-spacing: .04em; color: var(--brick); text-decoration: none; }

.hidden-field { position: absolute; left: -9999px; }

/* Contact strip */

.cta-band { background: var(--ink); color: #fff; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-top: 3.2rem; padding-bottom: 3.2rem; }
.cta-band h2 { margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.75); }

/* Footer */

.site-footer { background: #111; color: rgba(255,255,255,.72); font-size: .9rem; padding: 3.5rem 0 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font: 500 .72rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #c2ad8c; margin: 0 0 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-grid .brand { color: #fff; margin-bottom: 1rem; }
.footer-grid .brand-sub { color: #c2ad8c; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.eho { display: flex; align-items: center; gap: .5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.ok { color: #3f6b4a; }
.form-status.err { color: var(--brick); }
.hero .photo > span { display: none; }

/* Property pages: extra photos and floor plans */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.photo-grid .photo { min-height: 0; aspect-ratio: 3 / 2; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.plans figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.plans img { width: 100%; height: auto; display: block; }
.plans figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); }
.video-tour { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; border-radius: var(--radius); }

.badge.leased { background: #8a96a6; }

/* Unit pages: photo grid that opens a full-screen viewer */
.photo-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 10px; }
.photo-gallery a { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #111821; }
.photo-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.photo-gallery a::after {
  content: ""; position: absolute; inset: 0; background: rgba(12,20,32,.45);
  opacity: 0; transition: opacity .35s;
}
.photo-gallery a:hover::after, .photo-gallery a:focus-visible::after { opacity: 1; }
.photo-gallery a:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .photo-gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 0 6px; } }

.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.92); color: #fff;
  user-select: none; touch-action: pan-y pinch-zoom;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox-img { max-width: calc(100% - 140px); max-height: calc(100% - 120px); object-fit: contain; transition: opacity .25s; }
.lightbox-img.loading { opacity: 0; }
.lightbox-count { position: absolute; top: 18px; left: 22px; font: 500 .9rem/1 var(--sans); color: rgba(255,255,255,.85); }
.lightbox-tools { position: absolute; top: 8px; right: 8px; display: flex; }
.lightbox button { background: none; border: 0; color: rgba(255,255,255,.8); cursor: pointer; display: grid; place-items: center; padding: 0; }
.lightbox button:hover { color: #fff; }
.lightbox-tools button { width: 44px; height: 44px; }
.lightbox-tools svg { width: 20px; height: 20px; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 90px; }
.lightbox-prev { left: 4px; }
.lightbox-next { right: 4px; }
.lightbox-prev svg, .lightbox-next svg { width: 30px; height: 30px; }
.lightbox svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  .lightbox-img { max-width: 100%; max-height: calc(100% - 140px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 10px; transform: none; height: 60px; }
}
#photos { scroll-margin-top: 72px; }

/* Photo story pieces shared by unit, building and home pages: pinned full-screen
   photos with slate cards scrolling over them, a features list over whitewashed
   brick, and fade-ins. */
.u-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 6vw, 70px); }
.u-eyebrow { font: 500 .78rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brick); margin-bottom: 1.2rem; }

/* Status bar */
.u-status { background: #111; color: #fff; text-align: center; font-size: .9rem; padding: .55rem 1rem; }
.u-status a { color: #fff; }
.u-status a:hover { color: #fff; }

/* Buttons */
.u-btn {
  display: inline-block; border: 1px solid var(--brick); color: var(--ink); text-decoration: none;
  font: 500 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 1rem 1.3rem;
  transition: background .25s, color .25s;
}
.u-btn:hover { background: var(--brick); color: #fff; }
.u-btn.solid { background: var(--brick); color: #fff; }
.u-btn.solid:hover { background: #75644c; border-color: #75644c; }
.u-btn.light { border-color: rgba(255,255,255,.85); color: #fff; }
.u-btn.light:hover { background: #fff; color: var(--ink); }
.u-btns { display: flex; flex-wrap: wrap; gap: .8rem; }
.u-tour {
  position: fixed; left: 0; bottom: 24px; z-index: 30; background: #222; color: #fff; text-decoration: none;
  font: 500 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 1.1rem 1.4rem;
}
.u-tour:hover { background: #000; color: #fff; }
/* Keep the floating button from covering the footer's last line */
body:has(.u-tour) .site-footer { padding-bottom: 5.5rem; }

/* Pinned photos: the image is fixed to the screen and each section is a window
   onto it, so the page scrolls over a still picture. */
.u-hero, .u-cover { position: relative; clip-path: inset(0); display: flex; align-items: flex-end; }
.u-pin { position: fixed; inset: 0; z-index: -1; }
.u-pin img { width: 100%; height: 100%; object-fit: cover; }
/* Show only the upper part of a photo (enlarged and anchored to its top edge) */
.u-pin.upper img { height: 160%; object-position: center top; }

.u-hero { min-height: calc(100vh - 72px - 2.4rem); color: #fff; }
.u-hero .u-pin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,20,32,0) 45%, rgba(12,20,32,.7)); }
.u-hero .u-wrap { width: 100%; padding-bottom: clamp(3rem, 8vh, 5rem); text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.u-hero .u-eyebrow { color: rgba(255,255,255,.88); }
.u-hero .u-eyebrow a { color: inherit; text-decoration: none; }
.u-hero .u-eyebrow a:hover { text-decoration: underline; }
.u-hero h1 { color: #fff; margin-bottom: 1.6rem; }
.u-hero p { max-width: 40em; font-size: 1.1rem; color: rgba(255,255,255,.92); margin: -.4rem 0 0; }
.u-hero .badge { margin-bottom: 1rem; text-shadow: none; }

.u-cover {
  margin: clamp(2rem, 6vw, 5rem) 0; min-height: clamp(520px, 92vh, 900px);
  padding: clamp(4rem, 10vh, 7rem) 0;
}
.u-card {
  position: relative; width: min(500px, 88%);
  /* line the card's right edge up with the page's text column */
  margin-left: auto; margin-right: calc(max(0px, (100% - 1200px) / 2) + clamp(20px, 6vw, 70px)); padding: clamp(2rem, 5vw, 3.5rem);
  color: #f8f8f8; font-size: .95rem;
  background-color: var(--slate);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.06), transparent 70%);
}
.u-card h2 { color: #f8f8f8; }
.u-card p { margin: 0; }
.u-card p + p { margin-top: 1rem; }
.u-card .btn-row { margin-top: 1.8rem; }
.u-card .u-eyebrow { color: #c2ad8c; }
/* A longer window onto the pinned photo, so it stays on screen through more scrolling */
.u-cover.tall { min-height: clamp(780px, 150vh, 1500px); }

/* Intro */
.u-intro { padding: clamp(4.5rem, 12vw, 8rem) 0 clamp(2rem, 5vw, 3rem); }
.u-intro p { max-width: 62em; margin: 0 0 2rem; }

/* Features and at-a-glance facts over whitewashed brick */
.u-features { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.u-features ul { columns: 2; column-gap: 4rem; padding-left: 1.1rem; margin: 0 0 clamp(2.5rem, 6vw, 4rem); max-width: 900px; }
.u-features li { margin-bottom: .55rem; break-inside: avoid; }
.u-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 2rem; margin: 0 0 clamp(3rem, 7vw, 5rem); }
.u-facts div { border-top: 1px solid #d9d6d0; padding-top: .8rem; }
.u-facts dt { font: 500 .72rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brick); }
.u-facts dd { margin: .3rem 0 0; font: 300 1.15rem/1.4 var(--serif); }
.u-brick {
  height: 150px;
  background:
    linear-gradient(180deg, var(--cream), rgba(248,248,248,0) 35%, rgba(248,248,248,0) 65%, var(--cream)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='52'%3E%3Cg stroke='%23d6d6d6' stroke-width='2'%3E%3Cpath d='M0 1h84M0 27h84M1 1v26M43 27v26'/%3E%3C/g%3E%3C/svg%3E"),
    #f1f1f1;
}

/* Floor plans */
.u-plans { padding: clamp(3rem, 7vw, 5rem) 0; }
.u-plans .plans { grid-template-columns: repeat(auto-fit, minmax(280px, 560px)); }
.u-plans .plans figure { border-radius: 0; border-color: #e3e0da; }

/* Gallery: full width grid that opens the shared full-screen viewer */
.u-gallery { padding: clamp(3rem, 7vw, 5rem) 0; }
.u-gallery h2 { margin-bottom: 2rem; }

/* Contact */
.u-contact { background: #fff; padding: clamp(4rem, 9vw, 6rem) 0; text-align: center; }
.u-contact h2 { font-size: 1.6rem; }
.u-contact p { margin: 0 auto 1.6rem; max-width: 36em; }
.u-contact .u-btns { justify-content: center; }

/* Fade sections in as they scroll into view */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
/* The grey cards over pinned photos start their fade a beat later */
.u-card.reveal { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 860px) {
  .u-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .u-card, .u-cover.flip .u-card { width: auto; margin: 0 16px; }
  .u-features ul { columns: 1; }
  .u-tour { bottom: 14px; }
}
.u-table-title { margin: 3rem 0 1rem; }

/* The Ranch: photo placeholders until real photos arrive */
.ranch-ph {
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35)),
    linear-gradient(170deg, #8fa3ad 0%, #c9b99a 55%, #8d795d 56%, #6f6048 100%);
  display: grid; place-items: start end; padding: calc(72px + 4rem) clamp(1rem, 4vw, 2.5rem) 0;
}
.ranch-ph span {
  font: 500 .75rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.6); padding: .7rem 1rem;
}

/* The Ranch: reservation calendar and request form */
.ranch-reserve { background: #fff; padding: clamp(4rem, 9vw, 6rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ranch-booking { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: 2.5rem; }
@media (max-width: 960px) { .ranch-booking { grid-template-columns: 1fr; } }

.cal { position: relative; border: 1px solid var(--line); padding: clamp(1rem, 3vw, 1.8rem); background: var(--cream); }
.cal-nav { position: absolute; top: clamp(.6rem, 2.4vw, 1.3rem); left: clamp(.6rem, 2.4vw, 1.3rem); right: clamp(.6rem, 2.4vw, 1.3rem); display: flex; justify-content: space-between; pointer-events: none; }
.cal-nav button {
  pointer-events: auto; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.cal-nav button:hover:not(:disabled) { border-color: var(--brick); color: var(--brick); }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.unit-main .cal-title { text-align: center; font-size: 1rem; letter-spacing: .18em; margin: .55rem 0 1.2rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font: 500 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: .5rem; }
.cal-day {
  aspect-ratio: 1; border: 1px solid transparent; background: #fff; color: var(--ink);
  font: 400 .92rem/1 var(--sans); cursor: pointer; padding: 0; transition: background .15s, border-color .15s;
}
.cal-day:hover:not(:disabled) { border-color: var(--brick); }
.cal-day.today { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cal-day.past { background: transparent; color: #c4c2bd; cursor: default; }
.cal-day.booked { background: #ecebe8; color: #a5a29b; text-decoration: line-through; }
.cal-day.booked:disabled { cursor: not-allowed; }
.cal-day.in-range { background: #ebe3d6; }
.cal-day.start, .cal-day.end { background: var(--brick); color: #fff; text-decoration: none; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.4rem; font-size: .82rem; color: var(--ink-soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.cal-legend i { width: 14px; height: 14px; display: inline-block; border: 1px solid var(--line); }
.cal-legend .lg-open { background: #fff; }
.cal-legend .lg-booked { background: #ecebe8; }
.cal-legend .lg-picked { background: var(--brick); border-color: var(--brick); }
.cal-note { min-height: 1.4em; margin: .8rem 0 0; font-size: .9rem; color: #9a3b2e; }
.cal-note:empty { display: none; }

.ranch-form { box-shadow: none; }
.ranch-summary { background: var(--cream); border-left: 3px solid var(--brick); padding: 1rem 1.2rem; margin-bottom: .6rem; line-height: 1.8; }
.ranch-summary strong { font-weight: 500; }
.ranch-hint { color: var(--ink-soft); }
.cal-clear { background: none; border: 0; padding: 0; margin: 0 0 1.4rem; font: 500 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brick); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ranch-form .check { margin: .4rem 0 1.4rem; }

/* Unit pages: embedded 3D walkthrough (Zillow 3D Home) */
.u-tour-hint { color: var(--ink-soft); margin: -.6rem 0 1.4rem; }
.tour-3d { position: relative; width: 100%; height: min(75vh, 720px); min-height: 420px; background: #111821; border: 1px solid var(--line); }
.tour-3d iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* YouTube video embeds (16:9) */
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #111; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.video-pair figure { margin: 0; }
.video-pair figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 760px) { .video-pair { grid-template-columns: 1fr; } }

/* Floor plans open in the full-screen viewer */
.plans a { display: block; cursor: zoom-in; }
.plans a:hover img { opacity: .85; }

/* Floor plans with a map of the property beside them */
.plans-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.plans-map .plans { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-content: start; }
.map-embed { margin: 0; display: flex; flex-direction: column; min-height: 360px; }
.map-embed iframe { flex: 1; width: 100%; min-height: 320px; border: 1px solid var(--line); }
.u-plans > .u-wrap > .map-embed iframe { min-height: 420px; }
.map-embed figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 860px) { .plans-map { grid-template-columns: 1fr; } }

/* Walk Score neighborhood widget beside the floor plans */
.walkscore .gmap { display: block; width: 100%; height: 300px; border: 1px solid var(--line); margin-bottom: .8rem; }
#ws-walkscore-tile { position: relative; text-align: left; width: 100%; min-height: 340px; border: 1px solid var(--line); background: #fff; }
#ws-walkscore-tile * { float: none; }

/* Long galleries: show the first 16 photos until "Show all photos" is clicked */
.photo-gallery.is-collapsed a:nth-child(n+17) { display: none; }
.gallery-more { text-align: center; margin-top: 2rem; }
