/**
 * 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: flex-start;
    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);
    
    min-height: 600px;
}

.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%;
    
    background-color: var(--hero-overlay-color, #000);
    opacity: var(--hero-overlay-opacity, 0.4);
    z-index: 2;
    pointer-events: none;
}

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

.hero-single-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Disable fixed background on mobile — causes iOS/Android zoom-out glitch */
@media (max-width: 1024px) {
    .hero-single-image {
        background-attachment: scroll;
    }
}

.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;
}

.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-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

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

@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: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.hero-btn.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn.primary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-btn.secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.hero-btn.secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-content-wrapper .property-search-form {
    background-color: rgba(255, 255, 255, 0.85); 
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 
        0 20px 40px -10px rgba(0, 0, 0, 0.3); 
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4); 
    padding: 30px;
    border-radius: var(--radius-xl, 1rem); 
    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);
}

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }

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

@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;
    }

    
    .filter-fields-row {
        gap: 10px;
    }
    .hero-search-container {
        padding-top: 60px;
    }
}

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

.property-search-wrapper.referenced-filter {
    
    padding: 30px;
    width: 100%;
    max-width: 1240px;
    
    margin: 0 auto;
    border-radius: 8px;
    
}

.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); 
    border-radius: 12px; 
    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); 
    transform: translateY(-1px);
}

.filter-box label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #6b7280; 
    text-transform: uppercase;
    letter-spacing: 0.8px; 
    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; 
    color: #111827;
    font-weight: 500; 
    padding: 0;
    margin: 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.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;
}

.filter-box select option {
    background-color: #ffffff;
    color: #111827;
    font-size: 1.05rem;
    padding: 12px;
}

@-moz-document url-prefix() {
    .filter-box select {
        color: #111827;
        text-shadow: 0 0 0 #111827;
    }
}

.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-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #111827;
    font-weight: 500;
}

.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; 
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); 
    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);
}

@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;
    }
}

/* =========================================
   INLINE FLAT FILTER (STYLE 2)
   ========================================= */

.property-search-wrapper.style-2-filter {
    background: var(--hero-style2-bg-color, #ffffff);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.search-inline-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.inline-filter-group {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 10px 20px;
}

.inline-filter-group input,
.inline-filter-group select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #4b5563;
    outline: none;
    padding: 5px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.inline-filter-group input::placeholder {
    color: #9ca3af;
}

/* Location Group */
.group-location .inline-filter-icon {
    font-size: 1.25rem;
    color: #4b5563;
    margin-right: 15px;
}

/* Purpose Group */
.group-purpose 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 5px center;
    background-size: 12px;
    padding-right: 25px;
}

/* Price Group */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.price-inputs input {
    width: 45%;
    text-align: center;
}
.price-dash {
    color: #9ca3af;
}

/* Vertical Separators */
.inline-separator {
    width: 1px;
    height: 40px;
    background-color: #e5e7eb;
}

/* Submit Button */
.inline-submit-group {
    padding-left: 10px;
}

.inline-search-btn {
    background-color: var(--hero-style2-btn-color, #ff4d6d);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inline-search-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .search-inline-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .inline-filter-group {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
        padding: 15px 10px;
    }

    .inline-separator {
        display: none;
    }

    .inline-submit-group {
        width: 100%;
        padding: 0;
        margin-top: 10px;
    }

    .inline-search-btn {
        width: 100%;
        border-radius: 6px;
    }
}


/* ============================================================
   SEARCH FORM: STYLE 3 (Floating Minimal Pill)
   ============================================================ */
.hero-search-style-3 {
    max-width: 600px;
    margin: 0 auto;
}

.hero-search-style-3 .hero-search-form {
    display: flex;
    align-items: center;
    background-color: var(--hero-style3-bg-color, #ffffff);
    border-radius: 50px;
    padding: 8px 10px 8px 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.hero-search-style-3 .search-field-group {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-right: 20px;
    color: var(--hero-style3-text-color, #1f2937);
}

.hero-search-style-3 .search-field-group i {
    color: var(--hero-style3-text-color, #1f2937);
    opacity: 0.6;
    font-size: 1.1rem;
}

.hero-search-style-3 .keyword-field {
    flex: 1;
    border-right: 1px solid rgba(0,0,0,0.1);
}

.hero-search-style-3 .dropdown-field {
    padding-left: 20px;
}

.hero-search-style-3 input[type="text"],
.hero-search-style-3 select {
    background: transparent;
    border: none;
    font-size: 1rem;
    color: var(--hero-style3-text-color, #1f2937);
    outline: none;
    width: 100%;
    padding: 10px 0;
}

.hero-search-style-3 select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.hero-search-style-3 .search-submit {
    background-color: var(--hero-style3-btn-color, #3b82f6);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.hero-search-style-3 .search-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

@media (max-width: 768px) {
    .hero-search-style-3 .hero-search-form {
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
        gap: 15px;
    }

    .hero-search-style-3 .search-field-group {
        width: 100%;
        padding: 0;
    }

    .hero-search-style-3 .keyword-field {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding-bottom: 15px;
    }

    .hero-search-style-3 .search-submit {
        width: 100%;
        border-radius: 10px;
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ============================================================
   SEARCH FORM: STYLE 4 (Tabbed Glassmorphism Box)
   ============================================================ */
.hero-search-style-4 {
    max-width: 900px;
    margin: 0 auto;
}

.hero-search-style-4 .glass-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 0; /* Tabs connect to the form body visually */
}

.hero-search-style-4 .glass-tab-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-search-style-4 .glass-tab-btn.active,
.hero-search-style-4 .glass-tab-btn:hover {
    background: var(--hero-style4-glass-bg, rgba(255,255,255,0.8));
    color: var(--hero-style4-active-tab, #10b981);
}

.hero-search-style-4 .hero-search-form {
    background: var(--hero-style4-glass-bg, rgba(255,255,255,0.8));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 12px 12px 12px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.hero-search-style-4 .glass-form-body {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.hero-search-style-4 .glass-field {
    flex: 1;
    min-width: 200px;
}

.hero-search-style-4 .glass-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-search-style-4 .input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.hero-search-style-4 .input-wrap:focus-within {
    background: #ffffff;
    border-color: var(--hero-style4-active-tab, #10b981);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.hero-search-style-4 .input-wrap i {
    color: var(--hero-style4-active-tab, #10b981);
    margin-right: 12px;
    font-size: 1.1rem;
}

.hero-search-style-4 input[type="text"],
.hero-search-style-4 select {
    background: transparent;
    border: none;
    font-size: 1rem;
    color: #1f2937;
    outline: none;
    width: 100%;
}

.hero-search-style-4 select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.hero-search-style-4 .glass-submit {
    flex: 0 0 auto;
}

.hero-search-style-4 .search-submit-btn {
    background-color: var(--hero-style4-btn-color, #10b981);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%; /* Match height of input fields */
}

.hero-search-style-4 .search-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
    .hero-search-style-4 .glass-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px; /* For scrollbar if it appears */
        border-radius: 12px 12px 0 0;
    }
    
    .hero-search-style-4 .hero-search-form {
        border-radius: 0 0 12px 12px;
    }
    
    .hero-search-style-4 .glass-field,
    .hero-search-style-4 .glass-submit {
        flex: 1 1 100%;
    }
    
    .hero-search-style-4 .search-submit-btn {
        width: 100%;
        justify-content: center;
    }
}
/* ============================================================
   SEARCH FORM: STYLE 5 (Dark Mode Neon Floating Bar)
   ============================================================ */
.hero-search-style-5 {
    max-width: 1050px;
    margin: 0 auto;
}

.hero-search-style-5 .hero-search-form {
    display: flex;
    align-items: center;
    background: rgba(10, 10, 20, 0.85);
    border: 1px solid var(--hero-style5-glow-color, #8b5cf6);
    border-radius: 16px;
    padding: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.25),
        0 0 60px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.05);
    gap: 0;
}

.hero-search-style-5 .neon-field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 8px 20px;
    color: var(--hero-style5-text-color, #d8b4fe);
    min-width: 0;
}

.hero-search-style-5 .neon-field i {
    color: var(--hero-style5-glow-color, #8b5cf6);
    font-size: 1rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px var(--hero-style5-glow-color, #8b5cf6));
}

.hero-search-style-5 .neon-field input[type="text"],
.hero-search-style-5 .neon-field input[type="number"],
.hero-search-style-5 .neon-field select {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--hero-style5-text-color, #d8b4fe);
    width: 100%;
    min-width: 80px;
}

.hero-search-style-5 .neon-field select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.hero-search-style-5 .neon-field input::placeholder,
.hero-search-style-5 .neon-field select option {
    color: rgba(216, 180, 254, 0.5);
}

/* Style the option color for dark context */
.hero-search-style-5 .neon-field select option {
    background: #1a1a2e;
    color: #d8b4fe;
}

.hero-search-style-5 .price-range-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-search-style-5 .price-range-field input {
    max-width: 110px;
}

.hero-search-style-5 .price-sep {
    color: var(--hero-style5-glow-color, #8b5cf6);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-search-style-5 .neon-divider {
    width: 1px;
    height: 35px;
    background: var(--hero-style5-glow-color, #8b5cf6);
    opacity: 0.3;
    flex-shrink: 0;
}

.hero-search-style-5 .neon-submit-btn {
    background-color: var(--hero-style5-btn-color, #8b5cf6);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    margin-left: 8px;
}

.hero-search-style-5 .neon-submit-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.7), 0 0 60px rgba(139, 92, 246, 0.3);
}

@media (max-width: 900px) {
    .hero-search-style-5 .hero-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 20px;
    }
    
    .hero-search-style-5 .neon-divider {
        width: 100%;
        height: 1px;
    }
    
    .hero-search-style-5 .neon-field {
        padding: 12px 0;
    }
    
    .hero-search-style-5 .price-range-field input {
        max-width: 100%;
    }
    
    .hero-search-style-5 .neon-submit-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ============================================================
   MOBILE RESPONSIVE — ALL HERO SEARCH STYLES
   ============================================================ */

/* ---- Hero Section Base ---- */
@media (max-width: 768px) {
    .vesta-hero-section {
        height: auto;
        min-height: 580px;
        padding-bottom: 40px;
    }

    .hero-search-container {
        padding-top: 90px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 14px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 24px;
    }

    .hero-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-search-container {
        padding-top: 60px;
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }
}

/* ---- Style 1 (Grid Filter) ---- */
@media (max-width: 768px) {
    .property-search-wrapper.referenced-filter {
        padding: 20px 16px;
    }
}

/* ---- Style 2 (Inline Flat) ---- */
@media (max-width: 768px) {
    .property-search-wrapper.style-2-filter {
        padding: 8px;
        border-radius: 12px;
    }

    .inline-submit-group {
        width: 100%;
        padding: 8px;
    }

    .inline-search-btn {
        width: 100%;
        height: 48px;
        border-radius: 8px;
        font-size: 1.1rem;
    }
}

/* ---- Style 3 (Floating Pill) ---- */
@media (max-width: 600px) {
    .hero-search-style-3 {
        max-width: 100%;
        padding: 0 16px;
    }

    .hero-search-style-3 .hero-search-form {
        border-radius: 16px;
        padding: 18px;
    }

    .hero-search-style-3 .dropdown-field {
        padding-left: 0;
    }
}

/* ---- Style 4 (Tabbed Glassmorphism) — PRIMARY FOCUS ---- */
@media (max-width: 768px) {
    .hero-search-style-4 {
        max-width: 100%;
        padding: 0 12px;
    }

    .hero-search-style-4 .glass-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .hero-search-style-4 .glass-tabs::-webkit-scrollbar {
        display: none;
    }

    .hero-search-style-4 .glass-tab-btn {
        flex-shrink: 0;
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* Form body: 2-column grid on tablet */
    .hero-search-style-4 .hero-search-form {
        border-radius: 0 12px 12px 12px;
        padding: 20px 16px;
    }

    .hero-search-style-4 .glass-form-body {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        flex-wrap: unset;
    }

    .hero-search-style-4 .glass-field {
        flex: unset;
        min-width: 0;
    }

    /* Submit button spans full width */
    .hero-search-style-4 .glass-submit {
        grid-column: 1 / -1;
        flex: unset;
    }

    .hero-search-style-4 .search-submit-btn {
        width: 100%;
        justify-content: center;
        height: auto;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    /* Single column on very small phones */
    .hero-search-style-4 .glass-form-body {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-search-style-4 .glass-tab-btn {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .hero-search-style-4 .input-wrap {
        padding: 10px 12px;
    }

    .hero-search-style-4 .hero-search-form {
        padding: 16px 12px;
    }
}

/* ---- Style 5 (Neon Dark Bar) ---- */
@media (max-width: 768px) {
    .hero-search-style-5 {
        max-width: 100%;
        padding: 0 12px;
    }

    .hero-search-style-5 .hero-search-form {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 2px;
        border-radius: 16px;
    }

    .hero-search-style-5 .neon-divider {
        width: 100%;
        height: 1px;
    }

    .hero-search-style-5 .neon-field {
        padding: 12px 4px;
    }

    .hero-search-style-5 .price-range-field {
        flex-wrap: wrap;
        gap: 6px;
    }

    .hero-search-style-5 .price-range-field input {
        max-width: calc(50% - 16px);
    }

    .hero-search-style-5 .neon-submit-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 10px;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .hero-search-style-5 .neon-field input[type="text"],
    .hero-search-style-5 .neon-field select {
        font-size: 0.9rem;
    }
}
