/**
 * Real Estate Theme - Hero Section Styles
 * File: assets/css/hero.css
 */

.vesta-hero-section {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--hero-margin-top, 0);
    margin-bottom: var(--hero-margin-bottom, 0);
    padding-top: var(--hero-padding-top, 0);
    padding-bottom: var(--hero-padding-bottom, 0);
    /* Improve potential CLS */
    min-height: 600px;
}

/* Background Layers */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Apply customizer color and opacity */
    background-color: var(--hero-overlay-color, #000);
    opacity: var(--hero-overlay-opacity, 0.4);
    z-index: 2;
    pointer-events: none;
}

/* Placholder */
.hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.2rem;
    background-color: #f3f4f6;
    width: 100%;
    height: 100%;
}

/* Single Image */
.hero-single-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Optional Parallax feel */
    background-attachment: fixed;
}

/* Sliders */
.hero-slider {
    width: 100%;
    height: 100%;
}

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

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

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

/* Swiper Customization */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.vesta-hero-section:hover .hero-slider .swiper-button-next,
.vesta-hero-section:hover .hero-slider .swiper-button-prev {
    opacity: 1;
}

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

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: white;
    color: var(--primary-color);
}

.hero-slider .swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
    width: 10px;
    height: 10px;
    transition: all 0.3s;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
    width: 20px;
    border-radius: 5px;
    background-color: var(--primary-color);
}

/* Hero Content (Search Form & Title) */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 20px;
}

.hero-search-container {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

/* Keyframes for simple entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    line-height: 1.1;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

/* Adjust Search Form for Hero (Premium Glassmorphism) */
.hero-content-wrapper .property-search-form {
    background-color: rgba(255, 255, 255, 0.85); /* More translucent for glass effect */
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 
        0 20px 40px -10px rgba(0, 0, 0, 0.3); /* Softer, multi-layered depth */
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4); /* Refined glass rim */
    padding: 30px;
    border-radius: var(--radius-xl, 1rem); /* Large smooth corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-content-wrapper .property-search-form:hover {
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1), 
        0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .vesta-hero-section {
        height: 600px;
    }

    .hero-title {
        font-size: 2.25rem;
        padding: 0 10px;
    }

    .hero-content-wrapper .property-search-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .vesta-hero-section {
        height: auto;
        min-height: 550px;
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .hero-content-wrapper .property-search-form {
        padding: 20px 15px;
    }

    /* Make search fields stack better on very small screens */
    .filter-fields-row {
        gap: 10px;
    }
}

/* =========================================
   REFERENCED GRID FILTER STYLES (EXACT MATCH)
   ========================================= */

.property-search-wrapper.referenced-filter {
    /* Removed background overlay */
    padding: 30px;
    width: 100%;
    max-width: 1240px;
    /* Wide container */
    margin: 0 auto;
    border-radius: 8px;
    /* Slight radius for wrapper if needed */
}

/* Base grid layout - explicitly NOT changed */
.filter-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.filter-box {
    background: rgba(255, 255, 255, 0.6); /* Soft translucent inner blocks */
    border-radius: 12px; /* Smoother inner corners */
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 70px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.7), 0 2px 5px rgba(0,0,0,0.02);
    transition: all 0.25s ease;
}

.filter-box:hover, .filter-box:focus-within {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Gentle lift on hover */
    transform: translateY(-1px);
}

.filter-box label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #6b7280; /* Slightly darker grey for better readability on glass */
    text-transform: uppercase;
    letter-spacing: 0.8px; /* Slightly wider tracking for premium feel */
    margin-bottom: 4px;
    display: block;
    transition: color 0.3s ease;
}

.filter-box:focus-within label {
    color: var(--primary-color);
}

.filter-box select,
.filter-box input[type="text"],
.filter-box input[type="number"] {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.05rem; /* Marginally larger for better presence */
    color: #111827;
    font-weight: 500; /* Medium weight for input text */
    padding: 0;
    margin: 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Custom Dropdown Arrow & Select Styling */
.filter-box select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236b7280%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 10px;
    padding-right: 20px;
}

/* Premium Styling for Native Dropdown Options */
.filter-box select option {
    background-color: #ffffff;
    color: #111827;
    font-size: 1.05rem;
    padding: 12px;
}

/* Optional styling for Firefox */
@-moz-document url-prefix() {
    .filter-box select {
        color: #111827;
        text-shadow: 0 0 0 #111827;
    }
}

/* Range Inputs styling to look like single text */
.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-inputs input {
    width: 30% !important;
}

.range-sep {
    font-size: 0.9rem;
    color: #6b7280;
}

.dropdown-arrow {
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-size: 0.65rem;
    color: #6b7280;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.filter-box:hover .dropdown-arrow {
    transform: translateY(2px);
}

/* More Options Mockup */
.more-options-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #111827;
    font-weight: 500;
}

/* Submit Button Row */
.search-submit-row {
    display: flex;
    justify-content: flex-end;
}

.search-btn-large {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color, var(--primary-color)) 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px; /* Matching the inner block borders */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Richer button shadow */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.search-btn-large:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.search-btn-large:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 1024px) {
    .filter-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .filter-grid-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .filter-box {
        min-height: 60px;
    }
}