/* Стили для компонента карточки объекта */
.property-card {
    background-color: #EAEAEA;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 10px;
    height: 100%;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.property-card-main {
    flex: 1 1 auto;
    margin-bottom: 20px;
}

.property-card-image {
    position: relative;
    height: clamp(180px, calc(180px + (250 - 180) * ((100vw - 991px) / (1920 - 991))), 250px); /* Адаптивная высота */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px; /* Обновлено */
}

.property-labels {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.property-label {
    background-color: rgba(53, 51, 49, 0.8); /* #353331 с прозрачностью */
    color: #FFFFFF;
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: clamp(10px, calc(10px + (14 - 10) * ((100vw - 991px) / (1920 - 991))), 14px);
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
}

.property-label-component {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    background-color: #353331CC;
    border-radius: 5px;
    backdrop-filter: blur(10px);
    gap: 3px; /* Отступ между иконкой и текстом */
}

.property-label-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.property-label-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: 12px;
    leading-trim: none;
    line-height: 100%;
    letter-spacing: -0.03em; /* -3% */
    color: #FFFFFF;
    white-space: nowrap;
}

.property-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* padding: 20px; Убрано - мешает flex-растяжению */
}

.property-completion-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #FFFFFF;
    padding: 6px 7px;
    border-radius: 5px;
}

.property-completion-status p {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: -0.03em; /* -3% */
    color: #353331;
    margin: 0;
}

.property-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: clamp(20px, calc(20px + (30 - 20) * ((100vw - 991px) / (1920 - 991))), 30px);
    color: #353331;
    margin: 20px 20px 10px 20px;
    line-height: 80%;
    letter-spacing: -0.05em;
}

.location-wrapper {
    display: flex;
    align-items: center;
    margin: 0 20px 15px 20px;
}

.location-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-right: 5px;
}

.property-location {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: clamp(12px, calc(12px + (14 - 12) * ((100vw - 991px) / (1920 - 991))), 14px);
    color: #585E6B;
    margin: 0;
    line-height: 100%;
    letter-spacing: -0.03em; /* -3% */
}

.property-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 20px;
    /* margin-top: auto; Убрано - теперь это делает .property-card-buttons */
}

.property-price-wrapper {
    display: flex;
    align-items: baseline; /* Выравнивание по базовой линии, чтобы текст /м2 был ниже */
    gap: 6px; /* Отступ между ценой и описанием */
    margin-bottom: 8px; /* Отступ до следующей детали */
}

.property-price-value {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: clamp(18px, calc(18px + (22 - 18) * ((100vw - 991px) / (1920 - 991))), 22px);
    line-height: 100%;
    letter-spacing: -0.05em; /* -5% */
    color: #353331;
    white-space: nowrap;
}

.property-price-description {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: clamp(10px, calc(10px + (12 - 10) * ((100vw - 991px) / (1920 - 991))), 12px);
    line-height: 100%;
    letter-spacing: -0.03em; /* -3% */
    color: #585E6B;
    white-space: nowrap;
}

.property-detail {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: clamp(12px, calc(12px + (14 - 12) * ((100vw - 991px) / (1920 - 991))), 14px);
    color: #585E6B;
    margin: 0;
}

.property-detail span {
    font-weight: 500;
    color: #232A39;
}

.property-card-buttons {
    display: flex;
    gap: 15px;
    margin-top: auto; /* Прижимает кнопки к низу карточки */
    margin-bottom: 20px;
    /* padding-top: 20px; Убрано - теперь есть margin-bottom */
    width: 100%;
}

.property-button {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: clamp(14px, calc(14px + (18 - 14) * ((100vw - 991px) / (1920 - 991))), 18px);
    line-height: 100%;
    letter-spacing: -0.04em; /* -4% */
    padding: clamp(14px, calc(14px + (18 - 14) * ((100vw - 991px) / (1920 - 991))), 18px) 10px; /* верх/низ масштабируется, бока остаются 10px */
    border-radius: 5px;
    flex: 1;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box; /* Учитываем padding и border в общей ширине */
    white-space: nowrap;
    border: none;
}

.property-button-whatsapp {
    background-color: #353331;
    color: #FFFFFF;
}

.property-button-call {
    background-color: #FFFFFF;
    border: 2px solid #353331;
    color: #353331;
}

.property-info-blocks-wrapper {
    display: flex;
    gap: 8px;
    margin-top: 15px; /* Отступ от блока цены */
    width: 100%; /* Занимает всю доступную ширину */
    align-items: flex-start; /* Новое свойство: выравнивание элементов по верху, чтобы они не растягивались по высоте */
}

.property-info-block {
    background-color: #FFFFFF80;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1; /* Позволяет каждому блоку занимать равную часть доступного пространства */
    box-sizing: border-box; /* Учитываем padding в общей ширине */
    min-width: 0; /* Разрешает сжатие при необходимости */
}

.property-info-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: clamp(12px, calc(12px + (14 - 12) * ((100vw - 991px) / (1920 - 991))), 14px);
    line-height: 100%;
    letter-spacing: -0.03em;
    color: #353331;
    white-space: nowrap;
}

.property-info-value {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: clamp(12px, calc(12px + (14 - 12) * ((100vw - 991px) / (1920 - 991))), 14px);
    line-height: 100%;
    letter-spacing: -0.03em; /* -3% */
    color: #353331;
    white-space: normal;
}

.property-card[data-link] { cursor: pointer; }

@media (max-width: 991px) {
  .property-cards-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    padding-left: 0;
    padding-right: 0;
    height: auto;
    min-height: unset;
  }
  .property-card { width: 415px !important; min-width: 415px !important; max-width: 415px !important; flex-shrink: 0; flex-grow: 0; margin: 0; scroll-snap-align: center !important; }
  .property-card-image {
    height: 267px !important;
    min-height: 267px !important;
    max-height: 267px !important;
  }
  .property-card:first-child {
    margin-left: calc(50vw - 207.5px);
  }
  .property-card:last-child {
    margin-right: calc(50vw - 207.5px);
  }
  .property-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-style: Medium;
    font-size: 30px;
    leading-trim: NONE;
    line-height: 80%;
    letter-spacing: -5%;
  }
  .property-location {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -3%;
  }
  .property-price-value {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-style: Medium;
    font-size: 22px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -5%;
  }
}

@media (max-width: 575px) {
  .property-card {
    width: 340px !important;
    min-width: 340px !important;
    max-width: 340px !important;
  }
  .property-card-image {
    height: 216px !important;
    min-height: 216px !important;
    max-height: 216px !important;
  }
  .property-card:first-child {
    margin-left: calc(50vw - 170px);
  }
  .property-card:last-child {
    margin-right: calc(50vw - 170px);
  }
  .property-card-main {
    margin-bottom: 20px;
  }

@media (min-width: 1700px) and (max-width: 1920px) {
  .property-card {
      height: 600px;
  }
}
@media (min-width: 1500px) and (max-width: 1699px) {
  .property-card {
      height: 580px;
  }
}
@media (min-width: 1400px) and (max-width: 1499px) {
  .property-card {
      height: 550px;
  }
}
@media (min-width: 992px) and (max-width: 1399px) {
  .property-card {
      height: 520px;
  }
}
@media (min-width: 576px) and (max-width: 991px) {
  .property-card {
      width: 340px;
      min-width: 340px;
      max-width: 340px;
  }
}

/* Стили для десктопа (992px-1920px) перенесены в new-main.css */ 