body,html {font-size:100%;background:#fff;font-family:Raleway,sans-serif!important;}
h1,h2,h3,h4,h5,h6 {margin:0 0 18px;}
p {margin:0;}
ul {margin:0;padding:0;}
body a:hover {text-decoration:none;}
.pas {
	background-color: #21295e;
	height: .7em;
	width: 100%;
}

.header {
    display: flex;
    flex-wrap: wrap; /* Elementy będą się zawijać */
    justify-content: center;
    align-items: center;
    padding: 10px 5%;
    width: 100%;
    box-sizing: border-box;
	
}

.logo { 
	width: 20%;
	text-align: center;
}
.logo img {
    max-width: 100%; /* Zapewnia skalowanie logo */
    height: auto;
}

.telefon {
	width: 20%;
	padding-left: 1em;
    font-size: 1rem;
    display: flex; /* Aktywuje flexbox */
    align-items: center;
}
.telefon img {
    margin-right: 1em;
    height: auto;
    max-width: 50px;
}
.telefon span {
	display: flex;
    flex-direction: column;
}

.top-nav { 
    width: 50%;
    font-family: Oswald, sans-serif;
    border-right: 1px solid #ccc;
    height: 2.5em;
    position: relative; /* Pozycja względna dla elementów wewnętrznych */
    display: flex; /* Użycie flexboxa */
    justify-content: flex-end; /* Wyrównanie do prawej */
    align-items: center; /* Wyśrodkowanie w pionie */
    text-align: right; /* Tekst również wyrównany do prawej */
    padding-right: 1em; /* Dodatkowy odstęp od prawej krawędzi */
}

span.meni {
    display: none;
}

.top-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    list-style: none;
}

.top-nav ul li {
    display: inline-block;
    margin-left: 2em;
}

.top-nav ul li a {
    color: #000;
    padding: 0;
    font-size: 17px;
    position: relative;
    text-transform: uppercase;
}

.top-nav ul li a:hover {
    text-decoration: none;
    background: 0 0;
    color: #74543d;
}

.top-nav ul li a::before {
    color: #74543d;
    content: attr(data-hover);
    position: absolute;
    opacity: 0;
    text-shadow: 0 0 1px rgba(255,255,255,0.3);
    transform: scale(1.1) translateX(10px) translateY(-10px) rotate(4deg);
    transition: transform .3s, opacity .3s;
    pointer-events: none;
}

.top-nav ul li a:focus::before, .top-nav ul li a:hover::before {
    transform: scale(1) translateX(0) translateY(0) rotate(0);
    opacity: 1;
}

.banner {
    width: 100%;
    height: auto; /* Upewnia się, że nie wymusza stałej wysokości */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
	background-color: #f9f9f9;
    background-size: cover;
}
.banner a { color: #21295e; }
.banner img {
    max-width: 100%;
    height: auto;
}
.container {
	position:relative;
	overflow: hidden;
	width:100%;
	padding:0;
}
.o-container { margin:auto; width:80%; padding: 2em 0; }
.o-container h3 { margin: 1em 0; }
.o-container ul { margin: 0 0 1em 1em; }
.o-container ul li { margin-left: 1em; }

.slider { width:100%; }

#t-container {
    width: 100%;
    display: flex;
	align-items: stretch;
    justify-content: space-between;
    padding: 2% 10%;
	position: relative;
	background-image:url('https://nieruchomosciopole.com/gfx/tlo-porady.webp');
    background-size: cover;
    background-position: center;	
	height:50%;
	z-index: 1;
}
#t-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 41, 94, 0.4); /* półprzezroczysta klisza */
    z-index: -1;
}
#t-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://nieruchomosciopole.com/gfx/tlo-porady.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.4; /* wyblakłość tła */
    z-index: -2;
}

.t-left {
    width: 70%;
    padding: 20px;
}
.lewo { width: 45%; }

.t-left p {
    color: #fff;
    margin-bottom: 1em;
}

.t-right {
    width: 30%;
    padding: 20px;
}
.prawo { width: 55%; }

.t-right img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

		.overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
			z-index: 9999;
        }

        .overlay-content {
            text-align: center;
            color: #fff;
        }

        .overlay img {
            max-width: 90%;
            max-height: 80%;
			margin-top:2em;
        }

        .overlay p {
            margin-top: 10px;
        }

        .close-overlay {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 4em;
            color: #fff;
            cursor: pointer;
        }
		
#cards-container {display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:25px;width:100%;max-width:100%;padding:2% 10%;background-color:#fff;align-items:stretch;}

.property-card-link {display:flex;text-decoration:none;color:inherit;height:100%;}
.property-card {background-color:#fff;box-shadow:0 4px 12px rgba(0,0,0,0.1);border-radius:10px;padding:30px;transition:transform .3s ease;display:flex;flex-direction:column;width:100%;height:100%;}

.property-card ul, .banner ul { list-style: square; }
.property-card ul li::marker, .banner ul li::marker { color: #A13B07; }
.banner ul li { margin-left: 1em; }

.card-content {flex-grow:1;display:flex;flex-direction:column;}
.property-card:focus-within,.property-card:hover {transform:translateY(-5px);box-shadow:0 6px 16px rgba(0,0,0,0.15);outline:2px solid #EFEDED;}
.property-card:active {transform:translateY(0);box-shadow:0 2px 6px rgba(0,0,0,0.1);}
.card-header {display:flex;align-items:center;gap:15px;margin-bottom:20px;}
.card-icon {font-size:28px;color:#3c2114;min-width:40px;text-align:center;}
.property-card h1 {font-size:clamp(15px,2vw,20px);color:#333;margin:0;font-weight:700;text-align:left;}
.property-card p {font-size:clamp(14px,1.6vw,16px);color:#666;line-height:1.6;margin-bottom:12px;text-align:left;}
.contact {padding:5em 0;}
.line {width:31%;margin:.5em auto;border:1px dashed #653221;}

.slider-item {
  min-width: 100%;
  box-sizing: border-box;
  height: 500px;
  display: flex;
  align-items: center;
}

.slider-item img {
  width: 45%;
  object-fit: cover;
  object-position: top;
  height: 500px;
}

#test {
  box-sizing: border-box;
  width: 55%;
  padding: 3em;
}

#test .nagsmall {
  text-transform: uppercase;
  font-size: 1em;
  color: #0B3040;
}

#test h3 {
  text-transform: uppercase;
  color: #21295e;
  font-size: 3.8em;
  font-family: 'Oswald', sans-serif;
}

#test .nagopis {
  font-size: 1em;
  color: #0B3040;
}

#but-menu button.active-btn {
	background-color: #21295e;
}

#test button, .menu-but, .listing-content button, button {
  position: relative;
  margin-top: 1em;
  background-color: #21295e;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 45px;
  cursor: pointer;
}

#test button:hover, .menu-but:hover, .listing-content button:hover, button:hover {
  background-color: #00a3e0;
}

.back-to-top button, .prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 18px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 45px;
  z-index: 10;
}

.back-to-top button:hover {
  background-color: #00a3e0;
}
.prev {
  left: 10px; /* Ustawienie przycisku Previous po lewej */
}

.next {
  right: 10px; /* Ustawienie przycisku Next po prawej */
}

.department-content {
  display: none;
  align-items: center;
  justify-content: center;
}
.department-content.active {
  display: flex;
}	
.active {
  display: block;
}

/* główna */

.cards-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 80px;
  justify-content: center;
  padding: 40px 20px;
  
  max-width: 1200px;
  margin: 0 auto; /* centrowanie na stronie */
}

.project-card {
  
  flex: 1 1 300px;
  max-width: 320px;
  font-family: Arial, sans-serif;
  position: relative;
}

.project-image-container {
  width: 100%;
  height: 200px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #00a3e0;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 15px;
  text-transform: uppercase;
}

.project-info {
  width: 90%;
  background-color: white;
  padding: 20px;
  border-radius: 20px;
  margin-top: -30px;
  margin-left: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.category {
  font-size: 12px;
  color: #0072b5;
  font-weight: bold;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.title {
  font-size: 18px;
  color: #002b45;
  font-weight: bold;
  margin: 0;
  width: 92%;
}

.arrow-button {
  position: absolute;
  right: 10px;
  bottom: 25px;
  width: 36px;
  height: 36px;
  background-color: #002b45;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s;
}

.arrow-button:hover {
  background-color: #00a3e0;
}
.toggle-ukryte-filtry {
  display: none;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  .cards-grid {
    flex-direction: column;
    align-items: center;
  }
}



/* koniec głównej */


@-webkit-keyframes imagelightbox-loading {
	from {opacity:0.5;-webkit-transform:scale(.75);}
	50% {opacity:1;-webkit-transform:scale(1);}
	to {opacity:0.5;-webkit-transform:scale(.75);}
}
@keyframes imagelightbox-loading {
     from {opacity:0.5;transform:scale(.75);}
     50% {opacity:1;transform:scale(1);}
     to {opacity:0.5;transform:scale(.75);}
     }
@-webkit-keyframes fade-in {
     from {opacity:0;}
     to {opacity:1;}
    }
@keyframes fade-in {
     from {opacity:0;}
     to {opacity:1;}
    }

.c-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    background: white;
    padding: 2% 10%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-info {
    width: 40%;
    padding-right: 20px;
}

.contact-info h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.contact-info .details {
    margin-top: 20px;
}

.details div {
    margin-bottom: 10px;
}

.details i {
    color: #3C2114;
    margin-right: 10px;
}

.form-container {
    width: 60%;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.form-container input, .form-container textarea, #sidebar input, #sidebar select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .g-recaptcha {
    flex: 1 1 auto;
    min-width: 250px;
}
.form-container input[type="submit"] {
    background-color: #21295e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 45px;
    font-size: 14px;
    cursor: pointer;
	width: 20%;
}
.form-container input[type="submit"]:hover {
	background-color: #00a3e0;
}

.copy {text-align:center;background:#21295e;padding:1.5em 1em;}
.copy p {color:#fff;font-size:14px;}
.copy p a {color:#fff;}
.copy p a:hover {text-decoration:underline;}

#topp {position:fixed;bottom:5em;right:5em;display:none;}

/* ogloszenie */
.property-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 95%;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  padding: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 1px solid #e0e0e0;
  padding: 6px 0;
}

.label {
  font-weight: 600;
  color: #333;
  flex: 1 1 50%;
  min-width: 120px;
}

.value {
  color: #555;
  flex: 1 1 50%;
  text-align: right;
}

.additional-info {
  margin-top: 24px;
  font-family: Arial, sans-serif;
  padding: 0 16px;
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
}

.additional-info h3 {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #333;
}

.additional-info ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #555;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 4px 16px;
}
/* ogloszenie */
.ogl-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: nowrap;
  padding: 2% 10%;      /* taki sam padding jak było w cards-container */
  box-sizing: border-box;
}
  
#kards-container {
  order: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#sidebar {
  order: 2;
  width: 25%;
  padding: 20px;
  position: sticky;
  top: 40px; /* żeby „przyklejał się” przy scrollu, opcjonalnie */
}

 .listing-card {
      display: flex;
      background-color: white;
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      overflow: hidden;
      margin-bottom: 20px;
      max-width: 100%;
    }

 .listing-image {
  width: 35%;

  aspect-ratio: 16 / 9;
   overflow: hidden;
}
.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  
  display: block;
}

    .listing-content {
	  width: 65%;
      padding: 1.1em 2em;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .listing-price {
      font-size: 20px;
      font-weight: bold;
      color: #000;
      margin-bottom: 8px;
	  font-family: 'Sora', sans-serif;
    }

    .listing-title {
      font-size: 16px;
      font-weight: 500;
      margin-bottom: 4px;
    }

    .listing-location {
      font-size: 1em;
      color: #6b7280;
      margin-bottom: 12px;
    }

    .listing-details {
      font-size: 1em;
      color: #374151;
	  font-family: 'Sora', sans-serif;
    }

@media (max-width:1430px) {
	.telefon { width: 20%; }
	.telefon small { font-size: .9em; }
	.top-nav ul li a { font-size: .9em; }
}
@media (max-width:1290px) {
	.telefon, .logo { width: 20%; }
	.telefon { font-size: .7em; }
	.top-nav { width: 60%; }
	.top-nav ul li a { font-size: .7em; }
}
@media (max-width:768px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
		clear:all;
    }
    .banner {
        flex-direction: column;
    }
    
    .logo, .telefon {
        width: 100%;
        padding: 0.3em 0; /* Zmniejszenie paddingu */
        height: 5em; /* Zapobiega nadmiernemu rozciąganiu */
        min-height: 50px; /* Opcjonalnie, jeśli chcesz ograniczyć minimalną wysokość */
        display: flex;
        justify-content: center;
        align-items: center; 
    }
	.telefon span {
		text-align: left;
		width: 100%;
		font-size: 1.2em;
	}
    .telefon img {
        float: none;
        display: block;
        margin: 0 auto;
        max-width: 40px; /* Ograniczenie szerokości obrazka */
        height: auto; /* Automatyczne dopasowanie wysokości */
    }	
    .container {
		overflow: visible;
    }
	.logo {
        padding: 1em;
    }
    .top-nav {
        width: 100%;
        border-right: none;
    }
    .top-nav ul {
		display: none;
		position: absolute;		
		top: -40%;
		left: 25%;
		transform: translateX(-50%);
		text-align: center;
		padding: .5em 0;
		width: 12em;
		z-index: 9999;
		background: #a98316;
    }
	
    .top-nav ul li {
        margin-left: 1em;
		display: inline-block;
        border: none;
        width: 100%;
        padding: 17px 1em;
        text-align: center;
		margin: 0;
		border-bottom: 1px solid #775d14;
    }
	
    .top-nav ul.nav li a {
        color: #fff;
		font-size:1em;
    }
	
  #t-container {
    flex-direction: column;
    padding: 0; /* <- usuwa 2% 10% */
    box-sizing: border-box;
  }

  .t-left,
  .t-right {
    width: 100%;
    padding: .5em; /* lub np. padding: 1em; */
    margin: 0;
    box-sizing: border-box;
  }
  


    .slider {
        display: none;
    }
	span.meni {
		position: absolute;
		top: -3em;
		left: 2px;
		cursor: pointer;
		z-index: 10000; /* Najwyższy priorytet, aby było widoczne */
		background: none;
		border: none;
		font-size: 1.8em;
        color: #dfa80b;
        display: inline-block;
	}
	
  .ogl-wrapper {
    flex-direction: column;
    padding: 0; /* zerujemy padding w wrapperze */
    align-items: center; /* centrujemy dzieci */
    gap: 20px;
  }
   #sidebar, #kards-container {
    width: 95%;
    max-width: 95%;
    margin: 0 auto; /* centrowanie poziome */
    position: static;
   }
  #sidebar {
    order: 1; /* sidebar pierwszy na mobile */
    width: 100%;
    margin-bottom: 20px;
  }
  #kards-container {
    order: 2;
    gap: 0;
  }
  
   .toggle-ukryte-filtry {
    display: inline-block;
    margin-bottom: 1em;
    color: #007bff;
    text-decoration: underline;
    font-size: 1em;
    cursor: pointer;
  }

  .ukryte-filtry {
    display: none;
  }

  .ukryte-filtry.active {
    display: block;
  }
	.listing-card {
		width: 100%;
        flex-direction: column;
      }

      .listing-image {
        width: 100%;
        height: 200px;
      }
	  .listing-content {
		  width:100%;
	  }
  .label, .value {
    flex: 1 1 100%;
    text-align: left;
  }
  .detail-row {
    flex-direction: column;
  }
  .additional-info ul {
    grid-template-columns: 1fr;
  }

  .slider-item {
    flex-direction: column;
    height: auto;
    text-align: center;
  }

  .slider-item img {
    width: 100%;
    height: auto;
  }

  #test {
    width: 100%;
    padding: 2em;
  }

  #test h3 {
    font-size: 2.5em;
  }

  #test button {
    font-size: 1em;
    padding: 8px 16px;
  }

	 #cards-container {     
		display: flex;
		flex-direction: column; /* Ustawienie elementów w kolumnie */
		align-items: center; /* Wyśrodkowanie elementów */
		gap: 20px;
	}
	.property-card-link {
		width: 100%; /* Karta zajmuje całą szerokość */
		max-width: 90%; /* Ograniczenie szerokości */
	}
     #container {flex-direction:column;padding:0 5%;}
     .t-left,.t-right {width:100%;margin-bottom:20px;}

	 .c-container {
        flex-direction: column;
        padding: 5%;
    }
    .contact-info, .form-container {
        width: 100%;
        padding-right: 0;
    }
	.form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-container input[type="submit"] {
        align-self: center;
        margin-top: 20px;
        width: 100%;
    }
}
@media (max-width:640px) {
     .top-nav span {font-size:1.5em;}
     .logo {padding:1.5em 3em;}

     }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #222;
  color: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  text-align: center;
}

.cookie-banner a {
  color: #00bcd4;
  text-decoration: underline;
}

.cookie-banner button {
  padding: 8px 16px;
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.cookie-banner.hidden {
  display: none;
}