/* Florida Homes by Jeffy — v3: Jost + Inter, clean geometric professional styling */
:root {
  --blue: #0b62d6;
  --blue-dark: #084da8;
  --navy: #0f2440;
  --ink: #1a2a3a;
  --muted: #5b6b7c;
  --line: #dbe4ec;
  --bg: #f4f7fb;
  --card: #ffffff;
  --amber: #f5a623;
  --green: #1d8a5f;
  --red: #d64545;
  --radius: 16px;
  --font-display: "Jost", "Century Gothic", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 10px 32px rgba(15, 36, 64, 0.12);
  --shadow-sm: 0 2px 12px rgba(15, 36, 64, 0.07);
  --shadow-md: 0 16px 40px rgba(15, 36, 64, 0.14);
  --shadow-lg: 0 24px 64px rgba(15, 36, 64, 0.18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.005em; }
a { color: var(--blue); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(15, 36, 64, 0.07);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--navy); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.wordmark span { color: var(--blue); }
.main-nav { display: flex; gap: 24px; margin-left: 12px; }
.main-nav a { color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.01em; font-size: 0.95rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--blue); }
.main-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.phone-btn {
  background: var(--blue); color: #fff !important; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em;
  padding: 10px 18px; border-radius: 999px; font-size: 0.92rem; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(11, 98, 214, 0.35);
}
.phone-btn:hover { background: var(--navy); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.3rem; padding: 4px 10px; cursor: pointer; min-height: 44px; min-width: 44px; }

/* Buttons */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em;
  font-size: 0.98rem; padding: 13px 24px; border-radius: 999px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(11, 98, 214, 0.3); }
.btn-primary:hover { background: var(--navy); }
.btn-outline { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg); }

/* Hero (home) */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 25, 47, 0.62), rgba(10, 25, 47, 0.35) 55%, rgba(10, 25, 47, 0.74)); }
.hero-content { position: relative; padding: 96px 20px 84px; }
.hero-content h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); line-height: 1.05; margin: 0 0 14px; max-width: 17ch; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero-sub { font-size: 1.18rem; max-width: 56ch; margin: 0 0 30px; color: #eef3f9; }
.search-card { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 20px; max-width: 980px; }
.search-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.search-tab {
  border: none; background: var(--bg); color: var(--ink); font-weight: 700;
  padding: 9px 20px; border-radius: 999px; cursor: pointer;
}
.search-tab.active { background: var(--blue); color: #fff; }
.search-form { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 10px; }
.search-form input, .search-form select, .filters input, .filters select,
.contact-form input, .contact-form select, .contact-form textarea, .calc-field input, .calc-field select {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.95rem; font-family: inherit; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-form input:focus, .search-form select:focus, .filters input:focus, .filters select:focus,
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 98, 214, 0.18);
}
.search-hint { margin: 12px 0 0; color: var(--muted); font-size: 0.9rem; }

/* Inner page hero */
.page-hero { background: linear-gradient(120deg, var(--navy), #16386e); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 10px; line-height: 1.1; }
.page-hero p { color: #d7e2ef; font-size: 1.1rem; max-width: 62ch; margin: 0; }
.page-hero .eyebrow { color: #9fc2f0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-family: var(--font-display); font-weight: 600; color: #9fc2f0; margin: 0 0 10px; }

/* Sections */

.section { padding: 72px 0; }
.section-alt { background: var(--bg); }
.section-narrow { max-width: 820px; }
.section-head { margin-bottom: 28px; }
.section-head h2, .section h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--navy); margin: 0 0 10px; line-height: 1.15; }
.section-head p, .section-lead { color: var(--muted); font-size: 1.05rem; max-width: 64ch; }
.lead { font-size: 1.12rem; color: var(--ink); }

/* Filters */
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.filter-toggle { display: none; width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-weight: 700; cursor: pointer; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; gap: 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-pill {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 14px; font-weight: 600; font-size: 0.88rem; cursor: pointer;
}
.tag-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.results-count { color: var(--muted); font-weight: 600; margin: 0 0 16px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; display: flex; flex-direction: column; transition: box-shadow 0.18s, transform 0.18s; }
.listing-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s; }
.listing-card:hover .card-photo img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge span { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; color: #fff; }
.badge .status-sale { background: var(--green); }
.badge .status-pending { background: var(--amber); color: #231a00; }
.fav-btn {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, 0.95); font-size: 1.15rem; cursor: pointer; line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.fav-btn.active { color: var(--red); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--navy); letter-spacing: -0.02em; }
.card-specs { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.card-address { font-weight: 700; }
.card-city { color: var(--muted); font-size: 0.92rem; }
.card-dom { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.dom-new { display: inline-block; background: var(--lime, #c8f169); color: #101418; border-radius: 999px; padding: 1px 8px; font-weight: 700; font-size: 0.75rem; margin-right: 6px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.card-tags span { background: var(--bg); border-radius: 999px; padding: 4px 10px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.empty-state { background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }

/* Map */
.map-wrap { margin-top: 44px; }
.map-wrap h3 { color: var(--navy); margin: 0 0 10px; }
#map, #searchMap { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; }
.map-note { color: var(--muted); font-size: 0.9rem; }
.office-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.office-map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Grids: sell / about / contact / areas / steps */
.sell-grid, .about-grid, .contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.check-list { list-style: none; padding: 0; margin: 18px 0; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 12px; font-weight: 500; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.sell-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.sell-card h3 { margin-top: 0; color: var(--navy); }
.about-photo img { width: 100%; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
.about-contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; box-shadow: var(--shadow-sm); }
.contact-form label { font-weight: 600; font-size: 0.92rem; display: grid; gap: 6px; }
.form-note { background: var(--bg); border-radius: 10px; padding: 14px 16px; font-size: 0.92rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-weight: 600; }
/* Honeypot field: kept off-screen (not display:none) so automated
 * bots still fill it; humans never see it. A filled honeypot makes
 * the server silently discard the submission. */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status.ok { color: var(--green); }
.form-status.warn { color: var(--red); }
.areas-note { color: var(--muted); }
address { font-style: normal; line-height: 1.7; }
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.area-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: box-shadow 0.18s, transform 0.18s; }
.area-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.area-card h3 { color: var(--navy); margin: 0 0 6px; font-size: 1.25rem; }
.area-card p { color: var(--muted); margin: 0 0 10px; font-size: 0.95rem; }
.area-card span.link { color: var(--blue); font-weight: 700; font-size: 0.92rem; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: box-shadow 0.18s, transform 0.18s; }
.step:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.step-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--blue); line-height: 1; }
.step h3 { color: var(--navy); margin: 8px 0 6px; }
.step p { color: var(--muted); margin: 0; }
.cta-band { background: linear-gradient(120deg, var(--navy), #16386e); color: #fff; border-radius: var(--radius); padding: 40px 36px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #d7e2ef; margin: 0; max-width: 52ch; }
.contact-strip { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.contact-strip strong { color: var(--navy); }
.legal { max-width: 820px; }
.legal h2 { color: var(--navy); margin-top: 32px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 20px; }

/* Footer */
.site-footer { background: var(--navy); color: #cdd9e6; padding: 60px 0 36px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid strong { color: #fff; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em; }
.footer-grid ul { list-style: none; padding: 0; margin: 8px 0 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 36px; padding-top: 20px; font-size: 0.88rem; color: #9fb2c6; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(8, 20, 36, 0.62);
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 32px 16px;
}
.modal-backdrop[hidden] { display: none; }
.modal { background: #fff; border-radius: 18px; max-width: 1080px; width: 100%; position: relative; box-shadow: var(--shadow-lg); overflow: clip; }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px;
  border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.95); font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.modal-photo { position: relative; aspect-ratio: 16 / 10; background: var(--bg); }
.modal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-content { padding: 24px 28px 28px; }
.modal-content h2 { margin: 0 0 4px; color: var(--navy); font-size: 1.5rem; }
.modal-price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--navy); letter-spacing: -0.02em; }
.modal-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.spec { background: var(--bg); border-radius: 10px; padding: 12px; text-align: center; }
.spec strong { display: block; font-size: 1.1rem; color: var(--navy); }
.spec span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.modal-features { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.modal-features span { background: var(--bg); border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; font-weight: 600; }
.calc { background: var(--bg); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.calc h3 { margin: 0 0 12px; color: var(--navy); }
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.calc-field label { font-size: 0.85rem; font-weight: 600; display: grid; gap: 6px; }
.calc-result { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--navy); margin: 14px 0 0; }
.calc-result small { display: block; font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.agent-card { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 20px; flex-wrap: wrap; }
.agent-card strong { color: var(--navy); }
.tour-btn { margin-left: auto; }

/* Responsive */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .sell-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 20px; border-bottom: 1px solid var(--line); margin: 0; }
  .main-nav.open { display: flex; }
  .main-nav a.active { border-bottom-color: transparent; }
  .nav-toggle { display: block; }
  .phone-btn { display: none; }
  .card-grid, .area-grid { grid-template-columns: 1fr; }
  .search-form { grid-template-columns: 1fr; }
  .filter-toggle { display: block; }
  .filters { display: none; margin-top: 12px; }
  .filters.open { display: grid; }
  .hero-content { padding: 56px 20px 48px; }
  .modal-specs { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: 1fr; }
  #map, #searchMap { height: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 22px; }
}

/* ---- Service areas refinement ---- */
.area-card-photo { padding: 0; overflow: hidden; }
.area-card-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; transition: transform 0.3s; }
.area-card-photo:hover img { transform: scale(1.04); }
.area-card-body { padding: 20px 22px 22px; }
.area-card-body h3 { color: var(--navy); margin: 0 0 6px; font-size: 1.25rem; }
.area-card-body p { color: var(--muted); margin: 0 0 10px; font-size: 0.95rem; }
.area-card-body span.link { color: var(--blue); font-weight: 700; font-size: 0.92rem; }
.areas-map { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; z-index: 0; }
.map-note { color: var(--muted); font-size: 0.92rem; margin-top: 12px; }
.area-photo { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 8px 0 28px; display: block; }
.highlights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.why-strip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow-sm); }
.why-strip h2 { margin: 0 0 8px; }
.why-strip p { margin: 0; color: var(--muted); max-width: 72ch; }
.nearby-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.nearby-row a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; color: var(--navy); text-decoration: none; transition: border-color 0.18s, box-shadow 0.18s; }
.nearby-row a:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
@media (max-width: 700px) {
  .highlights-grid { grid-template-columns: 1fr; }
  .areas-map { height: 320px; }
}

/* ---- Search page + detail gallery (APIllow) ---- */
.search-status { color: var(--muted); font-weight: 600; margin: 0 0 16px; min-height: 1.2em; }
.search-form-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 10px; }
.search-form-grid .full { grid-column: 1 / -1; }
@media (max-width: 960px) {
  .search-form-grid { grid-template-columns: 1fr 1fr; }
}
.gallery-thumbs { display: flex; gap: 8px; margin: 12px 0 0; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { border: 2px solid transparent; border-radius: 10px; padding: 0; cursor: pointer; background: none; flex: 0 0 auto; }
.gallery-thumb img { display: block; width: 84px; height: 56px; object-fit: cover; border-radius: 8px; }
.gallery-thumb.active { border-color: var(--blue); }
.detail-extra { margin: 12px 0; }
.detail-extra p { margin: 4px 0; }
.price-history { margin: 18px 0; }
.price-history h3 { margin: 0 0 8px; color: var(--navy); }
.price-history ul { margin: 0; padding-left: 20px; }
.price-history li { margin: 4px 0; }
.tax-history, .schools-list, .comps-list, .nearby-list { margin: 18px 0; }
.tax-history h3, .schools-list h3, .comps-list h3, .nearby-list h3 { margin: 0 0 8px; color: var(--navy); }
.tax-history ul, .schools-list ul, .comps-list ul, .nearby-list ul { margin: 0; padding-left: 20px; }
.tax-history li, .schools-list li, .comps-list li, .nearby-list li { margin: 4px 0; }
.comps-loading { font-size: 0.9rem; margin: 4px 0; }
.nearby-list .nearby-row { background: none; border: none; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-align: left; }

/* ---- Ready-base additions ---- */
.badge .admin-badge { background: var(--amber); color: #231a00; }
.badge .exact-badge { background: var(--navy); }
.badge .live-badge { background: var(--blue); }

/* ---- Specific-home search: autocomplete + fallbacks ---- */
.search-form-grid input, .search-form-grid select {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.95rem; font-family: inherit; background: #fff;
}
.search-form-grid input:focus, .search-form-grid select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 98, 214, 0.18);
}
.autocomplete-wrap { position: relative; }
.autocomplete-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-md); overflow: hidden; max-height: 380px; overflow-y: auto;
}
.autocomplete-row {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left;
  background: #fff; border: none; border-bottom: 1px solid var(--line);
  padding: 10px 12px; cursor: pointer; font-family: inherit; color: var(--ink);
}
.autocomplete-row:last-child { border-bottom: none; }
.autocomplete-row.active, .autocomplete-row:hover { background: var(--bg); }
.autocomplete-row.autocomplete-empty { cursor: default; color: var(--muted); font-weight: 600; }
.autocomplete-thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.autocomplete-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.autocomplete-main strong { font-size: 0.95rem; }
.autocomplete-main span { font-size: 0.82rem; color: var(--muted); }
.autocomplete-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.autocomplete-meta span { font-weight: 400; font-size: 0.82rem; color: var(--muted); }
.autocomplete-admin { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; background: var(--amber); color: #231a00; padding: 3px 7px; border-radius: 999px; }
.search-fallbacks { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.area-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.area-tab { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; font-size: 0.88rem; cursor: pointer; }
.area-tab:hover { border-color: var(--blue); color: var(--blue); }
.area-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.load-more-wrap { text-align: center; margin-top: 24px; }
.load-more-wrap:empty { display: none; }

/* ---- Detail modal redesign ---- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.detail-main { min-width: 0; }
.detail-aside { position: sticky; top: 20px; }
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}
.detail-badge { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.detail-badge span { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; color: #fff; }
.detail-badge .status-sale { background: var(--green); }
.detail-badge .status-pending { background: var(--amber); color: #231a00; }
.detail-badge .admin-badge { background: var(--amber); color: #231a00; }
.detail-subline { color: var(--muted); font-weight: 600; margin: 4px 0 0; }
.detail-specline { font-size: 1.02rem; margin: 10px 0 0; }
.detail-features h3 { margin: 16px 0 0; color: var(--navy); }
.detail-features .modal-features { margin: 8px 0 0; }
.desc-toggle { background: none; border: none; color: var(--blue); font-weight: 700; cursor: pointer; padding: 0; font: inherit; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
@media (max-width: 720px) {
  .facts-grid { grid-template-columns: 1fr; }
}
.fact { background: var(--bg); border-radius: 10px; padding: 12px; }
.fact span { display: block; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.fact strong { display: block; color: var(--navy); font-size: 1rem; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.95); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-counter { position: absolute; right: 12px; bottom: 12px; background: rgba(8, 20, 36, 0.72); color: #fff; font-size: 0.82rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; z-index: 2; }
.detail-map-wrap { margin: 18px 0; }
.detail-map-wrap h3 { margin: 0 0 8px; color: var(--navy); }
#detailMap { height: 320px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; }
.history-table { margin: 18px 0; }
.history-table h3 { margin: 0 0 8px; color: var(--navy); }
.history-table table { width: 100%; border-collapse: collapse; }
.history-table th, .history-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.92rem; }
.history-table th.num, .history-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.calc-breakdown { margin-top: 14px; }
.calc-breakdown p { margin: 4px 0; font-weight: 600; }
.lead-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 16px; }
.lead-form h3 { margin: 0 0 12px; color: var(--navy); }
.lead-form label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.95rem; font-family: inherit; background: #fff; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 98, 214, 0.18); }
.lead-form textarea { min-height: 96px; resize: vertical; }
.lead-form .btn { width: 100%; }
.lead-form .btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.lead-form .form-status { margin: 12px 0 0; border-radius: 10px; padding: 10px 12px; font-size: 0.92rem; }
.lead-form .form-status:empty { display: none; padding: 0; border: none; }
.lead-form .form-status.ok { background: rgba(29, 138, 95, 0.10); border: 1px solid rgba(29, 138, 95, 0.35); }
.lead-form .form-status.warn { background: rgba(214, 69, 69, 0.08); border: 1px solid rgba(214, 69, 69, 0.35); }
.lead-form .form-status a { color: inherit; }
@media (max-width: 720px) {
  .gallery-thumb img { width: 72px; height: 48px; }
}

/* ---------------- Search split view + pagination + home value ----------------
 * Added for the search overhaul (JS-driven; no HTML dependency beyond
 * the contract ids). #searchFilters is intentionally NOT sticky: the
 * site header is itself sticky (70px, z-index 50), so a sticky filter
 * bar would slide under it on narrow screens; the bar is instead a
 * visually distinct card above the split view. */

/* Split view: map ~55% / list ~45% on desktop; stacked on smaller screens. */
#searchLayout {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 20px;
  align-items: start;
}
#searchMapWrap, #searchListWrap { min-width: 0; }
#searchMapWrap {
  position: sticky;
  top: 90px;
}
#searchLayout #searchMap {
  height: calc(100vh - 110px);
  min-height: 420px;
}
@media (max-width: 999px) {
  #searchLayout { grid-template-columns: 1fr; }
  #searchMapWrap { position: static; }
  #searchLayout #searchMap { height: 360px; min-height: 0; }
}

/* Buy split view: map ~55% / list ~45% on desktop; stacked on smaller screens. */
#buyLayout {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 20px;
  align-items: start;
}
#buyMapWrap, #buyListWrap { min-width: 0; }
#buyMapWrap {
  position: sticky;
  top: 90px;
}
#buyLayout #map {
  height: calc(100vh - 110px);
  min-height: 420px;
}
#buyListWrap .card-grid { grid-template-columns: repeat(2, 1fr); }
.buy-view-toggle { display: none; }

/* Price pins: small white pills, navy text; the inner pill is centered
 * on the coordinates (the divIcon wrapper anchors at its top-left). */
.price-pin-wrap { background: none; border: none; }
.price-pin {
  display: inline-block; line-height: 1.2;
  transform: translate(-50%, -50%);
  background: #fff; color: var(--navy);
  border: 1.5px solid var(--navy); border-radius: 999px;
  padding: 4px 9px; font-weight: 800; font-size: 0.8rem;
  white-space: nowrap; box-shadow: 0 2px 8px rgba(15, 36, 64, 0.25);
  cursor: pointer;
}
.price-pin:hover { background: var(--navy); color: #fff; }
/* Cluster bubbles: navy count pills, same centering as price pins. */
.cluster-pin-wrap { background: none; border: none; }
.cluster-pin {
  display: inline-block; line-height: 1.2;
  transform: translate(-50%, -50%);
  background: var(--navy); color: #fff;
  border: 1.5px solid #fff; border-radius: 999px;
  padding: 5px 11px; font-weight: 800; font-size: 0.85rem;
  white-space: nowrap; box-shadow: 0 2px 10px rgba(15, 36, 64, 0.35);
  cursor: pointer;
}
.cluster-pin:hover { background: #1d3a5f; }
.cluster-list { font-size: 0.9rem; line-height: 1.7; }
.cluster-list a { color: var(--navy); font-weight: 600; }
@media (max-width: 999px) {
  #buyLayout { grid-template-columns: 1fr; }
  #buyMapWrap { position: static; }
  #buyLayout #map { height: 55vh; min-height: 320px; }
  #buyListWrap .card-grid { grid-template-columns: repeat(2, 1fr); }
  .buy-view-toggle { display: flex; gap: 8px; margin-bottom: 14px; }
  .buy-view-toggle button {
    flex: 1; padding: 11px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff;
    font-weight: 700; font-size: 0.95rem; cursor: pointer;
  }
  .buy-view-toggle button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
  #buyLayout:not(.show-map) #buyMapWrap { display: none; }
  #buyLayout.show-map #buyListWrap { display: none; }
}
@media (max-width: 720px) {
  #buyListWrap .card-grid { grid-template-columns: 1fr; }
}

/* Filter bar: distinct card with wrapping inputs. */
#searchFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
}
#searchFilters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
#searchFilters input,
#searchFilters select {
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
  min-width: 0;
}

/* Numbered pager (search, buy, area tabs, area pages). */
.pager-wrap { margin: 24px 0; }
.pager-wrap:empty { display: none; }
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pager-btn {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 13px;
  cursor: pointer;
}
.pager-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.pager-btn.current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.pager-btn:disabled { opacity: 0.45; cursor: default; }
.pager-ellipsis { padding: 8px 2px; color: var(--muted); }

/* Home value tool: result card + comps. */
.hv-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin: 20px 0;
}
.hv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-body { padding: 18px 18px 18px 0; }
.hv-body h3 { margin: 0 0 6px; color: var(--navy); }
.hv-specs, .hv-status-line { margin: 4px 0; color: var(--muted); }
.hv-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin: 14px 0 0; }
.hv-facts div { border-top: 1px solid var(--line); padding-top: 8px; }
.hv-facts dt { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.hv-facts dd { margin: 0; font-weight: 700; color: var(--navy); }
.hv-note { color: var(--muted); font-size: 0.92rem; }
.hv-range { font-weight: 700; color: var(--navy); }
.hv-comps { margin: 20px 0; }
.hv-comps ul { list-style: none; margin: 0; padding: 0; }
.hv-comps li { padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 720px) {
  .hv-card { grid-template-columns: 1fr; }
  .hv-photo img { max-height: 240px; }
  .hv-body { padding: 0 16px 16px; }
  .hv-facts { grid-template-columns: 1fr; }
}

/* Blog images + cards */
.blog-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); display: block; margin: 0 0 24px; }
.blog-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.blog-thumb { width: 100%; max-width: 340px; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); display: block; margin: 0 0 12px; }

/* Blog rebuild (2026-11-10): redesigned index + article styles. Navy #0B2447 /
   amber #F59E0B family, Jost headings + Inter body, matching the site. */
.blog-hero-new { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 40px 28px; margin: 24px 0; }
.blog-hero-new h1 { color: #fff; margin: 0 0 8px; font-size: 2.1rem; line-height: 1.15; }
.blog-hero-new p { color: #dbe4ec; margin: 0 0 18px; max-width: 640px; }
.blog-search { width: 100%; max-width: 520px; font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 13px 18px; background: #fff; min-height: 48px; }
.blog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.blog-chip-btn { font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; cursor: pointer; min-height: 44px; }
.blog-chip-btn:hover { border-color: var(--blue); color: var(--blue); }
.blog-chip-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.blog-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; margin: 0 0 28px; }
.blog-featured img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }
.blog-featured-body { padding: 26px 28px; }
.blog-featured-body h2 { margin: 8px 0; font-size: 1.55rem; line-height: 1.25; }
.blog-featured-body h2 a { color: var(--navy); text-decoration: none; }
.blog-featured-body h2 a:hover { color: var(--blue); }
.blog-featured-body p { color: var(--muted); }
.chip { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; color: var(--navy); background: #eef3f9; border-radius: 999px; padding: 4px 10px; }
.chip-area { color: #7a4d00; background: #fdf1d7; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.15s, box-shadow 0.15s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.blog-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-body h2, .blog-card-body h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.blog-card-body h2 a, .blog-card-body h3 a { color: var(--navy); text-decoration: none; }
.blog-card-body h2 a:hover, .blog-card-body h3 a:hover { color: var(--blue); }
.blog-card-body p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.blog-card-meta { color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-top: auto; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.breadcrumbs { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.blog-hero-fig { margin: 0 0 24px; }
.blog-hero-fig figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }
.blog-toc { background: #f4f7fb; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 28px; }
.blog-toc ul { margin: 10px 0 0; padding-left: 20px; }
.blog-toc li { margin: 5px 0; }
.blog-toc a { color: var(--navy); text-decoration: none; font-weight: 600; }
.blog-toc a:hover { color: var(--blue); text-decoration: underline; }
.blog-callout { background: #fdf6e3; border: 1px solid #f0d48a; border-left: 5px solid #F59E0B; border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; }
.blog-callout h2 { margin-top: 0; }
.blog-checklist { list-style: none; margin: 0; padding: 0; }
.blog-checklist li { padding: 7px 0 7px 30px; position: relative; }
.blog-checklist li::before { content: "\2713"; position: absolute; left: 0; color: #1d8a5f; font-weight: 800; }
.blog-faq { margin: 28px 0; }
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--navy); }
.faq-item p { margin: 0; }
.blog-takeaways { background: #eef3f9; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; }
.blog-takeaways h2 { margin-top: 0; }
.blog-takeaways ul { margin: 0; padding-left: 20px; }
.blog-takeaways li { margin: 6px 0; }
.blog-author { border-top: 1px solid var(--line); margin: 32px 0 0; padding: 20px 0 0; }
.blog-author strong { font-family: var(--font-display); color: var(--navy); font-size: 1.1rem; }
.blog-cta { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px 28px; margin: 28px 0; }
.blog-cta h2 { color: #fff; margin: 0 0 8px; }
.blog-cta p { margin: 0; }
.blog-cta a { color: #ffd58a; font-weight: 700; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 12px 0 8px; }
.related-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.related-card a { text-decoration: none; display: block; padding: 0 0 14px; }
.related-card .chip { margin: 12px 0 0 14px; }
.related-card h3 { color: var(--navy); font-size: 1rem; line-height: 1.3; margin: 8px 14px 0; }
#blogPager { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; }
#blogPager .pager-btn { min-height: 44px; min-width: 44px; }
.blog-sort { font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: #fff; min-height: 44px; }
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured img { min-height: 220px; max-height: 260px; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero-new { padding: 28px 20px; }
  .blog-hero-new h1 { font-size: 1.65rem; }
  .blog-featured-body { padding: 20px; }
  .blog-toc, .blog-callout, .blog-takeaways, .blog-cta { padding-left: 18px; padding-right: 18px; }
}

/* ---------------- Homepage redesign (2026-11-19) ----------------
 * Elevated hero to match the approved markup: transparent overlay
 * header with frosted pill nav + lime contact button, tall dusk
 * hero, gold motto centered, thin headline, floating white search
 * card with labeled fields + filter chips + black search button.
 * Header/hero rules are scoped to .header-over-hero / .hero-v2 so
 * inner pages keep the existing solid header. */
:root {
  --lime: #c8f169;
  --gold: #c9960d;
  --gold-bright: #f2c14e;
}

/* Overlay header (home only) */
.site-header.header-over-hero {
  position: absolute;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: none;
}
.header-over-hero .header-inner { height: 84px; }
.header-over-hero .wordmark { color: #fff; font-weight: 500; }
.header-over-hero .wordmark span { color: #fff; }
.header-over-hero .main-nav {
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 6px;
  gap: 2px;
}
.header-over-hero .main-nav a {
  color: #fff;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  border-bottom: none;
}
.header-over-hero .main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.18); }
.header-over-hero .main-nav a.active { background: #fff; color: var(--navy); border-bottom-color: transparent; }
.contact-btn {
  background: var(--lime); color: #1c2b05 !important; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em;
  padding: 11px 22px; border-radius: 999px; font-size: 0.95rem; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s, background 0.15s;
}
.contact-btn:hover { background: #d8fa85; transform: translateY(-1px); }
.header-over-hero .nav-toggle { color: #fff; border-color: rgba(255, 255, 255, 0.55); }

/* Hero v2 */
.hero-v2 .hero-bg::after {
  background: linear-gradient(180deg, rgba(10, 25, 47, 0.48), rgba(10, 25, 47, 0.10) 42%, rgba(10, 25, 47, 0.58));
}
.hero-v2 .hero-content {
  padding: 128px 20px 56px;
  min-height: clamp(640px, 92vh, 920px);
  display: flex;
  flex-direction: column;
}
.hero-motto {
  margin: 0;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.hero-spacer { flex: 1 1 auto; min-height: 110px; }
.hero-headline-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 30px;
}
.hero-type-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-type-pill {
  border: none; background: #fff; color: var(--navy);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 11px 20px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.15s, transform 0.15s;
}
.hero-type-pill:hover { transform: translateY(-1px); }
.hero-type-pill.active { background: var(--lime); }
@media (max-width: 720px) {
  .hero-type-pill { padding: 10px 16px; font-size: 0.9rem; }
}
.hero-v2 .hero-content h1 {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(2.7rem, 5.4vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 15ch;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.4);
}
.hero-v2 .hero-sub {
  font-size: 1.06rem;
  line-height: 1.55;
  max-width: 36ch;
  margin: 0;
  padding-bottom: 8px;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* Floating search card */
.search-card-v2 {
  border-radius: 22px;
  padding: 26px 28px 24px;
  box-shadow: 0 24px 60px rgba(8, 20, 36, 0.28);
  max-width: none;
}
.search-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--navy);
  margin: 0 0 20px;
  letter-spacing: 0.005em;
}
.search-form-v2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 14px; }
.search-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.search-field > label { font-weight: 600; font-size: 0.93rem; color: var(--ink); }
.search-field input, .search-field select {
  width: 100%; padding: 13px 14px; border: 1px solid transparent; border-radius: 10px;
  font-size: 0.96rem; font-family: inherit; color: var(--ink); background: #f3f5f7;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  appearance: none;
}
.search-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6b7c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.search-field input:focus, .search-field select:focus {
  outline: none; background: #fff; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 98, 214, 0.18);
}
.search-filters-row {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 4px;
}
.search-filters-label { font-weight: 700; font-size: 0.95rem; margin-right: 2px; }
.search-filters-row .tag-pill { min-height: 44px; }
.search-submit { margin-left: auto; }
.btn-dark { background: #101418; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.btn-dark:hover { background: #000; }

/* Motto line (About page + anywhere the motto is quoted) */
.motto-line {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1.5rem;
  text-align: center;
  margin: 20px 0 0;
  letter-spacing: 0.01em;
}

/* Recent searches in the autocomplete popup */
.autocomplete-recent-head {
  padding: 11px 14px 4px;
  font-size: 0.76rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--muted);
}
.autocomplete-row.autocomplete-recent { align-items: center; }
.autocomplete-row.autocomplete-recent .autocomplete-main strong { font-weight: 600; }
.autocomplete-row.autocomplete-recent .autocomplete-meta { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

/* Business card (Contact page) */
.bizcard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 26px 0 22px; }
.bizcard { margin: 0; }
.bizcard img { width: 100%; display: block; border-radius: 12px; box-shadow: var(--shadow-md); }
.bizcard figcaption { color: var(--muted); font-size: 0.88rem; font-weight: 600; margin-top: 10px; }
.bizcard-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Homepage redesign: responsive */
@media (max-width: 960px) {
  .search-form-v2 { grid-template-columns: 1fr 1fr; }
  .hero-headline-row { gap: 28px; }
}
@media (max-width: 720px) {
  .header-over-hero .header-inner { height: 70px; }
  .header-over-hero .wordmark { font-size: 1.12rem; }
  .header-over-hero .main-nav { top: 70px; background: #fff; border: none; border-radius: 0; padding: 16px 20px; backdrop-filter: none; }
  .header-over-hero .main-nav a { color: var(--ink); }
  .header-over-hero .main-nav a:hover { color: var(--blue); background: transparent; }
  .header-over-hero .main-nav a.active { background: var(--bg); color: var(--blue); }
  .contact-btn { padding: 9px 15px; font-size: 0.86rem; }
  .hero-v2 .hero-content { padding: 104px 20px 40px; min-height: 0; }
  .hero-spacer { min-height: 56px; }
  .hero-headline-row { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
  .hero-v2 .hero-sub { max-width: 44ch; }
  .search-form-v2 { grid-template-columns: 1fr; }
  .search-card-v2 { padding: 22px 20px; }
  .search-submit { margin-left: 0; width: 100%; }
  .bizcard-grid { grid-template-columns: 1fr; }
  .motto-line { font-size: 1.3rem; }
}

/* ---------------- Site-wide new look (2026-11-19) ----------------
 * The homepage redesign's header is now the site's one header:
 * pill nav + lime Contact Jeffy button on every page. Solid
 * (non-hero) pages get the light variant — white sticky header,
 * light-gray pill, navy wordmark with gold "by Jeffy". The hero
 * overrides above still win on the homepage (.header-over-hero
 * rules are more specific). Primary buttons go black to match
 * the new search button, page titles go thin Inter, and
 * filter-bar controls match the new search-card inputs. */
@media (min-width: 721px) {
  .site-header:not(.header-over-hero) .main-nav {
    margin: 0 auto;
    background: #eef1f5;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px;
    gap: 2px;
  }
}
.site-header:not(.header-over-hero) .main-nav a {
  color: var(--ink);
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  border-bottom: none;
}
.site-header:not(.header-over-hero) .main-nav a:hover { color: var(--navy); background: rgba(15, 36, 64, 0.06); }
.site-header:not(.header-over-hero) .main-nav a.active { background: #fff; color: var(--navy); box-shadow: 0 1px 6px rgba(15, 36, 64, 0.12); }
.site-header:not(.header-over-hero) .wordmark span { color: var(--gold); }

/* Black primary buttons site-wide, matching the new search button. */
.btn-primary { background: #101418; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.btn-primary:hover { background: #000; }
.btn-outline { color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); }

/* Thin Inter page titles, matching the new hero headline. */
main h1 { font-family: var(--font-body); font-weight: 300; letter-spacing: -0.015em; }

/* Filter-bar controls match the new search-card inputs. */
.filters input, .filters select { background: #f4f6f8; border: 1px solid transparent; border-radius: 12px; }

/* Mobile: keep the whole header on one line at 390px and below.
 * (The old header hid its phone button here; the new Contact
 * button stays visible, so the wordmark and gaps shrink instead.)
 * The extra Contact link in the nav is desktop-hidden and shows
 * only in the mobile panel, so Contact stays reachable on the
 * smallest screens where the lime button hides. */
.main-nav .nav-contact { display: none; }
@media (max-width: 720px) {
  .site-header .header-inner { gap: 10px; }
  .site-header .wordmark { font-size: 1rem; }
  .site-header .contact-btn { display: none; }
  .wrap { padding: 0 16px; }
  .main-nav .nav-contact { display: block; }
}
