.office-floors {
	--padding-office-head: 1.625rem;

	display: grid;
	grid-template-rows: 1fr;
	grid-template-columns: 1fr;
	justify-items: center;
	padding: var(--margin-m) 0;
}

.office-floor {
	grid-column: 1 / 1;
	grid-row: 1 / 1;
	width: 100%;
	max-width: 1540px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background-color: var(--color-background);
	position: relative;
	z-index: 1;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.office-floor.active {
	opacity: 1;
	pointer-events: auto;
}

.office-floor-header {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	position: relative;
	white-space: nowrap;
	font-size: var(--font-size-b-4);
}

.office-floor-header:after {
	display: block;
	position: absolute;
	content: "";
	left: 0;
	top: 50%;
	width: 100%;
	height: 1px;
	background-color: var(--color-foreground);
	z-index: 1;
}

.office-floor-header-item {
	display: flex;
	align-items: flex-start;
	position: relative;
	z-index: 2;
	width: 50%;
	white-space: nowrap;
	line-height: 1.8em;
}

.office-floor-header .title {
	font-size: var(--font-size-b-4);
	margin-bottom: 0;
}

.office-floor-header .title .office-floor-header-item-inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding-right: var(--padding-office-head);
}

.office-floor-header-item.office-floor-total {
	justify-content: flex-end;
}

.office-floor-header .office-floor-total .office-floor-header-item-inner {
	padding-left: var(--padding-office-head);
}

.office-floor-header-item-renter {
	font-size: var(--font-size-b-2);
}

.office-floor-body {
	position: relative;
}

.office-floor-body .arrow {
	border-color: var(--color-foreground);
}

.office-floor-body .arrow:hover {
	border-color: var(--color-gray);
}

.office-floor-body .arrow-left {
	left: calc((var(--width-arrow-size) + 1.5rem) * -1);
}

.office-floor-body .arrow-right {
	right: calc((var(--width-arrow-size) + 1.5rem) * -1);
}

.office-floor-image {
	width: 100%;
	object-fit: contain;
	object-position: center center;
}

.office-floor-footer {
	display: flex;
	justify-content: space-between;
}

.office-floor-spaces {
	margin: 0;
	padding: 0;
	font-size: var(--font-size-b-2);
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
	column-gap: 2em;
	row-gap: 1em;
	align-items: center;
}

.office-floor-space {
	margin: 0;
	padding: 0 0 0 2.8em;
	list-style-type: none;
	position: relative;
	white-space: nowrap;
}

.office-floor-space:before {
	display: block;
	position: absolute;
	content: "";
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 2em;
	height: 2em;
	border-radius: 1000px;
}

.office-floor-space-office:before {
	background-color: #9cb0b7;
}

.office-floor-space-retail:before {
	background-color: #d3dbdd;
}

.office-floor-space-terrace:before {
	background-color: #d0d0d0;
}

.office-floor-space-common:before {
	background-color: #4a6e87;
}

@media screen and (max-width: 1720px) {
	.office-floors {
		padding-left: var(--padding-sm);
		padding-right: var(--padding-sm);
	}

	.office-floor-header {
		margin-bottom: 1em;
	}

	.office-floor-body .arrow-left {
		left: 0;
	}

	.office-floor-body .arrow-right {
		right: 0;
	}

	.office-floor-body {
		padding: 0 calc(var(--width-arrow-size) * 1.5);
	}
}

@media screen and (max-width: 1380px) {
	.office-floor-space {
		width: calc(50% - 1em);
		box-sizing: border-box;
	}
}

@media screen and (max-width: 1024px) {
	.office-floor-footer {
		padding-top: 2em;
		flex-direction: column;
		align-items: flex-start;
		gap: 1em;
	}
}

@media screen and (max-width: 720px) {

	.office-floor-header:after {
		display: none;
	}

	/*
	.office-floor-header-item-inner,
	.office-floor-header .title .office-floor-header-item-inner,
	.office-floor-renters .office-floor-header-item-inner,
	.office-floor-total .office-floor-header-item-inner
	{
		background-color: transparent;
		padding: 0;
	}
	*/

	.office-floor-spaces {
		flex-direction: column;
		gap: 1.5em;
		align-items: flex-start;
		padding-bottom: 1em;
	}

	.office-floor-space {
		width: 100%;
	}

	:root {
		--width-arrow-size: 20px;
	}

	.office-floor-body {
		padding: 0;
	}
}

@media screen and (max-width: 580px) {
	.office-floor-header {
		flex-direction: column;
		justify-content: center;
	}

	.office-floor-header-item,
	.office-floor-total
	{
		width: 100%;
		white-space: normal;
	}

	.office-floor-header-item {
		line-height: normal;
	}

	.office-floor-header-item-renter {
		line-height: 2.3em;
	}

	.office-floor-header .title .office-floor-header-item-inner,
	.office-floor-header .office-floor-total .office-floor-header-item-inner {
		padding: 0;
	}

	.office-floor-header-item.office-floor-total {
		justify-content: flex-start;
	}
}

@media screen and (max-width: 500px) {
	:root {
		--width-arrow-size: 15px;
	}

	.arrow.arrow-left {
		transform: translateX(-14px) translateY(-50%) rotate(-135deg);
	}
	.arrow.arrow-right {
		transform: translateX(14px) translateY(-50%) rotate(45deg);
	}
}
