/* ABOUTME: Styles the community page's residences: rows of homes and the buildings' stacking plans, their tiles, */
/* ABOUTME: and the tabs that switch between a community's buildings. */

.stacking-plans {
    width: 100%;
    /* overflow-x: hidden; */
}

.stacking-plans + .stacking-plans {
    margin-top: 70px;
}

.residences-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
}

.residences-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    border: 1px solid var(--hoa-dark-grey);
    border-radius: 10px;
    background-color: #fff;
    color: #3e4958;
    font-family: Raleway, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 14px;
    cursor: pointer;
}

.residences-tab .material-symbols-outlined {
    font-size: 16px;
}

.residences-tab--active {
    border-color: var(--hoa-rust);
    background-color: var(--hoa-rust);
    color: #fff;
}

.stacking-content {
    display: flex;
    flex-direction: column;
    margin-top: 27px;
}

.stack-row {
    min-height: 47px;
    display: flex;
    align-items: flex-start;
}

.stack-row-label {
    font-family: Raleway, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    color: #181d24;
    width: 120px;
    padding-top: 16px;
}

.row-stacks {
    display: flex;
    column-gap: 5px;
    row-gap: 7px;
    margin-bottom: 7px;
    width: calc(100% - 120px);
    margin-left: 8px;
    flex-wrap: wrap;
}

.row-stack-btn {
    width: 187px;
    max-width: 100%;
    background: #fff;
    border: none;
    padding: 0;
}

.stack-box {
    width: 100%;
    height: 47px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 0 10px;
    border: none;
    border-radius: 0 10px 10px 10px;
    background-color: #e1f3ff;
    color: #181d24;
    font-family: Raleway, sans-serif;
    cursor: pointer;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.stack-box--highlight,
.stack-box--highlight .stack-name,
.stack-box--highlight .stack-meta {
    color: #fff;
    font-weight: 600;
}

.stack-name,
.stack-meta {
    width: 100%;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stack-name {
    font-size: 12px;
    font-weight: 400;
    line-height: 13px;
}

.stack-meta {
    font-size: 10px;
    font-weight: 400;
    line-height: 13px;
}

@media (max-width: 768px) {
    .stack-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 38px;
    }

    .stack-row-label {
        min-width: 100%;
        padding-top: 0;
    }

    .row-stacks {
        width: 100%;
        margin-left: 0;
    }
}
