/* =====================================================================
   LandOwnerFinancing.com — modern brand theme (Bootstrap 5)
   Palette lives in CSS custom properties so the look is centralized and
   the eventual self-hosted-Bootstrap swap is a no-op for this file.
   ===================================================================== */
:root {
    /* Brand palette */
    --lof-green:   #889D30;
    --lof-green-d: #70811f;
    --lof-green-l: #a7c335;
    --lof-slate:   #3c4d52;
    --lof-blue:    #425777;
    --lof-gray:    #d9d9d9;
    --lof-ink:     #2f3e42;
    --lof-paper:   #ffffff;

    /* Map the brand into Bootstrap so standard components carry it */
    --bs-primary: #889D30;
    --bs-primary-rgb: 136,157,48;
    --bs-link-color: #425777;
    --bs-link-color-rgb: 66,87,119;
    --bs-link-hover-color: #70811f;
    --bs-link-hover-color-rgb: 112,129,31;
    --bs-body-color: #2f3e42;
    --bs-body-font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-border-radius: .65rem;
}

body { -webkit-font-smoothing: antialiased; min-height: 100vh; }

/* Brand-green primary buttons regardless of Bootstrap defaults */
.btn-primary {
    --bs-btn-bg: var(--lof-green);          --bs-btn-border-color: var(--lof-green);
    --bs-btn-hover-bg: var(--lof-green-d);  --bs-btn-hover-border-color: var(--lof-green-d);
    --bs-btn-active-bg: var(--lof-green-d); --bs-btn-active-border-color: var(--lof-green-d);
    --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
    font-weight: 600;
}
.btn { border-radius: .6rem; }
.form-select:focus, .form-control:focus {
    border-color: var(--lof-green);
    box-shadow: 0 0 0 .2rem rgba(136,157,48,.22);
}

/* ---------- Background image + legibility overlay (shared) ---------- */
body#show_image {
    background:
        linear-gradient(180deg, rgba(47,62,66,.20), rgba(47,62,66,.50)),
        url('/_images/main_bg.jpg') left top / cover no-repeat fixed,
        var(--lof-slate);
}

/* ---------- Fixed LOF sign, bottom-right (non-negotiable) ---------- */
#lof_sign { position: fixed; bottom: 0; right: 0; z-index: 10; }
#lof_sign img { width: 200px; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
#main_lof_sign img { width: 150px; }

/* =====================================================================
   HOME HERO (default.php)
   ===================================================================== */
#homepage_search {
    position: relative; z-index: 1; min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 2.5rem 1rem 6rem;
}
#homepage_search .brand { text-align: center; color: #fff; margin-bottom: 1.75rem;
    text-shadow: 0 2px 14px rgba(0,0,0,.45); }
#homepage_search .brand h1 { font-weight: 800; letter-spacing: -.02em;
    font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.05; margin: 0; }
#homepage_search .brand h1 a { color: #fff; text-decoration: none; }
#homepage_search .brand h2 { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 500;
    font-style: italic; color: #e7efcf; margin: .5rem 0 0; }

#homepage_search .search-card {
    width: 100%; max-width: 600px; background: var(--lof-paper);
    border-radius: 20px; box-shadow: 0 22px 60px rgba(0,0,0,.38); overflow: hidden;
}
#homepage_search .search-card__head {
    background: var(--lof-green); color: #fff; padding: 1.05rem 1.6rem;
    font-weight: 700; letter-spacing: .06em; font-size: .9rem; text-transform: uppercase;
}
#homepage_search .search-card__body { padding: 1.5rem 1.6rem; }
#homepage_search .search-card .form-label {
    font-weight: 600; color: var(--lof-slate); margin-bottom: 0; text-align: right;
}

#homepage_search .home-nav {
    margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .4rem .5rem; justify-content: center;
}
#homepage_search .home-nav a {
    color: #fff; text-decoration: none; font-weight: 600; padding: .45rem .9rem;
    border-radius: 9px; text-shadow: 0 1px 6px rgba(0,0,0,.45); transition: .15s;
}
#homepage_search .home-nav a:hover { color: #e7efcf; background: rgba(255,255,255,.12); }

#homepage_search + footer, .hero-footer {
    position: relative; z-index: 1; text-align: center; color: #e7efcf;
    padding: 1rem; font-size: .82rem; text-shadow: 0 1px 8px rgba(0,0,0,.55); background: none; border: 0;
}
.hero-footer a { color: #cfe08a; text-decoration: none; }
.hero-footer a:hover { text-decoration: underline; }

/* =====================================================================
   DECORATED PAGES (decorator.php) — white content "sheet" over the bg
   ===================================================================== */
.container {
    background: var(--lof-paper);
    max-width: 1040px; margin: 0 auto; padding: 0 0 4rem;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,.30);
    min-height: 100vh;
}
.container > header {
    background: var(--lof-green); color: #fff;
    padding: 1.6rem 1.75rem; border-radius: 0;
}
.container > header a { color: #fff; text-decoration: none; }
.container > header h1 { font-weight: 800; letter-spacing: -.01em; font-size: 1.7rem; margin: 0; }
.container > header h2 { font-weight: 500; font-style: italic; font-size: 1rem; margin: .25rem 0 0; color: #eaf0d8; }

.site-nav {
    display: flex; flex-wrap: wrap; gap: .15rem .35rem; justify-content: center; align-items: center;
    padding: .45rem 1rem; background: #f7f8f3; border-bottom: 1px solid #e7e9e2;
}
.site-nav a {
    text-decoration: none; font-weight: 600; color: var(--lof-slate); font-size: .95rem;
    padding: .4rem .85rem; border-radius: 8px; transition: .15s; white-space: nowrap;
}
.site-nav a:hover { color: var(--lof-green-d); background: #eef1e4; }

#main_content { padding: 1.75rem; }

.container > footer {
    text-align: center; color: var(--lof-slate); font-size: .85rem;
    padding: 1.25rem 1rem; border-top: 2px solid var(--lof-green-l); margin-top: 1rem;
}
.container > footer a { color: var(--lof-blue); }

/* =====================================================================
   CONTENT CARDS (replaces Bootstrap 3 .panel)
   ===================================================================== */
.card {
    border: 1px solid #e6e8e0; border-radius: 14px; overflow: hidden;
    box-shadow: 0 6px 18px rgba(60,77,82,.08); margin-bottom: 1.5rem; position: relative;
}
.card > .card-header {
    background: #f4f6ee; border-bottom: 1px solid #e6e8e0; padding: 1rem 1.25rem;
}
.card > .card-header h1, .card > .card-header .title { font-size: 1.25rem; font-weight: 700; margin: 0; color: var(--lof-slate); }
.card > .card-header h2 { font-size: 1rem; font-weight: 500; margin: .3rem 0 0; color: #6b7a7f; }
.card > .card-header .title a { color: var(--lof-slate); text-decoration: none; }
.card > .card-header .title a:hover { color: var(--lof-green-d); }
.card > .card-footer { background: var(--lof-slate); padding: .85rem 1.25rem; }
.card > .card-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.card > .card-footer a { color: var(--lof-green-l); font-weight: 600; text-decoration: none; }
.card > .card-footer a:hover { color: #fff; text-decoration: underline; }

.property_info .row { padding: .35rem 0; border-bottom: 1px solid #f0f1ec; }
.property_info .label { color: var(--lof-slate); font-weight: 600; }
.property_info .input { font-weight: 600; }
.property_images img { height: 90px; width: auto; border-radius: 8px; margin: 0 .25rem .25rem 0; }
img.sold_img, img.sold_image { position: absolute; top: 12px; right: 12px; }
.property_description, .property_directions { word-wrap: break-word; }

/* ---------- Listings search filter + pagination ---------- */
#search_filter {
    background: #f4f6ee; border: 1px solid #e6e8e0; border-radius: 14px;
    padding: 1.25rem; margin-bottom: 1.5rem;
}
#search_filter .input-group { margin-bottom: .6rem; }
#search_filter .input-group-text { min-width: 110px; background: #fff; border-color: #e3e6dd; color: var(--lof-slate); font-weight: 600; }
.pagination { --bs-pagination-color: var(--lof-slate); --bs-pagination-active-bg: var(--lof-slate); --bs-pagination-active-border-color: var(--lof-slate); }

/* ---------- Empty state (no listings) ---------- */
.empty-state {
    background: #f7f8f3; border: 1px dashed #cdd3c2; border-radius: 14px; padding: 2.5rem 1rem;
}

/* ---------- Contact / generic page intro ---------- */
#property_search { padding: .5rem 0; }
#property_search h1, #property_search h2, #property_search p { color: var(--lof-slate); }

/* small-screen tweaks */
@media (max-width: 575.98px) {
    #main_content { padding: 1.1rem; }
    .container > header { padding: 1.2rem 1.1rem; }
    #lof_sign img { width: 130px; }
}
