/* CSS VERSION 0.6 */
/* 2 Mar 2026 */

/* =============================== */
/*  PAGE HOME 
/* =============================== */
/*  SECTION BANNER
/* =============================== */

#banner {
    padding-top: 0;
}

.banner-location-box {
    position: absolute;
    right: 0;
    bottom: 0;
}

.title {
    font-family: 'Aboreto', sans-serif !important;
}

.location-city {
    font-family: 'Aboreto', sans-serif !important;
    line-height: 1.3rem;
    margin-top: 10px;
}

/* =============================== */
/*  SECTION OFFERS 
/* =============================== */

.offers-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.offer-name {
    background-color: var(--red);
    width: min(80%, 320px);
    padding: 20px 30px;
    border-radius: 15px 0 25px 0;
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    text-transform: uppercase;
    position: absolute;
    z-index: 2;

    & span {
        font-weight: 800;
    }

    & h3 {
        display: flex;
        flex-direction: column;
        text-align: left;
        margin-bottom: 0;
        font-size: 1.1rem;
    }

    & .line2 {
        font-size: 1.5rem;
        font-weight: 800;
        text-transform: uppercase;
        color: #fff;
    }
}

.offer-item-image-wrapper {
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}
.offer-item-image {
    min-height: 380px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: 0.35s ease-in-out;

    &:hover {
        transform: scale(1.03);
    }
}

/* OVERLAY EFFECT */
.offer-item-overlay {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 25%, transparent 100%);
    border-radius: 15px;
    z-index: 1;
    opacity: 0;
    transition: 0.35s ease-in-out;
    padding: 20px 5%;
    overflow: hidden;

    & .excerpt {
        font-size: 0.9rem;
        line-height: 1.1rem;
        color: #fff;
        text-align: center;
        margin-top: 20px;
        transform: translateY(150%);
        transition: 0.55s ease-in-out;
    }
}

.offer-item-image:hover .offer-item-overlay {
    opacity: 1;
}

.offer-item-image:hover .offer-item-overlay .excerpt {
    transform: translateY(0);
}


.check-details {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    line-height: 1.2rem;
    padding: 5%;
    text-align: center;
    color: #fff;
    border-radius: 80px;
    z-index: 2;
    transition: 0.55s ease-in-out;
    opacity: 0;
}


.offer-item-image:hover .check-details {
    opacity: 1;
}


/* OFFER ITEM DETAILS */
.offer-item-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: #fff;
    height: 90px;
    margin-top: 20px;
    border-radius: 25px;
    padding: 20px min(20px, 5%);
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.15);
    gap: min(10px, 2%);
}

.offer-item-element {
    display: flex;
    align-items: center;
    gap: 10px;

    & img {
        height: 30px;
    }

    & span {
        font-size: 0.9rem;
        line-height: 1rem;
    }

    &:first-child {

        padding: 5px 10px;
        color: var(--red);
        font-weight: 600;

    }
}

.offer-item-element:first-child img {
    filter: brightness(0) saturate(100%) invert(16%) sepia(87%) saturate(4208%)
        hue-rotate(350deg) brightness(83%) contrast(99%);
}


/* =============================== */
/*  SECTION WHY WILLA DEVELOPER 
/* =============================== */

.why-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background-color: var(--pale-grey);
    box-shadow: 0 20px 60px 0 rgba(0, 0, 0, 0.12);
    padding: max(5%, 40px);
    border-radius: 35px;
    max-width: 300px;
    min-height: 350px;
}

.why-tile-icon {
    width: 50px;
    margin-bottom: 15px;
}

.why-tile-content {

    & h4 {
        font-size: 1.4rem;
        font-weight: 600;
        text-align: center;
    }
}

/* ANIMATIONS WHY WILLA DEVELOPER */

#why-willa-developer {
    overflow-x: clip;
}

#why-willa-developer .why-tile {
    will-change: transform, opacity;
}

/* DESKTOP: tiles gently move outside */
@media (min-width: 768px) {
    #why-willa-developer .why-tile {
        opacity: 1;
        transform: translateX(0);
        transition:
            transform 900ms cubic-bezier(0.22, 1, 0.15, 1),
            opacity 600ms ease;
    }

    #why-willa-developer .col-md-4:nth-child(1) .why-tile.is-visible {
        transform: translateX(-28px);
    }

    #why-willa-developer .col-md-4:nth-child(2) .why-tile.is-visible {
        transform: translateY(-6px);
    }

    #why-willa-developer .col-md-4:nth-child(3) .why-tile.is-visible {
        transform: translateX(28px);
    }
}

/* MOBILE: tiles slide in from bottom */
@media (max-width: 767px) {
    #why-willa-developer .why-tile {
        opacity: 0;
        transform: translateY(32px);
        transition:
            transform 750ms cubic-bezier(0.22, 1, 0.15, 1),
            opacity 500ms ease;
    }

    #why-willa-developer .why-tile.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* optional stagger */
#why-willa-developer .col-md-4:nth-child(1) .why-tile {
    transition-delay: 80ms;
}

#why-willa-developer .col-md-4:nth-child(2) .why-tile {
    transition-delay: 160ms;
}

#why-willa-developer .col-md-4:nth-child(3) .why-tile {
    transition-delay: 240ms;
}

/* accessibility */
@media (prefers-reduced-motion: reduce) {
    #why-willa-developer .why-tile {
        opacity: 1;
        transition: none;
        transform: none !important;
    }
}

/* =============================== */
/*  SECTION PORTFOLIO 
/* =============================== */


.metaslider li {
    border-radius: 25px;
    overflow: hidden;
}

.caption-wrap {
    display: flex !important;
    align-items: flex-end;
    gap: 10px;
}

.metaslider.ms-theme-bubble .flexslider ul.slides .caption-wrap .caption {
    transform: translateX(0) !important;
    left: 30px !important;
    bottom: 30px !important;
    text-align: left !important;
    font-size: 2rem !important;
    line-height: 2.2rem !important;
    font-weight: 600;
}

.metaslider .flexslider .slides li img {
    transition: 0.35s ease-in-out;

    &:hover {
        transform: scale(1.03);
    }
}

.metaslider .caption-wrap {
    font-family: 'Aboreto', sans-serif !important;
    opacity: 0.9 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.flex-nav-prev, .flex-nav-next, .flex-prev, .flex-next {
    z-index: 50 !important;
}


/* =============================== */
/*  SECTION NEWS 
/* =============================== */

.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    max-width: 350px;
    margin: 0 auto;
}

.news-item-image {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    transition: 0.35s ease-in-out;

    &:hover .news-item-image-overlay     {
        opacity: 1;
        transform: translateY(0);
    }

    &:hover {
        transform: scale(1.01);
    }

    & .news-item-image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(0deg, #191919 0%, rgba(127, 127, 127, 0.00) 100%);
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        font-size: 0.9rem;
        opacity: 0;
        transition: 0.35s ease-in-out;

        & span {
            background: rgba(0, 0, 0, 0.7);
            width: 100px;
            height: 100px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            transition: 0.65s ease-in-out;
        }

       
    }
    & img {
        height: 100%;
        object-fit: cover;
    }
}

.news-item-title {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 15px
}


/* =============================== */
/* PAGE SINGLE INVESTMENT */
/* =============================== */
/*  SECTION INVESTMENT BANNER
/* =============================== */

#single-investment #banner {
    margin-top: 80px;
}


.banner {
    min-height: 600px;
    /* max-height: 1200px; */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding-inline: 10%
}

.banner-overlay-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3) 10%, transparent);
    z-index: 1;
}
.parallax-banner {
    position: relative;
    overflow: hidden;
    background: none !important;
}

.banner-parallax-bg {
    position: absolute;
    inset: -120px 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    z-index: 0;
    pointer-events: none;
}

.parallax-banner .banner-content {
    position: relative;
    z-index: 2;
}

.parallax-banner .banner-title-wrapper {
    z-index: 3;
}

.banner-title-wrapper {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    bottom: -60px;
    left: 8%;
    width: clamp(300px, 40%, 400px);
    background: var(--red);
    padding: 25px 40px;
    color: #fff;
    border-radius:25px;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Image Map Pro Styling */
.imp-wrap {
    max-width: unset !important;
    margin-top: 30px
}

/* Banner TItle */

.banner-title {
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 1.8rem;


    & .line1 {
        font-size: 1.5rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    & .line2 {
        font-size: 2rem;
        font-weight: 900;
        text-transform: uppercase;
    }
}

.banner-content {
    max-width: 700px;
}

.banner-main-claim {
    & h2 {
        font-size: 3.5rem;
        font-weight: 900;
        text-transform: uppercase;
        color: #fff;
        text-shadow: 0 8px 15px rgba(0,0,0,0.3);
    }
}

@media (max-width: 768px) {
    #single-investment .banner {
        min-height: 400px;
    }
}

@media (max-width: 576px) {
    .banner-title-wrapper {
        left: 50%;
        transform: translateX(-50%);
        bottom: -80px;
        width: 80%;
        text-align: center;
    }
  

      .flat-filter-block h3 {
        text-align: center;
      }
      
}

/* =============================== */
/* SECTION NAVIGATION SINGLE INVESTMENT */
/* =============================== */

#nav-single-investment {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    top: 15vh;
    right: 30px;
    background-color: #fff;
    padding: 20px;
    border-radius: 60px;
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.12);
    z-index: 300;
}

.nav-single-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.35s ease-in-out;

    &:hover {
        transform: scale(1.05);
        cursor: pointer;
    }

}

.nav-single-item {
    color: inherit;
    text-decoration: none;
  }
  
  .nav-single-item p {
    color: currentColor;
    transition: color 0.25s ease;
  }
  
  .nav-single-icon {
    width: 30px;
    height: 30px;
    display: block;
  
    background-color: currentColor;
  
    mask-image: var(--icon);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
  
    -webkit-mask-image: var(--icon);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
  
    transition: background-color 0.25s ease;
  }
  
  .nav-single-item-active {
    color: var(--red);
  }


/* =============================== */
/* SECTION OFFER FEATURES 
/* =============================== */

.features-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: min(40px, 15%);
}

/* Keep this outside .features-wrapper */
.nav-single-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.feature-item {
    margin-top: 15px;
}

.feature-item-circle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: 120px;
    height: 120px;
    padding: 10px;
    border: 2px solid var(--red);
    border-radius: 50%;
}

.feature-item-header {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 3rem;
    margin-bottom: 10px;
}

.feature-item-icon {
    position: relative;
    z-index: 1;
    width: 60px;
}

.feature-item-icon img {
    display: block;
    max-width: 100%;
    height: auto;
}

.feature-item-text {
    position: relative;
    z-index: 1;
    color: var(--red);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1rem;
}

/* ------------------------------------------------
   Feature animation
------------------------------------------------ */

.features-wrapper--animate .feature-item-circle {
    border-color: transparent;
}

.feature-item-ring {
    position: absolute;
    inset: -2px;
    z-index: 0;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    overflow: visible;
    pointer-events: none;
}

.feature-item-ring circle {
    fill: none;
    stroke: var(--red);
    stroke-width: 2;
    stroke-linecap: round;

    /*
      pathLength="1" in the SVG means we can use
      1 instead of calculating circumference.
    */
    stroke-dasharray: 1;
    stroke-dashoffset: 1;

    /* Start at the top, then draw clockwise */
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.features-wrapper--animate .feature-item-header,
.features-wrapper--animate .feature-item-icon,
.features-wrapper--animate .feature-item-text {
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

/* Draw the ring first */
.feature-item.is-drawing .feature-item-ring circle {
    animation: feature-ring-draw 0.5s cubic-bezier(.65, 0, .35, 1) forwards;
}

/* Then reveal heading, icon and value */
.feature-item.is-content-visible .feature-item-header,
.feature-item.is-content-visible .feature-item-icon,
.feature-item.is-content-visible .feature-item-text {
    opacity: 1;
    transform: translateY(0);
}

.feature-item.is-content-visible .feature-item-icon {
    transition-delay: 0.02s;
}

.feature-item.is-content-visible .feature-item-text {
    transition-delay: 0.0s;
}

@keyframes feature-ring-draw {
    to {
        stroke-dashoffset: 0;
    }
}



.dates-wrapper {
    position: relative;
    max-width: 600px;
    margin: auto;
    margin-top: 60px;
    transform: translateX(30px);
    border-radius: 25px;
    padding: 20px 5%;
    /* box-shadow: 0 10px 50px 0 rgba(0, 0, 0, 0.15); */
    
    & h3 {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--red);
        margin-bottom: 10px;
    }

    & strong {
        font-weight: 900;
    }
}

.dates-wrapper-icon {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    padding: 5px 5px 6px 7px;
    border-radius: 50%;
    background-color: var(--red);
    box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.15);
}


/* MEDIA QUERIES */

@media (max-width: 768px) {

    .dates-wrapper h3 {
        text-align: center;
    }
    .dates-wrapper-icon {
        width: 50px;
        height: 50px;
        padding: 5px 5px 6px 6px;
        left: 10px;
        top: 0px;
    }
}

@media (max-width: 568px) {
    .feature-item-text {
        font-size: 0.9rem;
    }
  
}

/* Respect accessibility / reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .features-wrapper--animate .feature-item-header,
    .features-wrapper--animate .feature-item-icon,
    .features-wrapper--animate .feature-item-text {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .feature-item-ring circle {
        stroke-dashoffset: 0;
        animation: none !important;
    }
}

/* =============================== */
/*  SECTION ATTRIBUTES
/* =============================== */

.investment-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    /* display: grid;
    grid-template-columns: repeat(4, 1fr); */
    background-color: var(--pale-grey);
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 20px 60px 0 rgba(0, 0, 0, 0.12);
}

.investment-feature-item {
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.investment-feature-icon {
    display: flex;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 60px;
    padding: 10px;
    background-color: var(--navy-blue);

    & img {
        height: 35px;
        margin: auto;
    }
}

.investment-feature-text {
    text-align: center;
    font-size: 0.9rem;
}

.investment-features-extra {
    background-color: var(--pale-grey);
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 20px 60px 0 rgba(0, 0, 0, 0.12);

    & h4 {
        font-size: 1.2rem;
        font-weight: 800;
        color: var(--red);
        margin-bottom: 10px;
    }
}

.prospects-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 992px) {
    .prospects-wrapper {
        flex-direction: column;
    }
}

/* =============================== */
/*  SECTION FLATS LIST
/* =============================== */

/* FLATS LISTS BUTTONS */

.single-investment-flats-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    /* margin-bottom: 20px; */
}

.flats-view {
    display: none;
  }
  
  .flats-view.is-active {
    display: block;
  }
  
  .single-investment-flats-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .single-investment-flats-buttons button {
    border: none;
    cursor: pointer;
  }
  
  .single-investment-flats-buttons .is-active {
    background: var(--red);
    color: #fff;
  }

  .flat-image-cell {
    display: none;
  }


/* FLATS LIST */
.table-flat-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    overflow-x: auto;

    & th {
        text-align: center;
        padding: 10px;
    }

    & td {
        text-align: center;
        padding: 5px 10px;
        background-color: var(--pale-grey);

        &:first-child {
            border-radius: 12px 0 0 12px;
        }

        &:last-child {
            border-radius: 0 12px 12px 0;
        }
    }
}

.price-cell {
    min-width: 150px;
}

.price-full {
    background-color: var(--red);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-wrap: nowrap;
}

.table-contact-button {
    border: 1px solid var(--red);
    padding: 5px 15px;
    border-radius: 50px;
    color: var(--red);
    transition: 0.35s ease-in-out;

    &:hover {
        background-color: var(--red-50);
        cursor: pointer;
    }
}

/* FLATS FILTERS */
.flat-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 48px;
    margin-bottom: 34px;
    align-items: start;
  }

  
  .flat-filter-block h3 {
    margin: 0 0 30px;
    font-size: 1.1rem;
    line-height: 1;
    font-weight:600;
    color: var(--navy-blue);
  }
  
  .flat-filter-slider-block {
    min-width: 260px;
  }
  
  .flat-range-slider {
    margin: 0 10px 30px;
  }

  
  .flat-range-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #07336f;
    font-weight: 800;
    line-height: 1;
  }
  
  
  .flat-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .flat-filter-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    aspect-ratio: 1/1;
    border: 1px solid var(--red);
    border-radius: 50%;
    background: #fff;
    color: var(--red);
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;

    &:hover {
        background: var(--red-50);
        color: var(--red);
    }

    &.is-active {
        background: var(--red);
        color: #fff;
    }
  }

  
  .flat-filter-bottom {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
  }
  
  .flat-filter-count {
    margin: 0;
    /* color: #07336f; */
    font-weight: 700;
  }
  
  .flat-filter-reset {
    padding: 5px 10px;
    cursor: pointer;
    text-transform: none;
    transition: all 0.2s ease;
    background: transparent;
  }
  

  
  .flat-no-results td {
    text-align: center;
    padding: 30px;
    font-weight: 700;
  }
  
  /* noUiSlider custom style */
  
  #flats-list .noUi-target {
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: #7c858f;
    box-shadow: none;
  }
  
  #flats-list .noUi-connect {
    background: var(--navy-blue);
  }
  
  #flats-list .noUi-horizontal .noUi-handle {
    width: 25px;
    height: 25px;
    right: -12px;
    top: -11px;
    border: 0;
    border-radius: 50%;
    background: var(--red);
    box-shadow: none;
    cursor: pointer;
    transition: 0.35s ease-in-out;
    &:hover {
        transform: scale(1.1);
    }
  }
  
  #flats-list .noUi-handle::before,
  #flats-list .noUi-handle::after {
    display: none;
  }
  
  #flats-list .noUi-touch-area {
    cursor: pointer;
  }


/* FLATS 2D PLAN */
/* Hide panels by default unless they have the active class */
.flats-plan-content .flats-plan-image {
    display: none;
    width: 100%;
}

.flats-plan-content .flats-plan-image.active {
    display: block !important;
}



.flats-plan-floor-buttons,
.flats-plan-building-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  
}
.flats-plan-building-buttons {
    margin-bottom: 10px;
}

.flats-plan-floor-button {
    background: #fff;

    &.active {
        background: var(--red);
        color: #fff;
    }
}

.flats-plan-building-pane,
.flats-plan-image {
  display: none;
}

.flats-plan-building-pane.active,
.flats-plan-image.active {
  display: block;
}

/* IMAGE MAP PRO  ELEMENTS */
.imp-shape-container {
    border-radius: 15px;
    overflow: hidden;
}
.imp-tooltip-plain-text b {
    font-weight: 400 !important;
}

/* Tooltip button */
.imp-tooltip {
    & a {
        display: block;
        width: fit-content;
        background-color: var(--red) !important;
        color: #fff !important;
        border-radius: 50px !important;

    }
}

/* Tooltip content */
.imp-tooltip-content {
    background-color: var(--red);
    color: #fff;
}
  

@media (max-width: 768px) {
    .single-investment-flats-buttons {
        justify-content: center;
    }
}

/* =============================== */
/*  SECTION GALLERY SLIDER
/* =============================== */

.inwestycje-slider-wrap {
    width: 100%;
}

.inwestycje-main-slider {
    margin-bottom: 12px;
    border-radius: 20px;
    overflow: hidden;
}

.inwestycje-main-slider .swiper-slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

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

.swiper-pagination-bullet-active {
    background: #fff;
}


/* =============================== */
/*  SECTION MAP
/* =============================== */

.map-item iframe  {
    width: 100%;
    height: 500px;
    border-radius: 25px;
}

/* FILTERS */
.investment-map-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;

}

.investment-map-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 10px;
    border: none;
    border-radius: 999px;
    width: 100px;
    min-height: 150px;
    background: transparent;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s ease;

    & span {
        display: block;
        line-height: 1rem;
    }

    & img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        margin: 0 auto;
        opacity: 0.5;
        transition: 0.35s ease;

        &:hover {
            transform: scale(1.1);
        }
    }


}

.investment-map-filter.is-active {
    color: var(--red);
    font-weight: 600;
    outline: none;
}


.investment-map-filter:focus {
    outline: none;
}

.investment-map-filter.is-active img {
    transform: scale(1.1);
    opacity: 1;
}

/* MAP */
.investment-map {
    width: 100%;
    height: 520px;
    border-radius: 25px;
    overflow: hidden;
}

.investment-map-message {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #777;
}

.wd-map-marker {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wd-map-marker img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wd-map-marker-investment {
    width: 54px;
    height: 54px;
    background: var(--red);
}

.wd-map-info {
    max-width: 240px;
}

.wd-map-info strong {
    display: block;
    margin-bottom: 6px;
}

.wd-map-info p {
    margin: 0 0 8px;
    font-size: 13px;
}

.wd-map-info a {
    font-size: 13px;
    color: var(--red);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .investment-map-section {
        padding: 50px 0;
    }

    .investment-map {
        height: 420px;
        border-radius: 12px;
    }

    .investment-map-filters {
        justify-content: center;
    }

    .investment-map-filter {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
}

/* =============================== */
/* PAGE SINGLE FLAT */
/* =============================== */

.single-flat-header {
    & .single-flat-identifier {
        font-size: 1.2rem;
    }
}

.flat-status {
    background-color: var(--green);
    color: #fff;
    width: fit-content;
    padding: 5px 20px;
    border-radius: 25px;
    margin: 0 auto;

}

.flat-params {
    background-color: var(--pale-grey);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 20px 60px 0 rgba(0, 0, 0, 0.12);
}

.flat-param-item {
    display: flex;
    align-items: center;
    gap: 10px;

    & dt{
        width: 50%;
        font-weight: 400;
    }

    & dd {
        width: 50%;
        text-align: right;
        /* background-color: var(--pale-grey); */
        padding: 10px 20px;
        border-radius: 15px;
        margin-bottom: 0;
        font-weight: 600;
    }

    & .price-param-price {
        background-color: var(--red);
        color: #fff;
        padding: 10px 20px;
        border-radius: 50px;
        font-size: 1.2rem;
        text-align: center;
    }
}

.flat-param-item-separator {
    border-bottom: 1px solid var(--light-grey);
}

.flat-param-item.flat-price-history {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.flat-param-item.flat-price-history dt {
    width: 100%;
}

.flat-param-item.flat-price-history dd {
    width: 100%;
    text-align: left;
}

.flat-price-history-table {
    width: 100%;
    border-collapse: collapse;
    font-weight: 400;
}

.flat-price-history-table th,
.flat-price-history-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--light-grey);
    vertical-align: top;
}

.flat-price-history-table th {
    font-weight: 600;
    width: 48%;
}

.flat-price-history-table tbody tr:last-child th,
.flat-price-history-table tbody tr:last-child td {
    border-bottom: none;
}

.single-flat-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.flat-transport-tag  {
    font-size: 0.8rem;
    margin-right: 2px;
}

.flat-transport-tag:not(:last-child)::after {
    content: " | ";
    margin: 0 6px;
}

.single-flat-description-header h3 {
    font-size: 1.5rem;
}

/* MODAL FOR FLAT PLAN */

.flat-plan-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.35s ease,
        visibility 0s linear 0.35s;
}

.flat-plan-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition:
        opacity 0.35s ease,
        visibility 0s linear 0s;
}

.flat-plan-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.flat-plan-modal__content {
    position: relative;
    z-index: 1;

    max-width: 95vw;
    max-height: 95vh;
    background: #fff;
    padding: 16px;
    border-radius: 12px;

    transform: translateX(80px);
    opacity: 0;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.flat-plan-modal.is-open .flat-plan-modal__content {
    transform: translateX(0);
    opacity: 1;
}

.flat-plan-modal__content img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.flat-plan-modal__close {
    position: absolute;
    top: -14px;
    right: -14px;

    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;

    background: #fff;
    color: #000;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

/* PRICE HISTORY MODAL */

.price-history-modal {
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-history-modal .modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.price-history-modal table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.price-history-modal th, .price-history-modal td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.price-history-modal .close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}


/* =============================== */
/* PAGE BLOG */
/* =============================== */
/*  SECTION MAIN
/* =============================== */

.archive-title {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 400;
    font-size: 1.5rem;
}

.articles-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-archive {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;

    & ul {
        padding: 0;
    }
    
    & h3 {
        width: 100%;
    }
}

.blog-archive-content {
    width: fit-content;
}

/* =============================== */
/* PAGE SINGLE POST */
/* =============================== */
/*  SECTION HEADER
/* =============================== */

.article-banner {
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: 0.35s ease-in-out;
    display: flex;
    align-items: end;
    padding: min(5%, 50px) 10%;
    border-radius: 25px;
}

.article-banner-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;

}

.article-banner-title {
    background: var(--red);
    padding: 10px 40px;
    border-radius: 25px;
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    width: fit-content;
    text-align: left;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.15);
}

.post-date {
    text-align: center;
}

@media (max-width: 768px) {
    .single-flat-actions {
        flex-direction: column;
        align-items: center;

        & .cta {
            min-width: 250px;
        }
    }
}


/* =============================== */
/* PAGE GALLERY */
/* =============================== */
/*  SECTION OFFERS
/* =============================== */

.gallery-item-link {
   top: 50%;
}

.building-type-box {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;

    & .building-type {
        display: block;
        color: #fff;
        font-size: 2rem;
        font-weight: 400;
        text-shadow: 0 2px 3px rgba(0,0,0,0.3);
        text-align: center;
    }
}

#single-gallery .section-content:after {
    display: none;
}


/* =============================== */
/* PAGE CONTACT */
/* =============================== */
/*  SECTION BANNER
/* =============================== */

#contact-banner {
    min-height: 600px;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    border-radius: 25px;
    overflow: hidden;
    width: 90%;
    margin: auto;
    margin-top: 120px;

    & .banner-parallax-bg {
        background-position: top center;
    }
}

.banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;

    & h1 {
        font-size: 4rem;
        font-weight: 900;
        text-transform: uppercase;
        color: #fff;    
        text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
}

/* =============================== */
/* PAGE ABOUT */
/* =============================== */
/*  SECTION WHO WE ARE
/* =============================== */

.regular-page {
    margin-top: 120px;

    & #banner {
        min-height: 600px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        display: flex;
        align-items: center;
        margin: auto;
    }

}

/* Images */

.staggered-images {
    display: flex;
    flex-direction: column;
    justify-content: center;

    & .staggered-image {
        border-radius: 15px;
        overflow: hidden;
        width: 70%;
        box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.15);
        & img {
            object-fit: cover;
            width: 100%;
            height: 100%;
            margin-top: 0;
        }
    }
}

#staggered-image-2 {
    align-self: flex-end;
    margin-top: -50px;
}
/* ============================================================ */
/* SECTION VALUES  */
/* ============================================================ */

#values {
    position: relative;
    background-image: url('../images/signet-white.png');
    background-size: 300px;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: soft-light;
}

.value-item {
    padding-inline: 20px;
    max-width: 300px;
    margin: auto;
    & h4 {
        display: block;
        min-height: 5rem;
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 20px;
    }
}

.values-images {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    margin-top: -100px;

    & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 15px;
        box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.15);
    }
}

#value-image-2 {
    width: 150%;
    transform: translateY(30px);
}

.about-logo {
    max-width: 300px;
    margin: auto;
    margin-top: 50px;
}
.value-claim {
    font-size: 2rem;
    color: var(--red);
}


@media (max-width: 992px)  {
    .value-item {
        margin-top: 50px;
        & h4 {
            font-size: 1.2rem;
            min-height: 3rem;
        }
    }

    .values-images {
        flex-direction: column;
        position: relative;
        margin-top: -50px;
        gap: 0;

        & img {
            max-width: 400px;
            box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.55);
        }
    }
        #value-image-2 {
            align-self: flex-end;
            width: unset;
            transform: translateY(-50px);
        }

        #value-image-3 {
            align-self: flex-start;
            transform: translateY(-100px);
        }
}


/* ============================================================ */
/* SECTION TRUST  */
/* ============================================================ */

/* #trust {
    margin-top: 15%;
} */

.trust-image {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.15);
    margin-top: 50px;
    
    & img {
        width: auto;
        height: 100%;
        object-fit: cover;
        margin-top: 0;

    }
}

@media (max-width: 768px) {
    #trust {
        margin-top: -100px;
    }
}
/* SECTION MEDIA QUERIES   /////////////////////////////// */
/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */

  @media (max-width: 1400px) {

    /* PAGE SINGLE INVESTMENT ================================ */
    #nav-single-investment {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        top: unset;
        width: clamp(250px, 95%, 400px);
        bottom: 10px;
        left: 50%;
        gap: min(20px, 5%);
        padding-inline: min(5%, 40px);
        transform: translateX(-50%);
        box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.25);
    }



    .flat-filter-slider-block {
        max-width: 200px;
    }

    .metaslider:before, .metaslider:after {
        display: none;
    }
  }


@media (max-width: 992px) {
    .offers-list {
        grid-template-columns: repeat(1, 1fr);
    }

    /* SECTION FLATS LIST ================================ */
    .flat-filters {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 25px;
        justify-items: center;
      }

      .flat-filter-bottom {
        justify-content: center;
      }

      /* Flats list  */
        .table-flat-list {
            border-spacing: 0 12px;
        }
    
        .table-flat-list thead {
            display: none;
        }
    
        .table-flat-list,
        .table-flat-list tbody,
        .table-flat-list tr,
        .table-flat-list td {
            display: block;
            width: 100%;
        }
    
        .table-flat-list tr {
            display: flex;
            flex-wrap: wrap; 
            gap: 8px;
            background-color: var(--pale-grey);
            max-width: min(600px, 95%);
            margin: auto;
            border-radius: 18px;
            margin-bottom: 50px;
            overflow: visible;
            padding: 15px;
            border: 1px solid var(--light-grey);
            /* background: var(--pale-grey); */
            box-sizing: border-box; /* Ensures padding doesn't break the layout */
        }
        .table-flat-list td {
            position: relative;
            border-radius: 0;
            text-align: left;
            font-weight: 600;
            padding: 10px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            border-radius: 15px;
            width: 100%;
            padding: 14px;
            box-sizing: border-box; 
            box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.15);
            overflow: visible;
            border: 1px solid var(--light-grey);
        }

        .table-flat-list td:last-child {
            border-bottom: 0;
        }
    
        .table-flat-list td::before {
            content: attr(data-label);
            font-weight: 400;
            color: #222;
            flex: 0 0 40%;
        }

        .table-flat-list-cell-3 {
            width: calc(33.333% - 7px) !important;
            flex-direction: column; 
            justify-content: flex-end; 
            padding-top: 25px; 
            text-align: center;

            & span {
                transform: translateY(5px);
            }

        }

        .table-flat-list-cell-3:before {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.7rem;
            color: var(--light-grey);
            text-wrap: nowrap;
        }

        .flat-image-cell {
            transition: 0.35s ease-in-out;
            margin-bottom: 3px;
            &:hover {
                transform: scale(1.02);
                cursor: pointer;
            }
        }
        
        .flat-image-cell:before {
            display: none;
        }

        .table-flat-list_garage {
            display: none !important;
        }

        .table-flat-list_price-full {
            padding-top: 5px !important;
            padding-bottom: 5px !important;
        }

        .price-full {
            min-width: 150px;
            text-align: center;
            margin-right: -10px;
        }
    
        .price-pill,
        .contact-btn {
            min-width: unset;
            width: auto;
        }

        .table-flat-list_contact {
            box-shadow: none !important;
            background: transparent !important;
            padding: 0;
            border: none !important;
            &:before {
                display: none;
            } 
            & a {
                width: 100%;
                text-align: center;
            }
        }

    
}

@media (max-width: 768px) {

    .why-tile {
        max-width: 400px;
        min-height: 300px;
        margin-bottom: 30px;
    }

    .news-list {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    /* PAGE BLOG ================================ */
    .articles-list {
        grid-template-columns: repeat(1, 1fr);
    }

    /* PAGE SINGLE INVESTMENT ================================ */

    .feature-item-circle {
        width: 100px;
        height: 100px;
    }

    .feature-item-icon {
        width: 40px;
    }

    .inwestycje-main-slider .swiper-slide img {
        height: 280px;
    }

    .inwestycje-thumbs-slider .swiper-slide img {
        height: 70px;
    }

    /* FLAT FILTERS ================================ */
    .flat-filters {
        grid-template-columns: repeat(1, minmax(220px, 1fr));
        gap: 36px;

      }
      .flat-filter-buttons {
        justify-content: center;
      }
    
      .flat-filter-block h3 {
        margin-bottom: 22px;
      }
    
      .flat-filter-bottom {
        flex-direction: column;
        align-items: center;
      }
    
      .flat-filter-button {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
      }
}

@media (max-width: 576px) {
    /* PAGE HOME ================================ */

    #contact-banner {
        max-height: 400px;
    }
    .offer-item-details {
        height: auto;
    }
    .offer-item-element {
        flex-direction: column;

        & span {
            display: flex;
            align-items: center;
            height: 40px;
            text-align: center;
        }
    }

    /* PAGE SINGLE OFFER ================================ */


}