/* The Big Property List — modern shared stylesheet
   Portable across the static site and the WordPress sites (same markup skeleton).
   Brand: deep red #8b0000 on a warm-neutral paper background. */

:root {
    --brand:        #8b0000;
    --brand-dark:   #6d0000;
    --brand-tint:   #f7ecec;
    --ink:          #1c1a18;
    --muted:        #6b6660;
    --faint:        #9a948c;
    --line:         #e7e2d8;
    --paper:        #faf8f4;
    --surface:      #ffffff;
    --radius:       10px;
    --radius-lg:    14px;
    --shadow:       0 1px 3px rgba(28,26,24,0.06), 0 1px 2px rgba(28,26,24,0.04);
    --maxw:         1120px;
    --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}
.site-header .logo img { height: 46px; width: auto; display: block; }

/* Vector wordmark logo */
.brand-logo { display: flex; align-items: center; gap: 11px; }
.brand-logo:hover { text-decoration: none; }
.brand-logo .mark {
    width: 40px; height: 40px; flex: none;
    background: var(--brand);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
}
.brand-logo .word {
    font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
    color: var(--ink); line-height: 1;
}
.brand-logo .word .big { color: var(--brand); }
.brand-logo .tag {
    font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--faint); margin-top: 3px;
}
@media (max-width: 460px) {
    .brand-logo .tag { display: none; }
    .brand-logo .word { font-size: 19px; }
}
.main-nav {
    display: flex;
    gap: 26px;
    align-items: center;
}
.main-nav a {
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    padding: 6px 0;
}
.main-nav a:hover { color: var(--brand); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
    border-bottom: 1px solid var(--line);
    padding: 48px 0 40px;
    text-align: center;
}
.hero h1 {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.hero p.lede {
    margin: 0 auto 26px;
    max-width: 640px;
    font-size: 18px;
    color: var(--muted);
}

/* ---------- Search card ---------- */
.search-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 18px;
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}
.search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.search-row .q-wrap { flex: 1; position: relative; }
.search-row .q-wrap .ico {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--faint); font-size: 18px; pointer-events: none;
}
input[type=text], input[type=number], select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 14px;
    font-size: 15px;
    font-family: var(--font);
    color: var(--ink);
    background: var(--surface);
}
.search-row .q-wrap input[type=text] { padding-left: 42px; }
input:focus, select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-tint);
}
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}
.filters label { display: block; }
.filters .lbl { font-size: 12px; color: var(--muted); margin: 0 0 4px 2px; display: block; }
.check-inline {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--ink);
    padding-top: 22px;
}
.check-inline input { width: auto; height: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    height: 48px;
    padding: 0 26px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-block { width: 100%; }
.btn-ghost {
    background: transparent; color: var(--brand);
    border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-dark); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chips .chip-label { font-size: 14px; color: var(--muted); padding: 7px 0; }
.chip {
    font-size: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 16px;
    color: var(--ink);
}
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section h2 { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.section .sub { color: var(--muted); margin: 0 0 22px; }

/* ---------- Result cards ---------- */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.prop-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 18px;
    display: block;
    color: var(--ink);
    transition: border-color .12s ease, transform .12s ease;
}
.prop-card:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }
.prop-card .price { font-size: 24px; font-weight: 700; color: var(--brand); margin: 0 0 4px; }
.prop-card .addr { font-size: 15px; color: var(--ink); margin: 0 0 12px; }
.prop-card .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag {
    font-size: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 3px 9px;
    color: var(--muted);
}
.tag-date { color: var(--faint); border: 0; background: transparent; padding: 3px 0; }

/* ---------- Results layout ---------- */
.results-head {
    display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: 10px; margin-bottom: 18px;
}
.results-head h1 { font-size: 26px; font-weight: 700; margin: 0; }
.results-count { color: var(--muted); font-size: 15px; }
.toolbar {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
    font-size: 14px; color: var(--muted);
}
.toolbar select { width: auto; height: 40px; }
.sidebar-search {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 24px;
}
.layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; padding: 32px 0; }
.layout .field { margin-bottom: 12px; }
.layout .field .lbl { font-size: 12px; color: var(--muted); margin: 0 0 4px 2px; display: block; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.pagination a { padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--brand); font-weight: 500; }
.pagination a:hover { background: var(--brand-tint); text-decoration: none; }

/* ---------- Stat cards (property page) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 28px; }
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.stat .val { font-size: 22px; font-weight: 700; color: var(--brand); }
.stat .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }

/* ---------- History table ---------- */
.history { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.history th { background: var(--brand); color: #fff; text-align: left; font-size: 12px; font-weight: 600; padding: 12px 14px; text-transform: uppercase; letter-spacing: .03em; }
.history td { padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.history tr:nth-child(even) td { background: var(--paper); }
.history .price { font-weight: 700; color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: #d7d2c9;
    margin-top: 48px;
    padding: 36px 0;
}
.site-footer a { color: #fff; }
.site-footer .foot-nav { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 18px; font-weight: 500; }
.site-footer p { font-size: 13px; color: #a59f96; margin: 0; max-width: 760px; }

/* ---------- Utility ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .main-nav {
        display: none;
        position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: var(--surface); border-bottom: 1px solid var(--line);
        padding: 8px 20px 16px;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav-toggle { display: block; }
    .hero { padding: 34px 0 30px; }
    .hero h1 { font-size: 26px; }
    .hero p.lede { font-size: 16px; }
    .search-row { flex-wrap: wrap; }
    .search-row .btn { width: 100%; }
}
