.store {
    background-color: var(--grey-50);
}

.details__section {
    padding: 3rem 0;
}

.store-box__container {
    display: flex;
    flex-direction: column-reverse;
    gap: 1.5rem;
}

.store-box__details {
    width: 100%;
}

.store-box__header {
    margin-bottom: 1.5rem;
}

.store-box__subtag {
    font-size: var(--text-sm);
    margin-bottom: 0.5rem;
    color: var(--slate-700);
}

.store-box__title {
    font-size: var(--text-4xl);
    font-weight: 700;
}

.store-box__body {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: var(--text-base);
}

.store-box__address-section {
    margin-bottom: 2rem;
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--grey-900);
}

.store-box__manager-section {
    margin-bottom: 2rem;
    display: flex;
    justify-content:flex-start;
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--grey-900);
}

.manager__circle {
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    color: white;
    border: 1px solid var(--grey-100);
}

.store-box__address {
    margin-bottom: 0.5rem;
}

.store-box__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: var(--text-sm);
    color: var(--grey-900);
    margin-bottom: 2rem;
}

.store-box__icon {
    margin-right: 0.5rem;
}

.store-box__dates {
    font-size: var(--text-sm);
}

.store-box__date {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.store-box__footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
}

.store-box__img-container {
    flex-grow: 1;
    /*max-height: 400px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--slate-100);
    overflow: hidden;
}

.store-box__img {
    width: 100%;
    object-fit: cover;
}

.nearest__section {
    padding: 3rem 0;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    background-color: var(--primary-50);
}

.store__nearest {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.store__card {
    flex-basis: 33%; 
    padding: 1.5rem;
    box-sizing: border-box;
    font-size: var(--text-sm);
    border: 1px solid var(--slate-200);
    line-height: 1.25;
    cursor: pointer;
    background-color: white;
}

.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);
}

.map__section {
    padding: 3rem 0;
}

.store__map {
    width: 100%;
    min-height: 400px;
    background-position: center center;
    background-size: cover;
}

.store__subheading {
    font-size: var(--text-lg);
    margin-bottom: 1.5rem;
}

.time__icon {
    margin-right: 0.5rem;
}

@media only screen and (min-width: 769px) {
    #map {
        height: 100%;
    }

    .store-box__img {
        max-width: 560px;
        object-fit: cover;
    }

    .details__section {
        padding: 4rem 0;
    }

    .nearest__section {
        padding: 4rem 0;
    }

    .map__section {
        padding: 4rem 0;
    }
}

@media only screen and (min-width: 993px) {
    .store-box__container {
        flex-direction: row; /* reverse? */
        align-items: center;
        gap: 0;
    }

    .store-box__details {
        flex-basis: 50%;
        height: 100%;
        margin: 0;
    }

    .store-box__img {
        max-width: 600px;
        object-fit: cover;
    }
    
    .store__nearest {
        flex-direction: row;
    }
    
    .store__subheading {
        font-size: var(--text-xl);
    }

    .store-box__footer {
        flex-direction: row;
    }
}
