/**
 * Divine Homes — Public Stylesheet
 * Phase 6
 *
 * Professional real estate agency styling.
 * Mobile-first responsive design.
 */

/* ==================================================================
   Reset & Base
   ================================================================== */

*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

:root {
    --primary: #0f3460;
    --primary-light: #1a4a80;
    --primary-dark: #0a2240;
    --accent: #e8a838;
    --accent-light: #f4c56a;
    --green: #27ae60;
    --red: #e74c3c;
    --dark: #1a1a2e;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #f8f9fb;
    --white: #fff;
    --border: #e5e7eb;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* ==================================================================
   Top Bar
   ================================================================== */

.top-bar {
    background: var(--primary-dark);
    color: #ccc;
    font-size: 0.82rem;
    padding: 0.45rem 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar a {
    color: #ccc;
}

.top-bar a:hover {
    color: var(--white);
}

.top-bar .top-contact span {
    margin-right: 1.25rem;
}

.top-bar .top-social {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.top-bar .top-social a {
    display: inline-flex;
    align-items: center;
    color: #ccc;
    transition: color 0.2s;
}

.top-bar .top-social a:hover {
    color: var(--white);
}

.top-bar .top-social a svg {
    width: 18px;
    height: 18px;
}

/* ==================================================================
   Header / Navbar
   ================================================================== */

.site-header {
    background: var(--white);
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo span {
    color: var(--accent);
}

.main-nav { display: flex; gap: 0.25rem; align-items: center; }

.main-nav a,
.main-nav .nav-item > a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 6px;
    transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active,
.main-nav .nav-item.active > a {
    background: var(--bg);
    color: var(--primary);
}

.main-nav a.admin-nav-btn {
    background: var(--primary);
    color: #ffffff !important;
    border-radius: 6px;
    padding: 0.45rem 0.95rem;
    font-weight: 600;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.main-nav a.admin-nav-btn:hover {
    background: #142d48;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.main-nav .nav-item {
    position: relative;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    z-index: 100;
    overflow: hidden;
}

.nav-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    white-space: nowrap;
    font-size: 0.92rem;
    border-radius: 0;
}

.nav-dropdown a:hover {
    background: var(--bg);
    color: var(--primary);
}

.main-nav .nav-item:hover .nav-dropdown,
.main-nav .nav-item:focus-within .nav-dropdown {
    display: block;
}

@media (max-width: 900px) {
    .nav-dropdown {
        position: static;
        box-shadow: none;
        border-color: transparent;
    }

    .main-nav.open .nav-dropdown {
        display: block;
    }
}

/* Mobile hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ==================================================================
   Hero Section
   ================================================================== */

.hero {
    position: relative;
    height: 550px;
    overflow: hidden;
    background: #1a1a2e;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,52,96,0.88) 0%, rgba(10,34,64,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 700px;
    padding: 0 1.5rem;
}

.hero-content .hero-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 0.25rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.hero-content .hero-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.hero-content .btn {
    font-size: 1rem;
    padding: 0.75rem 2rem;
}

/* Hero arrows */
.hero-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.25);
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.hero-arrow.prev { left: 1.5rem; }
.hero-arrow.next { right: 1.5rem; }

/* Hero dots */
.hero-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%; transform: translateX(-50%);
    display: flex; gap: 0.5rem;
    z-index: 10;
}

.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.hero-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* ==================================================================
   Search Bar
   ================================================================== */

.search-bar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem;
    margin: -2.5rem auto 0;
    position: relative;
    z-index: 20;
    max-width: 960px;
}

.search-bar form {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-bar .input-group {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.search-bar .input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-bar input,
.search-bar select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border var(--transition);
}

.search-bar input:focus,
.search-bar select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15,52,96,0.1);
}

.search-bar .btn-search {
    flex-shrink: 0;
    align-self: flex-end;
}

/* ==================================================================
   Property Cards
   ================================================================== */

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.property-card .card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #e5e7eb;
}

.property-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card:hover .card-img img {
    transform: scale(1.05);
}

.card-img .card-badge {
    position: absolute;
    top: 10px; left: 10px;
    padding: 0.2rem 0.7rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
}

.card-badge.featured { background: var(--accent); color: var(--dark); }
.card-badge.top-pick { background: var(--primary); }
.card-badge.sale { background: var(--green); }
.card-badge.rent { background: #2980b9; }

.card-img .card-price {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.75);
    color: var(--white);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
}

.property-card .card-body {
    padding: 1rem;
}

.card-body .card-category {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.25rem;
}

.card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.card-body h3 a {
    color: inherit;
}

.card-body h3 a:hover {
    color: var(--primary);
}

.card-body .card-location {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.card-body .card-meta {
    display: flex;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-light);
}

.card-body .card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ==================================================================
   Buttons
   ================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white);
}

.btn-accent {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 0.85rem 2.25rem;
    font-size: 1.05rem;
}

/* ==================================================================
   Featured Section (alt background)
   ================================================================== */

.section.alt-bg {
    background: var(--primary);
    color: var(--white);
}

.section.alt-bg .section-header h2 { color: var(--white); }
.section.alt-bg .section-header p { color: rgba(255,255,255,0.75); }

/* ==================================================================
   CTA Banner
   ================================================================== */

.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 3.5rem 0;
}

.cta-banner h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

/* ==================================================================
   Blog Cards
   ================================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.blog-card .card-img {
    height: 180px;
    background: #e5e7eb;
}

.blog-card .card-img img {
    width: 100%; height: 100%; object-fit: cover;
}

.blog-card .card-body {
    padding: 1.15rem;
}

.blog-card .card-body .blog-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.blog-card .card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-card .card-body h3 a { color: var(--dark); }
.blog-card .card-body h3 a:hover { color: var(--primary); }

.blog-card .card-body p {
    font-size: 0.88rem;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================================================================
   Pagination
   ================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2.5rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--white);
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    font-weight: 700;
}

.pagination .disabled {
    color: var(--text-muted);
    pointer-events: none;
}

/* ==================================================================
   Property Detail Page
   ================================================================== */

.property-gallery {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #e5e7eb;
    margin-bottom: 2rem;
}

.property-gallery .gallery-main {
    height: 450px;
}

.property-gallery .gallery-main img {
    width: 100%; height: 100%; object-fit: cover;
}

.property-gallery .gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--white);
    overflow-x: auto;
}

.property-gallery .gallery-thumbs .thumb {
    width: 80px; height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    opacity: 0.65;
    transition: all var(--transition);
}

.property-gallery .gallery-thumbs .thumb:hover,
.property-gallery .gallery-thumbs .thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

.property-gallery .gallery-thumbs .thumb img {
    width: 100%; height: 100%; object-fit: cover;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
}

.lightbox .lb-close {
    position: absolute;
    top: 1.5rem; right: 2rem;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
}

.lightbox .lb-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.lightbox .lb-prev { left: 1.5rem; }
.lightbox .lb-next { right: 1.5rem; }

/* Property info layout */
.property-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.property-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.35rem;
}

.property-info .prop-location {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.property-info .prop-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.property-info .prop-meta-grid {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.property-info .prop-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.property-info .prop-meta-item strong {
    color: var(--dark);
}

.property-info .prop-description {
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.property-info .prop-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.property-info .prop-features .feature-tag {
    background: var(--bg);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-light);
    border: 1px solid var(--border);
}

/* Sidebar inquiry card */
.inquiry-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}

.inquiry-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.inquiry-card .form-group {
    margin-bottom: 0.85rem;
}

.inquiry-card label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.inquiry-card input,
.inquiry-card textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border var(--transition);
}

.inquiry-card input:focus,
.inquiry-card textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.inquiry-card textarea {
    resize: vertical;
    min-height: 90px;
}

.form-message {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
}

.form-message.success {
    background: #eafaf1;
    color: var(--green);
}

.form-message.error {
    background: #fef2f2;
    color: var(--red);
}

/* Related properties */
.related-section {
    margin-top: 3rem;
}

/* ==================================================================
   About Page
   ================================================================== */

.about-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.about-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.about-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
}

.about-card .about-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ==================================================================
   Contact Page
   ================================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.contact-form-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.contact-form-card .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form-card .form-row .form-group {
    flex: 1;
}

.contact-form-card .form-group {
    margin-bottom: 1rem;
}

.contact-form-card label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.contact-form-card input,
.contact-form-card textarea,
.contact-form-card select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.92rem;
    font-family: inherit;
    transition: border var(--transition);
}

.contact-form-card input:focus,
.contact-form-card textarea:focus,
.contact-form-card select:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form-card textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-info-sidebar .info-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-card .info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.info-card p {
    font-size: 0.88rem;
    color: var(--text-light);
}

/* ==================================================================
   Search Results Page
   ================================================================== */

.search-page-hero {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
}

.search-page-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.search-page-hero p {
    opacity: 0.85;
}

.search-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-results-info .results-count {
    font-size: 0.95rem;
    color: var(--text-light);
}

.search-results-info select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
}

.no-results {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
}

.no-results h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* ==================================================================
   Blog Detail
   ================================================================== */

.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
}

.blog-content article h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-content .blog-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.blog-content .blog-body {
    line-height: 1.85;
    color: var(--text);
    font-size: 1.02rem;
}

.blog-content .blog-body h2,
.blog-content .blog-body h3 {
    color: var(--dark);
    margin: 1.75rem 0 0.75rem;
}

.blog-content .blog-body img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.blog-content .blog-body p {
    margin-bottom: 1rem;
}

.blog-content .blog-body ul,
.blog-content .blog-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    list-style: disc;
}

.blog-content .blog-body ol { list-style: decimal; }

.blog-content .blog-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 0.75rem 1.25rem;
    margin: 1.25rem 0;
    background: var(--bg);
    font-style: italic;
    color: var(--text-light);
}

.blog-sidebar .sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-sidebar .sidebar-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.blog-sidebar .category-list li {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
}

.blog-sidebar .category-list li:last-child {
    border-bottom: none;
}

.blog-sidebar .category-list a {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
}

.blog-sidebar .category-list a:hover { color: var(--primary); }

/* ==================================================================
   Footer
   ================================================================== */

.site-footer {
    background: var(--dark);
    color: #bbb;
    padding: 3.5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: #bbb;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-col .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-col .footer-contact-item span:first-child {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    font-size: 0.82rem;
    color: #888;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-social a {
    color: #ccc;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--white);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

/* ==================================================================
   Alert Messages
   ================================================================== */

.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background: #eafaf1;
    color: var(--green);
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #fef2f2;
    color: var(--red);
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #eaf2f8;
    color: var(--primary);
    border: 1px solid #bee0eb;
}

/* ==================================================================
   Honeypot (hidden from humans)
   ================================================================== */

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ==================================================================
   Loading Spinner
   ================================================================== */

.spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================================================================
   Responsive
   ================================================================== */

@media (max-width: 1024px) {
    .property-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .property-detail-layout { grid-template-columns: 1fr; }
    .blog-detail-layout { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }

    .hero { height: 420px; }
    .hero-content h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 0.75rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .main-nav.open { display: flex; }

    .main-nav a {
        padding: 0.7rem 1rem;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .property-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .hero { height: 350px; }
    .hero-content h2 { font-size: 1.6rem; }
    .hero-content .hero-price { font-size: 1.2rem; }
    .hero-arrow { width: 36px; height: 36px; font-size: 1rem; }

    .search-bar { margin-top: -1.5rem; }
    .search-bar form { flex-direction: column; }
    .search-bar .btn-search { width: 100%; }

    .property-gallery .gallery-main { height: 280px; }

    .top-bar { display: none; }
}

@media (max-width: 480px) {
    .section { padding: 2.5rem 0; }
    .section-header h2 { font-size: 1.5rem; }
    .hero { height: 280px; }
    .hero-content h2 { font-size: 1.3rem; }

    .contact-form-card .form-row { flex-direction: column; }
    .inquiry-card { padding: 1rem; }
    .about-card { padding: 1.25rem; }
}

/* ==================================================================
   Skeleton Loaders (for AJAX content)
   ================================================================== */

.skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f0f0f0 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}

.skeleton-text {
    height: 14px;
    margin-bottom: 0.5rem;
    width: 100%;
}

.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }

.skeleton-circle {
    border-radius: 50%;
}

.skeleton-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==================================================================
   Focus Visible (Accessibility)
   ================================================================== */

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(15,52,96,0.2);
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    z-index: 10001;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Visually hidden but accessible */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ==================================================================
   Print Styles
   ================================================================== */

@media print {
    .site-header,
    .top-bar,
    .site-footer,
    .hamburger,
    .search-bar,
    .cta-banner,
    .btn,
    .hero-arrow,
    .hero-dots {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .property-card,
    .blog-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
