/*
Theme Name: A1JRealtor Portal
Theme URI: https://a1jrealtor.com
Author: A1J
Description: Real estate portal theme for SKTREALTOR / A1JRealtor.
Version: 1.0
Text Domain: a1jrealtor-portal
*/

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #fafafa;
    color: #222;
}

a { color: #e91e63; text-decoration: none; }
a:hover { text-decoration: underline; }

.header-bar {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo a {
    font-weight: 700;
    font-size: 22px;
    color: #e91e63;
    text-decoration: none;
}

.header-nav a {
    margin: 0 10px;
    font-size: 14px;
    color: #444;
}

.header-actions a {
    margin-left: 10px;
    font-size: 13px;
}

.btn-primary {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    background: #e91e63;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
    display: inline-block;
    padding: 7px 15px;
    border-radius: 4px;
    border: 1px solid #e91e63;
    color: #e91e63;
    font-size: 13px;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 15px 60px;
}

/* HERO SEARCH */

.hero {
    background: #fff;
    padding: 25px 20px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}

.hero-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.hero-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.hero-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-search-row select,
.hero-search-row input {
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 13px;
    min-width: 140px;
}

.hero-search-row button {
    border: none;
    cursor: pointer;
}

/* STATS CARDS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 25px;
}

.stat-card {
    background: #fff;
    padding: 18px 16px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.03);
    font-size: 13px;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
}

/* PROPERTY SECTION */

.section-title {
    margin: 32px 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.property-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.property-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.property-card-body {
    padding: 12px 14px 14px;
}
.property-price {
    font-weight: 700;
    font-size: 15px;
}
.property-location {
    font-size: 13px;
    color: #777;
    margin: 3px 0 6px;
}
.property-specs {
    font-size: 12px;
    color: #555;
}
.property-card-footer {
    padding: 10px 14px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* BLOGS */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}
.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,0.04);
}
.blog-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.blog-card-body {
    padding: 12px 14px 16px;
}
.blog-card-body h3 {
    font-size: 14px;
    margin: 0 0 8px;
}

/* FOOTER */

.site-footer {
    background: #111;
    color: #ccc;
    padding: 30px 15px 20px;
    font-size: 13px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 18px;
}
.footer-columns h4 {
    color: #fff;
    font-size: 13px;
    margin-bottom: 8px;
}
.footer-columns a {
    display: block;
    color: #aaa;
    font-size: 12px;
    margin-bottom: 4px;
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 10px;
    font-size: 12px;
    color: #777;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .hero-search-row {
        flex-direction: column;
        align-items: stretch;
    }
}
/* ARCHIVE FILTERS & ADS */

.archive-header {
    margin-top: 10px;
    margin-bottom: 15px;
}

.archive-header h1 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 600;
}

.archive-header p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.archive-filters {
    background: #fff;
    padding: 12px 14px 16px;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.03);
    margin-bottom: 18px;
}

.archive-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.archive-filter-form select,
.archive-filter-form input[type="number"] {
    padding: 7px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 13px;
    min-width: 140px;
}

.active-filters {
    margin-top: 10px;
    font-size: 12px;
    color: #555;
}
.active-filters span {
    margin-right: 6px;
}
.filter-pill {
    display: inline-block;
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 3px 8px;
    border-radius: 20px;
}

/* Ads */

.ad-banner {
    background: #ffe9f0;
    border: 1px dashed #f06292;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 18px 0;
    text-align: center;
    font-size: 13px;
    color: #ad1457;
}
.ad-banner span {
    opacity: 0.9;
}

.ad-banner-wide {
    width: 100%;
}

.ad-banner-inline {
    width: 100%;
}

/* Pagination */

.archive-pagination {
    margin-top: 24px;
    text-align: center;
}
.archive-pagination .page-numbers {
    display: inline-block;
    margin: 0 3px;
    padding: 5px 9px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #ddd;
    font-size: 13px;
    color: #444;
}
.archive-pagination .page-numbers.current {
    background: #e91e63;
    border-color: #e91e63;
    color: #fff;
}
