/**
 * Off-Plan Search Styles
 */

.houzez-offplan-shortcode-wrapper {
    padding-top: 5rem;
    padding-bottom: 2rem;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 25px;
    text-transform: none;
}

.offplan-search-filters {
    margin-bottom: 2rem;
}

.offplan-search-filters .filter-bar {
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 15px;
    box-shadow: 5px 8px 45px 6px rgba(0, 0, 0, 0.16);
    padding: 38px;
    margin-bottom: 1.5rem;
}

/* Style filter inputs with rounded corners, background, and shadow */
.offplan-search-filters .bootstrap-select .dropdown-toggle,
.offplan-search-filters .bootstrap-select .form-control {
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 25px;
}

.offplan-search-filters .bootstrap-select .dropdown-toggle:hover,
.offplan-search-filters .bootstrap-select .dropdown-toggle:focus {
    border-color: #d0d0d0;
}

.offplan-search-filters .bootstrap-select.open .dropdown-toggle {
    border-color: #d0d0d0;
}

/* Title and Sort Row */
.offplan-title-sort-row {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.offplan-title-sort-row .page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000;
    font-family: 'Be Vietnam Pro', sans-serif;
    line-height: 25px;
}

.offplan-title-sort-row .sort-by {
    display: flex;
    align-items: center;
}

.offplan-title-sort-row .sort-by-title {
    margin-right: 0.75rem;
    font-weight: 400;
    color: #333;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 15px;
    line-height: 25px;
}

.offplan-title-sort-row .bootstrap-select .dropdown-toggle,
.offplan-title-sort-row .bootstrap-select .form-control {
    background-color: #ffffff;
    border-radius: 0.5rem;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 25px;
}

.offplan-search-filters .form-group {
    margin-bottom: 0;
}

.offplan-search-filters .form-label {
    font-weight: 400;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 15px;
    font-family: 'Be Vietnam Pro', sans-serif;
    color: #9d9d9d;
    line-height: 25px;
}

.offplan-search-filters #offplan-search-btn {
    min-width: 120px;
    height: 45px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 25px;
    text-transform: none;
    background-color: #262626;
    border-color: #262626;
}

.offplan-search-filters #offplan-search-btn:hover,
.offplan-search-filters #offplan-search-btn:focus {
    background-color: #262626;
    border-color: #262626;
}

/* Loading indicator */
#offplan-loading {
    margin: 2rem 0;
}

#offplan-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Results container */
#offplan-results-container {
    transition: opacity 0.3s ease;
}

#offplan-results-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Pagination wrapper */
.offplan-pagination-wrapper {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Desktop: Search button 10% width */
@media (min-width: 992px) {
    .offplan-search-filters .offplan-search-btn-wrapper {
        width: 10%;
        flex: 0 0 10%;
        max-width: 10%;
    }
    
    .offplan-search-filters .row > .col-lg-3:not(.offplan-search-btn-wrapper) {
        width: 30%;
        flex: 0 0 30%;
        max-width: 30%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .offplan-search-filters .filter-bar {
        padding: 1rem;
    }
    
    .offplan-search-filters .row > div {
        margin-bottom: 1rem;
    }
    
    .offplan-search-filters #offplan-search-btn {
        width: 100%;
    }
    
    .offplan-title-sort-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .offplan-title-sort-row .sort-by {
        width: 100%;
    }
    
    .offplan-title-sort-row .bootstrap-select {
        width: 100% !important;
    }
}

/* Ensure selectpicker dropdowns are visible */
.offplan-search-filters .bootstrap-select {
    width: 100% !important;
}

.offplan-search-filters .bootstrap-select .dropdown-toggle {
    height: 45px;
    line-height: 45px;
}

