/* Shared property card component for Figma prototype pages. */
.property-card {
  position: relative;
  min-width: 0;
  height: 533px;
  min-height: 533px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}

.property-media {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #d8ddd9;
}

.property-media-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
}

.property-media img {
  width: 100%;
  height: 354px;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: translateY(-57px);
  transition: transform .36s ease;
}

.property-card:hover .property-media img {
  transform: translateY(-57px) scale(1.045);
}

.gallery-dots {
  position: absolute;
  left: 50%;
  top: 220px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
}

.gallery-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(233, 227, 204, .55);
}

.gallery-dots span:first-child {
  background: #fff;
}

.property-card-badges {
  position: absolute;
  left: 0;
  top: 20px;
  z-index: 4;
  max-width: calc(100% - 106px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}

.property-card-badges .exclusive-pill {
  position: static;
  flex: 0 1 auto;
  max-width: 100%;
}

.property-card-badge {
  min-height: 39px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  padding: 10px 17px;
  border-radius: 80px;
  background: var(--property-card-badge-bg, var(--gold, #bea575));
  color: var(--cream, #e9e3cc);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(17px);
}

.property-card-badges > :first-child {
  border-radius: 0 80px 80px 0;
}

.property-card-badge.is-success {
  background: var(--green, #064632);
}

.property-card-badge.is-primary,
.property-card-badge.is-info {
  background: #6f809d;
}

.property-card-badge.is-warning,
.property-card-badge.is-danger {
  background: #a4501e;
}

.property-card-badge.is-default {
  background: var(--gold, #bea575);
}

.exclusive-pill {
  position: absolute;
  left: 0;
  top: 20px;
  z-index: 2;
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 19px;
  border-radius: 0 80px 80px 0;
  background: var(--green, #064632);
  color: var(--cream, #e9e3cc);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  backdrop-filter: blur(17px);
}

.favorite-button {
  position: absolute;
  right: 25px;
  top: 20px;
  z-index: 2;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gray, #e7e9eb);
  color: var(--gold, #bea575);
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.favorite-button:hover {
  transform: scale(1.04);
}

.favorite-button::before {
  content: "";
  display: block;
  width: 25px;
  height: 21px;
  background: url("/figma-object/assets/icons/favorite-outline.svg") center / contain no-repeat;
  line-height: 1;
}

.favorite-button.is-active::before,
.favorite-button[aria-pressed="true"]::before {
  content: "";
  background-image: url("/figma-object/assets/icons/favorite-filled.svg");
}

.favorite-button.is-active,
.favorite-button[aria-pressed="true"] {
  background: var(--gold, #bea575);
  color: #fff;
}

.id-pill {
  position: absolute;
  right: 25px;
  top: 223px;
  z-index: 2;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cream, #e9e3cc);
  color: var(--navy, #13233b);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.property-body {
  min-height: 293px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 29px 25px 25px;
}

.property-title {
  width: 426px;
  max-width: 100%;
  margin: 0 0 13px;
  color: var(--navy, #13233b);
  font-size: 25px;
  line-height: .9;
  font-weight: 400;
  text-transform: none;
}

.property-title a {
  color: var(--navy, #13233b);
  text-decoration: none;
}

.property-description {
  width: 376px;
  max-width: 100%;
  height: 29px;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--navy, #13233b);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
}

.property-meta {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 13px;
  overflow: hidden;
}

.property-meta span,
.property-meta a {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  color: rgba(19, 35, 59, .5);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.property-meta a:hover {
  color: var(--navy, #13233b);
}

.property-meta i.property-meta-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  display: inline-block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.property-meta i.property-meta-road {
  background-image: url('/figma-catalog/assets/meta-road.svg');
}

.property-meta i.property-meta-location {
  background-image: url('/figma-catalog/assets/meta-location.svg');
}

.property-meta i.property-meta-village {
  background-image: url('/figma-catalog/assets/meta-village.svg');
}

.property-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.property-tags span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gray, #e7e9eb);
  color: var(--navy, #13233b);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.property-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.price-block {
  min-width: 0;
}

.old-price {
  display: block;
  margin-bottom: 5px;
  color: #a1a7b1;
  font-size: 18px;
  line-height: 1;
  text-decoration: line-through;
}

.current-price {
  display: block;
  color: var(--navy, #13233b);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

.details-link {
  flex: 0 0 auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--gold, #bea575);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 760px) {
  .property-card {
    width: 335px;
    max-width: 100%;
    height: 468px;
    min-height: 468px;
    border-radius: 8px;
  }

  .property-media {
    height: 208px;
    border-radius: 8px 8px 0 0;
  }

  .property-media img {
    width: 100%;
    height: 208px;
    transform: none;
    object-fit: cover;
  }

  .property-card:hover .property-media img {
    transform: scale(1.035);
  }

  .gallery-dots {
    top: 190px;
    left: 10px;
    transform: none;
  }

  .property-card-badges {
    top: 9px;
    max-width: calc(100% - 54px);
    gap: 4px;
  }

  .exclusive-pill {
    top: 9px;
    left: 0;
    min-height: 18px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 5px 9px;
    gap: 10px;
    border-radius: 0 80px 80px 0;
    font-size: 14px;
  }

  .property-card-badge {
    min-height: 18px;
    padding: 5px 9px;
    font-size: 14px;
  }

  .favorite-button {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    font-size: 31px;
  }

  .id-pill {
    top: 196px;
    right: 15px;
    min-height: 24px;
    padding: 5px 14px;
    font-size: 14px;
  }

  .property-body {
    height: 260px;
    min-height: 260px;
    padding: 23px 15px 17px;
  }

  .property-title {
    font-size: 16px;
    line-height: 1.16;
  }

  .property-description {
    width: 305px;
    height: 35px;
    margin-bottom: 9px;
    font-size: 14px;
    line-height: 1.22;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .property-meta span {
    font-size: 14px;
    line-height: 1;
  }

  .property-tags {
    gap: 5px;
    margin-top: 9px;
  }

  .property-tags span {
    min-height: 22px;
    padding: 0 10px;
    font-size: 12px;
  }

  .property-bottom {
    min-height: 41px;
    flex-direction: row;
    align-items: end;
  }

  .old-price {
    margin-bottom: 3px;
    font-size: 14px;
  }

  .current-price {
    font-size: 20px;
  }

  .details-link {
    width: 112px;
    min-height: 34px;
    padding: 0 16px;
    font-size: 14px;
  }
}
