/*
Theme Name: AZ Real Estate Search
Theme URI: https://azrealestatesearch.com
Author: Jared Shahon
Description: Search-first Arizona home search theme. Same design language as jaredshahon.com (white / ink / Compass red, Playfair Display + Inter).
Version: 1.0.1
*/

:root {
    --ink: #111111;
    --bg: #f8f7f4;
    --card: #ffffff;
    --line: #e8e6e1;
    --muted: #7a7a7a;
    --body: #555555;
    --red: #c41230;
    --red-hover: #a80f28;
    --red-soft: rgba(196, 18, 48, 0.08);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1240px;
    --nav-h: 76px;
    --t: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); line-height: 1.6; overflow-x: hidden; padding-top: var(--nav-h); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* =============================================
   NAVIGATION — mega menu
   ============================================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h); background: #fff; border-bottom: 1px solid rgba(0,0,0,0.08); transition: var(--t); }
.nav.scrolled { background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); box-shadow: 0 6px 24px rgba(0,0,0,0.05); }
.nav-container { max-width: var(--container); height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { font-family: var(--font-heading); font-size: 1.2rem; letter-spacing: 3px; line-height: 1; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.nav-logo .mark { width: 34px; height: 34px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 0.8rem; letter-spacing: 1px; font-family: var(--font-body); font-weight: 600; }
.nav-logo .accent { color: var(--red); }
.nav-menu { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-item > a { font-size: 0.8rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--body); padding: 10px 14px; border-radius: 2px; display: flex; align-items: center; gap: 6px; transition: var(--t); }
.nav-item > a:hover, .nav-item.open > a { color: var(--ink); }
.nav-item.has-drop > a::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.6; }
.nav-item > a.active { color: var(--red); }
.dropdown { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); min-width: 260px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,0.08); padding: 18px; opacity: 0; visibility: hidden; transition: var(--t); }
.dropdown.wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.nav-item:hover .dropdown, .nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown h6 { grid-column: 1 / -1; font-size: 0.68rem; letter-spacing: 3px; color: var(--red); text-transform: uppercase; font-weight: 600; margin: 2px 0 8px; }
.dropdown a { display: block; padding: 9px 10px; font-size: 0.9rem; color: var(--ink); border-radius: 2px; transition: var(--t); }
.dropdown a small { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.dropdown a:hover { background: var(--bg); color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-account { font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--body); padding: 10px 12px; display: flex; align-items: center; gap: 8px; }
.nav-account svg { width: 16px; height: 16px; }
.nav-account:hover { color: var(--red); }
.nav-cta { background: var(--red); color: #fff; padding: 11px 20px; font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; border-radius: 2px; transition: var(--t); white-space: nowrap; }
.nav-cta:hover { background: var(--red-hover); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: var(--t); }

/* =============================================
   BUTTONS
   ============================================= */
.btn { display: inline-block; padding: 14px 32px; font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; border-radius: 2px; transition: var(--t); cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* =============================================
   HERO + SEARCH
   ============================================= */
.hero { position: relative; min-height: calc(92vh - var(--nav-h)); display: flex; align-items: center; background: url('assets/img/hero.jpg') center 60%/cover no-repeat; color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 100%); }
.hero-inner { position: relative; width: 100%; max-width: 980px; margin: 0 auto; padding: 60px 24px; text-align: center; }
.eyebrow { font-size: 0.75rem; letter-spacing: 5px; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: 16px; }
.hero .eyebrow { color: #fff; opacity: 0.85; }
.hero h1 { font-family: var(--font-heading); font-weight: 500; font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1.08; margin-bottom: 18px; text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.hero p.lead { font-size: 1.1rem; font-weight: 300; opacity: 0.92; margin-bottom: 36px; }

.search-tabs { display: inline-flex; background: rgba(255,255,255,0.14); backdrop-filter: blur(8px); border-radius: 2px 2px 0 0; }
.search-tabs button { background: none; border: none; color: #fff; padding: 12px 26px; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; font-weight: 600; opacity: 0.8; }
.search-tabs button.active { background: #fff; color: var(--ink); opacity: 1; }
.search-box { background: #fff; padding: 10px; display: grid; grid-template-columns: 2.2fr 1fr 1fr 0.8fr auto; gap: 8px; box-shadow: 0 24px 60px rgba(0,0,0,0.25); text-align: left; }
.search-box .field { display: flex; flex-direction: column; justify-content: center; padding: 6px 14px; border-right: 1px solid var(--line); }
.search-box .field:nth-last-child(2) { border-right: none; }
.search-box label { font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.search-box input, .search-box select { border: none; outline: none; background: transparent; color: var(--ink); font-size: 0.98rem; padding: 4px 0; width: 100%; -webkit-appearance: none; appearance: none; }
.search-box .btn { padding: 0 34px; display: flex; align-items: center; gap: 10px; }
.search-box .btn svg { width: 16px; height: 16px; }
.quick-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.quick-links a { font-size: 0.8rem; padding: 8px 16px; border: 1px solid rgba(255,255,255,0.4); border-radius: 40px; color: #fff; transition: var(--t); backdrop-filter: blur(4px); }
.quick-links a:hover { background: #fff; color: var(--ink); }

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 96px 0; }
.section.white { background: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-title { font-family: var(--font-heading); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.15; }
.section-sub { color: var(--body); font-weight: 300; max-width: 560px; margin-top: 10px; }
.link-arrow { font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--red); padding-bottom: 4px; }
.link-arrow:hover { color: var(--red); }
.divider { width: 60px; height: 2px; background: var(--red); margin: 18px 0 0; }

/* Stats bar */
.stats-bar { background: var(--ink); color: #fff; }
.stats-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,0.08); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 500; }
.stat span { font-size: 0.72rem; letter-spacing: 2.5px; text-transform: uppercase; opacity: 0.65; }

/* Community grid */
.community-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.community-card { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #222; color: #fff; display: flex; align-items: flex-end; }
.community-card.tall { grid-row: span 2; aspect-ratio: auto; }
.community-card .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.8s ease; }
.community-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.75) 100%); }
.community-card:hover .bg { transform: scale(1.06); }
.community-card .info { position: relative; z-index: 1; padding: 24px; width: 100%; }
.community-card h3 { font-family: var(--font-heading); font-weight: 500; font-size: 1.5rem; }
.community-card p { font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.8; margin-top: 4px; }
.community-card .go { position: absolute; right: 24px; bottom: 26px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.6); border-radius: 50%; display: grid; place-items: center; transition: var(--t); }
.community-card:hover .go { background: var(--red); border-color: var(--red); }
.bg-1 { background-image: linear-gradient(135deg, #3a2a20, #a0764f); }
.bg-2 { background-image: linear-gradient(135deg, #1f2a33, #5d7686); }
.bg-3 { background-image: linear-gradient(135deg, #2b1d1d, #8c4a3c); }
.bg-4 { background-image: linear-gradient(135deg, #202820, #6f7d5c); }
.bg-5 { background-image: linear-gradient(135deg, #2a2330, #8a6f88); }
.bg-6 { background-image: linear-gradient(135deg, #2b2620, #b49a6c); }

/* 1-click search tiles */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { background: #fff; padding: 30px 26px; transition: var(--t); display: flex; flex-direction: column; gap: 8px; }
.tile:hover { background: var(--ink); color: #fff; }
.tile:hover .tile-meta { color: rgba(255,255,255,0.6); }
.tile .ico { width: 36px; height: 36px; color: var(--red); }
.tile h4 { font-family: var(--font-heading); font-weight: 500; font-size: 1.2rem; }
.tile-meta { font-size: 0.82rem; color: var(--muted); }

/* Split CTA (buy / sell) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card { background: #fff; border: 1px solid var(--line); padding: 54px 48px; position: relative; overflow: hidden; }
.split-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.split-card.dark .section-sub { color: rgba(255,255,255,0.7); }
.split-card h3 { font-family: var(--font-heading); font-weight: 500; font-size: 2rem; line-height: 1.2; margin-bottom: 12px; }
.split-card .btn { margin-top: 28px; }
.split-card ul { margin-top: 22px; display: grid; gap: 10px; }
.split-card li { font-size: 0.95rem; padding-left: 22px; position: relative; font-weight: 300; }
.split-card li::before { content: ''; position: absolute; left: 0; top: 10px; width: 10px; height: 2px; background: var(--red); }

/* Listing cards (placeholder until IDX feed) */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing-card { background: #fff; border: 1px solid var(--line); transition: var(--t); }
.listing-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.07); transform: translateY(-3px); }
.listing-card .ph { aspect-ratio: 3/2; background-size: cover; background-position: center; position: relative; }
.listing-card .badge { position: absolute; top: 14px; left: 14px; background: var(--red); color: #fff; font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; padding: 6px 10px; font-weight: 600; }
.listing-card .heart { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; background: #fff; border-radius: 50%; display: grid; place-items: center; border: none; cursor: pointer; }
.listing-card .heart svg { width: 16px; height: 16px; }
.listing-card .body { padding: 20px 22px 22px; }
.listing-card .price { font-family: var(--font-heading); font-size: 1.5rem; }
.listing-card .addr { font-size: 0.9rem; color: var(--body); margin: 2px 0 12px; }
.listing-card .specs { display: flex; gap: 18px; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.listing-card .specs b { color: var(--ink); font-weight: 600; }

/* Alerts band */
.alert-band { background: var(--red); color: #fff; }
.alert-band .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.alert-band h3 { font-family: var(--font-heading); font-weight: 500; font-size: 2.1rem; line-height: 1.2; }
.alert-band p { font-weight: 300; opacity: 0.9; margin-top: 10px; }
.inline-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inline-form input, .inline-form select { padding: 14px 16px; border: none; border-radius: 2px; background: #fff; color: var(--ink); width: 100%; }
.inline-form .full { grid-column: 1 / -1; }
.inline-form button { background: var(--ink); color: #fff; border: none; padding: 15px; letter-spacing: 2px; text-transform: uppercase; font-size: 0.78rem; font-weight: 600; cursor: pointer; border-radius: 2px; }
.inline-form button:hover { background: #000; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-family: var(--font-heading); font-size: 1.2rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-body); color: var(--red); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--body); font-weight: 300; margin-top: 12px; }

/* =============================================
   PAGE HEADER + SEARCH PAGE
   ============================================= */
.page-hero { background: var(--ink); color: #fff; padding: 72px 0 56px; }
.page-hero h1 { font-family: var(--font-heading); font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; }
.page-hero p { opacity: 0.75; font-weight: 300; margin-top: 10px; max-width: 640px; }
.crumbs { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; opacity: 0.6; margin-bottom: 16px; }
.crumbs a:hover { color: var(--red); }

.filter-bar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--nav-h); z-index: 50; }
.filter-bar form { display: flex; gap: 10px; padding: 14px 0; flex-wrap: wrap; align-items: center; }
.filter-bar input, .filter-bar select { border: 1px solid var(--line); padding: 11px 14px; border-radius: 2px; background: #fff; color: var(--ink); min-width: 140px; }
.filter-bar input[name="location"] { flex: 1; min-width: 240px; }
.filter-bar .btn { padding: 12px 24px; }
.idx-wrap { padding: 40px 0 96px; min-height: 60vh; }
.idx-pending { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.idx-note { background: #fff; border: 1px solid var(--line); padding: 40px; }
.idx-note h2 { font-family: var(--font-heading); font-weight: 500; font-size: 1.8rem; margin-bottom: 10px; }
.idx-note p { color: var(--body); font-weight: 300; }
.criteria { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.criteria span { background: var(--bg); border: 1px solid var(--line); padding: 6px 12px; font-size: 0.8rem; border-radius: 40px; }
.form-card { background: var(--ink); color: #fff; padding: 36px; }
.form-card h3 { font-family: var(--font-heading); font-weight: 500; font-size: 1.5rem; margin-bottom: 6px; }
.form-card p { font-size: 0.9rem; opacity: 0.7; margin-bottom: 20px; font-weight: 300; }
.stack-form { display: grid; gap: 10px; }
.stack-form input, .stack-form select, .stack-form textarea { padding: 14px 16px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink); width: 100%; }
.stack-form textarea { min-height: 120px; resize: vertical; }
.stack-form button { background: var(--red); color: #fff; border: none; padding: 15px; letter-spacing: 2px; text-transform: uppercase; font-size: 0.78rem; font-weight: 600; cursor: pointer; border-radius: 2px; }
.stack-form button:hover { background: var(--red-hover); }
.form-msg { padding: 14px 16px; margin-bottom: 18px; font-size: 0.9rem; border-left: 3px solid var(--red); background: var(--red-soft); color: var(--ink); }
.form-msg.ok { border-color: #2e7d32; background: rgba(46,125,50,0.08); }

/* Generic content pages */
.content-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.prose h2 { font-family: var(--font-heading); font-weight: 500; font-size: 1.7rem; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--body); font-weight: 300; margin-bottom: 14px; }
.prose ul { padding-left: 0; }
.prose li { padding-left: 22px; position: relative; }
.prose li::before { content: ''; position: absolute; left: 0; top: 11px; width: 10px; height: 2px; background: var(--red); }
.sticky-side { position: sticky; top: calc(var(--nav-h) + 24px); }
.calc { background: #fff; border: 1px solid var(--line); padding: 32px; }
.calc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.calc label { font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; display: block; margin-bottom: 4px; }
.calc input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px; }
.calc-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.calc-result b { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 500; display: block; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: #0c0c0c; color: rgba(255,255,255,0.7); padding: 72px 0 28px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .nav-logo { color: #fff; margin-bottom: 16px; }
.footer .nav-logo .mark { border-color: #fff; }
.footer h4 { color: #fff; font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; padding: 4px 0; transition: var(--t); }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; font-size: 0.78rem; }
.footer-logos { display: flex; gap: 16px; align-items: center; }
.footer-logos img { height: 30px; width: auto; opacity: 0.8; }
.footer-legal { font-size: 0.72rem; opacity: 0.6; margin-top: 18px; line-height: 1.7; }

.page-hero.photo { position: relative; background-size: cover; background-position: center; padding: 120px 0 72px; }
.page-hero.photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.7)); }
.page-hero.photo .container { position: relative; }

/* Logged-in admin bar */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* Sticky mobile search bar */
.mobile-bar { display: none; }

/* Slide-in lead capture */
.slidein { position: fixed; right: 24px; bottom: 24px; width: 340px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,0.18); padding: 26px; z-index: 900; transform: translateY(140%); transition: transform 0.5s ease; }
.slidein.show { transform: translateY(0); }
.slidein h4 { font-family: var(--font-heading); font-weight: 500; font-size: 1.3rem; margin-bottom: 6px; }
.slidein p { font-size: 0.85rem; color: var(--body); margin-bottom: 14px; font-weight: 300; }
.slidein .x { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
    .nav-menu { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch; height: auto; padding: 12px 24px 40px; overflow-y: auto; transform: translateX(100%); transition: var(--t); }
    .nav-menu.open { transform: none; }
    .nav-item { height: auto; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); }
    .nav-item > a { padding: 18px 0; font-size: 0.9rem; justify-content: space-between; }
    .dropdown, .dropdown.wide { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; min-width: 0; padding: 0 0 12px; display: none; }
    .nav-item.open .dropdown { display: block; transform: none; }
    .nav-toggle { display: block; }
    .nav-account span { display: none; }
    .community-grid, .tile-grid { grid-template-columns: repeat(2, 1fr); }
    .community-card.tall { grid-row: auto; aspect-ratio: 4/5; }
}
@media (max-width: 860px) {
    .search-box { grid-template-columns: 1fr 1fr; }
    .search-box .field { border-right: none; border-bottom: 1px solid var(--line); }
    .search-box .field:first-child { grid-column: 1 / -1; }
    .search-box .btn { grid-column: 1 / -1; justify-content: center; padding: 16px; }
    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
    .split, .listing-grid, .alert-band .container, .idx-pending, .content-grid, .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 72px 0; }
    .split-card { padding: 40px 28px; }
    .nav-cta { display: none; }
    .slidein { display: none; }
    .mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 950; background: #fff; border-top: 1px solid var(--line); }
    .mobile-bar a { flex: 1; text-align: center; padding: 14px 0; font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
    .mobile-bar a.primary { background: var(--red); color: #fff; }
    body { padding-bottom: 50px; }
}
@media (max-width: 520px) {
    .community-grid, .tile-grid { grid-template-columns: 1fr; }
    .inline-form { grid-template-columns: 1fr; }
    .nav-logo { font-size: 0.95rem; letter-spacing: 2px; }
}
