/* =====================================================================
   My Royal Estate — theme taken from the logo (royal navy + gold)
   ===================================================================== */
:root {
  --navy: #121C33;
  --navy-2: #1B2847;
  --ink: #12203D;
  --muted: #4E5869;
  --line: #D8DCE3;
  --ivory: #F7F5F0;
  --white: #FFFFFF;
  --gold: #D4AF37;          /* accents on navy only */
  --gold-deep: #8A6414;     /* gold-toned text on light backgrounds */
  --dim: #C9CED6;           /* over budget / rare */
  --heat1: #DCE2EC; --heat2: #AEBBD2; --heat3: #7187AE; --heat4: #3B5385; --heat5: #121C33;
  --dc: #EFE8D6; --va: #E3E8EF; --md: #E8E5EF;
  --f-display: "Cinzel", Georgia, serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-num: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 16px/1.5 var(--f-body); }
a { color: var(--ink); }
a:hover { color: var(--gold-deep); }
button, input, select { font: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 20px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 700; text-decoration: underline; cursor: pointer; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0.12) 38%, rgba(255,255,255,0.08) 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 10px 24px rgba(18, 28, 51, 0.03);
  transition: box-shadow .2s ease, background-color .2s ease;
  backdrop-filter: blur(18px) saturate(1.45) brightness(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.45) brightness(1.12);
}
.site-header.is-scrolled {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.42),
    0 10px 20px rgba(18, 28, 51, 0.05);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  padding-block: 10px;
  transition: padding-block .2s ease;
}
.site-header.is-scrolled .wrap { padding-block: 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition: width .2s ease, height .2s ease;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.35));
}
.site-header.is-scrolled .brand img { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.brand-name {
  font: 700 18px/1.2 var(--f-display);
  letter-spacing: .05em;
  color: var(--gold);
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
  transition: font-size .2s ease;
}
.site-header.is-scrolled .brand-name { font-size: 15px; }
.brand-tag { font: italic 500 12px/1.3 var(--f-body); color: var(--navy); letter-spacing: .01em; white-space: nowrap; }
/* Menu with a pendant lamp: the lamp hangs from the top of the header over the lit word,
   rests on the current page and glides to the word you point at (positioned by site.js). */
.site-header { overflow: hidden; }   /* keeps the light inside the header */
.mainnav { display: flex; flex-wrap: wrap; gap: 6px 44px; padding-top: 12px; margin-bottom: -4px; align-self: flex-end; font-weight: 700; font-size: 15px; }
.mainnav a {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 8px 2px 0;
  color: var(--navy);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  transition: color .3s ease;
}
.mainnav a.is-lit { color: var(--gold-deep); }
.mainnav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (max-width: 620px) { .mainnav { gap: 6px 24px; } }
.nav-lamp {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 160px;
  height: 100%;
  margin-left: -80px;
  pointer-events: none;
  transform: translate(var(--x, 0px), var(--y, 0px));
  transition: transform .45s cubic-bezier(.4, .1, .2, 1), opacity .25s ease;
}
.nav-lamp.is-hidden { opacity: 0; }
.nav-lamp.no-anim { transition: none; }
.lamp-cord {
  position: absolute; left: 50%; top: 0; width: 1px; height: var(--cord, 18px);
  background: linear-gradient(var(--gold-deep), var(--gold));
  transform: translateX(-50%);
}
.lamp-bulb {
  position: absolute; left: 50%; top: calc(var(--cord, 18px) - 2px); width: 18px; height: 24px;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 6px rgba(255, 214, 120, .9));
}
/* Soft light: starts at the bulb, widens behind the word, fades out before the bottom */
.lamp-light {
  position: absolute; left: 0; right: 0; top: calc(var(--cord, 18px) + 16px); bottom: 6px;
  background: radial-gradient(ellipse 55% 100% at 50% 0%, rgba(255, 214, 120, .55), rgba(255, 214, 120, .18) 55%, transparent 80%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
          mask-image: linear-gradient(#000 40%, transparent);
}

/* ---------- Page title & controls ---------- */
main { padding-block: 28px 40px; }
.page-title { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
h1 { margin: 0; font: 700 clamp(28px, 4vw, 44px)/1.08 var(--f-display); letter-spacing: .01em; }
.sub { margin: 0; color: var(--muted); max-width: 62ch; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-bottom: 14px; }
.beds-wrap { display: flex; align-items: center; gap: 10px; }
.beds { display: flex; border: 1px solid var(--line); border-radius: 999px; background: var(--white); padding: 3px; }
.beds button { border: 0; background: none; color: var(--ink); font-weight: 600; font-size: 14px; padding: 8px 15px; min-height: 40px; border-radius: 999px; cursor: pointer; }
.beds button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.budget { display: flex; align-items: center; gap: 10px; }
.budget input[type=range] { width: 170px; accent-color: var(--navy); }
.budget output { font: 500 14px var(--f-num); min-width: 6ch; }

/* ---------- Area list + panel ---------- */
.grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.grid .panel { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; }
/* Keep the panel's contents at full height and let the panel scroll; otherwise they squash on short screens. */
.panel > * { flex-shrink: 0; }
@media (max-width: 860px) { .grid .panel { position: static; max-height: none; overflow: visible; } }
.left .listhead { margin-top: 28px; }
/* Right column: hanging sign, then the sticky panel. Stretches so the panel can stick while the sign scrolls away. */
.grid .right { align-self: stretch; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
/* One column: the sign moves up between the "differ" box and the Featured Areas list; the panel stays last. */
@media (max-width: 860px) {
  .grid .left, .grid .right { display: contents; }
  .differ { order: 1; } #banner { order: 2; } .listhead { order: 3; } .cols { order: 4; } .grid .panel { order: 5; }
  .left .listhead { margin-top: 10px; }
}

/* Hanging sign: a fixed rod, with cords and board that sway from it. Opens the Real Estate Pro form. */
.sign-wrap { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 4px; }
.sign-rod { position: relative; z-index: 1; width: 256px; height: 8px; border-radius: 4px; background: linear-gradient(180deg, #F1D98A, #C9A23A 55%, #9C7A22); box-shadow: 0 2px 4px rgba(18, 28, 51, .25); }
.sign-rod::before, .sign-rod::after { content: ""; position: absolute; top: -4px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F6E3A1, #C9A23A 60%, #8A6414); }
.sign-rod::before { left: -10px; } .sign-rod::after { right: -10px; }
.sign { position: relative; display: block; margin-top: -4px; padding: 0; background: none; border: 0; cursor: pointer; text-align: center; color: inherit; transform-origin: 50% 0; animation: sign-sway 4s ease-in-out infinite; }
.sign:hover, .sign:focus-within { animation-play-state: paused; }
.sign-open { position: absolute; inset: 0; z-index: 1; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px; }
.sign-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sign-phone { position: relative; z-index: 2; text-decoration: none; }
.sign-text { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; padding: 1px 8px; font: 600 12px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; text-decoration: none; border-radius: 999px; }
.sign-text:hover, .sign-text:focus-visible { color: #E9C877; text-decoration: underline; text-underline-offset: 3px; }
.sign-phone:hover, .sign-phone:focus-visible { filter: brightness(1.08); text-decoration: underline; text-underline-offset: 3px; }
.sign-cords { display: block; position: relative; width: 204px; height: 28px; margin: 0 auto; }
.sign-cords::before, .sign-cords::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, #C9A23A 0 4px, #8A6414 4px 6px); }
.sign-cords::before { left: 0; } .sign-cords::after { right: 0; }
.sign-board { display: flex; flex-direction: column; align-items: center; width: 300px; margin-top: -2px; padding: 10px 20px 12px; border-radius: 14px; background: linear-gradient(170deg, #1B2A4D, var(--navy) 70%); border: 2px solid #C9A23A; box-shadow: inset 0 0 0 5px var(--navy), inset 0 0 0 6px rgba(212, 175, 55, .45), 0 18px 30px rgba(18, 28, 51, .28); transition: border-color .15s; }
.sign:hover .sign-board { border-color: var(--gold); }
.sign-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #C9A23A; box-shadow: 0 0 0 4px rgba(212, 175, 55, .15); }
.sign-title { margin-top: 6px; font: 700 23px/1.15 "Cormorant Garamond", Georgia, serif; color: #E9C877; }
.sign-cta { margin-top: 0; font: 600 12px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.sign-phone { margin-top: 6px; padding: 7px 18px; border-radius: 999px; font: 700 19px var(--f-body); letter-spacing: .02em; color: var(--navy); background: linear-gradient(180deg, #F1D98A, #C9A23A); box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.sign-rule { width: 56px; height: 1px; margin: 5px 0; background: rgba(212, 175, 55, .5); }
.sign-title + .sign-rule { margin: 5px 0; }
.sign-name { width: 100%; padding: 8px 14px; border-radius: 999px; font: 700 17px/1.25 var(--f-body); color: #fff; background: #08CD54; box-shadow: 0 0 18px rgba(8, 205, 84, .45); }
.sign-name .reg { font-size: .55em; line-height: 0; vertical-align: .75em; margin-left: 1px; }
.sign-name { display: flex; flex-direction: column; align-items: center; padding: 5px 14px 5px; border-radius: 18px; }
.sign-name-main { font-size: 24px; line-height: 1.15; }
.sign-name-title { font: 600 13px/1.25 var(--f-body); letter-spacing: .16em; }
.sign-lic { margin-top: 8px; font: 400 12.5px var(--f-body); color: rgba(255, 255, 255, .85); }
.sign-broker { margin-top: 6px; font: 600 11px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #C9A23A; }
.sign-office { margin-top: 3px; font: 400 12px var(--f-body); letter-spacing: .02em; color: rgba(255, 255, 255, .85); }
@keyframes sign-sway { 0%, 100% { transform: rotate(2deg); } 50% { transform: rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .sign { animation: none; } }

/* How DC, MD & VA differ: always shown above the area list */
.differ { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.differ h2 { margin: 0; font: 700 18px var(--f-display); }
.differ ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; font-size: 14px; color: var(--muted); }
.differ li { border-left: 3px solid var(--gold); padding-left: 12px; }
.differ .cta { margin-top: 2px; }
@media (max-width: 640px) { .differ ul { grid-template-columns: 1fr; gap: 10px; } }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
/* Card flip: turns edge-on, swaps content, turns back */
@keyframes flip-out { from { transform: perspective(1200px) rotateY(0); } to { transform: perspective(1200px) rotateY(90deg); } }
@keyframes flip-in { from { transform: perspective(1200px) rotateY(-90deg); } to { transform: perspective(1200px) rotateY(0); } }
@keyframes flip-out-rev { from { transform: perspective(1200px) rotateY(0); } to { transform: perspective(1200px) rotateY(-90deg); } }
@keyframes flip-in-rev { from { transform: perspective(1200px) rotateY(90deg); } to { transform: perspective(1200px) rotateY(0); } }
.panel.flip-out { animation: flip-out .22s ease-in forwards; }
.panel.flip-in { animation: flip-in .28s ease-out; }
.panel.rev.flip-out { animation-name: flip-out-rev; }
.panel.rev.flip-in { animation-name: flip-in-rev; }
.welcome { background: var(--navy); color: var(--ivory); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.welcome img { width: 150px; height: auto; margin-bottom: 14px; }
.welcome .tile-headline { font-family: var(--f-display); font-variant: small-caps; color: #fff; font-size: 22px; letter-spacing: .04em; margin: 0 0 6px; }
.tile-sub { font-family: var(--f-body); font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .75); margin: 0; }
.tile-sub .accent { color: #D4A84B; font-weight: 500; }
.video { aspect-ratio: 16/9; background: var(--navy); color: #C9D0DC; border-radius: 10px; display: flex; align-items: flex-end; padding: 12px; font-size: 12px; overflow: hidden; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video.has-embed { padding: 0; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.card h2, .panel h3 { margin: 0; font: 700 18px var(--f-display); }
.card ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.where-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel h2.area { margin: 0; font: 700 30px/1.1 var(--f-display); }
.tag { margin: 0; color: var(--muted); }
.rows { display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 104px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.row.on { background: rgba(212, 175, 55, .16); }
.row .b { font-weight: 600; font-size: 14px; }
.bar { height: 10px; border-radius: 5px; background: #E6E9EE; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--navy); border-radius: 5px; }
.row .v { font: 500 14px var(--f-num); text-align: right; }
.row .na { color: #7A8394; }
.disclaimer { margin: 0; font-size: 12px; color: var(--muted); }
/* Boxed consult buttons (open the Consult with a Pro forms) */
.cta { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--gold); background: #FBF3DD; color: var(--ink); cursor: pointer; min-height: 60px; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.cta:hover { border-color: var(--gold-deep); background: #F8EDCC; box-shadow: 0 4px 14px rgba(18, 28, 51, .1); }
.cta-text { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; text-align: center; }
.cta-title { font-weight: 700; font-size: 17px; line-height: 1.3; padding: 6px 16px; border-radius: 999px; color: #fff; background: #08CD54; box-shadow: 0 0 18px rgba(8, 205, 84, .45); }
.cta-sub { font-size: 13px; color: var(--gold-deep); }
.cta-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); }
.cta-icon svg { transition: transform .15s; }
.cta:hover .cta-icon.arrow svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .cta, .cta-icon svg { transition: none; } .cta:hover .cta-icon.arrow svg { transform: none; } }
.section { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid; }
.badge.ai { background: #F1F2F4; color: #33405A; border-color: var(--dim); }
.badge.partly { background: #FBF3DC; color: #6E500F; border-color: var(--gold); }
.badge.verified { background: var(--navy); color: #fff; border-color: var(--navy); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { font-weight: 600; font-size: 14px; padding: 8px 14px; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.ainote { font-size: 12px; font-weight: 600; background: var(--ivory); border-radius: 8px; padding: 7px 10px; color: var(--muted); }
.insight { margin: 0; font-size: 15px; color: #33405A; white-space: pre-line; }

/* ---------- Area list ---------- */
.listhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin: 34px 0 12px; }
.listhead h2 { margin: 0; font: 700 24px var(--f-display); }
.search { display: flex; flex-direction: column; gap: 4px; width: min(300px, 100%); }
.search input { padding: 10px 12px; border: 1px solid var(--dim); border-radius: 9px; background: var(--white); color: var(--ink); min-height: 44px; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.col h3 { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.item { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font-size: 15px; padding: 10px 2px; min-height: 44px; cursor: pointer; }
.item:hover .nm { color: var(--gold-deep); }
.item.sel .nm { font-weight: 700; }
.item.over { opacity: .45; }
.item .pr { font: 500 14px var(--f-num); white-space: nowrap; }

/* ---------- Simple content pages ---------- */
.content { max-width: 760px; }
.content h2 { font: 700 22px var(--f-display); margin: 28px 0 8px; }
.content p, .content li { color: #33405A; }
.post { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 14px 0; }

/* ---------- Essentials page (essentials/index.html) gallery ---------- */
.property-page { padding-top: 20px; }
.property-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.property-header h1 {
  margin: 0;
  font: 700 clamp(30px, 4vw, 52px)/1.08 var(--f-display);
}
.property-header p {
  margin: 0;
  color: var(--muted);
  max-width: 66ch;
}
.property-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: start;
  margin-top: 10px;
}
.property-sidebar {
  grid-column: 2;
  position: sticky;
  top: 86px;
  align-self: start;
  justify-self: end;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 10px;
  box-shadow: 0 10px 24px rgba(18, 28, 51, 0.03);
  min-width: 0;
  width: 220px;
  height: calc(100vh - 120px);
  overflow-y: auto;
}
.property-sidebar-header {
  margin-bottom: 12px;
  padding: 0 6px;
}
.property-tagbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.property-tag {
  width: 100%;
  border: 1px solid var(--line);
  background: #F7F8FA;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.property-tag:hover {
  background: #EEF1F5;
  border-color: #CED6E3;
}
.property-tag.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.property-main {
  min-width: 0;
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
@media (max-width: 980px) {
  .property-layout {
    grid-template-columns: 1fr;
  }
  /* One column: topics go above the cards as a row of wrapping pills */
  .property-sidebar {
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
    position: static;
    top: auto;
    width: 100%;
    height: auto;
    overflow: visible;
  }
  .property-main { grid-row: 2; }
  .property-tagbar { flex-direction: row; flex-wrap: wrap; }
  .property-tag { width: auto; padding: 8px 14px; }
}
@media (max-width: 620px) {
  .property-layout {
    grid-template-columns: 1fr;
  }
  .property-sidebar {
    order: 1;
    width: 100%;
  }
  .property-main {
    order: 2;
  }
  .property-grid { grid-template-columns: 1fr; }
}
.property-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(18, 28, 51, 0.04);
}
/* Card preview: the top of the graphic (where its headline is); click to see it whole */
.property-card-img { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #e7ebf1; cursor: zoom-in; }
.property-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  display: block;
}
.property-card-img.contain { background: var(--navy); }
.property-card-img.contain img { object-fit: contain; object-position: center; }
.property-card-zoom { position: absolute; right: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(18, 28, 51, .82); color: #fff; font-size: 12px; font-weight: 700; opacity: 0; transition: opacity .15s; }
.property-card-img:hover .property-card-zoom, .property-card-img:focus-visible .property-card-zoom { opacity: 1; }
.property-viewer { padding: 0; border: 0; background: transparent; max-width: min(96vw, 900px); max-height: 96vh; overflow: visible; }
.property-viewer::backdrop { background: rgba(10, 16, 30, .82); }
.property-viewer img { display: block; max-width: 100%; max-height: calc(96vh - 40px); margin: 0 auto; border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.property-viewer-title { margin: 10px 0 0; text-align: center; color: #fff; font-weight: 600; font-size: 15px; }
.property-viewer [data-close] { position: absolute; top: -14px; right: -14px; z-index: 1; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.property-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
}
.property-card h2 {
  margin: 0;
  font: 700 22px/1.2 var(--f-display);
}
/* Cards with an article: image and title link to the article page */
a.property-card-img { cursor: pointer; }
.property-card h2 a { color: inherit; text-decoration: none; }
.property-card h2 a:hover, .property-card h2 a:focus-visible { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.property-card p {
  margin: 0;
  color: var(--muted);
}
.property-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.property-card tag,
.property-tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F2F4F7;
  border: 1px solid #E2E5EA;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
}
.property-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.property-empty {
  display: none;
  width: 100%;
  padding: 32px 18px;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}
.property-empty.is-visible {
  display: block;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9D0DC; border-top: 2px solid var(--gold); }
.site-footer .wrap { padding-block: 40px 100px; display: flex; flex-direction: column; gap: 20px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 40px; height: 40px; object-fit: contain; }
.foot-brand span { font: 700 18px var(--f-display); letter-spacing: .06em; color: var(--gold); }
.foot-social { display: flex; gap: 10px; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); background: var(--gold); color: var(--navy); transition: background .2s ease, color .2s ease, transform .15s ease; }
.foot-social a:hover, .foot-social a:focus-visible { background: #E9C877; transform: translateY(-1px); }
.footnav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.footnav a { color: var(--ivory); }
.legal { border-top: 1px solid #2E3A55; padding-top: 18px; font-size: 13px; line-height: 1.6; display: flex; flex-direction: column; gap: 6px; }
/* Gold sparkle before each disclosure line; wrapped text stays indented */
.legal > span { position: relative; padding-left: 20px; }
.legal > span::before { content: ""; position: absolute; left: 0; top: .42em; width: 10px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D4AF37' d='M12 0c.6 6.4 5 11 12 12-7 1-11.4 5.6-12 12-.6-6.4-5-11-12-12 7-1 11.4-5.6 12-12z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Floating consult ---------- */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 51; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 14px 22px; min-height: 52px; border-radius: 999px; border: 2px solid var(--gold); background: var(--navy); color: #fff; box-shadow: 0 10px 28px rgba(18, 28, 51, .35); cursor: pointer; }
.consult { position: fixed; right: 16px; bottom: 84px; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow-y: auto; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 14px; box-shadow: 0 18px 48px rgba(18, 28, 51, .28); padding: 20px; display: flex; flex-direction: column; gap: 12px; z-index: 50; }
.consult[hidden] { display: none; }

/* Name strip: fixed to the bottom of every page except the homepage (added by site.js). */
:root { --strip-h: 64px; }
.name-strip { position: fixed; left: 0; right: 0; bottom: 0; z-index: 49; height: var(--strip-h); background: linear-gradient(170deg, #1B2A4D, var(--navy) 70%); border-top: 2px solid #C9A23A; box-shadow: 0 -8px 24px rgba(18, 28, 51, .22); color: #fff; transition: transform .3s ease, visibility .3s; }
/* Homepage: hidden (slid below the screen) while the hanging sign is in view. */
.name-strip.is-hidden { transform: translateY(110%); visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .name-strip { transition: none; } }
.name-strip .wrap { position: relative; height: 100%; display: flex; align-items: center; gap: 12px; }
.strip-open { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.strip-open:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.strip-photo { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #C9A23A; pointer-events: none; }
.strip-who { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; pointer-events: none; }
.strip-rtr { display: none; }
.strip-name { display: flex; align-items: baseline; gap: 8px; font: 700 18px/1.2 var(--f-body); white-space: nowrap; }
.strip-title { font: 600 11px var(--f-body); letter-spacing: .16em; color: #08CD54; }
.strip-title sup { font-size: .7em; }
.strip-meta { font: 600 11px/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #C9A23A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-lic { color: rgba(255, 255, 255, .8); }
.strip-actions { position: relative; z-index: 1; display: flex; gap: 8px; margin-left: auto; margin-right: 240px; }
.strip-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px; font: 700 15px var(--f-body); text-decoration: none; white-space: nowrap; }
.strip-call { color: var(--navy); background: linear-gradient(180deg, #F1D98A, #C9A23A); }
.strip-text { color: #fff; border: 1px solid rgba(212, 175, 55, .7); }
.strip-btn:hover, .strip-btn:focus-visible { filter: brightness(1.08); text-decoration: underline; text-underline-offset: 3px; }
.strip-short { display: none; }
/* Keep the page's end, the Consult button and its form clear of the strip. */
body.has-strip { padding-bottom: var(--strip-h); }
body.has-strip .fab { transition: bottom .3s ease; }
body.strip-shown .fab { bottom: calc((var(--strip-h) - 52px) / 2); }
body.strip-shown .consult { bottom: calc(var(--strip-h) + 12px); max-height: calc(100vh - var(--strip-h) - 100px); }
@media (min-width: 861px) { body.strip-shown .grid .panel { max-height: calc(100vh - 110px - var(--strip-h)); } }
/* Commercial/Business guides have no Consult button, so the Call/Text buttons can use that space. */
body:not(:has(.fab)) .strip-actions { margin-right: 0; }
@media (max-width: 900px) { .strip-lic { display: none; } }
@media (max-width: 640px) {
  :root { --strip-h: 60px; }
  .name-strip .wrap { gap: 10px; padding-inline: 12px; }
  .strip-photo { width: 38px; height: 38px; }
  .strip-name { font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
  .strip-title { display: none; } .strip-rtr { display: inline; color: #08CD54; }
  .strip-meta { font-size: 10px; letter-spacing: .06em; }
  .strip-actions { flex: none; margin-right: 0; gap: 6px; }
  .strip-btn { padding: 0 12px; font-size: 14px; }
  .strip-num { display: none; } .strip-short { display: inline; }
  /* The Consult button floats just above the strip on phones. */
  body.strip-shown .fab { bottom: calc(var(--strip-h) + 10px); }
  body.strip-shown .consult { bottom: calc(var(--strip-h) + 72px); }
}
@media print { .name-strip { display: none !important; } body.has-strip { padding-bottom: 0; } }
.consult-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.consult-head h2 { margin: 0; font: 700 20px var(--f-display); }
.iconbtn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); cursor: pointer; }
.opt strong { font-size: 16px; } .opt span { font-size: 14px; color: var(--muted); }
.opt.dark { background: var(--navy); border-color: var(--navy); color: #fff; } .opt.dark span { color: #C9D0DC; }
.small { margin: 0; font-size: 12px; color: var(--muted); }
.consult form { display: flex; flex-direction: column; gap: 12px; }
.consult label.f { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.consult input[type=text], .consult input[type=tel] { padding: 11px 12px; border: 1px solid var(--dim); border-radius: 8px; min-height: 46px; font-weight: 400; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: #33405A; line-height: 1.5; }
.consent input { width: 22px; height: 22px; margin-top: 1px; flex: none; }
.form-error { margin: 0; font-size: 14px; font-weight: 600; color: #9B1C1C; background: #FDECEC; border-radius: 8px; padding: 9px 12px; }
.form-error[hidden] { display: none; }
.primary:disabled { opacity: .7; cursor: wait; }
.primary { font-weight: 700; font-size: 15px; background: var(--navy); color: #fff; border: 0; border-radius: 9px; padding: 13px 18px; min-height: 50px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Essentials article pages (essentials/articles/*.html) ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 28px 0 56px; color: #33405A; line-height: 1.7; }
.article-back { display: inline-block; margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--gold-deep); text-decoration: none; }
.article-back:hover, .article-back:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.article > .article-back:last-child { margin: 28px 0 0; }
.article-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.article-head h1 { color: var(--ink); }
.article-sub { margin: 0; font-size: 18px; font-style: italic; color: var(--muted); }
.article-hero { display: block; margin: 0 0 28px; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 24px rgba(18, 28, 51, .12); cursor: zoom-in; }
.article-hero img { display: block; width: 100%; height: auto; }
.article h2 { margin: 34px 0 10px; font: 700 23px/1.3 var(--f-display); color: var(--ink); }
.article h3 { margin: 26px 0 8px; font: 700 18px/1.35 var(--f-body); color: var(--navy); }
.article p { margin: 0 0 12px; }
.article ul, .article ol { margin: 0 0 14px; padding-left: 22px; }
.article li { margin-bottom: 4px; }
.article strong { color: var(--ink); }
.article hr { margin: 34px 0 0; border: 0; border-top: 1px solid var(--line); }
/* Wide tables scroll sideways on phones instead of squeezing */
.article-table { margin: 14px 0 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.article-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.article-table th, .article-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.article-table thead th { background: var(--navy); color: #fff; font-weight: 700; white-space: nowrap; }
.article-table tbody th { background: var(--ivory); color: var(--ink); font-weight: 700; }
.article-table tbody tr:last-child > * { border-bottom: 0; }
.article-table tbody tr:nth-child(even) td { background: #FAFAF8; }
.article-note { font-size: 14px; color: var(--muted); }
.article-tagline { font-family: var(--f-display); font-size: 17px; color: var(--gold-deep); }
.article-disclaimer { margin-top: 36px !important; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--ivory); font-size: 13px; line-height: 1.6; color: var(--muted); }
/* Four-column table: give each column room so cells stay readable */
.article-table table:has(thead th:nth-child(4)) { min-width: 820px; }
/* On wider screens, let a four-column table extend past the 760px text column (centered, up to 1100px) so it fits without sideways scrolling. Phones still scroll. */
@media (min-width: 900px) {
  .article-table:has(thead th:nth-child(4)) { width: min(1100px, calc(100vw - 40px)); margin-left: calc(50% - min(550px, 50vw - 20px)); }
}

/* Phones and touch screens: give small text links a comfortable tap area (about 44px tall) */
@media (max-width: 860px), (pointer: coarse) {
  .footnav { gap: 0 22px; }
  .footnav a, a.article-back, a.bg-top { display: inline-flex; align-items: center; min-height: 44px; }
  .budget input[type=range] { height: 32px; }
}
.consult .field-error { margin: -6px 0 0; font-size: 13px; font-weight: 600; color: #B42318; }
.consult input[aria-invalid="true"] { border-color: #B42318; }
