@charset "utf-8";
/* CSS Document */


:root {
  --font-size: 1;
  --color1: #000;
  --borderRadius: 1em;
}

body {
	color: #1b1b1b;
	background-color: #efefef;
}
.burger {
    font-size: var(--font-size);
    cursor: pointer;
    padding: 3em 0.5em;
    transform: scale(.7);
}
.burger.showHitArea {
  border: 1px solid olive;
}
.burger > div {
  width: 4em;
  height: 0.5em;
  border-radius: var(--borderRadius);
  background: var(--color1);
}
.burger > div::before, .burger > div::after {
  transition: font-size 0s;
  content: "";
  display: block;
  position: absolute;
  width: 4em;
  height: 0.5em;
  background: var(--color1);
  border-radius: var(--borderRadius);
}
.burger > div::before {
  margin-top: -1.5em;
}
.burger > div::after {
  margin-top: 1.5em;
}

.burger2 > div {
  transition: background 0.4s, font-size 0s;
}
.burger2 > div::before, .burger2 > div::after {
  transition: font-size 0s;
  transform-origin: center center;
}
.burger2.toggled > div::before {
  -webkit-animation: burg2top 0.4s linear forwards;
          animation: burg2top 0.4s linear forwards;
}
.burger2.toggled > div {
  background: transparent;
}
.burger2.toggled > div::after {
  -webkit-animation: burg2bottom 0.4s linear forwards;
          animation: burg2bottom 0.4s linear forwards;
}
.burger2.unToggled > div::before {
  -webkit-animation: burg2topReset 0.4s linear forwards;
          animation: burg2topReset 0.4s linear forwards;
}
.burger2.unToggled > div {
  background: var(--color1);
}
.burger2.unToggled > div::after {
  -webkit-animation: burg2bottomReset 0.4s linear forwards;
          animation: burg2bottomReset 0.4s linear forwards;
}
@-webkit-keyframes burg2top {
  20% {
    margin-top: 0em;
    transform: rotate(0deg);
  }
  60% {
    margin-top: 0em;
    transform: rotate(55deg);
  }
  100% {
    margin-top: 0em;
    transform: rotate(45deg);
  }
}
@keyframes burg2top {
  20% {
    margin-top: 0em;
    transform: rotate(0deg);
  }
  60% {
    margin-top: 0em;
    transform: rotate(55deg);
  }
  100% {
    margin-top: 0em;
    transform: rotate(45deg);
  }
}
@-webkit-keyframes burg2bottom {
  20% {
    margin-top: 0em;
    transform: rotate(0deg);
  }
  60% {
    margin-top: 0em;
    transform: rotate(-55deg);
  }
  100% {
    margin-top: 0em;
    transform: rotate(-45deg);
  }
}
@keyframes burg2bottom {
  20% {
    margin-top: 0em;
    transform: rotate(0deg);
  }
  60% {
    margin-top: 0em;
    transform: rotate(-55deg);
  }
  100% {
    margin-top: 0em;
    transform: rotate(-45deg);
  }
}
@-webkit-keyframes burg2topReset {
  0% {
    margin-top: 0em;
    transform: rotate(45deg);
  }
  20% {
    transform: rotate(0deg);
  }
  60% {
    margin-top: 1.7em;
    transform: rotate(0deg);
  }
  100% {
    margin-top: 1.5em;
    transform: rotate(0deg);
  }
}
@keyframes burg2topReset {
  0% {
    margin-top: 0em;
    transform: rotate(45deg);
  }
  20% {
    transform: rotate(0deg);
  }
  60% {
    margin-top: 1.7em;
    transform: rotate(0deg);
  }
  100% {
    margin-top: 1.5em;
    transform: rotate(0deg);
  }
}
@-webkit-keyframes burg2bottomReset {
  0% {
    margin-top: 0em;
    transform: rotate(-45deg);
  }
  20% {
    transform: rotate(0deg);
  }
  60% {
    margin-top: -1.7em;
    transform: rotate(0deg);
  }
  100% {
    margin-top: -1.5em;
    transform: rotate(0deg);
  }
}
@keyframes burg2bottomReset {
  0% {
    margin-top: 0em;
    transform: rotate(-45deg);
  }
  20% {
    transform: rotate(0deg);
  }
  60% {
    margin-top: -1.7em;
    transform: rotate(0deg);
  }
  100% {
    margin-top: -1.5em;
    transform: rotate(0deg);
  }
}

.scrolldown {
  --color: white;
  --sizeX: 30px;
  --sizeY: 50px;
  position: relative;
  width: var(--sizeX);
  height: var(--sizeY);
  margin-left: var(sizeX / 2);
  border: calc(var(--sizeX) / 10) solid var(--color);
  border-radius: 50px;
  box-sizing: border-box;
  margin-bottom: 16px;
  cursor: pointer;
}

.scrolldown::before {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background-color: var(--color);
  border-radius: 100%;
  animation: scrolldown-anim 2s infinite;
  box-sizing: border-box;
  box-shadow: 0px -5px 3px 1px #2a547066;
}

@keyframes scrolldown-anim {
  0% {
    opacity: 0;
    height: 6px;
  }

  40% {
    opacity: 1;
    height: 10px;
  }

  80% {
    transform: translate(0, 20px);
    height: 10px;
    opacity: 0;
  }

  100% {
    height: 3px;
    opacity: 0;
  }
}

.chevrons {
  padding: 6px 0 0 0;
  margin-left: -3px;
  margin-top: 48px;
  width: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chevrondown {
  margin-top: -6px;
  position: relative;
  border: solid var(--color);
  border-width: 0 3px 3px 0;
  display: inline-block;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
}

.chevrondown:nth-child(odd) {
  animation: pulse54012 500ms ease infinite alternate;
}

.chevrondown:nth-child(even) {
  animation: pulse54012 500ms ease infinite alternate 250ms;
}

@keyframes pulse54012 {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.5;
  }
}

.mobilemenu {
    color: #fff;
}
.menu-tool {
    z-index: 999;
}
.navbar-con.scrolled {
    height: auto;
    background: rgba(232,232,232,0.9);
	
}
.navbar-mobilemenu {
    height: 300px;
    background: linear-gradient(180deg, rgba(232,232,232,1) 0%, rgba(232,232,232,0) 50%);
}
.navbar-mobilemenu.open {
    height: 100vh;
    background: linear-gradient(180deg, rgba(232,232,232,1) 0%, rgba(232,232,232,0) 50%), url("../img/bg-1-m.jpg");
    background-size: cover;
    background-position: center;
}

.navbar-con {
    background: rgba(232,232,232,1.00);
    background: linear-gradient(180deg, rgba(232,232,232,1) 0%, rgba(232,232,232,0) 50%);
    height: 400px;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
}

.navbar-con nav {
	padding: 2rem;
	transition: padding 0.5s;
}
.navbar-con.scrolled nav {
	padding: 0.5rem;
	transition: padding 0.5s;
}

.navbar-con .navbar-brand img {
	width: 200px;
	transition: width 0.5s;
}
.navbar-con.scrolled .navbar-brand img {
	width: 150px;
	transition: width 0.5s;
}

.mobilemenucon {
    display: none;
}

.navbar-mobilemenu.open .mobilemenucon {
    display: flex;
}
.mobilemenu a {
    font-size: 1.5em;
    line-height: 2.5em;
}
.mobile-tel {
    color: #fff;
    font-size: 2em;
    text-decoration: none;
    background-color: #caaf7d;
    width: 80vw;
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
}
.mobile-tel:hover {
    text-decoration: none;
    color:#fff;
}
.mobile-fb {
    width:20vw;
    background-color: #212121;
}
.bg-01 {
    background: url("../img/bg-1.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 100px #1F1F1F;
}
.bg-02 {
    background: url("../img/bg-2.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.bg-03 {
    background: url("../img/bg-3.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 50%;
}
.bg-04 {
    background: url("../img/bg-4.jpg") #ebebeb;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.bg-06 {
    background: url("../img/bg-6.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.bg-07 {
    background: url("../img/bg-7.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
}
.ikons-bg {
    background: url("../img/bg-7.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
	border-radius: 50px;
}
.bg-08 {
    background: url("../img/bg-8.jpg") #ebebeb;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 40%;
}
.bg-09 {
    background: url("../img/bg-7.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}
.bg-footer {
    background: url('../img/bg-footer.jpg') #d9d9d9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.finanse-img {
	display: none;
}
@media all and (min-width:1400px){
	.finanse-img {
		display: block;
		margin-top: -550px;
	}
	#kontakt {
		margin-top: -70px;
	}
}

.grid-container {  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
  gap: 5px 5px;
  grid-auto-flow: row;
  grid-template-areas:
    ". ."
    ". ."
    ". ."
    ". ."
    ". .";
}

@media all and (min-width:992px){
	.grid-container {  display: grid;
	  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	  grid-template-rows: 1fr 1fr;
	  gap: 5px 5px;
	  grid-auto-flow: row;
	  grid-template-areas:
		". . . . ."
		". . . . .";
	}
}



.ikon-container {
	font-size: 18px;
	color: #fff;
	font-weight: 600;
}

.ikon-container img {
	height: 60px;
	opacity: 0.5;
	margin-bottom: 20px;
}

.lokalizacja-con {
	font-size: 25px;
	line-height: 25px;
	color: #fff;
	font-weight: 600;
}
.lokalizacja-con img {
	height: 100px;
	margin-bottom: 20px;
}
@media all and (min-width:992px){
	.lokalizacja-con img {
		height: 130px;
		margin-bottom: 20px;
	}
}
.panel {
	font-size: 14px;
	line-height: 25px;
}

.button-5 {
	padding: 10px;
	border: solid 1px #000;
	color: #000;
	background: transparent;
	text-decoration: none;
	display: inline-block;
	font-size: 14px;
	transition: all 0.5s;
}
.button-5:hover {
	background: #000;
	color: #fff;
	transition: all 0.5s;
}

.lista-head {
	background: #d3d3d3;
	padding: 20px 0;
}
.lista-body {
	padding: 15px 0;;
}
.lista-body {
	border-bottom: solid 1px #E0E0E0 
}
.lista-body a {
	padding: 5px;
	border: solid 1px #000;
	color: #000;
	background: transparent;
	text-decoration: none;
	display: inline-block;
	font-size: 11px;
	transition: all 0.5s;
}
@media all and (min-width:992px){
	.lista-body a {
		font-size: 14px;
	}
}
.lista-body a:hover {
	background: #000;
	color: #fff;
	transition: all 0.5s;
}

h1, h2 {
    font-family: 'Lato', sans-serif;
}
h1 {
    font-size: 22px;
	line-height: 22px;
	font-weight: 600;
}
@media all and (min-width: 1400px) {
    h1 {
        font-size: 50px;
		line-height: 50px;
    }
}
.ngl-1 {
	font-family: 'Lato', sans-serif;
	font-size: 30px;
	line-height: 35px;
	font-weight: 400;
}
.op-1 {
	font-size: 14px;
	line-height: 14px;
	font-weight: 400;
}
@media all and (min-width:992px){
	.op-1 {
		font-size: 22px;
		line-height: 25px;
		font-weight: 400;
	}
}

p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}
.ngl-2 {
    font-weight: 800;
    font-size: 18px;
}
.text-ngl {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    line-height: 20px;
}
.button-1 {
    font-family: 'Lato', sans-serif;
    background-color: #fff;
    color: #000;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.5s;
    opacity: 0.8;
    outline: 0;
    border: 0;
	display: inline-block;
}
.button-1:hover {
    text-decoration: none;
    opacity: 1;
    transition: all 0.5s;
}
.button-border {
	border: solid 1px #fff;
	background: transparent;
	padding: 25px 80px;
	text-decoration: none;
	display: inline-block;
	color: #fff;
	transition: all 0.5s;
}
.button-border:hover {
	border: solid 1px #fff;
	background: #fff;
	padding: 25px 80px;
	text-decoration: none;
	display: inline-block;
	color: #000;
	transition: all 0.5s;
}

.bg-grd {
background: rgb(11,19,6);
background: linear-gradient(0deg, rgba(11,19,6,1) 0%, rgba(32,59,19,1) 15%, rgba(25,46,15,1) 85%, rgba(11,19,6,1) 100%);
}

#menu-kontakt-button {
	background: url("../img/kontakt-button-bg.png") #2b370e;
	background-repeat: no-repeat;
	background-position: 95% 0%;
	background-size: 22%;
	padding: 15px 80px 15px 20px;
	color: #fff;
	text-decoration: none;
	display: block;
	font-weight: 700;
	line-height: 17px;
}
#menu-kontakt-button span {
	font-weight: 400;
	opacity: 0.6;
}

.hr-line-1 {
    height: 2px;
    width: 200px;
    background: #fff;
    display: inline-block;
    opacity: 0.5;
}
.hr-line-2 {
    height: 2px;
    width: 200px;
    background: #a9884f;
    display: inline-block;
    opacity: 0.5;
}
.hr-line-3 {
    height: 4px;
    width: 70%;
    background: #dcc186;
    display: inline-block;
    opacity: 1;
}
.hr-line-4 {
    height: 4px;
    width: 35%;
    background: #dcc186;
    display: inline-block;
    opacity: 1;
}
.bg-grey {
    background-color: #eeeeee;
}
@media all and (min-width:992px){
    .parent {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: 1fr;
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }
    .div1 { grid-area: 1 / 1 / 2 / 2; }
    .div2 { grid-area: 1 / 2 / 2 / 3; }
    .div3 { grid-area: 1 / 3 / 2 / 4; }
    .div4 { grid-area: 1 / 4 / 2 / 5; }
    .div5 { grid-area: 1 / 5 / 2 / 6; }
}



.domy-wartosc-1 {
	font-size: 120px;
	color: #565d47;
	font-weight: 600;
}
.domy-wartosc-2 {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	line-height: 24px;
	color: #000;
	font-weight: 400;
	
}
.ikona {
    opacity: 0.6;
}
@media all and (min-width:992px){
	.domy-wartosc-1 {
	font-size: 150px;
	}
	.domy-wartosc-2 {
		font-size: 14px;
		line-height: 24px;
	}
}

.lisc-con {
        position: absolute;
        overflow: hidden;
        bottom: -20.5vw;
        left: -50vw;
    }
    .lisc {
         width:120%;
    }
@media all and (min-width:992px){
    .lisc-con {
        position: absolute;
        overflow: hidden;
        bottom: -11.9vw;
        left: auto;
		width: 99%;
    }
    .lisc {
         width:100vw;
    }
}

.parent div {
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    font-family: 'Lato', sans-serif;
}
.parent div img {
    margin: 20px 0;
    height: 90px;
}
.ikony {
    padding: 80px 0;
    box-shadow: 0 0 50px 10px #8C8C8C;
}
.link-1, .link-1:hover {
    color: #dcc086;
    text-decoration: none;
}
.kontakt {
    line-height: 35px;
}
.mapa {
    box-shadow: -50px 0px 80px 0px #e9e9e9;
}
#pasek {
    font-family: 'Lato', sans-serif;
}
.pasek-text {
    font-size: 18px;
    color: #A6A6A6
}
.pasek-text span {
    font-weight: 800;
    color: #000;
}
#lokal {
    font-size: 24px;
    font-weight: 800;
}
.button-2 {
    padding: 10px 15px;
    color: #525252;
    text-decoration: none;
    border: solid 2px #525252;
    transition: all 0.5s;
    display: inline-block;
}
.button-2:hover {
    color: #fff;
    background: #000;
    text-decoration: none;
    border: solid 2px #525252;
    transition: all 0.5s;
}
#formularz5 input, #formularz5 textarea {
    width: 100%;
    background: transparent;
    outline: none;
    border: 0;
    padding: 5px;
    border-bottom: 2px solid #000;
    color: #000;
    font-size: 20px;
    font-weight: 300;
    margin: 1em 0;
}
#formularz5 input::-webkit-input-placeholder, #formularz5 textarea::-webkit-input-placeholder {
    color: #000;
    opacity: 0.8;
}

#formularz5 .check-con label {
    color: #000;
}
#formularz5 .check-con label {
    color: #000;
}
.css-checkbox + label {
    position: relative;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    height: 27px;
    color: rgb(0, 0, 0);
}
.css-checkbox + label::before {
    content: " ";
    display: inline-block;
    vertical-align: middle;
    margin-right: 3px;
    width: 35px;
    height: 35px;
    background-color: rgba(255,255,255,1.00);
    border-width: 1px;
    border-style: solid;
    border-color: rgba(66,66,66,1.00);
    border-radius: 2px;
    box-shadow: none;
}
.css-checkbox:checked + label::after {
    content: " "; background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSIjMzMzMjMwIiBkPSJNMTczLjg5OCA0MzkuNDA0bC0xNjYuNC0xNjYuNGMtOS45OTctOS45OTctOS45OTctMjYuMjA2IDAtMzYuMjA0bDM2LjIwMy0zNi4yMDRjOS45OTctOS45OTggMjYuMjA3LTkuOTk4IDM2LjIwNCAwTDE5MiAzMTIuNjkgNDMyLjA5NSA3Mi41OTZjOS45OTctOS45OTcgMjYuMjA3LTkuOTk3IDM2LjIwNCAwbDM2LjIwMyAzNi4yMDRjOS45OTcgOS45OTcgOS45OTcgMjYuMjA2IDAgMzYuMjA0bC0yOTQuNCAyOTQuNDAxYy05Ljk5OCA5Ljk5Ny0yNi4yMDcgOS45OTctMzYuMjA0LS4wMDF6Ii8+PC9zdmc+");
    background-repeat: no-repeat;
    background-size: 15px 15px;
    background-position: center center;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0px;
    left: 0px;
    top: 0px;
    text-align: center;
    background-color: transparent;
    font-size: 10px;
    height: 30px;
    width: 36px;
}
.check-con input {
    margin: 0;
    height: 0;
    outline: 0;
    line-height: 0;
    display: none;
}
.check-con {
    line-height: 15px;
    margin: 0;
    height: fit-content;
}
.check-con label {
    font-family: 'Lato', sans-serif;
    font-size: 0.8em;
    line-height: 1.2em;
    color: #fff;
}
.text-1, .text-1:hover {
    font-size: 18px;
    color: #000;
    text-decoration: none;
    margin-top: 10px;
    display: block;
}
.succes {
    background-color: #008d5085;
    padding: 1rem;
    color: #fff;
}
.error {
    background-color: #8d001685;
    padding: 1rem;
    color: #fff;
}
.emest {
    color: #fff;
    opacity: 0.3;
    text-decoration: none;
    transition: all 0.5s;
}
.emest:hover {
    color: #fff;
    opacity: 1;
    text-decoration: none;
    transition: all 0.5s;
}
.button-4 {
    padding: 10px 20px;
    border: 0;
	background: #272E1B;
	color: #fff;
}
.con-kontakt {
    position: fixed;
    right: 0;
    top: 45%;
    z-index: 9999;
}
.kon-b, .kon-b-mob {
    background-color: #caaf7d;
    padding: 10px;
}
.kon-b-2 {
    background-color: #4F4F4F;
    padding: 10px;
}

.nav-link {
    font-size: 12px;
}
#kontakt-button {
    background-color: #fff;
    color: #000;
    font-size: 15px;
}

.button-3 {
	background-color: #272E1B;
	border: solid 1px #272E1B;
	color: #fff;
	padding: 20px;
	text-decoration: none;
	font-size: 18px;
	display: inline-block;
	width: 280px;
}
.button-3-stroke {
	background-color: transparent;
	border: solid 1px #272E1B;
	color: #272E1B;
	padding: 20px;
	text-decoration: none;
	font-size: 18px;
	display: inline-block;
	width: 280px;
}

@media all and (min-width:1200px) {
    .nav-link {
        font-size: 15px;
    }
    #kontakt-button {
        font-size: 25px;
    }
}


/* =========================================================
   KARTA DOMU + HISTORIA CEN
   ========================================================= */

html.house-modal-open,
html.house-modal-open body { overflow: hidden; }

.house-detail-modal,
.house-detail-modal *,
.house-history-modal,
.house-history-modal * { box-sizing: border-box; }

.house-detail-modal {
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #1b1b1b;
  background: #f4f3f0;
  overflow: hidden;
  z-index: 2500;
}

.house-detail-modal:not([open]),
.house-history-modal:not([open]) { display: none; }

.house-detail-modal::backdrop,
.house-history-modal::backdrop {
  background: rgba(18,18,18,.72);
  backdrop-filter: blur(4px);
}

.house-detail-modal__panel {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(400px, 32vw) minmax(0, 1fr);
  background: #f4f3f0;
}

.house-detail-modal__close,
.house-history-modal__close {
  position: absolute;
  z-index: 20;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(27,27,27,.18);
  border-radius: 50%;
  color: #1b1b1b;
  background: rgba(255,255,255,.92);
  font: 300 30px/1 'Lato', sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

.house-detail-modal__sidebar {
  min-width: 0;
  padding: clamp(42px,4vw,68px) clamp(28px,3vw,50px) 50px;
  border-right: 1px solid rgba(27,27,27,.13);
  background: #f4f3f0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.house-detail-modal__heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.house-detail-modal__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #a88c58;
  font: 700 11px/1.3 'Montserrat', sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.house-detail-modal__heading h3,
.house-contact-panel h3,
.house-history-modal h3 {
  margin: 0;
  font-family: 'Lato', sans-serif;
  font-size: clamp(2.5rem,4.3vw,4.8rem);
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: .95;
}

.house-detail-status {
  flex: 0 0 auto;
  margin-top: 27px;
  padding: 8px 10px;
  border: 1px solid currentColor;
  font: 700 10px/1 'Montserrat', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.house-detail-status.is-wolny { color: #5d9808; }
.house-detail-status.is-rezerwacja { color: #c56609; }
.house-detail-status.is-sprzedany { color: #9a1414; }

.house-detail-modal__prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 32px 0 22px;
  padding: 0;
  border: 1px solid rgba(27,27,27,.14);
  background: rgba(27,27,27,.14);
}

.house-detail-modal__prices > div {
  padding: 18px;
  background: #f4f3f0;
}

.house-detail-modal__prices dt {
  margin-bottom: 7px;
  color: #777;
  font: 700 10px/1.3 'Montserrat', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.house-detail-modal__prices dd {
  margin: 0;
  color: #a88c58;
  font: 700 15px/1.4 'Lato', sans-serif;
}

.house-detail-modal__actions {
  display: grid;
  gap: 9px;
  margin-bottom: 34px;
}

.house-detail-action,
.house-table-action {
  border-radius: 0;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.house-detail-action {
  width: 100%;
  min-height: 48px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border: 1px solid rgba(27,27,27,.18);
  color: #1b1b1b;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  transition: .2s ease;
}

.house-detail-action:hover {
  border-color: #1b1b1b;
  color: #fff;
  background: #1b1b1b;
}

.house-detail-action--primary {
  border-color: #caaf7d;
  color: #fff;
  background: #caaf7d;
}

.house-detail-action--primary:hover {
  border-color: #1b1b1b;
  background: #1b1b1b;
}

.house-detail-action[hidden] { display: none !important; }

.house-detail-modal__section-title,
.house-area-group__title {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
}

.house-detail-modal__section-title { margin-bottom: 14px; }

.house-detail-modal__section-title h4,
.house-area-group h5 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.house-detail-modal__section-title span {
  color: #777;
  font-size: 12px;
}

.house-detail-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(27,27,27,.12);
}

.house-detail-summary > div {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
}

.house-detail-summary > div + div {
  border-left: 1px solid rgba(27,27,27,.12);
}

.house-detail-summary span {
  color: #777;
  font-size: 11px;
}

.house-detail-summary strong { font-size: 14px; }

.house-area-group {
  margin-top: 14px;
  padding: 15px 16px 11px;
  border: 1px solid rgba(27,27,27,.12);
}

.house-area-group__title { margin-bottom: 7px; }
.house-area-group__title h5 { color: #a88c58; }
.house-area-group__title strong { font-size: 12px; }

.house-area-group table {
  width: 100% !important;
  border-collapse: collapse;
}

.house-area-group th,
.house-area-group td {
  padding: 5px 0;
  border: 0;
  font-size: 12px;
  line-height: 1.35;
}

.house-area-group th {
  color: #6d6d6d;
  font-weight: 400;
  text-align: left;
}

.house-area-group td {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.house-detail-modal__viewer {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #efefef;
  overflow: hidden;
}

.house-detail-modal__stage {
  position: absolute;
  inset: 0 0 72px;
  display: grid;
  place-items: center;
  padding: clamp(22px,4vw,64px);
}

.house-detail-modal__stage img {
  width: auto;
  height: auto;
  max-width: 70%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.house-detail-modal__placeholder {
  color: #666;
  font-size: 14px;
}

.house-detail-modal__tabs {
  position: absolute;
  inset: auto 0 0;
  height: 72px;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  padding: 0 clamp(20px,5vw,80px);
  border-top: 1px solid rgba(27,27,27,.12);
  background: rgba(255,255,255,.94);
}

.house-detail-modal__tabs button {
  position: relative;
  border: 0;
  color: #777;
  background: transparent;
  font: 700 11px/1 'Montserrat', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.house-detail-modal__tabs button::after {
  content: "";
  position: absolute;
  right: 22%;
  bottom: 0;
  left: 22%;
  height: 2px;
  background: #caaf7d;
  opacity: 0;
  transform: scaleX(.5);
  transition: .2s ease;
}

.house-detail-modal__tabs button[aria-selected="true"] { color: #1b1b1b; }
.house-detail-modal__tabs button[aria-selected="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.house-contact-panel {
  position: absolute;
  z-index: 12;
  inset: 0 auto 0 0;
  width: min(520px,42vw);
  padding: 42px clamp(28px,3vw,50px);
  border-right: 1px solid rgba(27,27,27,.13);
  background: #f4f3f0;
  overflow-y: auto;
  box-shadow: 20px 0 60px rgba(0,0,0,.12);
}

.house-contact-panel[hidden] { display: none !important; }

.house-contact-panel__back {
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border: 1px solid rgba(27,27,27,.18);
  background: transparent;
  cursor: pointer;
}

.house-contact-panel > p {
  margin: 18px 0 28px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.house-contact-form {
  display: grid;
  gap: 16px;
}

.house-contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.house-contact-form label:not(.house-contact-form__consent) {
  display: grid;
  gap: 6px;
}

.house-contact-form label > span {
  color: #6a6a6a;
  font-size: 11px;
}

.house-contact-form input:not([type="checkbox"]),
.house-contact-form textarea {
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid rgba(27,27,27,.24);
  border-radius: 0;
  color: #1b1b1b;
  background: transparent;
  outline: none;
  font: 400 16px/1.4 'Lato', sans-serif;
}

.house-contact-form input:focus,
.house-contact-form textarea:focus { border-color: #caaf7d; }

.house-contact-form__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.house-contact-form__consent input { margin-top: 3px; }

.house-contact-form__status {
  min-height: 24px;
  color: #666;
  font-size: 12px;
  line-height: 1.5;
}

.house-contact-form__status.is-success { color: #4f7f12; }
.house-contact-form__status.is-error { color: #9a1414; }

.house-table-action {
  margin: 0 5px 5px 0;
  padding: 5px;
  border: 1px solid #000;
  color: #000;
  background: transparent;
  font-size: 11px;
  transition: all .5s;
}

.house-table-action:hover {
  color: #fff;
  background: #000;
}

.tabela_dom[data-house-key] { cursor: pointer; }

/* Historia cen */
.house-history-modal {
  width: min(760px,calc(100vw - 32px));
  max-height: min(760px,calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  border: 0;
  color: #1b1b1b;
  background: transparent;
  z-index: 2600;
}

.house-history-modal__panel {
  position: relative;
  max-height: min(760px,calc(100dvh - 32px));
  padding: clamp(30px,5vw,56px);
  overflow-y: auto;
  background: #f4f3f0;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}

.house-history-modal header { padding-right: 50px; }

.house-history-modal header > p,
.house-history-modal__status {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.house-history-modal__status {
  min-height: 22px;
  margin: 27px 0 12px;
}

.house-history-modal__table {
  overflow-x: auto;
  border-top: 1px solid rgba(27,27,27,.14);
}

.house-history-modal__table[hidden] { display: none !important; }

.house-history-modal table {
  width: 100% !important;
  min-width: 520px;
  border-collapse: collapse;
}

.house-history-modal th,
.house-history-modal td {
  padding: 16px 10px;
  border-bottom: 1px solid rgba(27,27,27,.14);
  font-size: 13px;
  text-align: left;
}

.house-history-modal thead th {
  color: #777;
  font: 700 10px/1.4 'Montserrat', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.house-history-modal tbody tr.is-current th,
.house-history-modal tbody tr.is-current td {
  color: #557f1c;
  font-weight: 700;
}

@media (max-width: 900px) {
  .house-detail-modal { overflow-y: auto; }

  .house-detail-modal__panel {
    display: block;
    height: auto;
    min-height: 100%;
  }

  .house-detail-modal__sidebar {
    padding: 72px 22px 36px;
    border-right: 0;
    overflow: visible;
  }

  .house-detail-modal__viewer {
    height: min(70dvh,680px);
    min-height: 440px;
  }

  .house-detail-modal__close {
    position: fixed;
    top: 13px;
    right: 13px;
  }

  .house-contact-panel {
    position: fixed;
    width: 100%;
    max-width: none;
    padding: 72px 22px 34px;
    border-right: 0;
  }
}

@media (max-width: 520px) {
  .house-detail-modal__prices,
  .house-detail-summary,
  .house-contact-form__row { grid-template-columns: 1fr; }

  .house-detail-summary > div + div {
    border-top: 1px solid rgba(27,27,27,.12);
    border-left: 0;
  }

  .house-detail-modal__viewer {
    min-height: 390px;
    height: 60dvh;
  }

  .house-detail-modal__stage {
    inset: 0 0 64px;
    padding: 16px;
  }

  .house-detail-modal__tabs {
    height: 64px;
    padding-inline: 8px;
  }

  .house-history-modal__panel { padding: 42px 18px 24px; }

  .house-history-modal__close {
    top: 10px;
    right: 10px;
  }
}


/* ================================================================
   RESPONSYWNA LISTA DOMÓW — bez DataTables
   ================================================================ */
.house-list-wrap {
  --house-list-line: rgba(27, 27, 27, .14);
  --house-list-muted: #777;
  --house-list-accent: #caaf7d;
  --house-list-paper: #f6f6f4;
  margin: 28px 0 70px;
  font-family: 'Lato', sans-serif;
}

.house-list-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr);
  gap: 34px;
  align-items: end;
  padding: 0 0 26px;
}

.house-list-intro__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #a88c58;
  font: 700 10px/1.3 'Montserrat', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.house-list-intro h3 {
  margin: 0;
  font: 400 clamp(30px, 4vw, 48px)/1.05 'Lato', sans-serif;
}

.house-list-intro p {
  max-width: 520px;
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.65;
}

.house-list {
  width: 100%;
  border-top: 1px solid var(--house-list-line);
  border-bottom: 1px solid var(--house-list-line);
}

.house-list__head,
.house-list__row {
  display: grid;
  grid-template-columns:
    minmax(130px, 1.05fr)
    minmax(105px, .8fr)
    minmax(105px, .8fr)
    minmax(150px, 1.15fr)
    minmax(125px, .9fr)
    minmax(120px, .85fr)
    minmax(180px, 1.2fr);
  align-items: center;
  gap: 0;
}

.house-list__head {
  min-height: 52px;
  color: var(--house-list-muted);
  background: rgba(255,255,255,.35);
  font: 700 10px/1.35 'Montserrat', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.house-list__head > div,
.house-list__cell {
  min-width: 0;
  padding: 15px 14px;
}

.house-list__head > div:first-child,
.house-list__cell:first-child {
  padding-left: 18px;
}

.house-list__head > div:last-child,
.house-list__cell:last-child {
  padding-right: 18px;
}

.house-list__row {
  position: relative;
  min-height: 92px;
  border-top: 1px solid var(--house-list-line);
  background: transparent;
  outline: none;
  transition: background-color .18s ease, transform .18s ease;
}

.house-list__body .house-list__row:first-child {
  border-top: 0;
}

.house-list__row:hover,
.house-list__row:focus-visible,
.house-list__row.active {
  background: rgba(255,255,255,.72);
}

.house-list__row:focus-visible {
  box-shadow: inset 3px 0 0 var(--house-list-accent);
}

.house-list__cell {
  color: #252525;
  font-size: 13px;
  line-height: 1.45;
}

.house-list__cell strong {
  font-weight: 700;
}

.house-list__cell--primary {
  display: grid;
  gap: 8px;
  align-content: center;
}

.house-list__house-name {
  color: #1b1b1b;
  font-size: 19px;
  font-weight: 700;
}

.house-list__status {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #666;
  font: 700 9px/1.2 'Montserrat', sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.house-list__status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.house-list__status.is-wolny { color: #62990f; }
.house-list__status.is-rezerwacja { color: #c16b12; }
.house-list__status.is-sprzedany { color: #a12626; }

.house-list__cell--price strong {
  color: #a88c58;
  font-size: 14px;
}

.house-list__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  justify-content: stretch;
}

.house-list .house-table-action,
.house-list__history-action,
.house-list__downloads a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(27,27,27,.2);
  border-radius: 0;
  color: #1b1b1b;
  background: transparent;
  font: 700 9px/1.2 'Montserrat', sans-serif;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: .18s ease;
}

.house-list .house-table-action {
  border-color: var(--house-list-accent);
  color: #fff;
  background: var(--house-list-accent);
}

.house-list__history-action {
  border: 1px solid rgba(27,27,27,.2);
  color: #1b1b1b;
  background: transparent;
}

.house-list .house-table-action:hover,
.house-list .house-table-action:focus-visible,
.house-list__history-action:hover,
.house-list__history-action:focus-visible,
.house-list__downloads a:hover,
.house-list__downloads a:focus-visible {
  border-color: #1b1b1b;
  color: #fff;
  background: #1b1b1b;
}

.house-list__downloads {
  display: contents;
}

.house-list .house-table-action,
.house-list__history-action,
.house-list__downloads a {
  width: 100%;
  min-width: 0;
  text-align: center;
}

@media (max-width: 1199.98px) {
  .house-list__head,
  .house-list__row {
    grid-template-columns:
      minmax(120px, 1fr)
      minmax(95px, .75fr)
      minmax(95px, .75fr)
      minmax(135px, 1fr)
      minmax(115px, .85fr)
      minmax(155px, 1.15fr);
  }

  .house-list__head > div:nth-child(6),
  .house-list__row > .house-list__cell:nth-child(6) {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .house-list-wrap {
    margin-top: 10px;
  }

  .house-list-intro {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 20px;
  }

  .house-list__head {
    display: none;
  }

  .house-list,
  .house-list__body {
    border: 0;
  }

  .house-list__body {
    display: grid;
    gap: 14px;
  }

  .house-list__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 0;
    padding: 18px;
    border: 1px solid var(--house-list-line) !important;
    background: rgba(255,255,255,.58);
  }

  .house-list__row:hover,
  .house-list__row:focus-visible,
  .house-list__row.active {
    background: #fff;
  }

  .house-list__cell,
  .house-list__head > div,
  .house-list__cell:first-child,
  .house-list__cell:last-child {
    padding: 11px 0;
  }

  .house-list__cell {
    display: grid;
    gap: 3px;
    align-content: start;
  }

  .house-list__cell::before {
    content: attr(data-label);
    color: var(--house-list-muted);
    font: 700 8px/1.3 'Montserrat', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .house-list__cell--primary {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--house-list-line);
  }

  .house-list__cell--primary::before {
    display: none;
  }

  .house-list__house-name {
    font-size: 23px;
  }

  .house-list__cell--price {
    grid-column: 1 / -1;
    padding: 14px 0;
  }

  .house-list__cell--price strong {
    font-size: 18px;
  }

  .house-list__row > .house-list__cell:nth-child(6) {
    display: grid;
  }

  .house-list__actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--house-list-line);
  }

  .house-list__actions::before {
    display: none;
  }

  .house-list .house-table-action,
  .house-list__history-action {
    width: 100%;
    min-height: 46px;
  }

  .house-list__downloads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
  }

  .house-list__downloads a {
    min-height: 42px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .house-list__row {
    grid-template-columns: 1fr;
  }

  .house-list__cell--price,
  .house-list__actions,
  .house-list__cell--primary {
    grid-column: 1;
  }

  .house-list__downloads {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   STATUS SPRZEDANY — pozycje nieaktywne
   ================================================================ */
.house-list__row.is-sold {
  background: rgba(27,27,27,.035);
  cursor: default !important;
  opacity: .52;
  user-select: none;
}

.house-list__row.is-sold:hover,
.house-list__row.is-sold:focus,
.house-list__row.is-sold:focus-visible,
.house-list__row.is-sold.active {
  background: rgba(27,27,27,.035);
  box-shadow: none;
  transform: none;
}

.house-list__row.is-sold .house-list__house-name,
.house-list__row.is-sold .house-list__cell,
.house-list__row.is-sold .house-list__cell strong,
.house-list__row.is-sold .house-list__cell--price strong,
.house-list__row.is-sold .house-list__status.is-sprzedany {
  color: #7d7d7d;
}

.house-list__sold-note {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(27,27,27,.16);
  color: #777;
  background: rgba(255,255,255,.3);
  font: 700 9px/1.2 'Montserrat', sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: default;
}

/* Sprzedany dom na mapie pozostaje oznaczony statusem, ale nie otwiera karty. */
[id^="path_"].is-sold-disabled {
  cursor: default !important;
}

@media (max-width: 767.98px) {
  .house-list__row.is-sold,
  .house-list__row.is-sold:hover,
  .house-list__row.is-sold:focus-visible,
  .house-list__row.is-sold.active {
    background: rgba(27,27,27,.035);
  }

  .house-list__row.is-sold .house-list__actions {
    border-top-color: rgba(27,27,27,.09);
  }

  .house-list__sold-note {
    width: 100%;
    min-height: 44px;
  }
}

/* ================================================================
   KOTWICE SEKCJI + POPUP CMS
   ================================================================ */

html {
  scroll-padding-top: 90px;
}

[data-section-anchor] {
  scroll-margin-top: 90px;
}

html.site-popup-open {
  overflow: hidden;
}

.site-popup,
.site-popup * {
  box-sizing: border-box;
}

.site-popup {
  width: min(980px, calc(100vw - 32px));
  max-width: 980px;
  max-height: min(720px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #1b1b1b;
}

.site-popup--text-only {
  width: min(680px, calc(100vw - 32px));
  max-width: 680px;
}

.site-popup::backdrop {
  background: rgba(20, 20, 20, .66);
  backdrop-filter: blur(5px);
}

.site-popup__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-height: min(720px, calc(100dvh - 32px));
  overflow: auto;
  background: #efefef;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

.site-popup__panel.has-image {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 430px;
}

.site-popup__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 68px);
  text-align: center;
}

.site-popup__title {
  margin: 0 0 22px;
  font-family: 'Lato', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}

.site-popup__title > :first-child {
  margin-top: 0;
}

.site-popup__title > :last-child {
  margin-bottom: 0;
}

.site-popup__title p {
  margin: 0 0 .16em;
  font: inherit;
  line-height: inherit;
}

.site-popup__title strong,
.site-popup__title b {
  font-weight: 800;
}

.site-popup__title a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-popup__text {
  color: #555;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.site-popup__text > :first-child {
  margin-top: 0;
}

.site-popup__text > :last-child {
  margin-bottom: 0;
}

.site-popup__text p {
  margin: 0 0 1em;
}

.site-popup__text strong,
.site-popup__text b {
  font-weight: 700;
}

.site-popup__text ul,
.site-popup__text ol {
  width: fit-content;
  max-width: 100%;
  margin: 1em auto;
  padding-left: 1.4em;
  text-align: left;
}

.site-popup__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-popup__media {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #d9d9d9;
}

.site-popup__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.site-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(27, 27, 27, .22);
  border-radius: 50%;
  background: rgba(239, 239, 239, .88);
  color: #1b1b1b;
  font: 300 27px/1 'Lato', sans-serif;
  cursor: pointer;
  backdrop-filter: blur(7px);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.site-popup__close:hover,
.site-popup__close:focus-visible {
  border-color: #7d7356;
  background: #7d7356;
  color: #fff;
  outline: none;
}

@media (max-width: 767.98px) {
  html {
    scroll-padding-top: 72px;
  }

  [data-section-anchor] {
    scroll-margin-top: 72px;
  }

  .site-popup {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .site-popup__panel,
  .site-popup__panel.has-image {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 20px);
  }

  .site-popup__content {
    min-height: 300px;
    padding: 54px 26px 34px;
  }

  .site-popup__media {
    min-height: min(48vh, 360px);
  }

  .site-popup__close {
    top: 12px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-popup__close {
    transition: none;
  }
}


/* ============================================================
   INTERAKTYWNA MAPA DOMÓW — automatyczne etapy z CMS
   SVG: assets/img/rezerwacja_etapy.jpg, viewBox 3500 × 1167
   ============================================================ */
.investment-map {
  --imap-green: 95, 169, 5;
  --imap-orange: 207, 120, 0;
  --imap-red: 197, 0, 28;
  position: relative;
  width: 100%;
  padding-bottom: 2rem;
}

.investment-map__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 0 4px;
}

.investment-map__instruction {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #666;
}

.investment-map__reset,
.investment-map__stage {
  appearance: none;
  border: 1px solid rgba(27,27,27,.18);
  background: rgba(255,255,255,.72);
  color: #1b1b1b;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.investment-map__reset:hover,
.investment-map__stage:hover {
  border-color: #7d7356;
  transform: translateY(-1px);
}

.investment-map__reset[hidden] { display: none !important; }

.investment-map__stages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.investment-map__stage.is-active {
  border-color: #7d7356;
  background: #7d7356;
  color: #fff;
}

.investment-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #666;
}

.investment-map__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.investment-map__legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.investment-map__legend .is-wolny { background: rgb(var(--imap-green)); }
.investment-map__legend .is-rezerwacja { background: rgb(var(--imap-orange)); }
.investment-map__legend .is-sprzedany { background: rgb(var(--imap-red)); }

.investment-map__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 3500 / 1167;
  overflow: hidden;
  background: #e8e8e8;
}

.investment-map__svg {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  touch-action: manipulation;
}

.investment-map__unit {
  fill: transparent;
  fill-opacity: .34;
  stroke: rgba(255,255,255,.9);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: fill .2s ease, fill-opacity .2s ease, opacity .25s ease, stroke-width .2s ease;
  cursor: pointer;
}

.investment-map__unit[data-status="wolny"] { fill: rgb(var(--imap-green)); }
.investment-map__unit[data-status="rezerwacja"] { fill: rgb(var(--imap-orange)); }
.investment-map__unit[data-status="sprzedany"] { fill: rgb(var(--imap-red)); }

.investment-map__unit:not(.is-sold-disabled):hover,
.investment-map__unit:not(.is-sold-disabled):focus-visible,
.investment-map__unit.active {
  fill-opacity: .68;
  stroke-width: 3;
  outline: none;
}

.investment-map__unit.active {
  fill-opacity: .82;
  filter: drop-shadow(0 0 5px rgba(0,0,0,.28));
}

.investment-map__unit.is-unavailable {
  fill: transparent !important;
  stroke: transparent !important;
  pointer-events: none;
  cursor: default;
}

.investment-map__unit.is-sold-disabled {
  fill-opacity: .27;
  cursor: default;
  pointer-events: auto;
}

.investment-map__unit.is-outside-stage {
  opacity: .035;
  pointer-events: none;
}

.investment-map__tooltip {
  position: absolute;
  z-index: 5;
  transform: translate(12px, -50%);
  pointer-events: none;
  padding: 8px 10px;
  background: rgba(27,27,27,.93);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.investment-map__tooltip[hidden] { display: none !important; }

@media (max-width: 767px) {
  .investment-map__controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .investment-map__viewport {
    aspect-ratio: 3500 / 1500;
  }

  .investment-map__instruction { font-size: 12px; }
  .investment-map__stage,
  .investment-map__reset { padding: 9px 11px; }
}
