/* Market Insider Form Styles */

/* Location Comparison */
.compare-location-row {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding: 0;
    margin: 2.1rem 0;
}

.compare-location-row .input-group {
    width: 536px;
    max-width: 536px;
}

.current-city {
    background-color: #a59f94;
}

.compared-city {
    background-color: #ee5d4f;
}

/* Search Bar */
.jh-search-bar {
    max-width: 400px;
    width: 100%;
    height: 50px;
}

.jh-search-bar .form-control {
    background: var(--light-gray);
    border-radius: var(--border-radius) 0 0 var(--border-radius) !important;
    max-width: 325px;
    height: 50px;
    padding: 4px 12px;
    font-size: 16px;
    border: 1px solid var(--border-color);
}

.jh-search-bar .input-group-btn .btn {
    min-width: 52px;
    padding: 10px 16px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    height: 50px;
    line-height: 22px;
}

/* Buttons */
.btn-custom-search {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    transition: background-color 0.3s ease;
    height: 50px;
    padding: 10px 16px;
    font-size: 16px;
    line-height: 22px;
}

.btn-custom-search:hover {
    background-color: #cd2213;
}

/* Custom Select */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    font-size: 14px;
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.custom-select-toggle {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 3px 36px 3px 12px;
    background: #fff;
    cursor: pointer;
    position: relative;
    line-height: 1.2;
    width: 375px;
}

.custom-select-toggle .material-symbols-outlined {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 28px;
    color: #333;
}

.custom-select-wrapper.open .material-symbols-outlined {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-menu {
    display: none;
    position: absolute;
    min-width: 350px;
    border: 1px solid #ccc;
    background: #fff;
    z-index: 999;
    max-height: 20em;
    overflow-y: auto;
    border-top: none;
    width: 100%;
}

.custom-select-menu div {
    padding: 6px 12px;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.custom-select-menu div:hover {
    background-color: var(--light-gray);
}

.custom-select-wrapper.open .custom-select-menu {
    display: block;
}

/* Search Input Wrapper */
.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 28px;
    z-index: 2;
}

#compare_location_input {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    padding-left: 50px;
    background-color: var(--light-gray);
    height: 50px;
    border: 1px solid var(--border-color);
    font-size: 16px !important;
    width: 100%;
}
