/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
                url('/img/hero.jpg') center/cover no-repeat;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.hero .lead {
    font-size: 1.25rem;
    opacity: 0.85;
}

/* Search Form */
.search-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Search Tabs */
.search-tabs .nav-link {
    color: #555;
    background: transparent;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border: none;
}

.search-tabs .nav-link.active {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.08);
    border-bottom: 3px solid #0d6efd;
}

.search-tabs .nav-link:hover:not(.active) {
    color: #333;
    background: rgba(0, 0, 0, 0.04);
}

/* Property Cards */
.property-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.property-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.property-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.property-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.property-meta span + span::before {
    content: "\00b7";
    margin: 0 6px;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0d6efd;
}

.price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: #6c757d;
}

/* Search Results Header */
.results-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* City Hero */
.city-hero {
    position: relative;
}

.city-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.7));
}

.city-hero .container {
    position: relative;
    z-index: 1;
}

.text-shadow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Blog Content */
.blog-hero {
    position: relative;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.blog-content h2, .blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: 420px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .property-card .card-img-top {
        height: 180px;
    }

    .city-hero {
        height: 250px !important;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 380px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .search-card {
        margin: 0 -8px;
    }

    .blog-content {
        font-size: 1rem;
    }
}
