/* Front page specific styles - Hero section and search */

/* HERO SECTION WITH BACKGROUND */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    /* Fallback background */
    background: linear-gradient(135deg, rgba(36, 93, 42, 0.5), rgba(74, 144, 164, 0.35));
}

/* Hero background with proper path */
.hero-section .hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(36, 93, 42, 0.15), rgba(74, 144, 164, 0.1)),
                url('../../img/strona-tyt-img-m.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(36, 93, 42, 0.15), rgba(74, 144, 164, 0.1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
    color: #fff !important;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    color: #fff !important;
    font-weight: 300;
}

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

/* SECTION FOOTER STYLES */
.section-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.section-footer .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: #245D2A;
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-footer .btn:hover {
    background: #1e4f23;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.no-properties-message {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    color: #6c757d;
}

.no-properties-message p {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.no-properties-message a {
    color: #245D2A;
    text-decoration: none;
    font-weight: 600;
}

.no-properties-message a:hover {
    text-decoration: underline;
}

/* Alternative hero with direct background */
.hero-section-with-bg {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: linear-gradient(135deg, rgba(36, 93, 42, 0.15), rgba(74, 144, 164, 0.1)),
                url('../../img/strona-tyt-img-m.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-section .hero-bg {
        background-attachment: scroll;
    }
    
    .hero-section-with-bg {
        background-attachment: scroll;
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .section-footer .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .no-properties-message {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section,
    .hero-section-with-bg {
        min-height: 50vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}
