/* Osentoski Realty & Auctioneering - Main Stylesheet */
:root {
    --primary: #1c3f93;
    --primary-light: #2b6cb0;
    --accent: #ee3523;
    --accent-dark: #d42a1a;
    --text: #1a202c;
    --text-light: #4a5568;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --footer-bg: #1a1a2e;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.1);
    --radius: 8px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.content-narrow { max-width: 800px; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); border-color: var(--accent-dark); }
.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); color: var(--white); border-color: var(--white); }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ========== HEADER ========== */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    gap: 1rem;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 45px; width: auto; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1.1; letter-spacing: -0.5px; }
.logo-sub { font-size: 0.7rem; color: var(--accent); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

.main-nav { display: flex; gap: 0.25rem; }
.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius);
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--bg-alt); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.header-phone:hover { background: var(--primary-light); color: var(--white); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(rgba(15,43,107,0.35), rgba(28,63,147,0.45)), url('/assets/images/hero-banner.jpg') center center / cover no-repeat;
    color: var(--white);
    padding: 6rem 1.5rem 5rem;
    text-align: center;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 2.75rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.15; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.hero-tagline { font-size: 1.1rem; opacity: 0.85; max-width: 600px; margin: 0 auto 2rem; }

.hero-search { max-width: 600px; margin: 0 auto 2rem; }
.hero-search-inner {
    display: flex;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
}
.hero-search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}
.hero-search-input::placeholder { color: rgba(255,255,255,0.6); }
.hero-search-btn {
    padding: 1rem 1.5rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}
.hero-search-btn:hover { background: var(--accent-dark); }


/* ========== PAGE HERO (subpages) ========== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0f2b6b 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}
.page-hero h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.85; font-size: 1.05rem; }
.page-hero-sm { padding: 2rem 0; }
.page-hero-sm h1 { font-size: 1.75rem; }

/* ========== BREADCRUMB ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: 0.65rem; opacity: 0.5; }
.breadcrumb span { opacity: 0.9; }

/* ========== SECTIONS ========== */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.section-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; }
.section-cta { text-align: center; margin-top: 2rem; }

/* ========== PROPERTY CARDS ========== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}
.property-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }

.property-image { height: 220px; background: var(--bg-alt); overflow: hidden; }
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.property-card:hover .property-image img { transform: scale(1.05); }

.property-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.badge-pending { background: #ed8936; color: var(--white); }
.badge-sold { background: var(--accent); color: var(--white); }
.badge-active { background: var(--primary); color: var(--white); }
.badge-rental { background: var(--primary); color: var(--white); }

.property-info { padding: 1rem 1.25rem; }
.property-price { font-size: 1.35rem; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; }
.property-address { font-size: 0.95rem; font-weight: 500; color: var(--text); }
.property-city { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }
.property-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}
.property-meta span { display: flex; align-items: center; gap: 0.25rem; }
.property-agent { font-size: 0.8rem; color: var(--primary); margin-top: 0.5rem; font-weight: 500; }

/* ========== AGENTS GRID ========== */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
.agent-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    padding: 2rem 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.agent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }

.agent-photo { margin-bottom: 1rem; }
.agent-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
}
.agent-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
    color: var(--text-light);
}
.agent-photo-placeholder.large { width: 150px; height: 150px; font-size: 3rem; }

.agent-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.agent-office { font-size: 0.85rem; color: var(--text-light); }
.agent-listings-count { font-size: 0.85rem; color: var(--primary); font-weight: 500; margin-top: 0.25rem; }

/* ========== AGENT ROSTER (full page) ========== */
.agents-roster { display: flex; flex-direction: column; gap: 2rem; }
.agent-roster-card {
    display: flex;
    gap: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.agent-roster-photo { flex-shrink: 0; }
.agent-roster-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
}
.agent-roster-info { flex: 1; }
.agent-roster-info h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.agent-roster-info h2 a { color: var(--text); }
.agent-roster-info h2 a:hover { color: var(--primary); }
.agent-bio-preview { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; margin: 0.75rem 0; }
.agent-roster-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

/* ========== AGENT HERO (per-agent page) ========== */
.agent-hero { background: var(--bg-alt); padding: 3rem 0; }
.agent-hero-inner { display: flex; align-items: center; gap: 2rem; }
.agent-hero-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
}
.agent-hero-info h1 { font-size: 2rem; margin-bottom: 0.25rem; }
.agent-hero-title { font-size: 1rem; color: var(--text-light); margin-bottom: 0.25rem; }
.agent-hero-office { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; }
.agent-hero-contact { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.agent-hero-count { font-size: 0.9rem; color: var(--primary); font-weight: 600; }

/* ========== SPECIALTIES ========== */
.specialties-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.specialty-tag {
    padding: 0.4rem 1rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========== ABOUT GRID ========== */
.about-grid { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
.about-content h2 { font-size: 1.75rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.about-lead { font-size: 1.1rem; font-weight: 500; color: var(--text); margin-bottom: 1rem; }
.about-content p { color: var(--text-light); line-height: 1.8; margin-bottom: 1rem; }

.about-stats { display: flex; flex-direction: column; gap: 1rem; }
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}
.stat-card i { font-size: 1.5rem; color: var(--primary); margin-bottom: 0.5rem; display: block; }
.stat-card strong { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.stat-card span { font-size: 0.85rem; color: var(--text-light); }

/* ========== OFFICES GRID ========== */
.offices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.office-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}
.office-icon { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.office-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.office-address { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0.75rem; }
.office-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
}
.office-phone:hover { background: var(--primary-light); color: var(--white); }

/* ========== AUCTION BANNER ========== */
.auction-banner {
    background: linear-gradient(135deg, var(--accent) 0%, #c41d10 100%);
    color: var(--white);
    padding: 3rem 0;
}
.auction-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.auction-icon { font-size: 3rem; opacity: 0.9; }
.auction-content h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.auction-content p { opacity: 0.9; }
.auction-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-left: auto; }

/* ========== REVIEWS CAROUSEL ========== */
.reviews-carousel { max-width: 700px; margin: 0 auto; position: relative; overflow: hidden; }
.reviews-track {
    display: flex;
    transition: transform 0.5s ease;
}
.review-card {
    flex: 0 0 100%;
    padding: 0 1rem;
}
.review-card > div,
.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}
.review-stars { color: #f6ad55; margin-bottom: 0.75rem; font-size: 1.1rem; }
.review-stars .empty { color: #e2e8f0; }
.review-text { font-size: 0.95rem; color: var(--text); line-height: 1.8; margin-bottom: 1rem; font-style: italic; }
.review-author strong { display: block; font-size: 0.95rem; }
.review-author span { font-size: 0.85rem; color: var(--text-light); }

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.carousel-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text);
}
.carousel-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.carousel-dots { display: flex; gap: 0.5rem; }
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.dot.active { background: var(--primary); }

/* ========== EXPERIENCE STATS ========== */
.experience-section {
    background: var(--primary);
    color: var(--white);
    padding: 3.5rem 0;
    text-align: center;
}
.experience-section h2 { font-size: 1.75rem; margin-bottom: 2rem; }
.experience-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}
.experience-stat { text-align: center; min-width: 120px; }
.stat-pre { font-size: 0.85rem; opacity: 0.7; }
.stat-value { font-size: 2.75rem; font-weight: 800; display: block; line-height: 1.1; margin: 0.25rem 0; }
.stat-post { font-size: 0.85rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 1px; }

/* ========== CTA STRIP ========== */
.cta-strip {
    background: var(--primary);
    color: var(--white);
    padding: 3.5rem 0;
    text-align: center;
}
.cta-strip h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.cta-strip p { opacity: 0.85; margin-bottom: 1.5rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ========== CONTENT PAGES ========== */
.content-page { padding: 3rem 0; }
.content-page h2 { font-size: 1.75rem; margin: 2rem 0 1rem; color: var(--primary); }
.content-page h2:first-child { margin-top: 0; }
.content-page p { margin-bottom: 1rem; color: var(--text-light); line-height: 1.8; }
.content-cta { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.content-cta h2 { color: var(--text); }
.content-cta .cta-actions { margin-top: 1rem; }

/* Steps */
.content-steps { margin: 2rem 0; }
.step-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}
.step-card:last-child { border-bottom: none; }
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text); }
.step-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; margin: 0; }

/* Property Types Grid (buying page) */
.property-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.property-type-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}
.property-type-card i { display: block; font-size: 1.5rem; color: var(--primary); margin-bottom: 0.5rem; }
.property-type-card span { font-size: 0.85rem; font-weight: 500; }

/* Selling Features */
.selling-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.feature-card i { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; display: block; }
.feature-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* Auction Callout (selling page) */
.auction-callout {
    display: flex;
    gap: 1.5rem;
    background: #fff5f4;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    align-items: start;
}
.auction-callout > i { font-size: 2rem; color: var(--accent); flex-shrink: 0; margin-top: 0.25rem; }
.auction-callout h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text); }
.auction-callout p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0.75rem; }

/* Service Areas */
.service-areas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.service-area-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}
.service-area-card i { color: var(--accent); }

/* ========== CONTACT PAGE ========== */
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; }
.contact-form-section h2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text); }
.contact-form-section > p { color: var(--text-light); margin-bottom: 1.5rem; }

.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.85rem; }
.contact-form input,
.contact-form select,
.contact-form textarea,
.sidebar-form input,
.sidebar-form textarea,
.filter-form input,
.filter-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: var(--white);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.sidebar-form input:focus,
.sidebar-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(28,63,147,0.1); }
.contact-form textarea, .sidebar-form textarea { min-height: 100px; resize: vertical; }

.contact-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-card, .contact-office-card, .contact-social {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.contact-info-card h3, .contact-office-card h3, .contact-social h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.contact-phone-lg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}
.contact-hours { font-size: 0.85rem; color: var(--text-light); margin-top: 0.5rem; }
.contact-office-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.25rem; }
.contact-office-card a { color: var(--primary); }

.form-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
}
.form-message.success { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ========== SEARCH PAGE ========== */
.search-page { min-height: calc(100vh - 80px); }
.search-layout { display: flex; }

.search-filters {
    width: 280px;
    flex-shrink: 0;
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
    position: sticky;
    top: 70px;
}
.filters-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.filters-header h2 { font-size: 1.1rem; }
.filters-close { display: none; background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--text-light); }

.filter-form { display: flex; flex-direction: column; gap: 1rem; }
.filter-group label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.search-results { flex: 1; padding: 1.5rem; }
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.results-info h1 { font-size: 1.5rem; font-weight: 700; }
.results-count { font-size: 0.9rem; color: var(--text-light); }
.filters-toggle { display: none; }

.search-map {
    height: 350px;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    background: var(--bg-alt);
}

/* ========== LISTING DETAIL ========== */
.listing-detail { padding: 2rem 0; }
.listing-layout { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; }

.listing-gallery { margin-bottom: 1.5rem; }
.gallery-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
}
.gallery-main img { width: 100%; height: 450px; object-fit: cover; display: block; }
.gallery-main.no-photo {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-light);
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.gallery-nav:hover { background: rgba(0,0,0,0.8); }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }
.gallery-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; }

.listing-header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1.5rem; }
.listing-price { font-size: 2rem; font-weight: 800; color: var(--primary); }
.listing-address { font-size: 1.1rem; color: var(--text-light); }
.listing-mls { font-size: 0.85rem; color: var(--text-light); margin-top: 0.25rem; }
.listing-status-badge {
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}
.listing-status-badge.badge-active { background: #ebf8ff; color: var(--primary); }
.listing-status-badge.badge-pending { background: #fefcbf; color: #975a16; }
.listing-status-badge.badge-sold { background: #fed7d7; color: #9b2c2c; }

.listing-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}
.listing-stat { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--text-light); }
.listing-stat strong { color: var(--text); }
.listing-stat i { color: var(--primary); }

.listing-section { margin-bottom: 2rem; }
.listing-section h3 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--text); }
.listing-description { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; }
.listing-features { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-alt);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text);
}
.feature-tag i { color: var(--primary); font-size: 0.75rem; }

.listing-map { height: 300px; border-radius: var(--radius); background: var(--bg-alt); }

/* Listing Sidebar */
.listing-sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}
.sidebar-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.sidebar-agent { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.sidebar-agent-photo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.sidebar-agent-photo.placeholder {
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}
.sidebar-agent strong a { color: var(--text); }
.sidebar-agent strong a:hover { color: var(--primary); }
.sidebar-agent p { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.sidebar-form { display: flex; flex-direction: column; gap: 0.75rem; }
.sidebar-form input, .sidebar-form textarea { font-size: 0.9rem; padding: 0.65rem 0.75rem; }

.booking-links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { font-size: 1.25rem; color: var(--text); margin-bottom: 0.5rem; }
.empty-state p { margin-bottom: 1.5rem; }

/* ========== FOOTER ========== */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,0.8); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.site-footer h3, .site-footer h4 { color: var(--white); margin-bottom: 1rem; }
.site-footer h3 { font-size: 1.2rem; }
.site-footer h4 { font-size: 0.95rem; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--white); }
.footer-brand p { font-size: 0.85rem; opacity: 0.7; line-height: 1.6; }
.footer-social { margin-top: 1rem; }
.footer-social a { font-size: 1.25rem; margin-right: 1rem; }
.footer-office { margin-bottom: 1rem; font-size: 0.85rem; line-height: 1.6; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.85rem; }
.footer-contact p { font-size: 0.85rem; margin-bottom: 0.5rem; }
.footer-contact i { width: 1.2rem; color: var(--accent); }
.footer-auctions a { color: var(--accent); font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; padding-top: 1.5rem; text-align: center; font-size: 0.8rem; opacity: 0.6; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .listing-layout { grid-template-columns: 1fr; }
    .listing-sidebar { position: static; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .auction-content { flex-direction: column; text-align: center; }
    .auction-actions { margin-left: 0; justify-content: center; }

    .search-filters {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        max-height: 100vh;
        z-index: 1100;
        transition: left 0.3s;
        box-shadow: var(--shadow-lg);
    }
    .search-filters.open { left: 0; }
    .filters-close { display: block; }
    .filters-toggle { display: inline-flex; }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .main-nav.open { display: flex; }
    .mobile-menu-btn { display: block; }
    .header-phone span { display: none; }

    .hero h1 { font-size: 2rem; }
    .hero { padding: 3.5rem 1rem 3rem; }

    .property-grid { grid-template-columns: 1fr; }
    .agents-grid { grid-template-columns: 1fr; }
    .offices-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .agent-hero-inner { flex-direction: column; text-align: center; }
    .agent-hero-contact { justify-content: center; }
    .agent-roster-card { flex-direction: column; text-align: center; }
    .agent-roster-actions { justify-content: center; }

    .cta-strip h2 { font-size: 1.5rem; }
    .experience-grid { gap: 2rem; }
    .stat-value { font-size: 2.25rem; }

    .gallery-main img { height: 280px; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .selling-features { grid-template-columns: 1fr; }

    .section { padding: 3rem 0; }
    .page-hero { padding: 2rem 0; }
    .page-hero h1 { font-size: 1.75rem; }
}

/* ========== PHOTO COMING SOON SVG ========== */
.property-image .no-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--bg-alt);
    color: var(--text-light);
    font-size: 2rem;
}
