/**
 * Index Page Specific Styles
 */

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    margin-top: 80px;
}

.hero-slide {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 4rem 0 3rem;
    z-index: 2;
}

.hero-content h1,
.hero-content h2 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
}

.hero-content p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* Owl Carousel Custom Styles for Hero */
.hero-slider .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9) !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px !important;
    line-height: 50px !important;
    transition: all 0.3s ease;
    color: var(--primary-color) !important;
}

.hero-slider .owl-nav button:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-50%) scale(1.1);
}

.hero-slider .owl-nav .owl-prev {
    left: 20px;
}

.hero-slider .owl-nav .owl-next {
    right: 20px;
}

.hero-slider .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-slider .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s ease;
}

.hero-slider .owl-dot.active,
.hero-slider .owl-dot:hover {
    background-color: white !important;
    width: 30px;
    border-radius: 6px;
}

/* ===================================
   SEARCH FORM SECTION
   =================================== */
.search-section {
    position: relative;
    z-index: 10;
}

.search-form .form-control,
.search-form .form-select {
    background-color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-form .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

#distance {
    font-weight: bold;
}

/* ===================================
   STATISTICS SECTION
   =================================== */
.stat-card {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-number {
    line-height: 1;
    margin: 1rem 0;
}

.stat-icon {
    opacity: 0.8;
}

/* Counter Animation */
.stat-number[data-counter] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.stat-number.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   PROPERTIES CAROUSEL
   =================================== */
.properties-slider {
    padding: 0 15px;
}

.property-card {
    padding: 15px;
}

.property-card .card {
    transition: all 0.3s ease;
}

.property-card .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.property-details .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

/* Owl Carousel Custom for Properties */
.properties-slider .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color) !important;
    color: white !important;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px !important;
    transition: all 0.3s ease;
}

.properties-slider .owl-nav button:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-50%) scale(1.1);
}

.properties-slider .owl-nav .owl-prev {
    left: -20px;
}

.properties-slider .owl-nav .owl-next {
    right: -20px;
}

.properties-slider .owl-dots {
    text-align: center;
    margin-top: 2rem;
}

/* ===================================
   REGION SECTION
   =================================== */
.region-section {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */
@media (max-width: 1200px) {
    .properties-slider .owl-nav button {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        height: 400px;
    }

    .hero-content {
        padding: 2rem 0 1.5rem;
    }

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

    .hero-slider .owl-nav button {
        display: none !important;
    }

    .stat-card {
        margin-bottom: 1rem;
    }
}

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

    .search-form .col {
        min-width: 100%;
    }

    .stat-number {
        font-size: 2.5rem !important;
    }
}
