/* ==========================================================================
   HOME PAGE STYLES - Premium Theme
   ========================================================================== */

/* Hero Slider Section */
.hero-slider {
    position: relative;
    margin-top: -80px; /* Overlap with header */
}

.hero-slider .carousel-item {
    height: 700px;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    animation-delay: 0.4s;
}

.hero-content .btn {
    animation-delay: 0.6s;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Carousel Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.4);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    opacity: 0.5;
}

.carousel-indicators button.active {
    opacity: 1;
    background-color: var(--accent);
}

/* ==========================================================================
   Search Form Section
   ========================================================================== */

.search-form-section {
    position: relative;
    margin-top: -50px; /* Overlap with hero */
    z-index: 10;
    margin-bottom: var(--spacing-xl);
}

.search-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.search-form-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.property-search-form .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.property-search-form .form-select,
.property-search-form .form-control {
    height: 50px;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
}

.property-search-form .form-select:focus,
.property-search-form .form-control:focus {
    border-color: var(--secondary);
}

.property-search-form .btn {
    height: 50px;
    font-weight: 600;
}

/* ==========================================================================
   Property Cards
   ========================================================================== */

.property-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.property-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 2;
}

.property-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.property-card:hover .property-overlay {
    opacity: 1;
}

.property-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-family: var(--font-accent);
}

.property-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    flex: 1;
}

.property-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.property-title a:hover {
    color: var(--secondary);
}

.property-location {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-location i {
    color: var(--secondary);
}

.property-features {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.property-features i {
    color: var(--primary);
    font-size: 0.875rem;
}

/* ==========================================================================
   Location Cards
   ========================================================================== */

.location-card {
    position: relative;
    height: 300px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.location-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.location-card:hover img {
    transform: scale(1.1);
}

.location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.location-overlay h4 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.location-overlay p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.location-overlay .btn {
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.location-card:hover .location-overlay .btn {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Blog Cards
   ========================================================================== */

.blog-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background-color: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.875rem;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.blog-title a:hover {
    color: var(--secondary);
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-link {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.blog-link:hover {
    color: var(--accent);
    gap: 0.75rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 991px) {
    .hero-slider .carousel-item {
        height: 550px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .search-form-card {
        padding: 2rem;
    }
    
    .search-form-section {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .hero-slider {
        margin-top: 0;
    }
    
    .hero-slider .carousel-item {
        height: 450px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-content .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .search-form-card {
        padding: 1.5rem;
    }
    
    .search-form-title {
        font-size: 1.5rem;
    }
    
    .property-features {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .location-card {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .hero-slider .carousel-item {
        height: 400px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .property-search-form .form-select,
    .property-search-form .form-control,
    .property-search-form .btn {
        height: 45px;
    }
}