/**
 * Hero Search Box - Buscador integrado en el Hero
 * 
 * @package Canovas_Real_Estate
 * @since 1.0.0
 */

/* ===== Hero Layout con Search ===== */
.hero-with-search .hero-content-with-search {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

.hero-search-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-text-side {
    text-align: left;
}

.hero-text-side .hero-title {
    text-align: left;
}

.hero-text-side .hero-subtitle {
    text-align: left;
    max-width: 500px;
}

.hero-text-side .hero-buttons {
    justify-content: flex-start;
}

.hero-search-side {
    flex-shrink: 0;
}

/* ===== Hero Search Box - Versión Vertical ===== */
.hero-search-box {
    background: #173d55;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
}

.hero-search-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1E4E6C;
    margin: 0 0 20px 0;
    text-align: center;
    line-height: 1.3;
}

.hero-search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Campos */
.hero-search-box .hsf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-search-box .hsf-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #525252;
    margin: 0;
    padding: 0;
}

.hero-search-box .hsf-field label svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
    max-width: 16px;
    stroke: #1E4E6C;
    flex-shrink: 0;
}

.hero-search-box .hsf-field select,
.hero-search-box .hsf-field .hsf-date-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #262626;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.hero-search-box .hsf-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.hero-search-box .hsf-field select:focus,
.hero-search-box .hsf-field .hsf-date-input:focus {
    outline: none;
    border-color: #1E4E6C;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(30, 78, 108, 0.1);
}

/* Date inputs */
.hero-search-box .hsf-date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

/* Huéspedes */
.hero-search-box .hsf-guests-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #f9f9f9;
}

.hero-search-box .hsf-qty-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: 1.5px solid #a3a3a3;
    background: #fff;
    color: #525252;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.hero-search-box .hsf-qty-btn:hover:not(:disabled) {
    background: #1E4E6C;
    border-color: #1E4E6C;
    color: #fff;
}

.hero-search-box .hsf-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.hero-search-box .hsf-guests-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #262626;
    min-width: 40px;
    text-align: center;
}

/* Botón Submit */
.hero-search-box .hsf-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    margin-top: 8px;
    background: #173c55 !important;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgb(219 206 47 / 30%) !important;
    box-sizing: border-box;
}

.hero-search-box .hsf-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 80, 61, 0.4);
}

.hero-search-box .hsf-submit-btn svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .hero-search-layout {
        grid-template-columns: 1fr 360px;
        gap: 40px;
    }
    
    .hero-search-box {
        max-width: 360px;
        padding: 24px 20px;
    }
}

@media (max-width: 992px) {
    .hero-search-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-text-side {
        text-align: center;
    }
    
    .hero-text-side .hero-title,
    .hero-text-side .hero-subtitle {
        text-align: center;
        max-width: none;
    }
    
    .hero-text-side .hero-buttons {
        justify-content: center;
    }
    
    .hero-search-side {
        display: flex;
        justify-content: center;
    }
    
    .hero-search-box {
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .hero-search-box {
        padding: 20px 16px;
        border-radius: 12px;
        max-width: 100%;
    }
    
    .hero-search-title {
        font-size: 1.125rem;
        margin-bottom: 16px;
    }
    
    .hero-search-form {
        gap: 12px;
    }
    
    .hero-search-box .hsf-field select,
    .hero-search-box .hsf-field .hsf-date-input {
        padding: 10px 12px;
        font-size: 0.875rem;
    }
    
    .hero-search-box .hsf-submit-btn {
        padding: 14px 20px;
        font-size: 0.9375rem;
    }
}