/* ---------- Theme 5: "Flagship" — high-end brokerage, refined & timeless ---------- */
:root {
  --ink: #101820;
  --ink-soft: #1b2530;
  --ivory: #faf8f4;
  --white: #ffffff;
  --gold: #b28a4c;
  --gold-soft: #d8bd8f;
  --line: #e7e2d8;
  --line-dark: rgba(255,255,255,.14);
  --gray-700: #4e5560;
  --gray-500: #7d8490;
  --display: "New York", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow-sm: 0 2px 8px rgba(16, 24, 32, .06);
  --shadow-md: 0 14px 40px rgba(16, 24, 32, .12);
  --shadow-lg: 0 30px 70px rgba(16, 24, 32, .22);
  --ease: cubic-bezier(.22, .8, .32, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--gold-soft); color: var(--ink); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; font-weight: 600; font-size: 13.5px; letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--ink); color: var(--white);
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-block { width: 100%; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -.005em; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--ink); color: rgba(255,255,255,.75); font-size: 12.5px; letter-spacing: .06em; }
.announce .wrap { display: flex; justify-content: space-between; align-items: center; padding: 9px 32px; }
.announce a { color: var(--gold-soft); }
.announce a:hover { color: #fff; }
.announce .links { display: flex; gap: 26px; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 80; background: rgba(250,248,244,.9); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 20px 32px; gap: 20px; }
.hdr-nav { display: flex; gap: 34px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hdr-nav a { position: relative; padding: 4px 0; color: var(--gray-700); transition: color .2s var(--ease); }
.hdr-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px; background: var(--gold); transition: right .3s var(--ease); }
.hdr-nav a:hover, .hdr-nav a.active { color: var(--ink); }
.hdr-nav a:hover::after, .hdr-nav a.active::after { right: 0; }
.hdr-logo { text-align: center; font-family: var(--display); font-size: 25px; letter-spacing: .02em; }
.hdr-logo span { display: block; font-family: var(--sans); font-size: 9.5px; letter-spacing: .42em; text-transform: uppercase; color: var(--gray-500); margin-top: 3px; }
.hdr-actions { display: flex; justify-content: flex-end; gap: 12px; align-items: center; }
.hdr-actions .phone { font-size: 14px; font-weight: 600; margin-right: 8px; color: var(--gray-700); }
.hdr-actions .btn { padding: 11px 22px; font-size: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,24,32,.32) 0%, rgba(16,24,32,.18) 38%, rgba(16,24,32,.88) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 72px; }
.hero-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 22px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 5.6vw, 74px); line-height: 1.06; margin: 0 0 18px; max-width: 840px; letter-spacing: -.005em; }
.hero p.lead { font-size: 17.5px; line-height: 1.65; color: rgba(255,255,255,.82); max-width: 520px; margin: 0 0 38px; }

.hero-search { display: flex; max-width: 680px; background: var(--white); box-shadow: var(--shadow-lg); }
.hero-search input { flex: 1; border: none; padding: 20px 24px; font-size: 15.5px; font-family: var(--sans); color: var(--ink); min-width: 0; }
.hero-search input:focus { outline: none; }
.hero-search .btn { border: none; padding: 20px 34px; }
.hero-meta { display: flex; gap: 44px; margin-top: 44px; }
.hero-meta div { border-left: 1px solid var(--line-dark); padding-left: 18px; }
.hero-meta strong { display: block; font-family: var(--display); font-size: 30px; font-weight: 400; }
.hero-meta span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ---------- Section scaffolding ---------- */
.section { padding: 104px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 52px; }
.section-head h2 { font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1.12; margin: 16px 0 0; max-width: 560px; }
.section-head p { font-size: 15.5px; color: var(--gray-700); line-height: 1.65; max-width: 400px; margin: 0; }
.rule { width: 56px; height: 2px; background: var(--gold); margin-top: 22px; }

/* ---------- Featured property (oversized) ---------- */
.feature-prop { display: grid; grid-template-columns: 1.45fr 1fr; background: var(--white); box-shadow: var(--shadow-md); }
.feature-prop .fp-media { position: relative; min-height: 560px; overflow: hidden; }
.feature-prop .fp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-prop:hover .fp-media img { transform: scale(1.035); }
.feature-prop .fp-badge { position: absolute; top: 26px; left: 26px; background: var(--white); color: var(--ink); padding: 9px 18px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.feature-prop .fp-body { padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; }
.fp-body .price { font-family: var(--display); font-size: 40px; margin: 14px 0 4px; }
.fp-body .addr { font-size: 15.5px; color: var(--gray-700); margin-bottom: 26px; }
.fp-specs { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.fp-specs div { flex: 1; padding: 18px 6px; text-align: center; border-right: 1px solid var(--line); }
.fp-specs div:last-child { border-right: none; }
.fp-specs strong { display: block; font-family: var(--display); font-size: 23px; font-weight: 400; }
.fp-specs span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500); }
.fp-body p.blurb { font-size: 15px; line-height: 1.75; color: var(--gray-700); margin: 0 0 32px; }
.fp-cta { display: flex; gap: 12px; }

/* ---------- Listing gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.g-card { background: var(--white); box-shadow: var(--shadow-sm); transition: box-shadow .35s var(--ease), transform .35s var(--ease); display: block; }
.g-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.g-card .gc-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.g-card .gc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.g-card:hover .gc-media img { transform: scale(1.05); }
.g-card .gc-tag { position: absolute; top: 16px; left: 16px; background: var(--white); padding: 6px 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.g-card .gc-fav { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; transition: background .2s; }
.g-card .gc-fav:hover { background: var(--white); }
.g-card .gc-body { padding: 24px 26px 26px; }
.g-card .gc-price { font-family: var(--display); font-size: 25px; }
.g-card .gc-specs { font-size: 13px; color: var(--gray-700); letter-spacing: .02em; margin: 8px 0 6px; }
.g-card .gc-specs b { color: var(--ink); font-weight: 600; }
.g-card .gc-addr { font-size: 14px; color: var(--gray-700); }
.g-card .gc-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); }

/* ---------- Dark band: sell CTA ---------- */
.dark-band { background: var(--ink); color: var(--white); }
.dark-band .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; padding-top: 104px; padding-bottom: 104px; }
.dark-band h2 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.14; margin: 16px 0 18px; }
.dark-band p { font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,.72); max-width: 460px; margin: 0 0 34px; }
.value-panel { background: var(--white); color: var(--ink); padding: 42px; box-shadow: var(--shadow-lg); }
.value-panel h3 { font-family: var(--display); font-weight: 400; font-size: 23px; margin: 0 0 24px; }
.value-panel label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-700); margin-bottom: 8px; }
.value-panel input { width: 100%; border: 1px solid var(--line); background: var(--ivory); padding: 14px 16px; font-size: 15px; font-family: var(--sans); margin-bottom: 18px; }
.value-panel input:focus { outline: 1px solid var(--gold); }
.value-panel .estimate { text-align: center; font-size: 13.5px; color: var(--gray-500); margin-top: 14px; }
.value-panel .estimate strong { font-family: var(--display); font-size: 17px; color: var(--ink); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar { padding: 52px 44px; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: none; }
.pillar .num { font-family: var(--display); font-size: 15px; color: var(--gold); margin-bottom: 20px; letter-spacing: .1em; }
.pillar h3 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 0 0 12px; }
.pillar p { font-size: 14.5px; line-height: 1.7; color: var(--gray-700); margin: 0; }

/* ---------- Testimonial spotlight ---------- */
.testimony { text-align: center; max-width: 820px; margin: 0 auto; }
.testimony .stars { color: var(--gold); letter-spacing: 6px; font-size: 15px; margin-bottom: 28px; }
.testimony blockquote { font-family: var(--display); font-size: clamp(24px, 3vw, 33px); line-height: 1.42; margin: 0 0 30px; font-style: italic; }
.testimony cite { font-style: normal; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-500); }
.testimony-nav { display: flex; gap: 10px; justify-content: center; margin-top: 34px; }
.testimony-nav button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; transition: background .2s, transform .2s; padding: 0; }
.testimony-nav button.active { background: var(--gold); transform: scale(1.25); }

/* ---------- Contact band ---------- */
.contact-band { background: var(--white); border-top: 1px solid var(--line); }
.contact-band .wrap { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.contact-band h2 { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.15; margin: 16px 0 20px; }
.contact-band .c-info { font-size: 15px; line-height: 2.1; color: var(--gray-700); }
.contact-band .c-info b { color: var(--ink); font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; border: none; border-bottom: 1px solid var(--line); background: transparent; padding: 15px 2px; font-size: 15px; font-family: var(--sans); margin-bottom: 20px; color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { min-height: 96px; resize: vertical; }

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: rgba(255,255,255,.66); }
.ftr .top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; padding: 76px 0 56px; border-bottom: 1px solid var(--line-dark); }
.ftr .f-logo { font-family: var(--display); font-size: 24px; color: var(--white); margin-bottom: 6px; }
.ftr .f-logo span { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .42em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: 4px; }
.ftr .f-desc { font-size: 14px; line-height: 1.8; max-width: 300px; margin-top: 18px; }
.ftr h4 { color: var(--white); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 22px; font-weight: 600; }
.ftr li { margin-bottom: 13px; font-size: 14px; }
.ftr a { transition: color .2s; }
.ftr a:hover { color: var(--gold-soft); }
.ftr .bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 12.5px; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,.4); }

/* ---------- Listing detail ---------- */
.pd-hero { position: relative; height: 68vh; min-height: 440px; overflow: hidden; }
.pd-hero img { width: 100%; height: 100%; object-fit: cover; }
.pd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,24,32,0) 55%, rgba(16,24,32,.55) 100%); }
.pd-hero .count { position: absolute; z-index: 2; right: 34px; bottom: 30px; background: rgba(16,24,32,.82); color: #fff; padding: 10px 20px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.pd-thumbrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.pd-thumbrow img { width: 100%; height: 110px; object-fit: cover; cursor: pointer; transition: opacity .2s; }
.pd-thumbrow img:hover { opacity: .82; }

.pd-body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 72px; padding: 72px 0 96px; align-items: start; }
.pd-main .crumb { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 26px; }
.pd-main .crumb a:hover { color: var(--gold); }
.pd-main h1 { font-family: var(--display); font-weight: 400; font-size: 44px; margin: 0 0 6px; }
.pd-main .sub { font-size: 16px; color: var(--gray-700); margin-bottom: 8px; }
.pd-main .price { font-family: var(--display); font-size: 32px; color: var(--gold); margin-bottom: 34px; }
.pd-stats { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 42px; }
.pd-stats div { flex: 1; text-align: center; padding: 22px 8px; border-right: 1px solid var(--line); }
.pd-stats div:last-child { border-right: none; }
.pd-stats strong { display: block; font-family: var(--display); font-size: 26px; font-weight: 400; }
.pd-stats span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500); }
.pd-main h2 { font-family: var(--display); font-weight: 400; font-size: 27px; margin: 0 0 18px; }
.pd-main .prose { font-size: 15.5px; line-height: 1.85; color: var(--gray-700); margin-bottom: 44px; }
.pd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; margin-bottom: 44px; }
.pd-facts div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.pd-facts span { color: var(--gray-500); }
.pd-facts b { font-weight: 600; }
.pd-legal { font-size: 12px; color: var(--gray-500); line-height: 1.7; }

.pd-aside { position: sticky; top: 118px; }
.tour-card { background: var(--white); box-shadow: var(--shadow-md); padding: 38px; }
.tour-card .tc-head { text-align: center; margin-bottom: 26px; }
.tour-card .tc-head .avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--gold-soft); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 19px; margin: 0 auto 14px; }
.tour-card .tc-head strong { display: block; font-family: var(--display); font-size: 19px; font-weight: 400; }
.tour-card .tc-head span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-500); }
.tour-card input, .tour-card textarea { width: 100%; border: 1px solid var(--line); background: var(--ivory); padding: 14px 16px; font-size: 14.5px; font-family: var(--sans); margin-bottom: 12px; }
.tour-card input:focus, .tour-card textarea:focus { outline: 1px solid var(--gold); }
.tour-card textarea { min-height: 88px; resize: vertical; }
.tour-card .fine { font-size: 11px; color: var(--gray-500); line-height: 1.7; margin-top: 14px; }

/* ---------- Similar strip ---------- */
.similar { background: var(--white); border-top: 1px solid var(--line); }
.similar .wrap { padding-top: 88px; padding-bottom: 96px; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .hdr .wrap { grid-template-columns: auto 1fr; }
  .hdr-nav { display: none; }
  .feature-prop { grid-template-columns: 1fr; }
  .feature-prop .fp-media { min-height: 340px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .dark-band .wrap, .contact-band .wrap { grid-template-columns: 1fr; gap: 44px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: none; }
  .pd-body { grid-template-columns: 1fr; gap: 48px; }
  .pd-aside { position: static; }
  .ftr .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero h1 { font-size: 38px; }
  .hero-search { flex-direction: column; }
  .hero-meta { flex-wrap: wrap; gap: 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .fp-body { padding: 34px 28px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .pd-thumbrow { grid-template-columns: repeat(3, 1fr); }
  .pd-thumbrow img:nth-child(n+4) { display: none; }
  .pd-facts { grid-template-columns: 1fr; }
  .announce .links { display: none; }
  .ftr .top { grid-template-columns: 1fr; }
}

/* ---------- Rentals additions ---------- */
.mo { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--gray-500); letter-spacing: 0; }
.avail-line { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500); margin-top: 8px; }
.avail-line b { color: var(--gold); font-weight: 600; }
.hero-mid { min-height: 56vh; }
/* Shorter hero sits text in the lighter part of the default gradient, so add a
   left-side scrim to keep the headline legible without flattening the photo. */
.hero-mid::after {
  background:
    linear-gradient(90deg, rgba(16,24,32,.88) 0%, rgba(16,24,32,.62) 45%, rgba(16,24,32,.20) 100%),
    linear-gradient(180deg, rgba(16,24,32,.30) 0%, rgba(16,24,32,.40) 55%, rgba(16,24,32,.82) 100%);
}
.storage-band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.storage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 760px) { .storage-grid { grid-template-columns: 1fr; } }
