/*
 Theme Name:   FSBOTN
 Theme URI:    https://fsbotn.com
 Description:  Custom theme for FSBOTN.com - Tennessee's #1 For Sale By Owner Platform
 Author:       FSBOTN
 Author URI:   https://fsbotn.com
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  fsbotn
 Requires at least: 6.0
 Requires PHP: 7.4
*/

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1f2937;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: #1e3a5f; text-decoration: none; }
a:hover { color: #f59e0b; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }

/* ===== Header ===== */
.fsbotn-header {
    background: #1e3a5f;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.fsbotn-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.fsbotn-logo {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.fsbotn-logo span {
    color: #f59e0b;
}
.fsbotn-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.fsbotn-nav a {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}
.fsbotn-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.fsbotn-nav-cta a {
    background: #f59e0b !important;
    color: #000 !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
}
.fsbotn-nav-cta a:hover {
    background: #d97706 !important;
}

/* Header CTA Button */
.fsbotn-header-cta {
    display: flex;
    align-items: center;
    margin-left: 12px;
}
.fsbotn-btn-cta {
    display: inline-flex;
    align-items: center;
    background: #f59e0b;
    color: #000 !important;
    font-weight: 700;
    font-size: 15px;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
.fsbotn-btn-cta:hover {
    background: #d97706;
    color: #000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}

/* Mobile menu */
.fsbotn-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
}
.fsbotn-mobile-menu {
    display: none;
    background: #1e3a5f;
    padding: 16px 20px;
}
.fsbotn-mobile-menu.active {
    display: block;
}
.fsbotn-mobile-menu a {
    display: block;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ===== Footer ===== */
.fsbotn-footer {
    background: #0f2440;
    color: rgba(255,255,255,0.7);
    padding: 60px 20px 0;
}
.fsbotn-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.fsbotn-footer-brand p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
}
.fsbotn-footer h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}
.fsbotn-footer-links {
    list-style: none;
}
.fsbotn-footer-links li {
    margin-bottom: 8px;
}
.fsbotn-footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: color 0.2s;
}
.fsbotn-footer-links a:hover {
    color: #f59e0b;
}
.fsbotn-footer-bottom {
    background: #0a1929;
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .fsbotn-nav { display: none; }
    .fsbotn-header-cta { display: none; }
    .fsbotn-menu-toggle { display: block; }
    .fsbotn-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .fsbotn-footer-inner { grid-template-columns: 1fr; }
}


/* ===== Modern Search Filters ===== */
.fsbotn-search-page {
    padding: 40px 20px 80px !important;
}
.fsbotn-search-header h1 {
    font-size: 32px !important;
    color: #1e3a5f !important;
    margin: 0 0 28px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}
.fsbotn-search-filters {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 28px 28px 24px !important;
    margin-bottom: 32px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}
.fsbotn-filter-row {
    display: flex !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
}
.fsbotn-filter-group {
    flex: 1 !important;
    min-width: 100px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
.fsbotn-filter-location {
    flex: 1.5 !important;
    min-width: 180px !important;
}
.fsbotn-filter-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding-left: 2px !important;
}
.fsbotn-search-filters .fsbotn-filter-group input[type="text"],
.fsbotn-search-filters .fsbotn-filter-group select {
    width: 100% !important;
    height: 48px !important;
    padding: 0 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    background: #fff !important;
    color: #1f2937 !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
}
.fsbotn-search-filters .fsbotn-filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 38px !important;
    cursor: pointer !important;
}
.fsbotn-search-filters .fsbotn-filter-group input:hover,
.fsbotn-search-filters .fsbotn-filter-group select:hover {
    border-color: #cbd5e1 !important;
}
.fsbotn-search-filters .fsbotn-filter-group input:focus,
.fsbotn-search-filters .fsbotn-filter-group select:focus {
    border-color: #1e3a5f !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1) !important;
}
.fsbotn-search-filters .fsbotn-filter-group input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}
.fsbotn-filter-submit {
    flex: 0 0 auto !important;
    min-width: auto !important;
    align-self: flex-end !important;
}
.fsbotn-btn-search {
    height: 48px !important;
    padding: 0 28px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    background: #1e3a5f !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.2) !important;
}
.fsbotn-btn-search:hover {
    background: #15304f !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3) !important;
}
.fsbotn-btn-search svg {
    flex-shrink: 0 !important;
}
.fsbotn-search-results-count {
    font-size: 15px !important;
    color: #64748b !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
}
@media (max-width: 768px) {
    .fsbotn-search-filters {
        padding: 20px 16px 16px !important;
        border-radius: 12px !important;
    }
    .fsbotn-filter-row {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .fsbotn-filter-group {
        min-width: 100% !important;
    }
    .fsbotn-filter-submit {
        min-width: 100% !important;
    }
    .fsbotn-btn-search {
        width: 100% !important;
        justify-content: center !important;
    }
    .fsbotn-search-header h1 {
        font-size: 24px !important;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .fsbotn-filter-group {
        min-width: calc(33% - 12px) !important;
    }
    .fsbotn-filter-location {
        min-width: calc(50% - 8px) !important;
    }
}
