
/**
 * TwinsRealEstate - Home Page Styles
 * Modern, responsive styling for the home page components
 */

/* ===== Hero Section ===== */
:root {
    --luxury-gold: #d4af37;
    --luxury-gold-transparent: rgba(212, 175, 55, 0.7);
}

.fullscreen-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    /* Prevent content jumping during loading */
    min-height: 100vh;
}

/* Loading state for hero section */
.hero-swiper:not(.swiper-initialized) {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-swiper.swiper-initialized {
    opacity: 1;
}

/* Smooth image loading states */
.hero-slide {
    background-color: #1a1a1a; /* Fallback color during image loading */
    will-change: background-image; /* Optimize for background image changes */
}

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

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    /* Smooth transition for background changes */
    transition: background-image 0.3s ease;
}

/* Light mode: Lighter overlay, Dark mode: Darker overlay */
.hero-slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Light mode: Subtle overlay to preserve image brightness */
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.12) 0%, 
        rgba(0, 0, 0, 0.08) 30%, 
        rgba(0, 0, 0, 0.18) 60%, 
        rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

/* Dark mode: Stronger overlay for contrast */
[data-theme="dark"] .hero-slide .overlay {
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.28) 30%, 
        rgba(0, 0, 0, 0.5) 60%, 
        rgba(0, 0, 0, 0.75) 100%);
}

/* Gold accent line */
.hero-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--luxury-gold) 50%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Default state is now visible for SEO and no-JS experience */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    /* Prevent layout shift during loading */
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Only hide content via JS for transition effects */
.hero-content.transitioning {
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    position: relative;
}

/* Gold accent for title */
.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--luxury-gold);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.8rem;
    max-width: 650px;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-price {
    display: inline-block;
    background-color: rgba(0, 123, 255, 0.8);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-features {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-features .feature {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.hero-features .feature i {
    font-size: 0.85rem;
    color: var(--luxury-gold);
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-cta .btn {
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-cta .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-cta .btn-primary:hover {
    background: linear-gradient(135deg, #0069d9, #004494);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.hero-cta .btn-outline-light {
    border-width: 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border-color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.hero-cta .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border-color: white;
}

.hero-cta .btn-outline-light.btn-favorite {
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border-color: rgba(255, 255, 255, 0.8);
    min-width: 110px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero-cta .btn-outline-light.btn-favorite:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.hero-cta .btn-outline-light.btn-favorite.favorited {
    background-color: rgba(255, 71, 87, 0.2);
    border-color: #ff4757;
}

.hero-cta .btn-outline-light.btn-favorite.favorited i {
    color: #ff4757;
}

/* Map explore button styling */
.hero-cta .btn-map-explore {
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border-color: rgba(255, 255, 255, 0.8);
    min-width: 140px;
}

.hero-cta .btn-map-explore i {
    font-size: 1rem;
}

.hero-cta .btn-map-explore:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.hero-cta a.btn-outline-light {
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border-color: rgba(255, 255, 255, 0.8);
    border-width: 2px;
    font-weight: 600;
    min-width: 110px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero-cta a.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border-color: white;
}

.hero-cta a.btn-outline-light i,
.hero-cta .btn-outline-light.btn-favorite i {
    margin-right: 6px;
}

/* Swiper Navigation & Pagination */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.5rem;
    font-weight: bold;
}

.swiper-pagination {
    bottom: 30px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
    background: var(--luxury-gold);
    transform: scale(1.3);
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: #fff;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.scroll-down a:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-15px) translateX(-50%);
    }
    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

/* Responsive Styles */
@media (max-width: 1399.98px) {
    .hero-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-price {
        font-size: 1.3rem;
    }
    
    .hero-features {
        gap: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-features {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-features {
        width: 100%;
    }
}

@media (max-width: 399.98px) {
    .hero-title {
        font-size: 1.6rem;
    }
}

@media (min-width: 576px) {
    .hero-cta .btn {
        min-width: 160px;
    }
    
    .hero-cta .btn-primary {
        padding: 0.75rem 1.5rem;
    }
    
    .hero-cta .btn-outline-light.btn-favorite,
    .hero-cta a.btn-outline-light {
        padding: 0.75rem 1.5rem;
    }
}

/* ==========================================================================
   ULTRA-BLACK DARK MODE - HOME PAGE
   ========================================================================== */

[data-theme="dark"] .fullscreen-hero {
    background-color: #000000 !important;
}

[data-theme="dark"] .hero-slide {
    background-color: #000000 !important;
}

[data-theme="dark"] .hero-content {
    color: #ffffff !important;
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .hero-features,
[data-theme="dark"] .hero-features .feature {
    color: #ffffff !important;
}

[data-theme="dark"] .swiper-button-next,
[data-theme="dark"] .swiper-button-prev {
    background-color: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid #2a2a2a !important;
}

[data-theme="dark"] .swiper-button-next:hover,
[data-theme="dark"] .swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.95) !important;
    border-color: #ffffff !important;
}

[data-theme="dark"] .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4) !important;
}

[data-theme="dark"] .swiper-pagination-bullet-active {
    background: var(--luxury-gold) !important;
}

[data-theme="dark"] .scroll-down a {
    background-color: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid #2a2a2a !important;
    color: #ffffff !important;
}

[data-theme="dark"] .scroll-down a:hover {
    background-color: rgba(0, 0, 0, 0.95) !important;
    border-color: #ffffff !important;
} 
