/**
 * Property Search Block Frontend Styles
 * This file contains ALL styling for the search form regardless of how it's included
 */

form.search-property,
form.property-search-ref {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    min-height: 70px !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    position: relative !important;
}

/* Search form container - full width styling */
.search-form-wrapper {
    width: 100%;
    background-color: rgba(247,233,218,0.32);
    padding: 20px 0;
}

/* Main container for the search form */
.property-search-block {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    padding: 0 15px;
}

/* When the search form is embedded in the header */
.property-search-block.search-form-header {
    background-color: transparent;
}

/* Tab styling */
.property-search-tabs {
    width: 100%;
    border-radius: 5px;
}

.tab-navigation {
    display: flex;
    padding-left: 20px;
    /* margin-bottom: 15px; */
}

.tab-button {
    cursor: pointer;
    border: none;
    color: #333;
    margin-right: 20px;
    padding: 20px;
    position: relative;
    background-color: #c9a784;
    border-top-left-radius: 22px !important;
    border-top-right-radius: 22px !important;
}

.tab-button.active {
    font-weight: bold;
    background-color: #DEB88F; /* Gold color */
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #DEB88F; /* Gold color */
    transition: width 0.3s ease;
}

.tab-button.active::after {
    width: 100%;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Form Layout */
.form-row {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow: auto;
    /* gap: 5px; */
    /* margin-bottom: 10px; */
}

.form-field {
    flex: 1;
    min-width: 150px;
    border-right: 1px solid #e0e0e0 !important;
    padding: 0 6px !important;
}

/* Form Element Styling */
.property-search-block input[type="text"],
.property-search-block input[type="email"],
.property-search-block input[type="tel"],
.property-search-block input[type="number"],
.property-search-block select {
    width: 100%;
    padding: 10px;
    border-radius: 0;
    border: none;
    background-color: white;
    color: #999;
    font-size: 16px;
    height: 100%;
}

/* Checkbox and radio styling */
.property-search-block input[type="checkbox"],
.property-search-block input[type="radio"] {
    border: 1px solid #DEB88F; /* Gold border */
    background-color: white;
    margin-right: 5px;
}

/* Button styling */
.search-submit,
.property-search-block button[type="submit"] {
    padding: 10px 20px;
    background-color: #DEB88F; /* Gold color */
    border: none;
    border-radius: 0;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.search-submit:hover,
.property-search-block button[type="submit"]:hover {
    background-color: #C6A07C; /* Darker gold */
}

/* Media query for mobile */
@media (max-width: 992px) {
    .form-row {
        /* flex-direction: column; */
        flex-wrap: wrap;
    }

    .form-field {
        min-width: 100%;
        border-bottom: 1px solid #e0e0e0 !important;
        height: 48px;
    }

    .form-field.half-width {
        width: 50%;
        flex: auto;
        min-width: auto;
    }

    .search-submit,
    .property-search-block button[type="submit"] {
        width: 100%;
        /* margin-top: 10px; */
    }
}