
/* ==========================================================================
   HERO CAROUSEL
   ========================================================================== */

/* 1. Section Wrapper */
.hero-carousel-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    background: #000000;
    overflow: hidden;
}

.hero-swiper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 2. Slide Background */
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: var(--bg-mobile);
    filter: brightness(0.75);
    transform: scale(1.08);
    transition: transform 1.2s ease-out;
}

.swiper-slide-active .hero-slide-bg {
    transform: scale(1);
}

@media (min-width: 769px) {
    .hero-slide-bg {
        background-image: var(--bg-desktop);
    }
}

/* 3. Hero Content */
.hero-content {
    position: absolute;
    bottom: 80px;
    left: 60px;
    z-index: 10;
    max-width: 550px;
    color: #ffffff;
}

/* Property Badge */
.hero-title-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.42);
    color: #000000;
    padding: 10px 24px;
    border-radius: 4px;
    border-left: 6px solid #2563eb;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-title-badge h1,
.hero-title-badge h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-location {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 8px;
}

.hero-description {
    font-size: 1rem;
    color: #cbd5e1;
    margin: 0;
    font-weight: 400;
}

/* 4. Slide Animations */
.swiper-slide .animate-item {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.swiper-slide-active .animate-item {
    opacity: 1;
    transform: translateY(0);
}

.swiper-slide-active .delay-1 {
    transition-delay: 0.2s;
}

.swiper-slide-active .delay-2 {
    transition-delay: 0.4s;
}

.swiper-slide-active .delay-3 {
    transition-delay: 0.6s;
}

.swiper-slide-active .delay-4 {
    transition-delay: 0.8s;
}

/* 5. Hero CTA Buttons */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.hero-btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.hero-btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.hero-btn-secondary {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.hero-btn-secondary:hover {
    background-color: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.hero-btn-secondary svg {
    transition: transform 0.3s ease;
}

.hero-btn-secondary:hover svg {
    transform: translateY(2px);
}

/* 6. Centered Hero Pagination */
.hero-swiper .hero-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 30px;
    z-index: 50;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-swiper .hero-pagination .swiper-pagination-bullet {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin: 0;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0.5;
    cursor: pointer;
    transition: width 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.hero-swiper .hero-pagination .swiper-pagination-bullet:hover {
    opacity: 0.8;
}

.hero-swiper .hero-pagination .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 4px;
    opacity: 1;
    background: #ffffff;
}

/* 7. Responsive Styles */
@media (max-width: 768px) {

    .hero-content {
        bottom: 100px;
        left: 20px;
        right: 20px;
    }

    .hero-title-badge h1,
    .hero-title-badge h2 {
        font-size: 1.4rem;
    }

    .hero-location {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-swiper .hero-pagination {
        bottom: 20px;
        gap: 8px;
    }
}

@media (max-width: 640px) {

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hero-btn {
        width: auto;
        min-width: 180px;
    }
}

.hero-swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.hero-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.hero-swiper .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    /* Clip each slide's scaled background so the neighbouring
       slide image cannot bleed into the active slide. */
    overflow: hidden;
}