.locations {
    background-color: var(--grey-50);
}

.locations-page__header {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.locations-page__title {
    font-size: var(--text-lg);
    margin-right: auto;
    display: none; /* hidden on mobile (as before); shown >=769px */
}

.locations__near-me {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background-color: var(--primary-500);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.locations__near-me:hover {
    background-color: var(--primary-600);
}

.locations__near-me:disabled,
.locations__near-me.loading {
    opacity: 0.6;
    cursor: progress;
}

.locations__container {
    display: flex;
    flex-direction: column-reverse;
    height: 600px;
    margin-bottom: 3rem;
}

.locations__panel {
    display: none;
    width: 100%;
    height: calc(100% - 8.5rem);
    overflow: hidden;
    overflow-y: scroll;
    border: 1px solid var(--grey-200);
    border-top: none;
}

.locations__panel.selected {
    display: block;
}

.locations__map {
    flex-grow: 1;
}

.store__card {
    padding: 1.5rem;
    box-sizing: border-box;
    font-size: var(--text-sm);
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    border-top: 2px solid transparent;
    border-bottom: 1px solid var(--grey-200);
    line-height: 1.25;
    cursor: pointer;
}

.store__card.active {
    background-color: var(--primary-50);
    border: 2px solid var(--primary-blue);
}

.store__header {
    margin-bottom: 1rem;
}

.store__title {
    font-weight: 700;
}

.store__body {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.store__details {
    text-decoration: underline;
}

.store__footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.store__distance {
    font-weight: 700;
    text-align: right;
}

.store__link {
    color: var(--primary-blue);
}

.time-open {
    color: var(--green-800);
    font-weight: 700;
}

.time__icon {
    margin-right: 0.5rem;
}

.time-closed {
    color: var(--red-800);
}



@media only screen and (min-width: 769px) {
    .locations-page__title {
        display: block;
    }

    .locations__container {
        display: flex;
        flex-direction: row;
        height: 70vh;
        max-height: 648px;
    }

    .locations__panel {
        display: block;
        width: 40%;
        height: 100%;
        margin: 0;
        border: 1px solid var(--grey-200);
    }
}

@media only screen and (min-width: 993px) {
    .locations__panel {
        width: 30%;
    }
}


/* THESE WERE PACKAGED FROM DEMO */

/* Styling for autocomplete search bar */
#pac-card {
    background-color: var(--grey-50);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    outline: none;
    padding: 1.5rem;
    height: 8.5rem;
    width: 100%;
    border: 1px solid var(--grey-200);
    z-index: 1100000;
}

#pac-input {
    font-size: var(--text-sm);
    background-color: #fff;
    text-overflow: ellipsis;
    width: 100%;
    height: 2.5rem;
    border: 1px solid var(--grey-200);
    border-radius: 4px;
    padding: 0 0.875rem;
    box-shadow: none;
}
    
#pac-input:focus {
    outline: none;
    border: 2px solid var(--primary-blue);
}
    
#title {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: 1rem;
}
    
.hidden {
    display: none;
}

/* Styling for an info pane that slides out from the left.
 * Hidden by default. */
/*#panel {
  height: 100%;
  width: null;
  background-color: white;
  position: fixed;
  z-index: 1;
  overflow-x: hidden;
  transition: all .2s ease-out;
}*/
    
.open {
    width: 250px;
}
    
.place {
    font-size: var(--text-sm);
    font-weight: 500;
    margin-block-end: 0px;
    padding-left: 18px;
    padding-right: 18px;
}
    
.distanceText {
    color: silver;
    font-size: 1em;
    font-weight: 400;
    margin-block-start: 0.25em;
    padding-left: 18px;
    padding-right: 18px;
}

.stores__list-heading {
    padding: 0.25rem 0.25rem;
    margin-bottom: 0.75rem;
}

.stores__list-item {
    font-size: var(--text-sm);
    color: var(--slate-700);
    padding: 0.25rem 0.25rem;
    cursor: pointer;
}

.stores__list-item span {
    color: var(--primary-600);
}

/*
.stores__list-item:hover {
    background-color: var(--grey-50);
    color: var(--slate-950);
    border-radius: 4px;
}
 */

.stores__link {
    display: block;
    width: 100%;
    height: 100%;
}

/* THESE WERE PACKAGED FROM DEMO */


@media only screen and (min-width: 769px) {
    #map {
        height: 100%;
    }

    #pac-card {
        border-radius: 4px;
        margin: 10px 10px 0 0;
        width: auto;
    }

    #pac-input {
        width: 350px;
    }
}

@media only screen and (min-width: 993px) {
    #pac-input {
        width: 450px;
    }
}

/* Location Tabs
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.locations__tabs {
    margin-bottom: 1rem;
}

@media only screen and (min-width: 769px) {
    .locations__tabs {
        display: none;
    }
}

/* Location List
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.stores__list-section {
    padding: 3rem 0;
    border-top: solid 1px var(--grey-200);
    background-color: var(--primary-50);
}

.stores__list-title {
    font-size: var(--text-lg);
    margin-bottom: 1rem;
}