.flats-widget {
	position: relative;
	overflow: hidden;
	/*overflow: hidden;*/
/* 	max-width: 1920px; */
}
@media (max-width: 1920px){
.flats-widget {
/*     margin: -10vw auto; */
}
}
@media (min-width: 1921px){
.flats-widget {
/*     margin: -100px auto; */
}
}
.flats-widget__svg {
    overflow: auto;
    margin-bottom: -460px;
}
@media (max-width: 1920px){
.flats-widget__svg {
    margin-bottom: -23vw;
}
}

.flats-widget svg {
	width: 100%;height: auto;
}
.flats-widget .house-widget {
    cursor: pointer;
    transition: ease 0.3s all;
}
.flats-widget .house-widget circle {
	opacity: 1;
    transition: ease 0.3s all;
	fill: #f43636;
}
.flats-widget .house-widget.wolne circle {fill: #4caf50;}
.flats-widget .house-widget.rezerwacja circle {fill: #ffc322;}
.flats-widget .house-widget.wstepna-rezerwacja circle {fill: #ffc322;}
.flats-widget .house-widget.sprzedane circle {fill: #f43636;}
.flats-widget .house-widget path {
    opacity: 0;
	fill: transparent;
    transition: ease 0.3s all;
}
.flats-widget .house-widget.wolne:hover path,
.flats-widget .house-widget.wolne.opened path,
.flats-widget .house-widget.wolne.active path {fill: #4caf50;}
.flats-widget .house-widget.rezerwacja:hover path,
.flats-widget .house-widget.rezerwacja.opened path,
.flats-widget .house-widget.rezerwacja.active path {fill: #ffc322;}
.flats-widget .house-widget.wstepna-rezerwacja:hover path,
.flats-widget .house-widget.wstepna-rezerwacja.opened path,
.flats-widget .house-widget.wstepna-rezerwacja.active path {fill: #ffc322;}
.flats-widget .house-widget.sprzedane:hover path,
.flats-widget .house-widget.sprzedane.opened path,
.flats-widget .house-widget.sprzedane.active path {fill: #f43636;}

.flats-widget .house-widget:hover path,
.flats-widget .house-widget.opened path,
.flats-widget .house-widget.active path {
    opacity: 0.75;
	cursor: pointer;
	fill: #f43636;
}
.flats-widget .house-widget:hover circle,
.flats-widget .house-widget.opened circle,
.flats-widget .house-widget.active circle {
	opacity: 0;
}
.flats-widget__main {
	opacity: 0;
	transition: ease 0.3s all;
	position: absolute;
	z-index: 0;
    top: 0;
    left: 0;
	line-height: 0;
}
.flats-widget__main.active {
	opacity: 1;
    z-index: 1;
    position: relative;
}
.flats-widget__main.hidden {
	opacity: 0;
}
.flats-widget__rotated {
	opacity: 0;
	transition: ease 0.3s all;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
	line-height: 0;
}
.flats-widget__rotated.active {
	opacity: 1;
    z-index: 1;
    position: relative;
}
.flats-widget__rotated.hidden {
	opacity: 0;
}
body.blocked .flats-widget__buttons {
    z-index: 999;
}
.flats-widget__buttons {
    z-index: 10;
    position: absolute;
    right: 8vw;
    bottom: 70px;
    z-index: 998;
}
@media only screen and (min-width: 1024px){
	.flats-widget__buttons {
/* 		right: 44px; */
		bottom: 70px;
	}
}
.flats-widget__buttons span.button.rotate {
	color: var(--neutral-neutral-100, #FFF);
	font-size: 15px;
	font-weight: 600;
	line-height: 144%;
    background: #5e643a;
	box-shadow: 0px 4px 12px 0px rgba(73, 131, 88, 0.20);
	text-decoration: none;
	white-space: nowrap;
	width: 180px;
	height: 55px;
	align-items: center;
	justify-content: center;
	display: inline-flex;
	cursor: pointer;
	transition: ease 0.3s all;
	@media only screen and (max-width: 1024px) {
		width: 140px;
	}
}
.flats-widget__buttons span.button.rotate:hover {
	opacity: 0.8;
}
.flats-widget__buttons span.button.rotate.off {
	pointer-events: none;
	opacity: 0;
}
.flats-widget .swipe {
    width: 35px;
    position: absolute;
    z-index: 9;
    fill: #fff;
    right: 35px;
    bottom: 40px;
	display: none;
    height: unset;
    pointer-events: none;
}

.flats-widget__animation {
    position: relative;
}
.flats-widget__animation img {
	position: absolute;
	opacity: 0;
	top: 0;
	left: 0;
    z-index: 9;
	pointer-events: none;
	height: auto;
	width: 100%;
}
.flats-widget__animation img.active {
	opacity: 1;
	pointer-events: auto;
}

.flats-widget__tooltip {
	pointer-events: none;
	position: absolute;
	font-size: 15px;
	text-align: center;
    background: #5e643a;
    box-shadow: 0px 4px 12px 0px rgba(73,131,88,.2);
	padding: 10px 10px;
	z-index: 5;
	min-height: 30px;
	line-height: 20px;
	color: #fff;
	transform: translateX(-50%);
	display: none;
	box-sizing: unset;
    min-width: 113px;
}
.flats-widget__tooltip.active {display: block;}
.flats-widget__tooltip b {color: #fff;font-weight: 700;}
.flats-widget__tooltip:after {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	width: 0;
	height: 0;
	margin-left: -8px;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px #5e643a;
}
.flats-widget__tooltip:before {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	width: 0;
	height: 0;
	margin-left: -10px;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 10px solid #5e643a;
}
.flats-widget__box {
	position: absolute;
	left: 20px;
	bottom: 60px;
	background: #fff;
	width: 320px;
	background-color: #fff;
    border-radius: 0;
    box-shadow: 0px 4px 12px 0px rgba(73,131,88,.2);
    overflow: hidden;
    z-index: 998;
    transform: translateX(-360px);
    transition: ease 0.6s all;
	opacity: 0;
	pointer-events: none;
	@media only screen and (max-width: 380px) {
		width: 240px;
	}
}
.flats-widget__box.opened {
    transform: translateX(0);
	opacity: 1;
	pointer-events: unset;
}
.flats-widget__box .head {
    background: #5e643a;
	color: #fff;
    padding: 15px 40px 15px 20px;
	font-weight: 700;
}
.flats-widget__box .head .title {
	color: #fff;
}
.flats-widget__box .close {
    font: normal 25px Arial, sans-serif;
    position: absolute;
    right: 10px;
    top: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.251);
    border-radius: 100%;
    color: #fff;
	cursor: pointer;
}
.flats-widget__box .image {
    
}
.flats-widget__box .image img {
    display: none;
}
.flats-widget__box .image img.active {
    display: block;
}
.flats-widget__box .floors {
	background: rgba(195,159,118,1);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.flats-widget__box .floors span {
    padding: 3px 10px;
    display: inline-block;
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
	cursor: pointer;
}
.flats-widget__box .floors span.active {
	background: #0d4e36;
}
.flats-widget__box .content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}
.flats-widget__box .content li {
    list-style: none;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.flats-widget__box .content li span {
	font-weight: 600;
}
.flats-widget__box .content li span[data-status="wolne"] {
	color: #4caf50;
}
.flats-widget__box .content li span[data-status="rezerwacja"] {
	color:  #ffc322;
}
.flats-widget__box .content li span[data-status="wstepna-rezerwacja"] {
	color:  #ffc322;
}
.flats-widget__box .content li span[data-status="sprzedane"] {
	color: #f43636;
}
.flats-widget__box .footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
	column-gap: 10px;
	padding: 0 20px 20px 20px;
}
.flats-widget__box .footer .button {
    color: var(--neutral-neutral-100,#fff);
    font-size: 15px;
    font-weight: 600;
    border-radius: 0;
    background: #5e643a;
    box-shadow: 0px 4px 12px 0px rgba(73,131,88,.2);
    text-decoration: none;
    white-space: nowrap;
    width: 180px;
    height: 45px;
    align-items: center;
    justify-content: center;
    display: inline-flex;
    cursor: pointer;
	transition: ease 0.3s all;
}
.flats-widget__box .footer .button:hover {
	opacity: 0.8;
}

.popup-visible {
	overflow: hidden;
}
.flats-popup {
}
.flats-popup__single {
    height: 100%;
    left: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99999;
	display: none;
	background-color: rgba(0, 0, 0, 0.8);
}
.flats-popup__single .content {
	border-top: 80px solid #fff;
	background: #fff;
    max-width: 1000px;
    margin: 0 auto;
    overflow: auto;
    height: 100%;
}
.flats-popup__single.active {
	display: block;
}
.flats-popup__single .top {
    position: absolute;
    top: 15px;
    padding-left: 20px;
	display: flex;
	flex-wrap: wrap;
	column-gap: 10px;
	row-gap: 10px;
}
.flats-popup__single .button {
	padding: 10px 20px!important;
	height: unset!important;
    line-height: unset!important;
}
.flats-popup__single .close {
    cursor: pointer;
    cursor: pointer;
    font-size: 25px!important;
    line-height: 25px!important;
}
@media (max-width: 1300px) {
	.flats-widget__buttons {
		right: 100px;
	}
}
@media (max-width: 74.99em) {
	.flats-widget__buttons {
		right: 50px;
		bottom: 100px;
	}
}
@media (max-width: 61.99em) {
	.flats-widget {
		min-height: unset;
		overflow: hidden;
		max-width: unset;
		margin: unset;
		
	}
	.flats-widget__buttons {
		bottom: 40px;
		right: 100px;
	}
	.flats-table .swipe,
	.flats-widget .swipe {
		display: block;
	}
	.flats-widget__svg {
		overflow: auto;
		margin-left: -160px;
		margin-bottom: -240px;
	}
	.flats-widget svg {
		height: 950px;
		width: auto;
	}
	.flats-widget__animation img {
		height: 950px;
		width: auto;
		max-width: unset;
	}
	.flats-table__head {
		display: none;
	}
	.flats-table__list {
		grid-template-columns: 1fr 1fr;
		padding-top: 20px;
		display: grid;
		max-height: 70vh;
		overflow: auto;	
	}
	.flats-table__item {
		grid-template-columns: 1fr minmax(127px, 1fr) 82px!important;
    	display: grid;
		column-gap: 20px;
		row-gap: 10px;
	}
	.flats-table__item > span:last-of-type {
		grid-area: 1 / 3 / 4 / 3;
	}
	.flats-table__item span {
		text-align: left;
	}
	.flats-table__info {
		flex-direction: column;
		-moz-column-gap: 10px;
		column-gap: 10px;
		display: flex;
		justify-content: space-between;
		width: 100%;
		row-gap: 4px;
	}
	.flats-table__info-label {
		display: block;
	}
}
@media (max-width: 860px) {
	.flats-table__item {
		column-gap: 10px;
	}
}
@media (max-width: 770px) {
	.flats-table {
		padding: 0;
	}
	.flats-table__list {
		grid-template-columns: 100%;
	}
}
@media (max-width: 370px) {
	.flats-table__item {
		grid-template-columns: auto 82px!important;
	}
	.flats-table__item > span:last-of-type {
    	grid-area: 1 / 2 / 6 / 3;
	}
	.flats-table__info {
    	flex-direction: row;
	}
}
@media (max-width: 340px) {
	.flats-table__item {
		 grid-template-columns: 100%!important;
	}
	.flats-table__item > span:last-of-type {
		display: grid;
		grid-template-columns: auto auto 1fr;
		column-gap: 5px;
		grid-area: unset;
	}
	.flats-table__info {
		row-gap: 10px;
		text-align: left;
	}
}