/* brownsvillebtx.com · Hector's iOS style, 2027 edition.
   System fonts (SF Pro), Apple system colors, Liquid Glass on listings, light/dark from the device.
   One primary action per screen; the contact form is the main door. */

:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --soft: #6e6e73;
  --tertiary: #86868b;
  --line: rgb(60 60 67 / .14);
  --fill: rgb(120 120 128 / .12);
  --link: #0066cc;
  --accent: #0071e3;
  --accent-press: #0062cc;
  --green: #34c759;
  --shadow: 0 1px 1px rgb(0 0 0 / .03), 0 10px 30px -12px rgb(0 0 0 / .16);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rounded: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", sans-serif;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1120px;
  --glass-bg: rgb(255 255 255 / .22);
  --glass-edge: rgb(255 255 255 / .55);
  --glass-ink: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --ink: #f5f5f7;
    --soft: #a1a1a6;
    --tertiary: #8e8e93;
    --line: rgb(84 84 88 / .5);
    --fill: rgb(120 120 128 / .24);
    --link: #2997ff;
    --accent: #0a84ff;
    --accent-press: #409cff;
    --green: #30d158;
    --shadow: none;
    --glass-bg: rgb(30 30 32 / .28);
    --glass-edge: rgb(255 255 255 / .22);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; }
h1 { font-size: clamp(36px, 6.2vw, 68px); font-weight: 700; line-height: 1.04; letter-spacing: -0.032em; text-wrap: balance; }
h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; line-height: 1.12; letter-spacing: -0.022em; text-wrap: balance; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.012em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.block { margin-top: clamp(44px, 7vw, 88px); }
.small { font-size: 13px; color: var(--soft); }
.muted { color: var(--soft); }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; }
.mini { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); margin-bottom: 12px; }

/* ---------- Bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); border-bottom: .5px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.brand span { display: grid; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.brand small { font-size: 11px; font-weight: 400; color: var(--soft); }
.top nav { display: flex; gap: 22px; font-size: 14px; }
.top nav a { color: var(--soft); }
.top nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 600 17px/1 var(--text); letter-spacing: -0.01em; cursor: pointer; transition: transform .12s ease, background .15s; }
.btn:hover { background: var(--accent-press); color: #fff; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; }
.btn.sm { min-height: 34px; padding: 0 16px; font-size: 14px; }
.btn.wide { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-size: 17px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 8vw, 104px) 0 0; }
.hero .wrap { max-width: var(--max); }
.hero h1, .hero .lede { max-width: 880px; }
.hero.home h1 { font-size: clamp(42px, 8.4vw, 96px); letter-spacing: -0.04em; max-width: none; }
.hero .quiet { color: var(--tertiary); }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.lede { margin-top: 20px; max-width: 36em; font-size: clamp(18px, 2.1vw, 22px); line-height: 1.4; color: var(--soft); letter-spacing: -0.012em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--tertiary); margin-bottom: 14px; }
.crumbs a { color: var(--soft); }
.hero-img { width: 100%; border-radius: var(--r-xl); }
.center-col { text-align: center; display: grid; justify-items: center; }
.center-col .row { justify-content: center; }
.ok { color: var(--green); margin-bottom: 16px; }

/* ---------- Section header ---------- */
.sh { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sh a { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 500; white-space: nowrap; }

/* ---------- Liquid Glass listing cards ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); padding: 4px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 18px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > div { scroll-snap-align: start; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.lg-card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; background: var(--fill); color: var(--glass-ink); box-shadow: var(--shadow); isolation: isolate; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.lg-card:hover { text-decoration: none; color: var(--glass-ink); transform: translateY(-3px) scale(1.01); }
.lg-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.lg-card:hover img { transform: scale(1.04); }
.lg-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to bottom, transparent, rgb(0 0 0 / .28)); z-index: -1; pointer-events: none; }
.lg-glass {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; gap: 1px; padding: 14px 16px 15px;
  border-radius: 20px; background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.04); backdrop-filter: blur(22px) saturate(190%) brightness(1.04);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 .5px rgb(255 255 255 / .25), inset 0 -10px 24px -18px rgb(255 255 255 / .55), 0 8px 24px -10px rgb(0 0 0 / .35);
  text-shadow: 0 1px 2px rgb(0 0 0 / .25);
}
.lg-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgb(255 255 255 / .35), transparent 42%); opacity: .55; pointer-events: none; }
.lg-card .price { font-family: var(--rounded); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.lg-card .addr { font-size: 15px; font-weight: 600; }
.lg-card .facts { font-size: 13px; opacity: .9; }
.lg-chip { position: absolute; top: 12px; left: 12px; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgb(255 255 255 / .2); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45); text-shadow: 0 1px 2px rgb(0 0 0 / .3); }
.lg-chip.sold { background: color-mix(in srgb, var(--green) 70%, transparent); }
.lg-card.noimg { aspect-ratio: auto; min-height: 210px; background: linear-gradient(160deg, color-mix(in srgb, var(--green) 38%, #1c1c1e), #2c2c2e); }

/* Explore tiles: glass over color fields */
.explore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ex { position: relative; display: block; aspect-ratio: 1 / 1.05; border-radius: var(--r-xl); overflow: hidden; color: #fff; isolation: isolate; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.ex:hover { transform: translateY(-3px); text-decoration: none; color: #fff; }
.ex .lg-glass strong { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.ex .lg-glass span { font-size: 13px; opacity: .92; }
.ex-luxury { background: radial-gradient(120% 90% at 20% 10%, #f3d9a4, transparent 55%), radial-gradient(90% 80% at 90% 90%, #5b3a1e, transparent 60%), linear-gradient(160deg, #b68a4a, #3b2715); }
.ex-water { background: radial-gradient(120% 90% at 10% 0%, #a7f0ff, transparent 55%), radial-gradient(80% 70% at 90% 100%, #004e92, transparent 60%), linear-gradient(170deg, #36b9e6, #0a3d75); }
.ex-new { background: radial-gradient(120% 90% at 15% 5%, #d9ffd1, transparent 55%), radial-gradient(90% 80% at 85% 95%, #0f5b3a, transparent 60%), linear-gradient(165deg, #59c48a, #13452f); }
.ex-rent { background: radial-gradient(120% 90% at 15% 5%, #e3d4ff, transparent 55%), radial-gradient(90% 80% at 85% 95%, #2c1a6b, transparent 60%), linear-gradient(165deg, #8a6cf0, #2a1c63); }

/* ---------- Brownsville now ---------- */
.pulse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pulse { background: var(--surface); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow); }
.pulse.big { grid-column: 1 / -1; }
.pulse.big h3 { font-size: clamp(22px, 2.6vw, 28px); }
.pulse h3 { line-height: 1.25; }
.pulse p { color: var(--soft); font-size: 15px; line-height: 1.5; }
.pulse .why { color: var(--ink); background: var(--fill); padding: 10px 12px; border-radius: 12px; }
.pulse .why b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: 2px; }
.pulse .src { font-size: 12px; color: var(--tertiary); }
.pulse .src a { color: var(--tertiary); text-decoration: underline; text-underline-offset: 2px; }
.cat { justify-self: start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--ink); }
.cat-space { background: #1d1d1f; color: #fff; }
.cat-energy { background: color-mix(in srgb, #ff9f0a 22%, transparent); color: #b25000; }
.cat-port { background: color-mix(in srgb, #0a84ff 18%, transparent); color: var(--accent); }
.cat-development, .cat-downtown { background: color-mix(in srgb, #34c759 20%, transparent); color: #1f7a38; }
@media (prefers-color-scheme: dark) { .cat-space { background: #f5f5f7; color: #000; } .cat-energy { color: #ffb340; } .cat-development, .cat-downtown { color: #4cd964; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 10px; }
.stats div { background: var(--surface); padding: 18px 20px; display: grid; gap: 2px; }
.stats strong { font-family: var(--rounded); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.stats span { font-size: 13px; color: var(--soft); }

/* ---------- Long-form reading ---------- */
.prose > p, .prose section { max-width: 700px; }
.prose > p, .prose section p { font-size: 18px; line-height: 1.62; margin: 0 0 18px; color: var(--ink); }
.prose section { margin-top: 44px; }
.prose h2 { font-size: clamp(24px, 2.8vw, 30px); margin-bottom: 14px; }
.prose ul { padding-left: 1.2em; margin: 0 0 18px; }
.prose li { font-size: 18px; line-height: 1.55; margin-bottom: 8px; }
.prose li::marker { color: var(--tertiary); }

/* ---------- Grouped lists ---------- */
.list { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.list > * + * { border-top: .5px solid var(--line); }
.list.links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; color: var(--tertiary); }
.list.links a:hover { text-decoration: none; background: var(--fill); }
.list.links span { display: grid; gap: 2px; color: var(--soft); font-size: 14px; }
.list.links b { color: var(--ink); font-size: 17px; font-weight: 600; }
.faq .list, .faq h2 { max-width: 760px; }
.list.sales > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.list.sales span { display: grid; gap: 2px; color: var(--soft); font-size: 14px; line-height: 1.4; min-width: 0; }
.list.sales b { color: var(--ink); font-size: 16px; font-weight: 600; }
.list.sales em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; white-space: nowrap; line-height: 1.4; }
.list.sales em small { font-size: 12px; font-weight: 400; color: var(--soft); white-space: normal; }
.faq h2 { margin-bottom: 16px; }
.faq details { padding: 16px 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; border-right: 2px solid var(--tertiary); border-bottom: 2px solid var(--tertiary); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin-top: 10px; color: var(--soft); line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 9px 16px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500; box-shadow: var(--shadow); }
.chips a:hover { text-decoration: none; color: var(--accent); }
.sources { margin-top: 32px; }
.sources summary { cursor: pointer; font-size: 13px; color: var(--soft); }
.sources ul { padding-left: 1.1em; font-size: 13px; }
.sources a { color: var(--tertiary); word-break: break-all; }

/* ---------- Contact: the main door ---------- */
.contact-sec { margin-top: clamp(56px, 9vw, 112px); padding: clamp(48px, 7vw, 88px) 0; background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.agent img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 18px; }
.agent h2 { font-size: clamp(28px, 3.6vw, 40px); }
.agent > p { margin-top: 12px; color: var(--soft); font-size: 17px; line-height: 1.5; max-width: 28em; }
.direct { list-style: none; padding: 0; margin: 22px 0 14px; display: grid; gap: 8px; max-width: 340px; }
.direct a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r-md); background: var(--bg); color: var(--accent); }
.direct a:hover { text-decoration: none; background: var(--fill); }
.direct span { display: grid; color: var(--ink); font-size: 15px; }
.direct b { font-size: 12px; font-weight: 500; color: var(--soft); }

.lead { display: grid; gap: 14px; }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { font-size: 13px; color: var(--soft); padding: 0 4px 8px; }
.seg .opts, .seg { --pad: 3px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--fill); border-radius: 12px; padding: 3px; }
.seg legend { grid-column: 1 / -1; float: left; width: 100%; margin: -3px 0 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 9px 4px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink); transition: background .2s, box-shadow .2s; }
.seg input:checked + span { background: var(--surface); box-shadow: 0 2px 8px rgb(0 0 0 / .12), 0 0 0 .5px rgb(0 0 0 / .04); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); }
@media (prefers-color-scheme: dark) { .seg input:checked + span { background: #636366; } }
.group { background: var(--bg); border-radius: var(--r-md); overflow: hidden; }
.group label { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 10px; padding: 0 16px; min-height: 50px; }
.group label + label { border-top: .5px solid var(--line); }
.group label > span { font-size: 15px; color: var(--ink); }
.group input, .group select, .group textarea { width: 100%; min-width: 0; border: 0; background: transparent; font: 400 17px/1.3 var(--text); color: var(--ink); padding: 14px 0; outline: none; -webkit-appearance: none; appearance: none; resize: none; }
.group select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238e8e93' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right center; padding-right: 18px; }
.group ::placeholder { color: var(--tertiary); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--soft); }
.consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }

/* ---------- Footer ---------- */
.foot { padding: 32px 0 48px; font-size: 12px; line-height: 1.6; color: var(--soft); border-top: .5px solid var(--line); }
.foot .wrap { display: grid; gap: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.foot-links a { color: var(--ink); }
.foot p a, .foot .small a { color: var(--soft); text-decoration: underline; text-underline-offset: 2px; }
.foot strong { color: var(--ink); font-weight: 600; }

/* ---------- Phone ---------- */
.dock { display: none; }
@media (max-width: 860px) {
  .top nav, .top .btn.sm { display: none; }
  .explore { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .agent { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; }
  .agent img { width: 56px; height: 56px; margin: 0; }
  .agent h2 { font-size: 26px; }
  .agent > p, .agent .direct, .agent .small { grid-column: 1 / -1; }
  .direct { max-width: none; grid-template-columns: 1fr 1fr; }
  .direct a { padding: 10px 12px; }
  .row .btn { flex: 1 1 100%; }
  .row .link { margin: 0 auto; }
  .lg-card .price { font-size: 22px; }
  .dock {
    position: fixed; left: 14px; right: 14px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
    display: flex; gap: 8px; padding: 6px; border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    -webkit-backdrop-filter: blur(24px) saturate(190%); backdrop-filter: blur(24px) saturate(190%);
    box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 .5px var(--line), 0 12px 32px -12px rgb(0 0 0 / .35);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s;
  }
  .dock-main { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 17px; }
  .dock-call { width: 48px; min-height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--fill); color: var(--accent); }
  .dock-wa { width: 48px; min-height: 48px; display: grid; place-items: center; border-radius: 50%; background: #1f9e4f; color: #fff; }
  .dock a:hover { text-decoration: none; }
  .dock-main:hover { color: #fff; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body:has(.lead :focus) .dock { transform: translateY(140%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .lg-glass, .lg-chip { background: rgb(0 0 0 / .5); } }
@media (max-width: 860px) {
  .ex { aspect-ratio: 1 / .92; border-radius: 24px; }
  .ex .lg-glass { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px 11px; border-radius: 16px; }
  .ex .lg-glass strong { font-size: 16px; }
  .ex .lg-glass span { font-size: 12px; }
  .dock { transform: translateY(140%); opacity: 0; }
  body.show-dock .dock { transform: none; opacity: 1; }
}
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seg-label { font-size: 13px; color: var(--soft); margin: 0 4px -6px; }
.direct span { white-space: nowrap; }
@media (max-width: 400px) { .direct span { font-size: 14px; } .direct a { gap: 10px; padding: 10px; } }
.seg legend.sr { width: 1px; height: 1px; float: none; padding: 0; margin: 0; }

/* ===================== 2027 polish ===================== */

/* Vignette: every property photo gets the same cinematic frame.
   Light grade on the photo, then two layers: an elliptical edge falloff and a soft floor for the glass label. */
.vig { position: absolute; inset: 0; display: block; overflow: hidden; z-index: -1; background: #111; }
.vig img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.06) brightness(.97); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.vig::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 42%, transparent 48%, rgb(0 0 0 / .22) 74%, rgb(0 0 0 / .55) 100%),
    linear-gradient(to bottom, rgb(0 0 0 / .18), transparent 22%, transparent 58%, rgb(0 0 0 / .42));
}
.lg-card > img { display: none; }
.lg-card::after { display: none; }
.lg-card:hover .vig img, .showcase:hover .vig img { transform: scale(1.045); }
.lg-card .lg-glass { padding: 12px 14px 13px; gap: 0; }
.lg-card .addr { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-card .facts { font-size: 12.5px; opacity: .88; }
.hero-img { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; }

/* Featured property: the home page opens on a home, not a paragraph */
.showcase-wrap { margin-top: clamp(32px, 5vw, 56px); }
.showcase { position: relative; display: block; aspect-ratio: 16 / 8; border-radius: 34px; overflow: hidden; isolation: isolate; color: #fff; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45); }
.showcase:hover { text-decoration: none; color: #fff; }
.showcase .vig::after { background: radial-gradient(110% 100% at 50% 38%, transparent 42%, rgb(0 0 0 / .28) 72%, rgb(0 0 0 / .62) 100%), linear-gradient(to bottom, transparent 55%, rgb(0 0 0 / .45)); }
.showcase .lg-glass { left: 20px; right: auto; bottom: 20px; min-width: min(360px, calc(100% - 40px)); padding: 18px 22px 20px; border-radius: 24px; gap: 2px; }
.showcase .kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.showcase .price { font-family: var(--rounded); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.showcase .addr { font-size: 16px; font-weight: 600; }
.showcase .facts { font-size: 14px; opacity: .9; }

/* Trust row: three quiet facts */
.trust { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
.trust li { background: var(--surface); padding: 14px 18px; display: grid; gap: 1px; }
.trust b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.trust span { font-size: 12px; color: var(--soft); }

/* On this page */
.toc { display: flex; gap: 8px; margin-top: 28px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: 13px; font-weight: 500; }
.toc a:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 14%, var(--fill)); }
.prose section { scroll-margin-top: 80px; }

/* Calm reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .showcase { aspect-ratio: 4 / 5; border-radius: 28px; }
  .showcase .lg-glass { left: 12px; right: 12px; bottom: 12px; min-width: 0; padding: 14px 16px 16px; }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .trust li { padding: 12px 10px; text-align: center; }
  .trust b { font-size: 13px; }
  .trust span { font-size: 11px; }
}
@media (prefers-color-scheme: dark) { .showcase { box-shadow: none; } }
/* Loading state: soft neutral frame, photo fades in when ready */
.vig { background: linear-gradient(160deg, #d9d9de, #b9b9c0); }
@media (prefers-color-scheme: dark) { .vig { background: linear-gradient(160deg, #2c2c2e, #1c1c1e); } }
.vig img { opacity: 0; transition: opacity .5s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.vig img.ok { opacity: 1; }
.no-js .vig img, noscript ~ .vig img { opacity: 1; }
/* Market today */
.market .stats div { gap: 3px; }
.market .stats em { font-style: normal; font-size: 12px; font-weight: 600; }
.market .stats em.up { color: var(--green); }
.market .stats em.down { color: #ff3b30; }
.market .trend { margin: 4px 0 8px; font-size: 17px; color: var(--ink); max-width: 44em; }
/* Home value page */
.steps { list-style: none; padding: 0; margin: 20px 0 16px; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 16px; }
.steps b { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 14px; }
.value .seg-label { margin: 6px 4px -6px; }
.disclaimer p { max-width: 760px; line-height: 1.55; }
@media (max-width: 860px) { .agent .steps { grid-column: 1 / -1; } }

/* ===================== Featured carousel ===================== */
.feature { position: relative; }
.feature-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 34px; outline: none; }
.feature-track::-webkit-scrollbar { display: none; }
.feature-track > .showcase { scroll-snap-align: center; scroll-snap-stop: always; }
.feature-ui { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.dots { display: flex; gap: 7px; padding: 7px 10px; border-radius: 999px; background: var(--fill); }
.dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: var(--tertiary); opacity: .45; cursor: pointer; transition: width .3s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.dot.on { width: 20px; opacity: 1; background: var(--ink); }
.fbtn { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--fill); color: var(--ink); cursor: pointer; transition: background .2s, transform .1s; }
.fbtn:hover { background: color-mix(in srgb, var(--accent) 16%, var(--fill)); }
.fbtn:active { transform: scale(.94); }
@media (max-width: 860px) { .feature-track { border-radius: 28px; } .fbtn { display: none; } }

/* Language switch */
.lang { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: 13px; font-weight: 600; }
.lang:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 14%, var(--fill)); }
@media (max-width: 860px) { .top .lang { margin-left: auto; } }

/* Market report signup */
.report { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 60%); box-shadow: var(--shadow); }
.report h2 { font-size: clamp(22px, 2.8vw, 30px); }
.report p { margin-top: 8px; color: var(--soft); }
.report-form { display: grid; gap: 10px; }
.report-form .group { background: var(--bg); }
.group.inline label { grid-template-columns: 1fr; padding: 0 16px; }
@media (max-width: 860px) { .report { grid-template-columns: 1fr; gap: 18px; } .report-form .btn { width: 100%; } }
/* City picker chips (custom search) */
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.picks label { position: relative; }
.picks input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.picks span { display: block; padding: 8px 14px; border-radius: 999px; background: var(--bg); font-size: 15px; font-weight: 500; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, color .15s, box-shadow .15s; }
.picks input:checked + span { background: var(--accent); color: #fff; box-shadow: none; }
.picks input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.chips a.chip-accent { background: var(--accent); color: #fff; }
.chips a.chip-accent:hover { color: #fff; filter: brightness(1.08); }
/* Form first, phone second */
.form-col { display: grid; gap: 18px; }
.after-form { display: grid; gap: 8px; }
.after-form .direct { margin: 0; max-width: none; grid-template-columns: 1fr 1fr; }
.after-form .small { margin: 0 4px; }
/* Recent sales / market analysis prompt */
.analysis { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(22px, 4vw, 36px); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }
.analysis h2 { font-size: clamp(22px, 2.8vw, 30px); }
.analysis p { margin-top: 8px; color: var(--soft); max-width: 40em; }
.analysis .btn { flex: none; }
@media (max-width: 860px) { .analysis { flex-direction: column; align-items: stretch; } }

/* Rentals page: homes first, then a short form */
.rent-hero { padding-bottom: 8px; }
.rent-homes { margin-top: 8px; }
.rent-all { aspect-ratio: 4 / 5; height: 100%; }
.rent-form { max-width: 560px; display: grid; gap: 16px; }
.rent-form h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; }
.rent-form .lead { display: grid; gap: 14px; }
.rent-homes + .contact-sec { margin-top: 16px; }
.sub-card { display: grid; gap: 10px; align-content: start; }


/* ===================== Featured rotation + listing detail pages ===================== */
.feature-track > [hidden], .rail > [hidden] { display: none; }
.lp-hero .eyebrow { margin-bottom: 6px; }
.lp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 14px 0 22px; font-family: var(--rounded); font-size: clamp(30px, 4.4vw, 44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.lp-price span { font-family: var(--text); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--soft); }
.gallery-wrap { margin-top: clamp(8px, 2vw, 20px); }
.gallery { position: relative; }
.g-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-xl); outline: none; overscroll-behavior-x: contain; }
.g-track::-webkit-scrollbar { display: none; }
.g-track:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; }
.g-slide { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; isolation: isolate; scroll-snap-align: center; scroll-snap-stop: always; }
.g-count { position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; font: 600 13px/1 var(--text); color: #fff; background: rgb(0 0 0 / .28); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35); font-variant-numeric: tabular-nums; pointer-events: none; }
.g-btn { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgb(255 255 255 / .2); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 6px 18px -8px rgb(0 0 0 / .5); cursor: pointer; transition: background .2s, transform .1s; }
.g-btn:hover { background: rgb(255 255 255 / .32); }
.g-btn:active { transform: scale(.94); }
.g-btn.prev { left: 14px; } .g-btn.next { right: 14px; }
.lp-facts .stats { margin-bottom: 0; }
.lp-facts .stats strong { font-size: clamp(20px, 2.4vw, 26px); }
.lp-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.lp-main .prose h2 { margin-bottom: 14px; }
.feat-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; background: var(--surface); font-size: 15px; line-height: 1.4; }
.feat-list svg { flex: none; color: var(--green); margin-top: 1px; }
@media (max-width: 860px) {
  .gallery-wrap { padding: 0; }
  .g-track { border-radius: 0; }
  .g-slide { aspect-ratio: 4 / 3; }
  .g-btn { display: none; }
  .lp-main { grid-template-columns: 1fr; }
  .lp-price { margin-bottom: 18px; }
}
.lp-facts .stats { grid-template-columns: repeat(var(--cols, 4), 1fr); }
@media (max-width: 860px) { .lp-facts .stats { grid-template-columns: repeat(2, 1fr); } }
/* Lots in the same subdivision, listed on each lot page */
.list.links.lots em { margin-left: auto; font-style: normal; font-weight: 600; font-size: 16px; color: var(--ink); white-space: nowrap; }
.list.links.lots .here { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--fill); }
.list.links.lots .here > span { display: grid; gap: 2px; color: var(--soft); font-size: 14px; }
.list.links.lots .here b { color: var(--ink); font-size: 17px; font-weight: 600; }
/* All listings: grid on desktop, swipeable row per section on phones */
@media (max-width: 860px) {
  .lp-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; scroll-padding: 0 var(--gutter); }
  .lp-grid::-webkit-scrollbar { display: none; }
  .lp-grid > * { scroll-snap-align: start; }
}
/* ---------- New construction hub + Starbase guide ---------- */
.nc-lede { margin: -8px 0 14px; max-width: 760px; }
#communities .chips { margin-bottom: 26px; }
.chips a .muted { margin-left: 4px; font-weight: 400; }
.nc-area { margin-top: 30px; scroll-margin-top: 80px; }
.nc-area-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; }
.nc-area-h h3 { font-size: 22px; margin: 0; }
.nc-area-h span { color: var(--soft); font-size: 15px; }
.nc-area-h a { font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }
.nc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.nc-card { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 80px; }
.nc-card:target { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.nc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nc-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--fill); color: var(--ink); }
.nc-pill.st-selling { background: color-mix(in srgb, var(--green) 18%, transparent); color: color-mix(in srgb, var(--green) 70%, var(--ink)); }
.nc-pill.st-building, .nc-pill.st-lots { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.nc-city { color: var(--soft); font-size: 14px; }
.nc-card h3 { font-size: 21px; line-height: 1.2; margin: 0; }
.nc-by { margin: 0; font-size: 15px; color: var(--soft); }
.nc-sum { margin: 0; font-size: 15.5px; line-height: 1.5; }
.nc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 2px 0 0; background: var(--line); border-radius: var(--r-md); overflow: hidden; }
.nc-facts div { background: var(--surface); padding: 9px 12px; }
.nc-facts dt { font-size: 12.5px; color: var(--soft); }
.nc-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.nc-facts dd small { display: block; font-weight: 400; font-size: 12px; color: var(--tertiary); }
.nc-am { margin: 0; font-size: 14px; color: var(--soft); line-height: 1.45; }
.nc-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 500; }
.btn.small { padding: 9px 16px; font-size: 15px; min-height: 0; }
.tbl-wrap { overflow-x: auto; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.nc-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
.nc-table.drives { min-width: 560px; }
.nc-table th, .nc-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.nc-table thead th { font-size: 13px; font-weight: 600; color: var(--soft); background: var(--fill); white-space: nowrap; }
.nc-table tbody th { font-weight: 600; position: sticky; left: 0; background: var(--surface); }
.nc-table tbody tr:last-child > * { border-bottom: 0; }
.nc-table td { font-variant-numeric: tabular-nums; }
#compare .small, #drives .small { margin-top: 12px; max-width: 760px; }
.guide-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-tile { display: grid; gap: 4px; padding: 24px 24px 22px; border-radius: var(--r-xl); color: #fff; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.guide-tile:hover { text-decoration: none; color: #fff; transform: translateY(-2px); }
.guide-tile strong { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; }
.guide-tile span { font-size: 15px; opacity: .9; }
.guide-tile .gt-k { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.gt-new { background: linear-gradient(140deg, #0a84ff, #0058c4); }
.gt-sb { background: linear-gradient(140deg, #1c1c1e, #3a3a3c); }
@media (max-width: 860px) {
  .guide-tiles { grid-template-columns: 1fr; }
  .nc-grid { grid-template-columns: 1fr; }
  .nc-table { font-size: 14px; }
}
.nc-facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* ---------- Category pages: Hector's listings + see-all / custom search actions ---------- */
.cat-sub { margin: 22px 0 12px; }
.cat-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 22px; }
.cat-act { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.cat-act:hover { text-decoration: none; color: var(--accent); }
.cat-act span { display: grid; gap: 2px; flex: 1; font-size: 14px; color: var(--soft); }
.cat-act b { font-size: 16px; color: var(--ink); font-weight: 600; }
.cat-act:hover b { color: var(--accent); }
.home-jl { margin-top: 2px; }
/* Live MLS frame (btxrealestate.com) on the Just listed page */
.mls-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; margin: 14px 0 12px; }
.mls-frame iframe { display: block; width: 100%; height: min(1600px, 180vh); border: 0; }
@media (max-width: 860px) { .mls-frame { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-radius: 0; } }
.mls-frame.home iframe { height: min(1100px, 140vh); }
/* ---------- Live MLS: compact card + full-screen sheet ---------- */
.mls-card { display: flex; align-items: center; justify-content: space-between; gap: 22px 32px; flex-wrap: wrap; padding: clamp(22px, 4vw, 32px); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }
.mls-card-text { flex: 1 1 340px; }
.mls-card h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 6px 0 8px; }
.mls-card p { margin: 0; color: var(--soft); font-size: 16px; line-height: 1.5; max-width: 560px; }
.mls-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.mls-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 22%, transparent); }
.mls-card-actions { display: grid; gap: 12px; justify-items: start; flex: 0 1 auto; }
.mls-card-actions .chips a { font-size: 14px; padding: 8px 14px; }
.mls-sheet { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); display: none; flex-direction: column; }
.mls-sheet[open] { display: flex; animation: sheet-up .32s cubic-bezier(.2,.8,.2,1); }
.mls-sheet::backdrop { background: rgb(0 0 0 / .5); }
@keyframes sheet-up { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.mls-sheet-bar { display: flex; align-items: center; gap: 12px; padding: 10px max(var(--gutter), env(safe-area-inset-left)); padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--surface); }
.mls-sheet-bar strong { flex: 1; font-size: 16px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mls-x { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--accent); font: 500 16px/1 var(--text); cursor: pointer; padding: 8px 4px; }
.mls-sheet iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.mls-sheet-note { margin: 0; padding: 6px var(--gutter) max(6px, env(safe-area-inset-bottom)); font-size: 11.5px; color: var(--tertiary); background: var(--surface); }
html.sheet-open { overflow: hidden; }
.mls-card .chips a { background: var(--fill); box-shadow: none; }
/* Live preview window: one row of btxrealestate.com's own listing cards (its header and filters sit above the window).
   Offsets measured 2026-11-27 on the grid view: first card top ~400px at phone width, ~352px at 700px, ~385px at 1050px. */
.mls-peek { flex: 1 1 100%; display: grid; gap: 10px; color: var(--ink); }
.mls-peek:hover { text-decoration: none; }
.mls-peek-win { position: relative; display: block; height: 372px; overflow: hidden; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mls-peek-win iframe { position: absolute; left: 0; top: 0; width: 360px; height: 2600px; border: 0; pointer-events: none; transform-origin: 0 0; transform: translate(-15px, -393px); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.mls-peek-win::after { content: ""; position: absolute; inset: auto 0 0; height: 56px; background: linear-gradient(to bottom, transparent, rgb(255 255 255 / .95)); pointer-events: none; }
.mls-peek-cta { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: var(--accent); }
@media (min-width: 600px) {
  .mls-peek-win { height: 410px; }
  .mls-peek-win iframe { width: 700px; left: 50%; margin-left: -350px; top: -344px; transform: none; }
}
@media (min-width: 1100px) {
  .mls-peek-win { height: 395px; }
  .mls-peek-win iframe { width: 1050px; margin-left: -525px; top: -377px; }
}
@media (min-width: 600px) { .mls-peek { justify-items: center; } .mls-peek-win { width: 596px; max-width: 100%; } .mls-peek-cta { justify-self: center; } }
/* ---------- 2026-11-27 site audit ---------- */
/* Phone menu: swipeable pill row under the header (the desktop nav is hidden under 860px) */
.top .mnav { display: none; }
@media (max-width: 860px) {
  .top .mnav { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter) 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .mnav::-webkit-scrollbar { display: none; }
  .mnav a { flex: none; padding: 8px 14px; min-height: 36px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: 14px; font-weight: 500; }
  .mnav a:hover { text-decoration: none; }
}
@media (min-width: 861px) { .top nav { gap: 18px; } }
/* Home hero: who Hector is + intent buttons */
.hero-intro { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; max-width: 620px; font-size: 16px; line-height: 1.45; color: var(--soft); }
.hero-intro img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.hero-intro b { color: var(--ink); font-weight: 600; }
.intents { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 22px; max-width: 900px; }
.intents a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 54px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.2; }
.intents a:first-child { background: var(--accent); color: #fff; }
.intents a:hover { text-decoration: none; transform: translateY(-1px); }
.intents svg { flex: none; opacity: .7; }
@media (max-width: 860px) {
  .hero.home h1 { font-size: clamp(34px, 9vw, 44px); }
  .intents { grid-template-columns: 1fr 1fr; }
  .intents a { font-size: 15px; min-height: 52px; }
  .trust span { font-size: 12px; }
  .trust b { font-size: 13.5px; }
}
.reassure { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--soft); }

/* Carousel dots: bigger tap area, same look */
.dots { gap: 2px; padding: 0 4px; }
.dot { position: relative; width: 22px; height: 32px; background: none; opacity: 1; }
.dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; translate: -50% -50%; border-radius: 999px; background: var(--tertiary); opacity: .45; transition: width .3s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.dot.on { width: 30px; background: none; }
.dot.on::before { width: 20px; opacity: 1; background: var(--ink); }
/* Form focus is visible (inputs have no outline of their own) */
.group label:focus-within { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 10px; }
/* Dark mode: the live MLS preview sits on the card colour, not a white slab */
.mls-peek-win { background: var(--surface); }
.mls-peek-win::after { background: linear-gradient(to bottom, transparent, var(--surface)); opacity: .9; }
.mls-sheet-note { font-size: 12px; color: var(--soft); }
.toc a, .top .lang { min-height: 36px; display: inline-flex; align-items: center; }

/* WhatsApp sits under Call / Text, full width so the two-column grid stays even. */
.direct li.wa { grid-column: 1 / -1; }
.direct li.wa a { color: #1f9e4f; }
/* ---------- Subdivision lot map and price list (Cardinal Estates) ---------- */
.plat-box { position: relative; }
.plat-wrap { overflow-x: auto; margin: 6px 0 10px; border-radius: 18px; background: var(--fill); scrollbar-width: thin; }
.plat { display: block; width: 100%; min-width: 720px; height: auto; }
.plat .lot polygon { stroke: var(--bg); stroke-width: 4; stroke-linejoin: round; }
.plat .lot.on { cursor: pointer; }
.plat .lot.on polygon { fill: #34c759; fill-opacity: .5; transition: fill-opacity .15s; }
.plat .lot.on:hover polygon, .plat .lot.on:focus-visible polygon, .plat .lot.on.sel polygon { fill-opacity: .9; }
.plat .lot.on:focus-visible { outline: none; }
.plat .lot.off polygon { fill: var(--soft); fill-opacity: .22; }
.plat text { font-family: var(--text); text-anchor: middle; dominant-baseline: middle; fill: var(--ink); pointer-events: none; }
.plat .n { font-size: 30px; font-weight: 600; }
.plat .off .n { fill: var(--soft); font-weight: 500; }
.plat .p { font-size: 21px; font-weight: 600; }
.plat .road { fill: #48484a; }
.plat .road-t { fill: #fff; font-size: 24px; font-weight: 600; letter-spacing: .06em; }
.plat .hwy { fill: #636366; }
.plat .hwy-t { fill: #fff; font-size: 26px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.plat .north path { fill: var(--ink); }
.plat .north text { font-size: 24px; font-weight: 700; }
.lot-pop { position: absolute; z-index: 5; display: grid; gap: 4px; min-width: 220px; max-width: 280px; padding: 14px 16px 12px; border-radius: 16px; background: var(--bg); color: var(--ink); box-shadow: 0 10px 30px rgb(0 0 0 / .18), 0 0 0 1px var(--line); }
.lot-pop[hidden] { display: none; }
.lot-pop strong { font-size: 17px; padding-right: 22px; }
.lot-pop span { color: var(--soft); font-size: 15px; }
.lot-pop .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; }
.lot-pop .link { font-size: 15px; }
.lot-pop-x { position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--fill); color: var(--soft); font-size: 20px; line-height: 1; cursor: pointer; }
.plat-key { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--soft); }
.plat-key li { display: flex; align-items: center; gap: 8px; }
.plat-key i { width: 14px; height: 14px; border-radius: 4px; }
.plat-key i.on { background: #34c759; opacity: .7; }
.plat-key i.off { background: var(--soft); opacity: .3; }
.lot-table-wrap { overflow-x: auto; }
.lot-table { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.lot-table th, .lot-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.lot-table thead th { font-size: 13px; font-weight: 600; color: var(--soft); }
.lot-table tbody th { font-weight: 600; }
.lot-table tbody th a { color: inherit; }
.lot-table .num { text-align: right; }
.lot-table td:last-child { text-align: right; }
.lot-ask { font-weight: 600; }
.plat-sec .small { max-width: 760px; margin-top: 14px; }
@media (max-width: 560px) { .lot-table { font-size: 15px; } .lot-table th, .lot-table td { padding: 10px 6px; } }
.plat a, .plat a:hover { text-decoration: none; }
/* Live subdivision map (MapLibre) */
.plat-tabs { display: inline-flex; gap: 2px; padding: 3px; margin: 4px 0 10px; border-radius: 12px; background: var(--fill); }
.plat-tabs button { border: 0; background: none; color: var(--ink); font: 600 15px/1 var(--text); padding: 9px 16px; border-radius: 9px; cursor: pointer; }
.plat-tabs button[aria-selected="true"] { background: var(--bg); box-shadow: 0 1px 3px rgb(0 0 0 / .14); }
.live-map { position: relative; height: 480px; margin: 6px 0 10px; border-radius: 18px; overflow: hidden; background: var(--fill); }
.live-map[hidden], .plat-wrap[hidden] { display: none; }
.live-map-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--soft); font-size: 15px; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 14px; }
.map-links .btn { display: inline-flex; align-items: center; gap: 6px; }
.btn.ghost { background: var(--fill); color: var(--accent); }
.map-card { display: grid; gap: 4px; font-family: var(--text); color: #1d1d1f; }
.map-card strong { font-size: 16px; padding-right: 18px; }
.map-card span { color: #6e6e73; font-size: 14px; }
.map-card .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.map-card .link { font-size: 14px; }
.maplibregl-popup-content { border-radius: 14px !important; padding: 14px 16px 12px !important; box-shadow: 0 10px 30px rgb(0 0 0 / .2) !important; }
.maplibregl-popup-close-button { font-size: 20px; width: 28px; height: 28px; right: 4px !important; top: 4px !important; }
@media (max-width: 560px) { .live-map { height: 400px; } }
.drive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 32px; max-width: 900px; }
.drive-table { margin-bottom: 8px; }
.drive-table tbody th { font-weight: 500; }
/* ---------- Charming Brownsville (historic page) ---------- */
.hist-grid { display: grid; gap: 20px; }
.hist-map { position: relative; height: 420px; border-radius: 18px; overflow: hidden; background: var(--fill); }
.hist-stick .map-links { margin-top: 10px; }
.hist-cards { display: grid; gap: 18px; }
.hist-card { display: grid; grid-template-columns: 1fr; border-radius: 18px; overflow: hidden; background: var(--fill); scroll-margin-top: 90px; }
.hist-media { position: relative; aspect-ratio: 4 / 3; background: #222; }
.hist-pic { margin: 0; position: absolute; inset: 0; transition: opacity .25s; }
.hist-pic.off { opacity: 0; pointer-events: none; }
.hist-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hist-pic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 6px; font-size: 11px; line-height: 1.3; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / .65)); }
.hist-pic figcaption a { color: #fff; }
.hist-toggle { position: absolute; top: 10px; left: 10px; display: flex; padding: 3px; border-radius: 10px; background: rgb(0 0 0 / .55); }
.hist-toggle button { border: 0; background: none; color: #fff; font: 600 13px/1 var(--text); padding: 7px 11px; border-radius: 8px; cursor: pointer; }
.hist-toggle button[aria-pressed="true"] { background: #fff; color: #1d1d1f; }
.hist-num { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #0071e3; color: #fff; font-weight: 700; font-size: 15px; }
.hist-body { padding: 16px 18px 18px; }
.hist-body h3 { margin: 2px 0 8px; font-size: 21px; }
.hist-body p { margin: 0 0 10px; }
.hist-meta { color: var(--soft); font-size: 14px; font-weight: 600; }
.hist-status { color: var(--soft); font-size: 14px; }
.hist-actions { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 12px; font-size: 15px; }
.hist-actions button { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.hist-pin { position: relative; width: 46px; height: 46px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: #ddd; box-shadow: 0 4px 12px rgb(0 0 0 / .35); cursor: pointer; transition: transform .15s; }
.hist-pin .ph { position: absolute; inset: 0; border-radius: 50%; background-size: cover; background-position: center; }
.hist-pin .nb { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; background: #0071e3; color: #fff; font: 700 11px/1 var(--text); }
.hist-pin.on, .hist-pin:hover { transform: scale(1.25); z-index: 3; border-color: #0071e3; }
.hist-bridge { padding: 4px 8px; border-radius: 8px; background: rgb(29 29 31 / .85); color: #fff; font: 600 11px/1.2 var(--text); white-space: nowrap; }
.hist-tl { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.hist-tl li { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.hist-year { font-weight: 700; font-size: 20px; color: var(--accent); }
.hist-tl p { margin: 0 0 8px; }
.hist-tl figure { margin: 6px 0 8px; max-width: 420px; }
.hist-tl img { width: 100%; border-radius: 12px; display: block; }
.hist-tl figcaption, .hist-gal span { display: block; margin-top: 4px; font-size: 11px; color: var(--soft); }
.hist-gal { margin: 0; }
.hist-gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; }
.hist-gal b { display: block; margin-top: 8px; font-size: 15px; }
.prose-sec { max-width: 820px; }
.hist-stops { padding-left: 22px; }
.hist-stops li { margin: 6px 0; }
.hist-stops span { color: var(--soft); font-size: 14px; }
.hist-text { max-width: 560px; margin-top: 24px; padding: 18px; border-radius: 18px; background: var(--fill); }
.hist-text h3 { margin: 0 0 4px; }
.hist-sources ol { padding-left: 22px; font-size: 14px; }
@media (min-width: 1000px) {
  .hist-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .hist-stick { position: sticky; top: 84px; }
  .hist-map { height: calc(100vh - 190px); min-height: 460px; }
}
@media (max-width: 560px) { .hist-map { height: 360px; } .hist-tl li { grid-template-columns: 1fr; gap: 4px; } }
.hist-card { transition: box-shadow .3s, transform .3s; }
.hist-card.lit { box-shadow: 0 0 0 3px #0071e3, 0 12px 30px rgb(0 113 227 / .25); transform: translateY(-2px); }
.hist-pin:focus-visible { outline: 3px solid #0071e3; outline-offset: 2px; }
@media (max-width: 999px) { .hist-card { scroll-margin-top: 150px; } }
.hist-west { margin: 14px 0 -4px; }
.hist-form .group label { grid-template-columns: 96px 1fr; }
.hist-form .group + .group, .hist-form .seg + .group, .hist-form .group + .seg { margin-top: 12px; }
