.homes-filters-wrapper {
  padding-block: 0px 20px;
  /* max-width: 1440px; */
  margin: 0 auto;

  .filter-actions {
    position: absolute;
  }
}

.apartments-filter {
  padding-block: 0px 20px !important;
  padding-inline: 0px;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;

  .load-more-button {
    padding: 10px 50px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: "Atten New" !important;
    letter-spacing: 1.6px !important;
    text-transform: uppercase !important;
    border: none !important;
    min-width: 215px;
  }
}

.homes-filters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.homes-filters__item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.homes-filters__item {
  margin-left: auto;
}

.dropdown-btn {
  width: 100%;
  padding: 4px 0px !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer;
  display: flex !important;
  justify-content: space-between;
  align-items: center !important;
  font-size: 14px !important;
  color: #003349 !important;
  transition: all 0.3s ease;
  /* style */
  font-family: "Atten New";
  font-size: 20px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: normal !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
}

.dropdown-btn .arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.homes-filters__item-dropdown.active .arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #003349;
  margin-top: 4px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  color: #fff;
  padding-inline: 20px;
}

.homes-filters__item-dropdown.active .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content label {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 16px;
  color: #fff;
  text-transform: uppercase;
  padding-block: 12px;
  white-space: nowrap;
}

.dropdown-content input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  color: currentColor;
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid currentColor;
  border-radius: 0.15em;
  transform: translateY(-0.075em);
}

.select-container {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 300px;

  .apply-btn-wrapper {
    display: flex;
    justify-content: center;

    .apply-btn {
      width: 100%;
      padding: 11px 20px;
      text-transform: uppercase;
      font-weight: 700;
      line-height: normal;
      letter-spacing: 2.34px;
      color: #003349;
      background-color: #fff;
      border: none;
      border-radius: 0px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
  }
}

.select-wrapper {
  display: flex;

  gap: 24px;
  justify-content: space-between;

  label {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    gap: 4px;

    .label-title {
      font-family: "Atten New";
      font-size: 12px;
      font-style: normal;
      font-weight: 500;
      line-height: normal;
      letter-spacing: 1.6px;
      text-transform: uppercase;
      color: #fff;
    }
  }

  #sort-by {
    width: 100%;
    background-color: #003349;
    color: #fff;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 2.34px;
    text-transform: uppercase;
    padding: 10px 24px;
  }
}

.homes-filters-wrapper {
  select {
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    border: 1px solid #ffffff;
    border-radius: 0px;
    appearance: none;

    background-color: transparent;
    color: #ffffff;
    cursor: pointer;
    width: 120px;
    max-height: 300px;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1.6px;
    text-transform: uppercase;
  }

  select,
  ::picker(select) {
    appearance: base-select;
  }

  select::picker-icon {
    color: #ffffff;
    transition: 0.4s rotate;
    content: "";
    background: url("/wp-content/uploads/2025/04/arr.svg");
    background-size: 100% 100%;
    width: 10px;
    height: 6px;
    rotate: 180deg;
  }

  select:open::picker-icon {
    rotate: 0deg;
  }

  ::picker(select) {
    border: none;
  }

  option::checkmark {
    content: none;
  }

  ::picker(select) {
    opacity: 0;
    transition: all 0.4s allow-discrete;
  }

  ::picker(select):popover-open {
    opacity: 1;
    background-color: #004766;
    color: #ffffff;
    max-height: 300px;
  }

  option {
    color: #ffffff;
    padding: 14.5px 20px;
  }
}

@media (max-width: 768px) {
  .homes-filters {
    gap: 10px;
  }

  .homes-filters__item-dropdown {
    width: 100%;
  }

  .homes-filters-wrapper,
  .homes-grid-container {
    padding: 16px 0px;
  }
}

.filter-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-checkbox {
  position: relative;
  display: inline-block;
  cursor: pointer;
  min-width: 56px;
  text-align: center;

  input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }

  .checkbox-text {
    display: block;
    padding: 3px 12px;
    border: 1px solid #003349;
    color: #003349;
    font-family: "Atten New";
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    transition: all 0.3s ease;
  }

  input[type="checkbox"]:checked+.checkbox-text {
    background: #004766;
    color: #fff;
  }

  &:hover input[type="checkbox"]:not(:checked)+.checkbox-text {
    background: rgba(0, 51, 73, 0.05);
  }
}

.checkbox-wrapper-40 {
  --borderColor: #fff;
  --borderWidth: 0.115em;
}

.checkbox-wrapper-40 label {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

.checkbox-wrapper-40 input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  vertical-align: middle;
  background: transparent;
  font-size: 1.8em;
  border-radius: 0.125em;
  display: inline-block;
  border: var(--borderWidth) solid var(--borderColor);
  width: 24px;
  height: 24px;
  position: relative;
  margin-right: 16px;
  margin-block: 4px 0px;
}

.checkbox-wrapper-40 input[type="checkbox"]:before,
.checkbox-wrapper-40 input[type="checkbox"]:after {
  content: "";
  position: absolute;
  background: var(--borderColor);
  width: calc(var(--borderWidth) * 3);
  height: var(--borderWidth);
  top: 50%;
  left: 10%;
  transform-origin: left center;
}

.checkbox-wrapper-40 input[type="checkbox"]:before {
  transform: rotate(45deg) translate(calc(var(--borderWidth) / -2), calc(var(--borderWidth) / -2)) scaleX(0);
  transition: transform 200ms ease-in 200ms;
}

.checkbox-wrapper-40 input[type="checkbox"]:after {
  width: calc(var(--borderWidth) * 5);
  transform: rotate(-45deg) translateY(calc(var(--borderWidth) * 2)) scaleX(0);
  transform-origin: left center;
  transition: transform 200ms ease-in;
}

.checkbox-wrapper-40 input[type="checkbox"]:checked:before {
  transform: rotate(45deg) translate(calc(var(--borderWidth) / -2), calc(var(--borderWidth) / -2)) scaleX(1);
  transition: transform 200ms ease-in;
}

.checkbox-wrapper-40 input[type="checkbox"]:checked:after {
  width: calc(var(--borderWidth) * 5);
  transform: rotate(-45deg) translateY(calc(var(--borderWidth) * 2)) scaleX(1);
  transition: transform 200ms ease-out 200ms;
}

.checkbox-wrapper-40 input[type="checkbox"]:focus {
  outline: calc(var(--borderWidth) / 2) dotted rgba(0, 0, 0, 0.25);
}

/* homes grid */
.homes-grid-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.homes-grid-wrapper {
  display: grid;
  flex-wrap: wrap;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;

  .swiper-slide {
    padding-bottom: 70%;
  }

  .homes-grid-item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;

    .homes-content {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .promo-label {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 2;
      padding: 8px 12px;
      font-family: "Atten New";
      font-size: 14px;
      font-style: normal;
      font-weight: 400;
      display: flex;

      line-height: 140%;

      &.yellow {
        background-color: #d9c756;
        color: #003349;
      }

      &.blue {
        background-color: #003349;
        color: #fff;
      }
    }
  }
}

.homes-grid-slider__swiper {
  /* max-height: 230px; */

  .swiper-wrapper .swiper-slide img {
    /* max-height: 230px;
    height: 100%; */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .swiper-button-prev:after,
  .swiper-button-next:after {
    content: none;
  }

  .swiper-button-prev img,
  .swiper-button-next img {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 1240px) {
  .homes-grid-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }

  .dropdown-btn {
    font-size: 16px !important;
    letter-spacing: 1.6px !important;
  }
}

@media (max-width: 767px) {
  .homes-grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .homes-grid-container {
    padding: 16px;
  }

  .homes-grid-wrapper {
    grid-template-columns: 1fr;
  }
}

.homes-content {
  background-color: #c6dcda;
  padding: 12px;
  display: flex;
  flex-direction: column;

  .pre-title-state {
    color: #6f2c3f;
    font-family: "Atten New";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    letter-spacing: 1.56px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;

    &:before {
      content: "";
      width: 12px;
      height: 12px;
      border-radius: 12px;
      border: 0.75px solid #6f2c3f;
      background: #34c759;
      display: inline-block;
      margin-top: -3px;
    }

    &.ready::before {
      background: #34c759;
    }

    &.soon::before {
      background: #d9c756;
    }

    &.no-date::before {
      background: #909DA1;
    }
  }

  .wrap {
    display: flex;
    width: 100%;
    align-items: baseline;
    justify-content: space-between;
  }
}



.region {
  color: #003349;
  font-family: "Atten New";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 110%;
  letter-spacing: 1.56px;
  text-transform: uppercase;
}

.hesh {
  color: #003349;
  font-family: "Atten New";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: 1.6px;
}

.title-wrap {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  margin-top: 3px;

  .name {
    color: #6f2c3f;
    font-family: "Atten New";
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1px;
    text-transform: uppercase;

    /* &::before {
      content: "The ";
    } */
  }

  .elevation {
    color: #6f2c3f;
    font-family: "Atten New";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5px 2.5px 0px;

    border-radius: 4px;
    border: 1.5px solid var(--brand-secondary-30, #6f2c3f);
  }
}
.address-wrap .address {
  color: #003349;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 110%;
  letter-spacing: 1.56px;
  text-transform: uppercase;

}
.address {
  color: #003349;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: 0.15px;
}

.info-home-wrapper {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.info-home {
  display: flex;
  flex-direction: column;
  flex: 50%;

  .regular {
    color: #6f2c3f;
    font-family: "Atten New";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  .sale {
    color: #003349;
    font-family: "Atten New";
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 110%;
    letter-spacing: 1.56px;
    text-transform: uppercase;
    text-decoration: line-through;
  }
}

.value {
  color: #003349;
  font-family: "Atten New";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.divider {
  width: 100%;
  height: 1px;
  background-color: #90bbb7;
  display: block;
  margin-block: 12px;
}

.label-title {
  color: #003349;
  font-family: "Atten New";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 110%;
  letter-spacing: 1.56px;
  text-transform: uppercase;
}

.block {
  display: flex;
  flex-direction: column;
}

.btn-more {
  display: flex;
  flex: 1;
  padding: 12px 20px;
  justify-content: center;
  align-items: center;
  gap: var(--Spacing-3xs, 4px);
  align-self: stretch;
  text-decoration: none;
  border: 1px solid #003349;
  color: #003349 !important;
  font-family: "Atten New";
  font-size: 16px;
  gap: 4px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 12px;
  transition: all 0.3s ease;

  &:hover {
    background-color: #004765;
    color: #fff !important;
  }
}

.home-characteristics {
  flex: 1;
}

.site-main img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.homes-grid-slider {
  position: relative;
  max-height: 230px;
  overflow: hidden;

  .swiper-button-prev,
  .swiper-button-next {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;



    &:after {
      content: none;
    }

    img {
      width: 16px;
      height: 16px;
    }
  }


}

.swiper-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 12px;
  color: #fff;
  font-family: "Atten New";
  font-size: 12px;
  font-weight: 500;
  line-height: 110%;
  letter-spacing: 1.56px;
  text-transform: uppercase;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(51, 51, 51, 0.55);
  line-height: 1;
  border-radius: 12px;

  .swiper-counter__total {
    &:before {
      content: "/";
      margin: 0 4px 0 0px;
      opacity: 0.8;
    }
  }
}

.mobile-filter-btn {
  display: none;
}

@media (max-width: 768px) {
  .homes-filters {
    display: none;
  }

  .mobile-filter-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    text-decoration: none;
    padding: 11px 16px;
    border: 1px solid #003349;
    color: #003349 !important;
    font-family: "Atten New";
    font-size: 16px;
    gap: 4px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
  }
}

.mobile-filters-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-filters-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-filters-popup {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 375px;
  background: #f8f7ee;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.mobile-filters-popup.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-filters-popup__header {
  padding: 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;

  h2 {
    color: #003349;
    font-family: "Atten New";
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 1.56px;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
    width: 100%;
    line-height: 100% !important;
  }

  .close-popup-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.mobile-filters-popup__content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-filters-group {
  h3 {
    color: #003349;
    font-family: "Atten New";
    font-size: 14px !important;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin: 0 0 16px 0;
  }
}

.mobile-filters-options {
  display: flex;
  flex-direction: column;
  gap: 12px;

  .checkbox-wrapper-40 {
    --borderWidth: 0.085em;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #003349;
    font-family: "Atten New";
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.15px;

    border-radius: 0px;

    input[type="checkbox"] {
      width: 18px;
      height: 18px;
      border: 1px solid #003349;
      border-radius: 0px;
      margin: 0;
      position: relative;
      --borderColor: #003349;

      &:checked {
        background: #003349;
        border-color: #003349;
        --borderColor: #fff;
      }
    }
  }
}

.select-wrapper.mobile {
  display: flex;
  gap: 16px;

  label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;

    .label-title {
      color: #003349;
      font-family: "Atten New", Sans-serif;

      font-size: 12px;
      font-weight: 500;
      letter-spacing: 1.56px;
      text-transform: uppercase;
    }

    select {
      width: 100%;
      padding: 10px;
      border: 1px solid var(--brand-primary-30, #006b99);
      background: var(--brand-primary-15, #003349);
      border-radius: 0px;
      color: #fff;
      font-family: "Atten New", Sans-serif;

      font-size: 16px;
      font-weight: 700;
      letter-spacing: 1.6px;
      text-transform: uppercase;
      cursor: pointer;
    }
  }
}

.mobile-filters-popup__footer {
  padding: 20px;
  border-top: 1px solid #e5e5e5;

  .apply-filters-btn {
    width: 100%;
    padding: 11px 20px;
    background: #003349;
    color: #fff;
    border: none;
    font-family: "Atten New";
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2.34px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;

    &:hover {
      background: #004466;
    }
  }
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  min-width: 56px;
  padding: 8px;
  border: 1px solid #003349;
  background: transparent;
  color: #003349;
  font-family: "Atten New";
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;

  &.active {
    background: #003349;
    color: #fff;
  }

  &:hover:not(.active) {
    background: rgba(0, 51, 73, 0.05);
  }
}

/* Skeleton Loader Styles */
.skeleton-item {
  background: #c6dcda;
  position: relative;
  overflow: hidden;
}

.skeleton-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0) 100%);
  animation: skeleton-loading 1.5s infinite;
}

.skeleton-image {
  height: 230px;
  width: 100%;
  background-color: #e0e0e0;
}

.skeleton-content {
  padding: 12px;
  background-color: #c6dcda;
}

.skeleton-text-small {
  height: 12px;
  width: 70%;
  background-color: #90bbb7;
  margin-bottom: 12px;
  border-radius: 2px;
}

.skeleton-text-medium {
  height: 16px;
  width: 85%;
  background-color: #90bbb7;
  margin-bottom: 12px;
  border-radius: 2px;
}

.skeleton-text-large {
  height: 24px;
  width: 50%;
  background-color: #90bbb7;
  margin-bottom: 12px;
  border-radius: 2px;
}

.skeleton-divider {
  height: 1px;
  width: 100%;
  background-color: #90bbb7;
  margin: 12px 0;
}

.skeleton-button {
  height: 40px;
  width: 100%;
  background-color: #90bbb7;
  margin-top: 12px;
  border-radius: 0;
}

@keyframes skeleton-loading {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}