/* Estates portfolio gallery (home, /buy/, /featured/).
   SITE STANDARD: every photo card uses the bio portrait's treatment (static/hero-video.css .about .portrait):
   gold hairline ring, layered 3D elevation, offset gold frame behind (::before), lift on hover, theme-aware.
   Do not ship new image sections without it. */
.estates{max-width:1240px;margin:0 auto;padding:clamp(56px,8vw,112px) clamp(28px,5vw,64px)}
.estates-intro{max-width:640px;margin:0 0 clamp(36px,5vw,56px)}
.estates-eyebrow{font-size:.75rem;letter-spacing:.18em;text-transform:uppercase;color:#a8862a;margin:0 0 12px}
.estates-intro h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(2rem,4.2vw,3.2rem);line-height:1.08;margin:0 0 16px}
.estates-intro h2 em{color:#c9a227;font-style:italic}
.estates-intro p{margin:0;line-height:1.65}
.estates-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(48px,5vw,64px) clamp(40px,4.5vw,60px);padding:14px 0 0 14px}

/* The card: same object as the portrait card */
.estate{position:relative;isolation:isolate;margin:0;background:var(--mist,#f4f1ea);border-radius:2px;
  box-shadow:0 28px 60px -18px rgba(8,25,41,.36),0 12px 26px -10px rgba(8,25,41,.2),0 0 0 1px rgba(201,162,39,.32);
  transition:transform .45s cubic-bezier(.16,1,.3,1),box-shadow .45s cubic-bezier(.16,1,.3,1)}
.estate::before{content:"";position:absolute;inset:-14px 14px 14px -14px;border:1px solid rgba(201,162,39,.38);
  background:radial-gradient(circle at 35% 28%,rgba(201,162,39,.12),transparent 70%);z-index:-1;pointer-events:none;
  transition:transform .45s cubic-bezier(.16,1,.3,1)}
.estate:hover{transform:translateY(-5px);box-shadow:0 36px 74px -18px rgba(8,25,41,.44),0 16px 32px -10px rgba(8,25,41,.26),0 0 0 1px rgba(201,162,39,.52)}
.estate:hover::before{transform:translate(-3px,-3px)}

.estate img{display:block;width:100%;height:100%;object-fit:cover;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.estate-hero{position:relative;margin:0;aspect-ratio:4/3;overflow:hidden}
.estate-hero img{transition:transform .9s cubic-bezier(.16,1,.3,1)}
.estate:hover .estate-hero img{transform:scale(1.03)}
.estate-tag{position:absolute;left:12px;bottom:12px;background:rgba(16,26,38,.72);color:#f4efe3;font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;padding:6px 10px}
.estate-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:6px 6px 0}
.estate-gallery img{aspect-ratio:4/3}

/* Caption bar: same as the portrait's name strip */
.estate-caption{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:6px 0 0;padding:16px 22px;
  border-top:1px solid rgba(201,162,39,.26);background:linear-gradient(180deg,var(--mist,#f4f1ea),rgba(8,25,41,.03))}
.estate-caption strong{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:1.2rem}
.estate-caption span{font-size:12px;letter-spacing:.06em;text-transform:uppercase;opacity:.8}

.estates-note{max-width:760px;margin:clamp(40px,5vw,56px) 0 0;font-size:.82rem;line-height:1.6;opacity:.75}
.estates-cta{margin:20px 0 0}

/* Navy theme: same values as the portrait */
[data-theme="navy"] .estates-eyebrow,[data-theme="navy"] .estates-intro h2 em{color:#e2c77f}
[data-theme="navy"] .estate{background:rgba(25,54,78,.96);box-shadow:0 34px 72px -16px rgba(2,9,18,.78),0 14px 30px -8px rgba(2,9,18,.54),0 0 0 1px rgba(226,199,127,.36)}
[data-theme="navy"] .estate::before{border-color:rgba(226,199,127,.34);background:radial-gradient(circle at 35% 28%,rgba(226,199,127,.16),transparent 72%)}
[data-theme="navy"] .estate-caption{border-top-color:rgba(226,199,127,.24);background:linear-gradient(180deg,rgba(25,54,78,.96),rgba(16,40,62,.98))}

@media (max-width:760px){
  .estates-grid{grid-template-columns:1fr;gap:44px;padding:10px 0 0 10px}
  .estate::before{inset:-10px 10px 10px -10px}
  .estate-caption{flex-direction:column;align-items:flex-start;gap:4px;padding:14px 18px}
}
@media (prefers-reduced-motion:reduce){.estate,.estate::before,.estate-hero img{transition:none}.estate:hover{transform:none}.estate:hover .estate-hero img{transform:none}}
