.investments-map {
    max-width: 100%;
    width: 100vw;
}

.investments-map__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.investments-map-left {
    background-image: url('https://jdmdeweloper.pl/wp-content/uploads/2024/10/mapa-inwestycji-jdm.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  @media (max-width: 768px) {
    .investments-map-left {
      height: 450px;  /* Dostosuj wysokość dla urządzeń mobilnych */
    }
  }
  
  .investments-map__info-bottom {
      gap: 0px!important;
      grid-template-columns: repeat(1,1fr)!important;
  }
  
  .investments-map__container {
      gap: 0px!important;
  }
  
  /*mapa*/
  
  .investments-map {
      max-width: 100%;
      width: 100vw;
  }
  
  .investments-map__container {
      display: grid;
      grid-template-columns: 1fr 1fr;
  }
  
  @media (max-width: 991px) {
  .investments-map__info-content {
      display: flex!important;
      grid-template-columns: 50% 50%;
      height: 355px;
      }}

.investments-map__left {
    position: relative;
    width: 100%;
    padding-bottom: 70%;
    overflow: hidden;
}

.investments-map__image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.investments-map__background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.investments-map__marker {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 1;
}

.investments-map__marker-icon {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.investments-map__right {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.investments-map__info-box {
    display: none;
}

.investments-map__info-box[data-investment]:first-child {
    display: block;
}

.investments-map__info-image img {
    width: 100%;
    aspect-ratio: 287/140;
    object-fit: cover;
    display: block;
}

.investments-map__info-content {
    display: grid;
    grid-template-columns: 55% 45%;
    height: 280px;
}

.investments-map__info-left {
    padding: 20px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.investments-map__info-left img {
    margin: auto;
    max-width: 45%;
    max-height: 50px;
}

.investments-map__info-left h3 {
    margin: 10px 0;
}

.investments-map__info-left .pt-20 {
    margin-top: auto;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.investments-map__info-right {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    text-align: center;
    background-color: inherit;
    height: 100%;
}

.investments-map__info-right img {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .investments-map__container {
        grid-template-columns: 1fr;
    }

    .investments-map__info-content {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .investments-map__info-left,
    .investments-map__info-right {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }

    .investments-map__left {
        padding-bottom: 60%;
    }

    .investments-map__info-left {
        height: 350px;
        padding: 20px;
    }

    .investments-map__info-right {
        padding: 20px;
        gap: 20px;
    }

    .investments-map__info-right img {
        height: 90px;
    }

    .investments-map__marker-icon {
        width: 120px;
        height: 120px;
    }

    .investments-map__info-image img {
        aspect-ratio: 287/180;
    }
}

@media (max-width: 768px) {
    .investments-map__left {
        padding-bottom: 50%;
    }

    .investments-map__marker-icon {
        width: 120px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .investments-map__left {
        padding-bottom: 45%;
    }

    .investments-map__info-left {
        //height: 300px;
        height: 220px;
        padding: 15px;
    }

    .investments-map__info-right {
        padding: 15px;
        gap: 15px;
        display: none; //6.03.2025 rs - ukrywam na mobile ta sekcje
    }

    .investments-map__info-right img {
        height: 80px;
    }

    .investments-map__marker-icon {
        width: 120px;
        height: 60px;
    }

    .investments-map__info-image img {
        aspect-ratio: 287/180;
    }
}

.gallery-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
    color: #000;
}

.gallery-swiper .swiper-pagination {
    position: absolute;
    bottom: 10px;
}

.investments-map__info-image {
    position: relative;
    width: 100%;
}

.custom-slider {
    position: relative;
}

.custom-slider .slide {
    display: none;
}

.custom-slider .slide.active {
    display: block;
}

.custom-slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.custom-slider .slide-prev {
    left: 10px;
}

.custom-slider .slide-next {
    right: 10px;
}

/* Specjalne style dla strony o ID 353 */
.page-id-353 .investments-map__info-content {
    visibility: hidden;
    height: 280px; /* oryginalna wysokość z kodu */
    display: none;
}

.page-id-353 {
    @media (min-width: 978px) {
        .investments-map__info-image img{
        //aspect-ratio: auto !important;
        }

        .investments-map__info-box{
            height: 100%;
        }

    }
}



.page-id-353 .investments-map__info-image,
.page-id-353 .investments-map__info-image .custom-slider,
.page-id-353 .investments-map__info-image .slide,
.page-id-353 .investments-map__info-image .slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.page-id-353 .investments-map__right {
    flex-direction: unset;
}

@media (max-width: 576px) {
    .page-id-353 .investments-map__info-image {
        max-height: 350px;
    }

    .page-id-353 .investments-map__container,
    .page-id-353 .investments-map__right,
    .page-id-353 .investments-map__info-box,
    .page-id-353 .investments-map__info-image {
        margin: 0;
        padding: 0;
    }

    .page-id-353 .investments-map {
        margin-bottom: -10rem;
    }
} 