html {
  scroll-behavior: smooth;
  scroll-padding-top: 71px; /* height of sticky header */
}

/* Theme colors are set via inline <style> in base.html from site config.
   Defaults here act as a fallback. */
:root {
  --color-primary: #2B68A1;
  --color-accent: #FFC800;
  --color-card-shadow: #FFF2C2;
}

/* Scroll bar stylings */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1; 
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #3d90df; 
  border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent); 
}

/* Remove the navbar's default margin-bottom and rounded borders */
.navbar {
  margin-bottom: 0;
  border-radius: 0;
}

.carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-height: 250px;
}

/* Hide the carousel text when the screen is less than 600 pixels wide */
@media (max-width:600px) {
  .carousel-caption {
    display: none; 
  }

}

.copyright-designed {
  font-size: .85rem;
}

.map-responsive{
  overflow:hidden;
  padding-bottom:56.25%;
  position:relative;
  height:0;
}

.map-responsive iframe{
  left:0;
  top:0;
  height:100%;
  width:100%;
  position:absolute;
}

p {
  word-wrap: break-word;
}

.post {
  max-height: none;
  overflow: auto;
}

/*Gallery css for mini gallery scroll*/
.gallery::-webkit-scrollbar {
  height: 8px;
  width: 8px;
  background: var(--color-accent);
  color: var(--color-primary);
}

.gallery::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  -webkit-border-radius: 1ex;
  -webkit-box-shadow: 0px 1px 2px var(--color-primary);
}

.gallery::-webkit-scrollbar-corner {
  background: var(--color-primary);
}

.gallery {
  overflow: auto;
  white-space: nowrap;
}

/* width */
.gallery::-webkit-scrollbar {
  width: 8px;
}

/* Track */
.gallery::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
.gallery::-webkit-scrollbar-thumb {
  background:  var(--color-accent);
}

/* Handle on hover */
.gallery::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.card {
  box-shadow: 1px 1px 8px 4px grey;
}

.card-href, .card-href:hover {
  text-decoration: none;
  color: var(--color-primary); 
}

.card-details {
 background-color: #f8f7f9;
 box-shadow: 2px 2px 8px 2px var(--color-card-shadow);
 font-weight: 600;
}

.card-details:hover {
  box-shadow: 2px 2px 8px 2px var(--color-primary);
}

.card-galery-custom {
  width: 50px;
  height: 50px;
  overflow: hidden;
  margin: 5px;
  display: inline-block;
  box-shadow: 1px 1px 4px 3px var(--color-card-shadow);
}

.card-galery-custom:hover {
  box-shadow: 1px 1px 4px 3px var(--color-primary);
}

.card-galery-custom img{
  width: 50px;
  height: 50px;

}

.card-galery-custom:hover {
  transform: scale(1.1);
}

.img-gallery-custom {
  width: 200px;
  max-height: 200px;
  overflow: hidden;
  box-shadow: 1px 1px 8px 3px grey;
}

.img-gallery-custom img {
  width: 200px;
  height: 200px;
}

@media only screen and (min-width:1110px) {
  .carousel-inner {
    width: 100%;
    overflow: hidden;
    max-height: 75vh;
  }
  .carousel-item > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-height: 250px;
  }
}

@media only screen and (min-width:768px) {
  .card:hover {
    transform: scale(1.05);
  }
  .img-gallery-custom:hover {
    transform: scale(1.05);
  }
  .height-custom{
    min-height: 75%;
  }
}

@media only screen and (max-width:441px) {
  html {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    max-width: 100vw !important;
    overflow: hidden !important;
    overflow-y: auto !important;
  }
  html ::-webkit-scrollbar {
    display: none;
  }

  .img-gallery-custom {
    width: 125px;
    max-height: 125px;
  }

  .img-gallery-custom img {
    width: 125px;
    height: 125px;
  }

  .site-footer {
    font-size: small;
  }

  .footer-stuff {
    display: block !important;
    text-align: center;
  }


}


.site-footer a, .site-footer a:hover {
  text-decoration: none;
  color: white; 
}

.height-custom{
  min-height: 80%;
  margin-bottom: 3em;
}

.modal-dialog {
  max-width: 730px;
}

.wrap-modal-slider {
  padding: 0 30px;
  opacity: 0;
  transition: all 0.3s;
}

.wrap-modal-slider.open {
  opacity: 1;
}

.slick-prev:before, .slick-next:before {
  color: var(--color-accent);
}

/*slider*/
.row > .column {
  padding: 0 8px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Create four equal columns that floats next to eachother */
.column {
  float: left;
  width: 25%;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
}

/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

/* Hide the slides by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Caption text */
.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}

img.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

body {
  background-color: #f8f7f9;
}

.color-main-icon {
  color: white;
}

.color-main-icon:hover {
  color: var(--color-accent);
}

.navbar-brand.active .color-main-icon {
  color: var(--color-accent);
}

/* Navbar background */
.navbar-custom {
  background-color: var(--color-primary);
  padding-top: .6rem;
  padding-bottom: .6rem;
  transition: background-color .3s;
}

/* Nav links – base */
.navbar-custom .nav-link {
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .3px;
  color: rgba(255, 255, 255, .85) !important;
  padding: .5rem .9rem;
  position: relative;
  transition: color .2s;
}

/* Underline indicator */
.navbar-custom .nav-item .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width .25s ease, left .25s ease;
}

.navbar-custom .nav-item .nav-link:hover::after,
.navbar-custom .nav-item .nav-link.active::after {
  width: 70%;
  left: 15%;
}

.navbar-custom .nav-link:hover {
  color: #fff !important;
}

.navbar-custom .nav-link.active {
  color: var(--color-accent) !important;
  font-weight: 600;
}

/* CTA button in navbar */
.nav-cta-btn {
  background-color: var(--color-accent);
  color: #1a1a1a !important;
  font-weight: 700;
  font-size: .85rem;
  padding: .45rem 1.2rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-right: .8rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .20);
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .30);
  text-decoration: none;
  color: #1a1a1a !important;
}

/* Icon-only nav links (map, social) */
.nav-icon-link {
  font-size: 1rem;
  opacity: .8;
  padding: .5rem .6rem !important;
  transition: opacity .2s, color .2s;
}

.nav-icon-link:hover {
  opacity: 1;
}

/* Phone link */
.nav-phone-link {
  font-size: .9rem;
  white-space: nowrap;
}

.form_after {
  display: none;
}

.btn-primary {
  background-color: white !important;
  border-color: var(--color-primary)!important;
  color: var(--color-primary);
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--color-primary)!important;
  color: white;
}

h1, h2 {
  color: var(--color-primary);
  font-weight: 700;
}

h3 {
  color: var(--color-primary);
  font-weight: 600;
}
h5 {
  color: var(--color-primary);
  font-weight: 500;
}

.site-footer {
  background-color: var(--color-primary); 
}

.list-group-item {
  background-color: var(--color-primary)!important;
  color: white;
}

.dla_warto_img {
  width: auto;
  max-height: 250px;
}

/* ===================================================================
   Hero Section – overlay on carousel with headline + CTA
   =================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.20) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;          /* let carousel controls through */
}

.hero-content {
  text-align: center;
  color: #fff;
  padding: 1rem 1.5rem;
  pointer-events: auto;          /* re-enable clicks on CTA */
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .50);
  margin-bottom: .3rem;
  letter-spacing: 1px;
}

.hero-tagline {
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .40);
  margin-bottom: 1.6rem;
}

.hero-cta {
  background-color: var(--color-accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.05rem;
  padding: .75rem 2.4rem;
  border-radius: 50px;
  border: none;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .30);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .40);
  color: #1a1a1a;
  text-decoration: none;
}

/* Hide individual slide captions when the overlay is active */
.hero-section .carousel-caption {
  display: none;
}

/* Keep carousel controls clickable above overlay */
.hero-section .carousel-indicators {
  z-index: 15;
}
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
  z-index: 15;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-tagline {
    font-size: 1rem;
  }
  .hero-cta {
    padding: .6rem 1.6rem;
    font-size: .95rem;
  }
}

@media (max-width: 440px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-tagline {
    font-size: .9rem;
    margin-bottom: 1rem;
  }
}

/* ===================================================================
   Booking Card
   =================================================================== */
.booking-section {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.booking-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 36px rgba(0, 0, 0, .10);
  padding: 2rem 1.75rem;
  border-top: 4px solid var(--color-primary);
}

.booking-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.booking-card-header i {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: .4rem;
  display: block;
}

.booking-card-header h3 {
  margin-bottom: 0;
}

.booking-form .input-group-text {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  min-width: 44px;
  justify-content: center;
}

.booking-form .form-control {
  border-color: #dee2e6;
  transition: border-color .2s, box-shadow .2s;
}

.booking-form .form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 .18rem rgba(0, 0, 0, .06);
}

.btn-booking-submit {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: .7rem 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--color-primary);
  transition: background-color .25s, color .25s;
}

.btn-booking-submit:hover {
  background-color: transparent;
  color: var(--color-primary);
}

/* ===================================================================
   Intro Text (next to booking card)
   =================================================================== */
.intro-text {
  padding: 2rem 1rem;
}

.intro-text h2 {
  margin-bottom: 1rem;
}

.btn-outline-hero {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  border-radius: 50px;
  padding: .5rem 1.8rem;
  transition: background-color .25s, color .25s;
}

.btn-outline-hero:hover {
  background-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ===================================================================
   Image Divider
   =================================================================== */
.image-divider {
  overflow: hidden;
  line-height: 0;
}

.image-divider img {
  width: 100%;
  height: auto;
  display: block;
}

/* On large screens, cap height and use cover for cinematic strip look */
@media (min-width: 768px) {
  .image-divider {
    max-height: 500px;
  }
  .image-divider img {
    height: 500px;
    object-fit: cover;
    object-position: center;
  }
}

/* ===================================================================
   News Ribbon (top announcement bar)
   =================================================================== */
.news-ribbon {
  background: var(--color-primary);
  color: #fff;
  font-size: .95rem;
}
.news-ribbon a.news-ribbon-btn {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 20px;
  font-size: .8rem;
  padding: .25rem .75rem;
  transition: background .25s;
}
.news-ribbon a.news-ribbon-btn:hover {
  background: rgba(255,255,255,.35);
  text-decoration: none;
}

/* ===================================================================
   Section Heading
   =================================================================== */
.section-heading {
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--color-primary);
}

/* ===================================================================
   Post Carousel
   =================================================================== */
.post-carousel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  overflow: hidden;
}
.post-carousel .carousel-indicators li {
  background-color: var(--color-primary);
  opacity: .35;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 4px;
}
.post-carousel .carousel-indicators .active {
  opacity: 1;
}
.post-carousel .carousel-control-prev-icon,
.post-carousel .carousel-control-next-icon {
  background-color: var(--color-primary);
  border-radius: 50%;
  padding: 12px;
  background-size: 50%;
}

/* Single slide */
.post-slide {
  display: flex;
  flex-direction: column;
}
.post-slide-img {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #e8e8e8;
}
.post-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-slide-body {
  padding: 1.5rem 1.75rem 2rem;
}
.post-slide-date {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 20px;
  margin-bottom: .75rem;
}
.post-slide-title {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: .5rem;
  color: #1a1a1a;
}
.post-slide-excerpt {
  color: #555;
  font-size: .95rem;
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 768px) {
  .post-slide {
    flex-direction: row;
    min-height: 300px;
  }
  .post-slide-img {
    width: 45%;
    min-width: 45%;
    height: auto;
  }
  .post-slide-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ===================================================================
   Info Feature Cards
   =================================================================== */
.info-features {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 2rem 1.5rem;
  height: 100%;
}
.info-features-title {
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: #1a1a1a;
}
.info-features-title span {
  color: var(--color-primary);
}
.info-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.info-feature-card {
  text-align: center;
  padding: .85rem .5rem;
  border-radius: 12px;
  background: #f8f9fa;
  transition: transform .25s, box-shadow .25s;
}
.info-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.info-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.info-feature-card h5 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .3rem;
}
.info-feature-card p {
  font-size: .78rem;
  color: #666;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 576px) {
  .info-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   Apart List Page – Hero Banner
   =================================================================== */
.apart-hero {
  position: relative;
  background: var(--color-primary);
  padding: 4rem 1rem;
  text-align: center;
  overflow: hidden;
}

.apart-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.08) 0%, transparent 50%);
}

.apart-hero-overlay {
  position: relative;
  z-index: 1;
}

.apart-hero h1 {
  color: #fff;
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: .3rem;
  letter-spacing: .5px;
}

.apart-hero-sub {
  color: rgba(255,255,255,.8);
  font-size: 1.15rem;
  font-weight: 300;
}

@media (max-width: 576px) {
  .apart-hero { padding: 2.5rem 1rem; }
  .apart-hero h1 { font-size: 1.8rem; }
}

/* ===================================================================
   Sort / Filter Bar
   =================================================================== */
.apart-filter-bar {
  gap: .5rem;
}

.apart-sort-btn {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 500;
  padding: .35rem .9rem;
  color: #555;
  transition: all .2s;
}

.apart-sort-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.apart-sort-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ===================================================================
   Apartment Cards
   =================================================================== */
.apart-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.apart-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,.14);
}

.apart-card-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

/* Card image */
.apart-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.apart-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.apart-card:hover .apart-card-img-wrap img {
  transform: scale(1.05);
}

/* Price badge */
.apart-card-price {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--color-accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: .85rem;
  padding: .35rem .8rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.20);
}

/* Card body */
.apart-card-body {
  padding: 1rem 1.2rem 1.1rem;
}

.apart-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .7rem;
}

/* Detail chips */
.apart-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.apart-detail-chip {
  background: #f4f5f7;
  border-radius: 6px;
  padding: .3rem .65rem;
  font-size: .78rem;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
}

.apart-detail-chip i {
  color: var(--color-primary);
  margin-right: 2px;
}

/* Mini gallery strip — REMOVED (replaced by photo-badge + on-click lightbox) */

/* Photo count badge on card image */
.apart-photo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,.60);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .3rem .7rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  line-height: 1.3;
}
.apart-photo-badge:hover {
  background: var(--color-primary);
  transform: scale(1.08);
}
.apart-photo-badge:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.apart-photo-badge i {
  margin-right: 3px;
}

/* Explicit card image dimensions to prevent CLS */
.apart-card-img-wrap img {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===================================================================
   Skeleton Loading Animation
   =================================================================== */
.skeleton-card {
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

.skeleton-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e9ecef;
  border-radius: 14px 14px 0 0;
}

.skeleton-body {
  padding: 1.2rem;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: #e9ecef;
  margin-bottom: .7rem;
}

.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-80 { width: 80%; }

@keyframes skeletonPulse {
  0%   { opacity: 1; }
  50%  { opacity: .4; }
  100% { opacity: 1; }
}

.skeleton-pulse {
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

/* ===================================================================
   Shared Page Hero (used on contact, gallery, dla_warto)
   =================================================================== */
.page-hero {
  position: relative;
  background: var(--color-primary);
  padding: 4rem 1rem;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.08) 0%, transparent 50%);
}
.page-hero-overlay {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: .3rem;
}
.page-hero-sub {
  color: rgba(255,255,255,.78);
  font-size: 1.1rem;
  font-weight: 300;
}
@media (max-width: 576px) {
  .page-hero { padding: 2.5rem 1rem; }
  .page-hero h1 { font-size: 1.7rem; }
}

/* ===================================================================
   Contact Page
   =================================================================== */
.contact-section {
  padding: 3rem 0 2rem;
}

/* Info card (left) */
.contact-info-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  height: 100%;
}
.contact-info-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .2rem;
}
.contact-info-subtitle {
  color: #888;
  font-size: .92rem;
  margin-bottom: 1.6rem;
}
.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-info-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
}
.contact-info-label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #999;
  font-weight: 600;
}
.contact-info-value {
  display: block;
  font-size: .95rem;
  color: #333;
  font-weight: 500;
}
.contact-info-link {
  color: var(--color-primary) !important;
  text-decoration: none;
  transition: color .2s;
}
.contact-info-link:hover {
  color: var(--color-accent) !important;
}

/* Socials */
.contact-socials {
  display: flex;
  gap: .6rem;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid #eee;
}
.contact-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f4f5f7;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all .2s;
  text-decoration: none !important;
}
.contact-social-btn:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Form card (right) */
.contact-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2rem 2.2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.contact-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .3rem;
}
.form-label-sm {
  font-size: .78rem;
  font-weight: 600;
  color: #666;
  margin-bottom: .3rem;
}
.btn-contact-submit {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: .65rem;
  border-radius: 10px;
  font-size: 1rem;
  transition: all .25s;
}
.btn-contact-submit:hover {
  background: var(--color-accent);
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

/* Map */
.contact-map-section {
  padding: 2.5rem 0 0;
}
.contact-map-wrap {
  width: 100%;
  overflow: hidden;
  border-top: 3px solid var(--color-primary);
}
.contact-map-wrap iframe {
  display: block;
  width: 100%;
}

/* ===================================================================
   Gallery Page
   =================================================================== */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.gallery-filter-btn {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  font-size: .84rem;
  font-weight: 500;
  padding: .4rem 1rem;
  color: #555;
  transition: all .2s;
}
.gallery-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.gallery-filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Masonry-like CSS grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

.gallery-item {
  break-inside: avoid;
}

/* Skeleton placeholder tile */
.gallery-item-placeholder {
  border-radius: 12px;
  overflow: hidden;
  background: #e9ecef;
  height: 220px;
}
.gallery-placeholder-pulse {
  width: 100%;
  height: 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
  background: linear-gradient(90deg, #e9ecef 25%, #f4f4f4 50%, #e9ecef 75%);
  background-size: 200% 100%;
  animation: galleryShimmer 1.5s infinite;
}
@keyframes galleryShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.gallery-item-inner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  background: #e8e8e8;
  transition: transform .3s, box-shadow .3s;
  will-change: transform;
}
.gallery-item-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
}

.gallery-item-inner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .4s;
  /* content-visibility lets the browser skip off-screen decodes */
  content-visibility: auto;
  contain-intrinsic-size: 360px 220px;
}
.gallery-item-inner:hover img {
  transform: scale(1.06);
}

/* Hover overlay */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
  color: #fff;
  pointer-events: none;
}
.gallery-item-inner:hover .gallery-item-overlay {
  opacity: 1;
}
.gallery-item-overlay i {
  font-size: 1.6rem;
  margin-bottom: .4rem;
}
.gallery-item-overlay span {
  font-size: .82rem;
  font-weight: 500;
  text-align: center;
  padding: 0 .5rem;
}

/* ===================================================================
   "Dlaczego Warto" Page
   =================================================================== */
.warto-intro {
  padding: 3rem 0 1.5rem;
}
.warto-intro h2 {
  margin-bottom: 1rem;
}
.warto-intro .lead {
  color: #555;
  font-size: 1.05rem;
}

/* Attraction cards */
.warto-attractions {
  padding-bottom: 1rem;
}
.warto-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  margin-bottom: 2rem;
  transition: transform .3s, box-shadow .3s;
}
.warto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(0,0,0,.12);
}
.warto-card .row {
  margin: 0;
}
.warto-card-img-col {
  padding: 0;
}
.warto-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 240px;
}
.warto-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.warto-card:hover .warto-card-img-wrap img {
  transform: scale(1.06);
}
.warto-card-distance {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.warto-card-text-col {
  padding: 1.8rem 2rem;
}
.warto-card-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .25rem .7rem;
  border-radius: 6px;
  margin-bottom: .7rem;
}
.warto-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .7rem;
}
.warto-card p {
  color: #555;
  line-height: 1.65;
  margin-bottom: .6rem;
}
.warto-card-highlights {
  list-style: none;
  padding: 0;
  margin: .8rem 0 0;
}
.warto-card-highlights li {
  padding: .35rem 0;
  font-size: .9rem;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
}
.warto-card-highlights li:last-child {
  border-bottom: none;
}
.warto-card-highlights li i {
  color: var(--color-accent);
  width: 20px;
  text-align: center;
}

@media (max-width: 767px) {
  .warto-card-text-col {
    padding: 1.2rem 1.4rem;
  }
  .warto-card-img-wrap {
    min-height: 200px;
    max-height: 220px;
  }
}

/* Quick facts strip */
.warto-facts {
  background: var(--color-primary);
  padding: 2.5rem 0 1.5rem;
  margin-bottom: 0;
}
.warto-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}
.warto-fact i {
  opacity: .85;
}
.warto-fact-number {
  font-size: 1.6rem;
  font-weight: 800;
}
.warto-fact-label {
  font-size: .82rem;
  opacity: .78;
}

/* CTA section */
.warto-cta {
  padding: 3rem 0 3.5rem;
  background: #fafafa;
}
.warto-cta h2 {
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: .4rem;
}
.warto-cta .lead {
  color: #555;
}
.warto-cta-btn {
  background: var(--color-primary);
  color: #fff !important;
  font-weight: 600;
  border-radius: 10px;
  padding: .6rem 1.6rem;
  transition: all .25s;
}
.warto-cta-btn:hover {
  background: var(--color-accent);
  color: #1a1a1a !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.warto-cta-btn-outline {
  background: #fff;
  color: var(--color-primary) !important;
  font-weight: 600;
  border: 2px solid var(--color-primary);
  border-radius: 10px;
  padding: .55rem 1.6rem;
  transition: all .25s;
}
.warto-cta-btn-outline:hover {
  background: var(--color-primary);
  color: #fff !important;
  transform: translateY(-2px);
}

/* ===================================================================
   Apartment Detail Page (adet-*)
   =================================================================== */

/* ── Hero carousel ───────────────────────────────── */
.adet-hero {
  position: relative;
}
.adet-hero .carousel-item img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
@media (max-width: 767px) {
  .adet-hero .carousel-item img { height: 260px; }
}
.adet-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  padding: 2.5rem 0 1.5rem;
  color: #fff;
  pointer-events: none;
}
.adet-hero-overlay * { pointer-events: auto; }
.adet-hero-overlay h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: .25rem 0 0;
}
.adet-back {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  text-decoration: none;
  transition: color .2s;
}
.adet-back:hover { color: #fff; text-decoration: none; }

/* ── Stats strip ───────────────────────────────────── */
.adet-stats {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}
.adet-stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.adet-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}
.adet-stat > i {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: .25rem;
}
.adet-stat-val {
  font-weight: 700;
  font-size: 1.05rem;
}
.adet-stat-label {
  font-size: .75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── Gallery grid ────────────────────────────────── */
.adet-gallery-main {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: .75rem;
}
.adet-gallery-main img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.adet-gallery-main:hover img {
  transform: scale(1.04);
}
.adet-gallery-zoom {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.adet-gallery-main:hover .adet-gallery-zoom { opacity: 1; }

.adet-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: .5rem;
}
.adet-gallery-thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .25s, box-shadow .25s;
}
.adet-gallery-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.adet-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Description card ────────────────────────────── */
.adet-desc-card,
.adet-equip-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
}
.adet-desc-card h3,
.adet-equip-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--color-primary);
}
.adet-desc-text {
  color: #444;
  line-height: 1.7;
  font-size: .95rem;
}

/* ── Equipment checklist ─────────────────────────── */
.adet-equip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 1rem;
}
.adet-equip-list li {
  padding: .35rem 0;
  font-size: .9rem;
  color: #333;
  break-inside: avoid;
}
.adet-equip-list li i {
  color: var(--color-primary);
  margin-right: .4rem;
}
@media (max-width: 576px) {
  .adet-equip-list { columns: 1; }
}

/* ── CTA card ────────────────────────────────────── */
.adet-cta-card {
  background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 80%, #000));
  border-radius: 14px;
  padding: 1.5rem;
  color: #fff;
}
.adet-cta-card h4 {
  font-weight: 700;
  margin-bottom: .4rem;
}
.adet-cta-card p {
  font-size: .9rem;
  opacity: .9;
  margin-bottom: 1rem;
}
.adet-cta-btn {
  background: #fff;
  color: var(--color-primary) !important;
  font-weight: 600;
  border-radius: 25px;
  padding: .45rem 1.2rem;
  transition: transform .2s;
}
.adet-cta-btn:hover { transform: translateY(-2px); text-decoration: none; }
.adet-cta-btn-outline {
  border: 2px solid #fff;
  color: #fff !important;
  font-weight: 600;
  border-radius: 25px;
  padding: .45rem 1.2rem;
  transition: background .2s;
}
.adet-cta-btn-outline:hover {
  background: rgba(255,255,255,.15);
  text-decoration: none;
}

/* ── Prev / Next navigation strip ──────────────── */
.adet-nav-strip {
  background: #f8f9fa;
  border-top: 1px solid #eee;
  padding: .85rem 0;
}
.adet-nav-link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: color .2s;
}
.adet-nav-link:hover {
  color: var(--color-accent);
  text-decoration: none;
}
