.locator-main {
    margin-top: 78px;
    position: relative;
}

.search-form {
    position: absolute;
    top: 2rem;
    left: 3rem;
    width: 20rem;
    z-index: 2;
    border-radius: 0.75rem;
    font-family: Montserrat, sans-serif;
    border: 1px solid black;
}

@media (max-width: 767px) {
    .search-form {
        left: 1rem;
        width: calc(100% - 2rem);
    }
}

#map {
    visibility: hidden;
    height: 625px;
    width: 100%;
    position: relative;
}

#map.active {
    visibility: initial;
}

#map-list {
    display: none;
    list-style-type: none;
    padding: 1rem;
    padding-top: 0;
    margin-top: 0;
    background: white;
    border: 1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
}

#store-list {
    display: none;
    list-style-type: none;
    padding: 1rem;
    margin-top: 0;
    background: white;
    border: 1px solid #ddd;
    max-height: 400px;
    overflow-y: auto;
}

#store-list[data-type=physical] li.online,
#store-list[data-type=online]  li.physical {
    display: none;
}

#store-list li {
    padding: 0.625rem;
    padding-left: 40px;
    border-bottom-color: rgba(110, 107, 103, 0.25);
    border-bottom-style: solid;
    border-bottom-width: 1px;
    position: relative;
    font-size: 14px;
}

#store-list li::before{
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 27px;
    height: 27px;
    background-image: url('../images/shop-icon.svg');
    background-repeat: no-repeat;
    background-size: cover;
}

#store-list li.online::before {
    background-image: url('../images/shop-icon-online.svg');
}

#store-list h2 {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 14px;
    color: black;
    text-transform: capitalize;
}


#store-list li:last-child {
    border-bottom: none;
}

.icon-wine-item {
    width: 0.4rem;
    height: 0.4rem;
    margin-right: 0.5rem
}

.icon-wine-item polygon {
   fill: rgb(144, 38, 51);
}

.locator {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-52%);
    border: none;
    cursor: pointer;
    color: black;
    font-size: 16px;
    transition: color 0.3s ease-in-out;
    border-right: 1px solid #c5c5c5;
    display: flex;
    align-items: center;
}

.icon-locator {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.75rem;
    margin-right: 0.1rem;
}


.map-list h2 {
    font-family: Montserrat, sans-serif;
    color: black;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 20px;
    text-transform: capitalize;
}

.map-list h2::before {
    display: none;
}

.map-list li a {
    font-size: 14px;
    font-weight: 400;
    color: black;
}

.map-wine-item {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-bottom-color: rgba(110, 107, 103, 0.25);
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

.map-wine-item span {
    text-transform: capitalize;
}

.store-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.store-content {
    flex-grow: 1;
}

.store-content p {
    font-size: 14px;
}

.map-directions-link {
    background-color: rgb(144, 38, 51);
    padding: 5px;
    border-radius: 5px;
    color: white;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    margin-left: auto;
    margin-top: 10px;
}

.map-directions-link:hover,
.map-directions-link:focus,
.map-directions-link:active {
    color: white;
}

#search-input {
    width: 100%;
    padding: 10px 40px 10px 48px;
    border: 1px solid #ddd;
    border-radius: 9999px;
    letter-spacing: -0.025em;
    font-size: 16px;
    font-family: Montserrat, sans-serif;
}

#search-input::placeholder {
    color: black;
}

#autocomplete-results {
    position: absolute;
    z-index: 1;
    width: 80%;
    left: 10%;
    background: white;
    border-bottom-right-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}


#autocomplete-results li {
    font-family: Montserrat, sans-serif;
    padding: 15px 10px;
    cursor: pointer;
    background-color: white;
    transition: background-color 0.1s ease-in;
}

#autocomplete-results li:first-child {
     background-color: rgb(144, 38, 51);
     color: white;
 }

#autocomplete-results li:hover {
    background-color: rgb(144, 38, 51);
    color: white;
}


.input-container {
    position: relative;
    padding: 1.25rem;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    background-color: #840d16;
}

#clear-btn {
    position: absolute;
    right: 30px;
    top: 51%;
    transform: translateY(-53%);
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: black;
    font-size: 16px;
    transition: color 0.3s ease-in-out;
}

#clear-btn:hover {
   color: rgb(144, 38, 51);
}

.backTop,
.gm-fullscreen-control,
.gm-svpc,
.gm-style-mtc-bbw {
    display: none;
}

.list-footer {
    border-bottom-right-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
    background-color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 12px;
}

.modal-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-overlay.active {
    display: flex;
}

.modal-contents {
    width: 100%;
    max-width: 425px;
    padding: 18px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-title {
    margin-bottom: 20px !important;
    font-family: Montserrat, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.modal-title::before {
    display: none;
}

.modal-actions {
    margin-bottom: 14px;
}

.modal-link, .modal-button {
    font-family: Montserrat, sans-serif;
    display: inline-block;
    margin-bottom: 14px;
    padding: 15px 20px;
    background-color: rgb(144, 38, 51);
    color: white;
    font-size: 0.875rem;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 9999px;
    font-weight: 700;
}

.modal-form  form {
    color: white;
    margin-bottom: 48px;
}

.form-description {
    margin-bottom: 32px;
}

.modal-form form label {
    text-align: left;
}

.modal-form form label span.wpcf7-not-valid-tip {
    position: absolute;
    color: #ff7878;
    padding: 3px 0;
}

.modal-form form .form-wrapper > p {
    display: flex;
    align-items: flex-end;
    position: relative;
}
.modal-form form .form-wrapper > p .wpcf7-spinner {
    position: absolute;
    right: -60px;
    top: 56%;
}

.modal-form form input {
    width: 250px;
    padding: 10px 40px 10px 48px;
    border: 1px solid #ddd;
    letter-spacing: -0.025em;
    font-size: 16px;
    font-family: Montserrat, sans-serif;
    height: 48px;
}

.modal-form form input[type=email] {
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    color: black;
}

.modal-form form input[type=submit] {
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    width: 100%;
    font-family: Montserrat, sans-serif;
    padding: 15px 20px;
    background-color: rgb(144, 38, 51);
    border: unset;
    color: white;
    font-size: 0.875rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
}

.modal-link:hover,
.modal-link:focus,
.modal-link:active {
    color: white;
}

.modal-button {
    border: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

.locator-active {
    pointer-events: none;
}

#storeTypeNav,
#mileNav,
#storeNav {
    display: none;
    padding: 4px;
    width: 100%;
    background-color: #902633;
}

#storeTypeNav.active,
#mileNav.active,
#storeNav.active {
    display: flex;
}

#storeTypeNav,
#mileNav {
    justify-content: space-around;
    list-style-type: none;
    margin-bottom: 0;
}

#storeTypeNav.around {
    justify-content: space-around;
}

#storeTypeNav {
    background-color: black;
    justify-content: space-between;
}

#storeTypeNav li,
#mileNav li {
    position: relative;
    cursor: pointer;
    margin: 0 5px;
    color: white;
}

#storeTypeNav li.online::before,
#storeTypeNav li.physical::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 45%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: cover;
}

#storeTypeNav li.physical::before {
    background-image: url('../images/cart.svg');
}

#storeTypeNav li.online::before {
    background-image: url('../images/pack.svg');
}

#storeTypeNav li::after,
#mileNav li::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    transition: all .3s ease-in-out;
    background-color: #fff;
}

#storeTypeNav li.active::after,
#storeTypeNav li:hover::after,
#mileNav li:hover::before,
#mileNav li.active::before {
    width: 100%;
}

#storeNav button {
    background-color: black;
    color: white;
    border: 1px solid black;
    border-radius: 5px;
    transition: all .3s ease-in-out;
    margin: 0 4px;
}

#storeNav button.clear {
    margin-right: auto;
}
#storeNav button:hover {
    background-color: transparent;
}

#map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: rgb(144, 38, 51);
}

#map-overlay.hidden {
    display: none;
}

#map-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#placeholder-text {
    position: absolute;
    top: 10rem;
    left: 3rem;
    max-width: 320px;
    background-color: rgba(0, 0, 0, .65);
    border-radius: 16px;
    color: white;
    padding: 16px;
}

@media (max-width: 767px) {
    #placeholder-text {
        left: 1rem;
        max-width: calc(100% - 2rem);
    }
}