/* assets/css/style.css — Buckner Properties */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --brand-dark:  #781419;
    --brand-mid:   #B03A40;
    --brand-light: #F8E9EA;
    --brand-text:  #5C0F13;
    --gray-bg:     #F5F5F3;
    --gray-border: #E0E0DC;
    --gray-muted:  #6B6B68;
    --text-primary:#1A1A18;
    --radius-md:   8px;
    --radius-lg:   12px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text-primary); background: var(--gray-bg); line-height: 1.6; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Header ---- */
.site-header { background: #fff; border-bottom: 1px solid var(--gray-border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 2rem; height: 60px; }
.logo { font-size: 18px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.3px; flex-shrink: 0; }
.logo span { color: var(--brand-mid); }
.site-nav { display: flex; gap: 1.5rem; margin-right: auto; }
.site-nav a { font-size: 14px; color: var(--gray-muted); transition: color 0.15s; }
.site-nav a:hover { color: var(--text-primary); text-decoration: none; }
.header-phone { font-size: 14px; font-weight: 500; color: var(--brand-dark); }

/* ---- Hero ---- */
.hero { background: var(--brand-dark); padding: 2.5rem 0; color: #fff; position: relative }
.hero h1 { font-size: 26px; font-weight: 600; margin-bottom: 0.25rem; }
.hero p { font-size: 14px; opacity: 0.75; margin-bottom: 1.25rem; }
.hero {
    background: #144578 url(/images/image01.jpg);
    background-size: cover;
    background-blend-mode: soft-light;
    padding: 3rem 0;
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-bar select { font-size: 13px; padding: 7px 12px; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.12); color: #fff; cursor: pointer; appearance: none; -webkit-appearance: none; }
.filter-bar select option { color: var(--text-primary); background: #fff; }
.filter-bar select:focus { outline: 2px solid rgba(255,255,255,0.5); }
.btn-filter { padding: 7px 18px; background: #fff; color: var(--brand-dark); border: none; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; cursor: pointer; }
.btn-filter:hover { background: var(--brand-light); }
.btn-reset { font-size: 13px; color: rgba(255,255,255,0.75); padding: 7px 10px; }
.btn-reset:hover { color: #fff; text-decoration: none; }

/* ---- Grid ---- */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 2rem 0; }

.prop-card { background: #fff; border: 1px solid var(--gray-border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.prop-card:hover { border-color: #b0b0ac; box-shadow: 0 1px 6px rgba(0,0,0,0.08); }
.card-link { display: block; color: inherit; text-decoration: none; }

.card-photo { position: relative; height: 200px; background: #ddd; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.prop-card:hover .card-photo img { transform: scale(1.03); }
.card-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #e8e8e4; color: var(--gray-muted); font-size: 13px; }

.badge { font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 4px; }
.card-photo .badge { position: absolute; top: 10px; right: 10px; }
.badge-available { background: #E1F5EE; color: #085041; }
.badge-rented    { background: #F1EFE8; color: #5F5E5A; }
.badge-pending   { background: #FAEEDA; color: #633806; }

.card-body { padding: 14px 16px; }
.card-address { font-size: 15px; font-weight: 500; margin-bottom: 3px; }
.card-sub { font-size: 12px; color: var(--gray-muted); margin-bottom: 10px; }
.card-price { font-size: 18px; font-weight: 600; color: var(--brand-dark); }
.card-price span { font-size: 13px; font-weight: 400; color: var(--gray-muted); }
.card-meta { display: flex; gap: 14px; list-style: none; margin-top: 8px; font-size: 13px; color: var(--gray-muted); }
.meta-val { font-weight: 500; color: var(--text-primary); }

/* ---- Pagination ---- */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 1.5rem 0 2.5rem; }
.pg-btn { padding: 6px 12px; border: 1px solid var(--gray-border); border-radius: var(--radius-md); font-size: 13px; color: var(--gray-muted); text-decoration: none; }
.pg-btn:hover { background: #eee; text-decoration: none; }
.pg-btn.active { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }

.empty-state { padding: 4rem 0; text-align: center; color: var(--gray-muted); font-size: 15px; }

/* ---- Detail ---- */
.breadcrumb-row { padding: 1rem 0 0; font-size: 13px; }
.detail-lead-wrap { background: #fff; border-bottom: 1px solid var(--gray-border); padding: 1.25rem 0; margin-bottom: 2rem; }
.lead-photo { border-radius: var(--radius-lg); overflow: hidden; background: #ddd; margin-bottom: 12px; }
.lead-photo img { width: 100%; height: 440px; object-fit: cover; }
.thumb-row { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { width: 80px; height: 54px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: none; padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--brand-mid); }

.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; padding-bottom: 3rem; }
.detail-header { margin-bottom: 1rem; }
.detail-header .badge { display: inline-block; margin-bottom: 8px; }
.detail-header h1 { font-size: 26px; font-weight: 600; margin-bottom: 4px; }
.detail-location { font-size: 14px; color: var(--gray-muted); }

.detail-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-border); }
.detail-price { font-size: 28px; font-weight: 600; color: var(--brand-dark); }
.detail-price-sub { font-size: 15px; color: var(--gray-muted); }
.detail-avail { margin-left: auto; font-size: 13px; background: var(--brand-light); color: var(--brand-text); padding: 3px 10px; border-radius: 4px; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 1.5rem; }
.stat-box { background: var(--gray-bg); border-radius: var(--radius-md); padding: 12px; text-align: center; }
.stat-val { display: block; font-size: 20px; font-weight: 600; }
.stat-label { display: block; font-size: 11px; color: var(--gray-muted); margin-top: 2px; }

.detail-desc { margin-bottom: 1.5rem; }
.detail-desc h2 { font-size: 16px; font-weight: 600; margin-bottom: 0.5rem; }
.detail-desc p { font-size: 15px; line-height: 1.7; color: #333; }

.amenities-section h2 { font-size: 16px; font-weight: 600; margin-bottom: 0.75rem; }
.amenities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; }
.amenity-item { font-size: 14px; color: #444; }

/* ---- Sidebar ---- */
.inquiry-card { background: #fff; border: 1px solid var(--gray-border); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: 76px; }
.inquiry-card h2 { font-size: 17px; font-weight: 600; margin-bottom: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
label { font-size: 13px; font-weight: 500; }
.optional { font-weight: 400; color: var(--gray-muted); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
    padding: 8px 12px; border: 1px solid var(--gray-border); border-radius: var(--radius-md);
    font-size: 14px; font-family: inherit; transition: border-color 0.15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--brand-mid); box-shadow: 0 0 0 3px rgba(176,58,64,0.15); }
textarea { resize: vertical; }

.btn-primary { padding: 10px 20px; background: var(--brand-dark); color: #fff; border: none; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-primary:hover { background: #134835; }
.btn-full { width: 100%; }

.form-errors { background: #fcebeb; border: 1px solid #f09595; border-radius: var(--radius-md); padding: 10px 14px; font-size: 13px; color: #a32d2d; list-style: disc; list-style-position: inside; margin-bottom: 1rem; }
.form-success { background: var(--brand-light); border: 1px solid #D87D82; border-radius: var(--radius-md); padding: 14px; font-size: 14px; color: var(--brand-text); }

.sidebar-contact { border-top: 1px solid var(--gray-border); margin-top: 1rem; padding-top: 1rem; text-align: center; font-size: 13px; color: var(--gray-muted); }
.sidebar-phone { display: block; font-size: 17px; font-weight: 600; color: var(--brand-dark); margin-top: 4px; }

/* ---- Footer ---- */
.site-footer { background: #111; color: rgba(255,255,255,0.7); margin-top: 4rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem }
.footer-brand .logo { color: #fff; font-size: 16px; }
.footer-brand p { font-size: 13px; margin-top: 6px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-contact a { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem 0; font-size: 12px; color: rgba(255,255,255,0.35); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .detail-layout { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; gap: 1rem; }
    .inquiry-card { position: static; }
    .lead-photo img { height: 250px; }
    .site-nav { display: none; }
}
