section.floor-plan {
    /* min-height: 100vh; */
    padding: var(--topPadding, 10vh) var(--padding);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
section.floor-plan .tabs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap);
}

section.floor-plan .tabs button {
    cursor: pointer;
    font: inherit;
    appearance: none;
    position: relative;
    background: none;
    border: none
}

.tabs button[aria-selected='true']::before {
    content: '';
    background-color: var(--primary);
    height: 5rem;
    width: 5rem;
    position: absolute;
    transform: rotate(-10deg);
    left: -1rem;
    top: -1rem;
    z-index: -1;
}

section.floor-plan .tabs button {
    position: relative;
}

section.floor-plan .tabs button:focus {
    outline: none;
}

section.floor-plan .tabs [role='tablist'] {
    display: flex;
    flex-direction: row;
    gap: var(--gap);
}

/* section.floor-plan .tabs button:hover::before {
    position: absolute;
    left: 1rem;
    top: -2rem;
    background-color: var(--secondary);
    height: 2rem;
    width: 2rem;
} */

[role='tabpanel'] {
    max-height: 60vh;
    /* overflow: hidden; */
    height: 100%;
    width: 100%;
}

section.floor-plan .image-wrapper {
    max-height: inherit;
    max-width: inherit;
    text-align: center;
}

section.floor-plan .image-wrapper img {
    width: 100%;
    object-fit: contain;
    max-width: inherit;
    max-height: 50vh;
}
section.floor-plan .is-hidden {
    display: none;
}

section.floor-plan .headline {
    text-align: center;
}

@media screen and (max-width: 768px) {
    section.floor-plan {
        max-height: unset;
        height: unset;
        padding: var(--padding);
    }

    section.floor-plan .tabs [role='tablist'] {
        flex-wrap: wrap;
        row-gap: 1rem;
        justify-content: center;
    }
}

section.floor-plan .tab_wrapper {
    display: grid;
}

section.floor-plan .tab_wrapper > * {
    grid-column-start: 1;
    grid-row-start: 1;
}

section.floor-plan .is-hidden {
    display: block !important;
    opacity: 0 !important;
    pointer-events: none;
}