/* ==========================================================================
   Hero Carousel Styles (css/carousel.css)
   ========================================================================== */

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

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

/* 2. Slide Background Image */
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.75);
}

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

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

.hero-title-badge h1 {
    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 0;
}

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

/* 4. Thumbnail Carousel Preview (Bottom Right) */
.hero-controls-wrapper {
    position: absolute;
    bottom: 50px;
    right: 60px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-thumbs-swiper {
    width: 260px;
    height: 90px;
}

.thumb-slide {
    width: 110px !important;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumb-slide-active,
.thumb-slide:hover {
    opacity: 1;
    border-color: #2563eb;
    transform: scale(1.05);
}

.thumb-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 5. Navigation Arrow Controls */
.hero-arrow {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: #2563eb;
}

/* 6. Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-content {
        bottom: 160px;
        left: 20px;
        right: 20px;
    }

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

    .hero-controls-wrapper {
        bottom: 30px;
        right: 20px;
        left: 20px;
        justify-content: center;
    }
}

.hero-slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Default to Mobile Image */
    background-image: var(--bg-mobile);
}

/* Switch to Desktop Image on screens wider than 768px */
@media (min-width: 769px) {
    .hero-slide-bg {
        background-image: var(--bg-desktop);
    }
}

/* ==========================================================================
   Hero Content Slide Animations
   ========================================================================== */

/* Base hidden state for slide content elements */
.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;
}

/* Active Slide Entrance Animations */
.swiper-slide-active .animate-item {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays for Content Hierarchy */
.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; }

/* Optional Background Zoom Effect on Active Slide */
.hero-slide-bg {
    transition: transform 1.2s ease-out;
    transform: scale(1.08);
}

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

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

/* Base Button Styles */
.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;
}

/* Primary Button (View Project) */
.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);
}

/* Secondary Button (Download Brochure) */
.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);
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-btn {
        width: 50%;
    }
}