/**
 * 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: 40px;
    left: 100px;
    background-color: var(--overlay-surface-60);
    border: 6px solid var(--white);
    padding: 4rem 0 3rem;
    z-index: 2;
}

.hero-content h1,
.hero-content h2,
.hero-content p{
    color: var(--ink-600);
    margin-bottom: 1rem;
}

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

.hero-slider .owl-nav button:hover {
    background-color: var(--brand-primary) !important;
    color: var(--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: var(--overlay-surface-50) !important;
    transition: all 0.3s ease;
}

.hero-slider .owl-dot.active,
.hero-slider .owl-dot:hover {
    background-color: var(--white) !important;
    border-radius: 6px;
}
.hero-slider .owl-dot span {
    display: none !important;
}

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

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-15);
}

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

.stat-icon {
    opacity: 0.8;
}

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

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

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

.properties-slider .owl-item {
    display: flex;
}

.property-card {
    padding: 15px;
    display: flex;
    width: 100%;
}

.property-card .card {
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.property-card .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-20);
}

.property-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-card .card-title {
    min-height: 4.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    line-height: 1.5em;
}

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

.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(--brand-primary) !important;
    color: var(--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(--brand-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 {
    height: 612px;
    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;
    }
}
