.borderro {
  border: 2px solid brown;
}

html {
  --color__grey-dark: #4a4a4a;
  --color__grey-light: #939393;
}

.apt__card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 768px) and (max-width: 966px) {
  .apt__card {
    flex-direction: row;
  }
  .apt__img {
    max-width: 50%;
  }
}

/* html * {
  border: 1px solid red;
} */

.apt__img {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 100%;
  background-color: #e2e2e2;
  padding: var(--apt-list__padding);
  min-height: 235px;
  max-height: 400px;
  padding: calc(1vw + 15px + 1rem) calc(1vw + 15px) calc(1vw + 10px);
}

.apt__img img {
  max-height: 300px;
  max-width: 300px;
  object-fit: contain;
  width: 100%;
  height: 100%;
  min-width: 200px;
}

.apt__status {
  top: 0;
  left: 0;
  background-color: #eb8d21;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
  color: white;
  font-size: 0.8rem;
  padding: 0.37rem 0.7rem 0.3rem;
  font-weight: 700;
  max-width: 100%;
  text-align: center;
}

.apt__content .apt__status {
  position: absolute;
  top: 0;
  left: 0;
}

.apt__price-hist-list .apt__status {
  position: unset;
}

.dostepne {
  background-color: #729435;
}

.sprzedane {
  background-color: #ca3d41;
}

.rezerwacja {
  background-color: #3b6fa2;
}

.apt__content {
  line-height: 1.1;
  padding: calc(1vw + 15px);
  /* min-width: 100%; */
  /* max-width: calc(50vw - 2 * var(--spacing)); */
  display: flex;
  flex-direction: column;
  row-gap: 1.8rem;
  background-color: #f5f5f5;
}

.apt__row {
  display: flex;
  justify-content: space-between;
  min-width: 100%;
  column-gap: 0.5rem;
}

.apt__content p,
.ct-inner-content .apt__content p:not(:last-child),
.ct-inner-content .apt__price-history p:not(:last-child) {
  margin: 0;
}

.text-to-right {
  text-align: right;
}

.text-bold {
  font-weight: 700 !important;
}

.text-grey-dark {
  color: var(--color__grey-dark);
}

.text-grey-light {
  color: var(--color__grey-light);
}
/* header */

.apt__title,
.apt__total-price {
  font-size: 1.6rem;
  color: var(--color__grey-dark);
  font-weight: 700;
}

.apt__title {
}

.apt__total-price span {
  font-size: 1.2rem;
}

.apt__stage,
.apt__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color__grey-light);
}

/* features */

.apt__features {
  display: grid;
  justify-items: stretch;
  -webkit-align-items: stretch;
  align-items: stretch;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 10px;
  grid-row-gap: 0.9rem;
  width: 100%;
}

.apt__price-lowest {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color__grey-light);
  margin-bottom: 1rem;
}

.apt__price-lowest span {
  color: var(--color__grey-dark);
  white-space: nowrap;
}

.apt__check-lowest-price-btn {
  font-weight: 700;
  color: var(--color__grey-dark);
  line-height: 1.1;
  display: block;
  padding-top: 0.8rem;
}

/* <svg xmlns="http://www.w3.org/2000/svg" width="8" height="13" fill="none">
                        <path stroke="#4A4A4A" stroke-width="2" d="M1.14 1.25 6.422 6.5l-5.28 5.25"></path>
                    </svg> */

.text-link-with-arrow {
  position: relative; /* to help with positioning if needed */
  padding-right: 1rem; /* space for the arrow */
}

.text-link-with-arrow:after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='13' fill='none'%3E%3Cpath stroke='%234A4A4A' stroke-width='2' d='M1.14 1.25 6.422 6.5l-5.28 5.25'/%3E%3C/svg%3E");
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.4rem; /* space between text and arrow */
  height: 1rem;
  width: 1rem;
  line-height: 1.1;
}

.apt__icon {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  padding-bottom: 0px;
}

.apt__icon-big {
  height: 32px;
  width: 26px;
  margin-right: 8px;
  padding-bottom: 0;
}

/* ====== PRICE HISTORY */

.apt__price-history {
  line-height: 1.1;
  padding: calc(1vw + 15px);
  padding-top: calc(1vw + 15px + 1rem);
  /* min-width: 100%; */
  /* max-width: calc(50vw - 2 * var(--spacing)); */
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
  background-color: #f5f5f5;
  background-color: #e2e2e2;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  height: 100%;
  transform: translatex(-100%);
  transition: transform 0.2s;
}

.apt__price-history-visible {
  transform: translatex(0);
  box-shadow: 20px 0 40px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.4s;
}

.apt__price-history ul {
  margin: 0;
  padding: 0;
  padding-left: 1rem;
}

.apt__price-hist-list {
  margin-top: 1rem;
}

.apt__price-hist-list-item {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns */
  border: 2px #d9d9d9 solid;
  border-left: unset;
  border-right: unset;
  padding: 0.35rem 0 0.5rem;
}

.price-history__hide {
  padding: 1rem;
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
}

/* ========== KOMÓRKI I GARAŻE */

.amenities {
  padding: calc(1vw + 15px);
  /* padding-top: calc(1vw + 15px + 1rem); */
  /* min-width: 100%; */
  /* max-width: calc(50vw - 2 * var(--spacing)); */
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  height: 100%;

  row-gap: 1rem;
  background-color: #f5f5f5;

  color: var(--color__grey-dark);
  font-weight: 700;
  line-height: 1.1;

  width: 100%;

  /* border: 2px #d9d9d9 solid;
  border-left: unset;
  border-right: unset;
  padding: 0.35rem 0 0.5rem; */
}

.ct-inner-content .amenities p:not(:last-child) {
  margin: 0;
}

/* ======== AMENITIES */

/* dirty hack for section - REPEAT for parking */
#section-66-5864 > .ct-section-inner-wrap {
  max-width: 100%;
  padding-right: 7%;
  padding-left: 7%;
}

.amenities__descr {
  color: var(--color__grey-light);
  max-width: 12ch;
}

.amenities-bottom-row__col-left {
  display: flex;
  align-items: flex-end;
}

.amenities-bottom-row__col-right {
  display: flex;
  flex-direction: column;
  align-content: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 0.5rem;
}

.amenities-list__grid {
  display: grid !important;
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(1vw + 10px);
  width: 100%;
  margin-top: 40px;
}
