@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  --white: #fffdf9;
  --ivory: #f7f2ea;
  --linen: #eee6da;
  --stone: #d7cabc;
  --taupe: #8d7f70;
  --charcoal: #242322;
  --ink: #2f302d;
  --muted: #6d6b65;
  --forest: #24352d;
  --sage: #73816f;
  --gold: #9f6570;
  --gold-soft: #d8b3b9;
  --line: rgba(36, 35, 34, .13);
  --gold-line: rgba(159, 101, 112, .34);
  --shadow: 0 24px 60px rgba(36, 35, 34, .12);
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.62;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(247,242,234,.86), rgba(255,253,249,.96) 260px),
    linear-gradient(90deg, rgba(159, 101, 112,.025) 1px, transparent 1px),
    linear-gradient(rgba(159, 101, 112,.025) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(36,35,34,.055);
  backdrop-filter: blur(16px);
}
.nav-inner {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo {
  width: clamp(240px, 23vw, 390px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(159, 101, 112,.12));
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.6vw, 42px);
  font-family: var(--font-display);
  font-size: clamp(12px, .82vw, 14px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.nav-links a { opacity: .88; white-space: nowrap; }
.nav-links a:hover, .nav-links .active { color: var(--gold); }
.nav-links .active { border-bottom: 1px solid var(--gold); padding-bottom: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  padding: 12px 24px;
  min-height: 46px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .22s ease;
  box-shadow: 0 12px 26px rgba(159, 101, 112,.16);
}
.btn:hover { transform: translateY(-1px); background: #8a525e; }
.btn.secondary { background: rgba(255,253,249,.78); color: var(--charcoal); box-shadow: none; border-color: var(--stone); }
.btn.secondary:hover { background: var(--ivory); }

.hero {
  min-height: calc(100vh - 106px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(480px, 1.22fr);
  align-items: stretch;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(255,253,249,.98) 0%, rgba(255,253,249,.94) 27%, rgba(255,253,249,.74) 42%, rgba(255,253,249,.18) 61%, rgba(255,253,249,0) 100%),
    url('/images/hero-estate-mountains.png');
  background-size: cover;
  background-position: center right;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(42px, 6vw, 78px);
  background: linear-gradient(180deg, rgba(255,253,249,0), var(--white));
  z-index: 2;
}
.hero-copy {
  padding: clamp(64px, 7.5vw, 126px) clamp(30px, 7vw, 118px) clamp(76px, 9vw, 132px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 4;
}
.hero-copy::before {
  content: '';
  position: absolute;
  inset: 12% 0 10% 0;
  background: radial-gradient(circle, rgba(255,253,249,.92), rgba(255,253,249,.72) 44%, rgba(255,253,249,0) 74%);
  z-index: -1;
}
.hero-visual { display: none; }
.ornament { color: var(--gold); margin: 22px 0; font-size: 0; display: flex; justify-content: center; align-items: center; gap: 18px; }
.ornament::before, .ornament::after {
  content: '';
  width: clamp(90px, 10vw, 150px);
  height: 1px;
  background: var(--gold-line);
}
.ornament::after { display: none; }
.kicker {
  font-family: var(--font-ui);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  margin: 0 0 14px;
  font-weight: 600;
}
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 400;
  margin: 0;
  letter-spacing: .035em;
  color: var(--charcoal);
}
h1 { font-size: clamp(42px, 5vw, 82px); }
h2 { font-size: clamp(28px, 3.3vw, 50px); }
h3 { font-size: clamp(21px, 1.7vw, 27px); }
.lede { max-width: 540px; margin: 0 auto; font-size: clamp(19px, 1.45vw, 23px); color: var(--muted); }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.section {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(58px, 7vw, 98px) clamp(20px, 4vw, 42px);
  position: relative;
}
.section:first-of-type { padding-top: clamp(54px, 6vw, 88px); }
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 66px); align-items: center; }
.split + .split::before, .section.split:first-of-type::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(20px, 4vw, 42px);
  right: clamp(20px, 4vw, 42px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.panel, .card, .faq-item, .photo-frame {
  background: rgba(255,253,249,.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.panel { padding: clamp(28px, 4vw, 44px); position: relative; }
.panel p + p { margin-top: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.card { padding: 28px; min-height: 172px; }
.card p, .faq-item p { margin-top: 12px; color: var(--muted); }

.page-header {
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: clamp(58px, 8vw, 98px) 24px 38px;
  text-align: center;
  position: relative;
}
.page-header p:last-child { max-width: 760px; margin: 22px auto 0; font-size: 21px; color: var(--muted); }
.page-logo { width: min(410px, 78vw); margin: 0 auto 28px; filter: drop-shadow(0 10px 16px rgba(159, 101, 112,.12)); }

/* Full-width landscape page banners for Estate, Gallery, and FAQ */
.landscape-banner {
  position: relative;
  min-height: clamp(260px, 34vw, 520px);
  width: 100%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border-bottom: 0;
  isolation: isolate;
}
.landscape-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18,17,16,.03), rgba(18,17,16,.08)),
    linear-gradient(90deg, rgba(255,253,249,.08), rgba(255,253,249,0) 26%, rgba(255,253,249,0) 74%, rgba(255,253,249,.08));
}
.estate-banner {
  background-image: url('/images/page-headers/estate-header.png');
  background-position: center 82%;
  min-height: clamp(360px, 38vw, 560px);
}

.estate-banner.banner-curve::after {
  bottom: -98px;
  width: 154%;
  height: 188px;
  border-radius: 52% 48% 0 0 / 92% 96% 0 0;
}

.gallery-banner {
  background-image: url('/images/page-headers/gallery-header.jpg');
  background-position: center 86%;
  min-height: clamp(300px, 32vw, 470px);
}
.gallery-banner::before {
  background:
    linear-gradient(180deg, rgba(18,17,16,.02), rgba(18,17,16,.10)),
    linear-gradient(90deg, rgba(255,253,249,.04), rgba(255,253,249,0) 25%, rgba(255,253,249,0) 75%, rgba(255,253,249,.05));
}
.faq-banner { background-image: url('/images/page-headers/faq-header-crisp.webp'); background-position: center 48%; }

/* Option 2: Curved Estate Transition */
.banner-curve::after {
  content: '';
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -92px;
  width: 150%;
  height: 176px;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 50% 50% 0 0 / 90% 90% 0 0;
  box-shadow: 0 -20px 42px rgba(255,253,249,.34);
}
.banner-curve::before {
  background:
    linear-gradient(180deg, rgba(18,17,16,.02), rgba(18,17,16,.10)),
    linear-gradient(0deg, rgba(255,253,249,.18), rgba(255,253,249,0) 38%),
    linear-gradient(90deg, rgba(255,253,249,.06), rgba(255,253,249,0) 22%, rgba(255,253,249,0) 78%, rgba(255,253,249,.06));
}
.banner-curve { margin-bottom: -44px; }
.banner-curve + .refined-page-header {
  position: relative;
  z-index: 3;
  margin-top: 0;
  border-top-color: transparent;
}

/* Option 1: Soft Fade Transition */
.banner-fade::after {
  content: '';
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(255,253,249,0), rgba(255,253,249,.88) 68%, var(--white));
}

/* Option 3: Layered Overlap Transition */
.banner-overlap { margin-bottom: -78px; }
.banner-overlap::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(255,253,249,0), rgba(255,253,249,.45));
}
.refined-page-header {
  background: rgba(255,253,249,.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding-top: clamp(44px, 5vw, 72px);
  padding-bottom: clamp(42px, 5vw, 68px);
  margin-top: clamp(26px, 4vw, 58px);
}
.banner-overlap + .refined-page-header {
  position: relative;
  z-index: 5;
  margin-top: 0;
}
.refined-page-header::before {
  content: '';
  display: block;
  width: 64px;
  height: 1px;
  margin: 0 auto 20px;
  background: var(--gold);
}

@media (max-width: 920px) {
  .landscape-banner { min-height: clamp(220px, 48vw, 360px); }
  .banner-curve::after { bottom: -72px; height: 135px; width: 160%; }
  .estate-banner { background-position: center 80%; min-height: clamp(260px, 52vw, 420px); }
  .banner-overlap { margin-bottom: -48px; }
  .refined-page-header { margin-left: 18px; margin-right: 18px; width: auto; }
}

.photo-grid, .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.photo-frame, .gallery-tile {
  min-height: clamp(220px, 28vw, 360px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background-image: linear-gradient(180deg, rgba(36,35,34,.03), rgba(36,35,34,.18)), url('/images/mission-mountains-card.png');
  background-size: cover;
  background-position: center;
}
.photo-frame::before, .gallery-tile::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,253,249,.62);
  pointer-events: none;
}
.photo-frame::after, .gallery-tile::after {
  content: attr(data-label);
  position: absolute;
  left: 20px;
  bottom: 18px;
  background: rgba(255,253,249,.92);
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.wide { grid-column: span 2; }
.tall { min-height: clamp(320px, 42vw, 500px); }
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.faq-item { padding: 28px; position: relative; }
.faq-item::before {
  content: '';
  width: 38px;
  height: 1px;
  background: var(--gold);
  display: block;
  margin-bottom: 14px;
}

.inquiry {
  background: var(--ivory);
  border-top: 1px solid var(--line);
  padding: clamp(58px, 7vw, 88px) clamp(18px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}
.inquiry::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 36px));
  height: 1px;
  background: var(--gold-line);
}
.inquiry-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(28px, 5vw, 52px);
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact-line { margin-top: 18px; font-size: 20px; }
.form {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 32px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--charcoal);
}
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(36,35,34,.18);
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  font: 16px var(--font-ui);
  outline-color: var(--gold);
}
textarea { min-height: 130px; resize: vertical; }
.form-status { margin-top: 12px; font-family: var(--font-ui); font-size: 13px; }
.footer {
  padding: 28px 24px;
  text-align: center;
  background: var(--forest);
  color: var(--gold-soft);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .nav-inner { padding-left: 18px; padding-right: 18px; }
  .brand-logo { width: clamp(230px, 30vw, 340px); }
  .nav-links { gap: 18px; }
}
@media (max-width: 920px) {
  .nav-inner { align-items: center; flex-direction: column; gap: 8px; padding: 12px 18px 16px; }
  .brand-logo { width: min(340px, 84vw); }
  .nav-links { width: 100%; justify-content: center; flex-wrap: wrap; gap: 10px 18px; }
  .hero { min-height: auto; grid-template-columns: 1fr; background-position: center; }
  .hero-copy { padding: 74px 24px 96px; background: rgba(255,253,249,.72); }
  .split, .inquiry-inner { grid-template-columns: 1fr; }
  .cards, .photo-grid, .gallery-grid, .faq-list { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .btn { width: 100%; }
  .nav-links .btn { width: auto; padding: 10px 14px; min-height: 38px; }
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: clamp(38px, 12vw, 52px); }
  .hero-actions { flex-direction: column; }
}

/* Real image gallery support */
.generated-gallery .gallery-tile,
.gallery-grid .gallery-tile:has(img) {
  background: #f6f1ea;
  display: block;
}
.generated-gallery .gallery-tile::before,
.generated-gallery .gallery-tile::after,
.gallery-grid .gallery-tile:has(img)::before,
.gallery-grid .gallery-tile:has(img)::after {
  display: none;
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.gallery-tile:hover img { transform: scale(1.025); }
.gallery-tile figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255,253,249,.93);
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.generated-gallery .feature { grid-column: span 2; min-height: clamp(360px, 46vw, 560px); }
@media (max-width: 900px) {
  .generated-gallery .feature,
  .generated-gallery .wide { grid-column: span 1; }
}


/* Stonehaven gallery border options */
.gallery-tile.border-thin-gold { border: 2px solid var(--gold); }
.gallery-tile.border-double-gold { border: 1px solid var(--gold); box-shadow: inset 0 0 0 8px #fffdf9, inset 0 0 0 10px rgba(159, 101, 112,.55), var(--shadow); padding: 10px; background: #fffdf9; }
.gallery-tile.border-linen-mat { padding: 16px; background: #f7f0e5; border: 1px solid rgba(159, 101, 112,.44); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), var(--shadow); }
.gallery-tile.border-corner-frame { border: 1px solid rgba(159, 101, 112,.72); padding: 10px; background: #fffdf9; }
.gallery-tile.border-corner-frame::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(159, 101, 112,.55); pointer-events: none; display: block !important; z-index: 2; }
.gallery-tile.border-double-gold::after,
.gallery-tile.border-linen-mat::after,
.gallery-tile.border-corner-frame::after { display: none !important; }


/* Real Estate Builder image support: generated estate photos keep the uploaded estate.html layout. */
.photo-grid .photo-frame:has(img) {
  background: #f6f1ea;
  display: block;
}
.photo-grid .photo-frame:has(img)::before,
.photo-grid .photo-frame:has(img)::after {
  display: none;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.photo-frame:hover img { transform: scale(1.025); }
.photo-frame figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255,253,249,.93);
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.photo-frame.border-thin-gold { border: 2px solid var(--gold); }
.photo-frame.border-double-gold { border: 1px solid var(--gold); box-shadow: inset 0 0 0 8px #fffdf9, inset 0 0 0 10px rgba(159, 101, 112,.55), var(--shadow); padding: 10px; background: #fffdf9; }
.photo-frame.border-linen-mat { padding: 16px; background: #f7f0e5; border: 1px solid rgba(159, 101, 112,.44); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), var(--shadow); }
.photo-frame.border-corner-frame { border: 1px solid rgba(159, 101, 112,.72); padding: 10px; background: #fffdf9; }
.photo-frame.border-corner-frame::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(159, 101, 112,.55); pointer-events: none; display: block !important; z-index: 2; }
.photo-frame.border-double-gold::after,
.photo-frame.border-linen-mat::after,
.photo-frame.border-corner-frame::after { display: none !important; }

/* Builder generated image layout fixes */
.photo-frame, .gallery-tile {
  margin: 0;
}
.photo-grid .photo-frame:has(img),
.gallery-grid .gallery-tile:has(img) {
  min-height: clamp(260px, 28vw, 390px);
}
.photo-grid .photo-frame.wide:has(img),
.gallery-grid .gallery-tile.wide:has(img) {
  min-height: clamp(320px, 34vw, 460px);
}
.photo-grid .photo-frame.tall:has(img),
.gallery-grid .gallery-tile.tall:has(img) {
  min-height: clamp(420px, 44vw, 620px);
}
.photo-grid .photo-frame img,
.gallery-grid .gallery-tile img {
  height: 100%;
  min-height: inherit;
}
@media (max-width: 900px) {
  .photo-grid, .gallery-grid { grid-template-columns: 1fr; }
  .wide, .feature { grid-column: span 1; }
}

/* Estate Builder live rows: keep the surrounding Estate page unchanged while letting
   generated estate photos support image-only cards and left/right description cards. */
.photo-grid:has(.estate-feature-row) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 38px);
  align-items: start;
}
.photo-grid .estate-feature-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: stretch;
  margin: 0;
}
.photo-grid .estate-feature-row.text-left {
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
}
.photo-grid .estate-feature-row.text-hidden {
  grid-column: span 1;
  grid-template-columns: 1fr;
}
.photo-grid .estate-feature-row.text-hidden.estate-wide,
.photo-grid .estate-feature-row.text-hidden.estate-feature {
  grid-column: 1 / -1;
}
.photo-grid .estate-feature-row.estate-wide:not(.text-hidden) {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
}
.photo-grid .estate-feature-row.estate-wide.text-left {
  grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr);
}
.photo-grid .estate-image {
  position: relative;
  overflow: hidden;
  min-height: clamp(340px, 34vw, 520px);
  border: 1px solid var(--line);
  background: #f6f1ea;
  box-shadow: var(--shadow);
  margin: 0;
}
.photo-grid .estate-feature-row.text-hidden .estate-image {
  min-height: clamp(320px, 36vw, 500px);
}
.photo-grid .estate-feature-row.estate-feature .estate-image {
  min-height: clamp(460px, 52vw, 700px);
}
.photo-grid .estate-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.photo-grid .estate-image:hover img { transform: scale(1.02); }
.photo-grid .estate-image figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255,253,249,.93);
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  z-index: 3;
}
.photo-grid .estate-copy {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(30px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(300px, 30vw, 460px);
}
.photo-grid .estate-copy h2 {
  font-size: clamp(34px, 3.2vw, 56px);
  margin-top: 12px;
}
.photo-grid .estate-copy p:not(.kicker) {
  color: var(--muted);
  margin-top: 18px;
}
.photo-grid .estate-feature-row.border-thin-gold .estate-image { border: 2px solid var(--gold); }
.photo-grid .estate-feature-row.border-double-gold .estate-image { border: 1px solid var(--gold); box-shadow: inset 0 0 0 8px #fffdf9, inset 0 0 0 10px rgba(159, 101, 112,.55), var(--shadow); padding: 10px; background: #fffdf9; }
.photo-grid .estate-feature-row.border-linen-mat .estate-image { padding: 16px; background: #f7f0e5; border: 1px solid rgba(159, 101, 112,.44); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), var(--shadow); }
.photo-grid .estate-feature-row.border-corner-frame .estate-image { border: 1px solid rgba(159, 101, 112,.72); padding: 10px; background: #fffdf9; }
.photo-grid .estate-feature-row.border-corner-frame .estate-image::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(159, 101, 112,.55); pointer-events: none; z-index: 2; }
@media (max-width: 900px) {
  .photo-grid:has(.estate-feature-row),
  .photo-grid .estate-feature-row,
  .photo-grid .estate-feature-row.text-left,
  .photo-grid .estate-feature-row.estate-wide,
  .photo-grid .estate-feature-row.estate-wide.text-left {
    grid-template-columns: 1fr;
  }
  .photo-grid .estate-feature-row,
  .photo-grid .estate-feature-row.text-hidden {
    grid-column: 1 / -1;
  }
}

/* v38 inquiry availability check */
.availability-check {
  margin: 18px 0;
  padding: 18px;
  background: rgba(255,255,255,.64);
  border: 1px solid rgba(159, 101, 112,.22);
}
.availability-check .form-status { margin-top: 10px; }
.availability-action-label { align-self: end; }


/* Mobile-only page-banner treatment.
   Kept in the core stylesheet because Builder-generated pages always load this file. */
@media (max-width: 768px) {
  .estate-banner,
  .gallery-banner {
    min-height: 0;
    height: clamp(275px, 74vw, 360px);
    border-bottom: 0;
  }

  .estate-banner {
    background-size: auto 150%;
    background-position: 66% bottom;
  }

  .gallery-banner {
    background-size: auto 155%;
    background-position: 61% bottom;
  }

  .estate-banner.banner-curve,
  .gallery-banner.banner-curve {
    margin-bottom: 0;
  }

  .estate-banner.banner-curve::after,
  .gallery-banner.banner-curve::after {
    content: '';
    display: block;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 30px;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(180deg, rgba(255,253,249,0), rgba(255,253,249,.28));
  }

  .estate-banner + .refined-page-header,
  .gallery-banner + .refined-page-header {
    width: calc(100% - 32px);
    margin: 18px 16px 0;
    border-top-color: var(--line);
  }
}
