.apartaments .apartament-card__wrapper {
  position: relative;
  width: 1264px;
  max-width: 100%;
  margin: 0 auto 40px;
  padding: 93px 126px 26px;
  border: 4px solid #192c44;
}
@media (max-width: 768px) {
  .apartaments .apartament-card__wrapper {
    width: 100%;
    padding: 50px 16px 20px;
    border-width: 2px;
  }
}
.apartaments .apartament-card__wrapper .apartament-card__title {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  background: #192c44;
}
.apartaments .apartament-card__wrapper .apartament-card__title h2 {
  color: #ffffff;
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.3;
  text-align: center;
  margin: 0;
  padding: 5px 70px 8px;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .apartaments .apartament-card__wrapper .apartament-card__title h2 {
    font-size: 22px;
    padding: 5px 30px 8px;
  }
}
.apartaments .apartament-card__wrapper .apartament-card__gallery {
  position: relative;
  line-height: 0;
  margin-bottom: 17px;
}
.apartaments .apartament-card__wrapper .apartament-card__gallery .swiper-button-prev {
  left: 0;
  transform: translateX(calc(-100% - 30px));
  width: 43px;
  height: 119px;
}
@media (max-width: 768px) {
  .apartaments .apartament-card__wrapper .apartament-card__gallery .swiper-button-prev {
    transform: none;
    left: 4px;
    width: 30px;
    height: 60px;
  }
}
.apartaments .apartament-card__wrapper .apartament-card__gallery .swiper-button-next {
  right: 0;
  transform: translateX(calc(100% + 30px));
  width: 43px;
  height: 119px;
}
@media (max-width: 768px) {
  .apartaments .apartament-card__wrapper .apartament-card__gallery .swiper-button-next {
    transform: none;
    right: 4px;
    width: 30px;
    height: 60px;
  }
}
.apartaments .apartament-card__wrapper .apartament-card__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.apartaments .apartament-card__wrapper .apartament-card__gallery .swiper-wrapper {
  align-items: center;
}
.apartaments .apartament-card__wrapper .apartament-card__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 15px;
}
@media (max-width: 768px) {
  .apartaments .apartament-card__wrapper .apartament-card__info {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col1 {
  border: 4px solid #192c44;
  padding: 25px 10% 10px;
}
@media (max-width: 768px) {
  .apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col1 {
    border-width: 2px;
    padding: 16px 12px 10px;
  }
}
.apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col1 table,
.apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col1 tr,
.apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col1 td {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
}
.apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col1 table tr.apartament-card__status td span {
  position: relative;
  display: inline-block;
}
.apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col1 table tr.apartament-card__status td span::before {
  content: "";
  position: absolute;
  inset: 0 -8px;
  z-index: -1;
}
.apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col1 table tr.apartament-card__status td span.available::before {
  background: #c1e8a8;
}
.apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col1 table tr.apartament-card__status td span.reserved::before {
  background: #f4eba8;
}
.apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col1 table tr.apartament-card__status td span.sold::before {
  background: #f54040;
}
.apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col1 table tr.apartament-card__price-history .apartament-card__info_table-value {
  font-weight: 600;
  font-size: 14px;
  line-height: 26px;
  display: inline-flex;
  width: 100%;
  align-items: center;
  gap: 7px;
  padding-top: 10px;
  cursor: pointer;
}
.apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col1 table tr.apartament-card__price-history .apartament-card__info_table-value svg {
  margin-bottom: 4px;
}
.apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col1 table tr td {
  width: 50%;
  color: #192c44;
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col1 table tr td {
    font-size: 16px;
  }
}
.apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col2 {
  border: 4px solid #192c44;
  padding: 25px 10% 10px;
  align-content: center;
}
@media (max-width: 768px) {
  .apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col2 {
    border-width: 2px;
    padding: 16px 12px 10px;
  }
}
.apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col2 .card__info_col2__img {
  margin-bottom: 40px;
}
.apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col2 .card__info_col2__img img {
  width: 100%;
  max-width: fit-content;
}
.apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col2 .card__info_col2__data a {
  color: #192c44;
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.8;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 100%;
  cursor: pointer;
}
.apartaments .apartament-card__wrapper .apartament-card__info .apartament-card__info_col2 .card__info_col2__data a svg {
  margin-bottom: 4px;
}
.apartaments .apartament-card__wrapper .apartament-card__desc p {
  color: #192c44;
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.05;
}
@media (max-width: 768px) {
  .apartaments .apartament-card__wrapper .apartament-card__desc p {
    font-size: 16px;
  }
}
.apartaments .apartament-card__wrapper .apartament-card__desc ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.apartaments .apartament-card__wrapper .apartament-card__desc ul li {
  position: relative;
  padding-left: 25px;
  color: #192c44;
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
}
@media (max-width: 768px) {
  .apartaments .apartament-card__wrapper .apartament-card__desc ul li {
    font-size: 15px;
    line-height: 22px;
  }
}
.apartaments .apartament-card__wrapper .apartament-card__desc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 13px;
  background-image: url("/wp-content/uploads/2026/03/Polygon-2.svg");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.price-history-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}
.price-history-overlay.is-open {
  display: flex;
}

.price-history-modal {
  position: relative;
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  font-family: "Barlow", sans-serif;
  color: #192c44;
}
.price-history-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}
.price-history-modal__close:hover svg path {
  stroke: #f54040;
}
.price-history-modal__title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
}
.price-history-modal__current {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #eee;
}
.price-history-modal__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  font-size: 16px;
}
.price-history-modal__row--bold {
  font-weight: 600;
  font-size: 18px;
}
.price-history-modal__val {
  font-weight: 600;
}
.price-history-modal__table-wrap {
  overflow-x: auto;
}
.price-history-modal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.price-history-modal__table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}
.price-history-modal__table tr:last-child td {
  border-bottom: none;
}
.price-history-modal__table tr:hover td {
  background: #f5f7fa;
}

/* =========================================================== */
/* MIEJSCA POSTOJOWE — WIDGET                                  */
/* =========================================================== */

.parking-spots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1264px;
  margin: 0 auto;
  font-family: "Barlow", sans-serif;
  color: #192c44;
}

.parking-spot-card {
  padding: 10px 0;
  text-align: center;
}

.parking-spot-card__header {
  margin-bottom: 12px;
}

.parking-spot-card__title {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  color: #192c44;
  margin: 0;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .parking-spot-card__title {
    font-size: 18px;
  }
}

.parking-spot-card__price {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.3;
  color: #192c44;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .parking-spot-card__price {
    font-size: 22px;
  }
}

.parking-spot-card__history-btn {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 26px;
  color: #192c44;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.parking-spot-card__history-btn:hover {
  opacity: 0.7;
}

.parking-spot-card__history-btn svg {
  margin-bottom: 2px;
}
