/* Styles for the mobile search bar */

#searchBarForMobileOuterDiv {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
    border-radius: 100px;
    border: 1px solid #ccc;
    cursor: pointer;
}

#searchBarForMobileQueryPlaceholderDiv {
    font-size: 16px;
    color: #757575;
    opacity: 0.7;
}

#searchBarForMobilePlaceholderButtonDiv {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0088cc;
    border-radius: 100px;
    padding: 10px;
}

#searchBarForMobilePlaceholderSearchButtonIcon {
    width: 20px;
    height: 20px;
    fill: white;
}

@media screen and (max-width: 850px) {
    #searchBarForMobileOuterDiv {
        display: flex;
    }
}

@media screen and (max-width: 350px) {
    #searchBarForMobileOuterDiv {
        padding: 12px 15px;
    }

    #searchBarForMobileQueryPlaceholderDiv {
        font-size: 15px;
    }

    #searchBarForMobilePlaceholderSearchButtonIcon {
        width: 18px;
        height: 18px;
    }
}

/* Styles for the mobile search bar modal */

#searchModalForMobileOuterDiv {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 100000;
    overflow-y: auto;
}

#searchModalForMobileContent {
    min-height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

/* Header with close button */
#searchModalForMobileHeaderOuterDiv {
    padding: 16px 20px 0;
}

#searchModalForMobileCloseButton {
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

#searchModalForMobileCloseButton:active {
    background-color: #e8e8e8;
}

.searchModalForMobileCloseIcon {
    width: 22px;
    height: 22px;
    fill: #1a1a1a;
}

#searchModalForMobileHeaderSeparator {
    width: 100%;
    height: 1px;
    background-color: #f0f0f0;
    margin-top: 16px;
}

/* Service Input Section */
#searchModalForMobileServiceSectionOuterDiv {
    padding: 32px 20px;
}

#searchModalForMobileServiceHeaderDiv {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.4;
}

#searchModalForMobileServiceInput {
    width: 100%;
    padding: 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 16px;
    color: #1a1a1a;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#searchModalForMobileServiceInput:focus {
    border-color: #0088cc;
    box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.08);
}

#searchModalForMobileServiceInput::placeholder {
    color: #999;
}

/* Location Input Section */
#searchModalForMobileLocationSectionOuterDiv {
    padding: 0 20px 32px;
    flex: 1;
}

#searchModalForMobileLocationHeaderDiv {
    font-size: 21px;
    color: #2c2c2c;
    margin-bottom: 20px;
    line-height: 1.4;
}

#searchModalForMobileLocationHeaderOptionalText {
    opacity: 0.7;
    font-weight: normal;
}

#searchModalForMobileLocationRadioGroupOuterDiv {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.searchModalForMobileLocationRadioOption {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.searchModalForMobileLocationRadioOption:active {
    border-color: #0088cc;
    background-color: #f8fcff;
}

.searchModalForMobileLocationRadioOption input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0088cc;
}

.searchModalForMobileLocationRadioText {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
}

#searchModalForMobileSpecificAreaOuterDiv {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 280px;
}

#searchModalForMobileSpecificAreaHeaderDiv {
    font-size: 18px;
    color: #2c2c2c;
    margin-bottom: 22px;
}

/* Autocomplete for mobile */
.overtureAutocompleteWrapperForMobile {
    position: relative;
    width: 100%;
}

.overtureAutocompleteInputForMobile {
    width: 100%;
    padding: 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 16px;
    color: #1a1a1a;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.overtureAutocompleteInputForMobile:focus {
    border-color: #0088cc;
    box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.08);
}

.overtureAutocompleteInputForMobile::placeholder {
    color: #999;
}

.overtureAutocompleteDropdownForMobile {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.overtureAutocompleteItemForMobile {
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.15s;
    border-bottom: 1px solid #f5f5f5;
}

.overtureAutocompleteItemForMobile:last-child {
    border-bottom: none;
}

.overtureAutocompleteItemForMobile:active {
    background-color: #f8fcff;
}

.overtureAutocompleteNameForMobile {
    font-weight: 500;
    font-size: 15px;
    color: #1a1a1a;
}

.overtureAutocompleteHierarchyForMobile {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    line-height: 1.4;
}

.overtureAutocompleteDropdownForMobile.loadingForMobile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.overtureSpinnerForMobile {
    width: 28px;
    height: 28px;
    border: 3px solid #f0f0f0;
    border-top-color: #0088cc;
    border-radius: 50%;
    animation: overtureSpinForMobile 0.8s linear infinite;
}

@keyframes overtureSpinForMobile {
    to {
        transform: rotate(360deg);
    }
}

/* Search Button */
#searchModalForMobileSearchButtonOuterDiv {
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
}

#searchModalForMobileSearchButton {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #0088cc 0%, #006ba3 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#searchModalForMobileSearchButton:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}