/* ============================================
   BLOOMIA — Card Listing Styles
   Horizontal cards with photo left, params right
   ============================================ */

/* --- Cards Grid --- */
.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 769px) {
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* --- Card --- */
/* Mobile: vertical (photo top, body below) */
/* Desktop: horizontal (photo left, body right) */
.card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}

@media (min-width: 480px) {
  .card {
    flex-direction: row;
    border-radius: 30px;
  }
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* --- Photo --- */
/* Mobile: full width, shorter aspect */
/* Desktop: left side ~40% */
.card__photo-link {
  display: block;
  flex-shrink: 0;
  width: 100%;
}

@media (min-width: 480px) {
  .card__photo-link {
    width: 40%;
    min-width: 120px;
    max-width: 200px;
  }
}

.card__photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #F0F0F0;
}

@media (min-width: 480px) {
  .card__photo-wrap {
    aspect-ratio: 3 / 4;
  }
}

.card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CCC;
}

.card__photo-placeholder svg {
  width: 40px;
  height: 40px;
}

.card__photo-count {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 50px;
}

.card__photo-count svg {
  width: 12px;
  height: 12px;
}

.card__price {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #F50057;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 50px;
}

/* --- Body (right side) --- */
.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
  min-width: 0;
  gap: 6px;
}

.card__header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.card__name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #0F0F27;
}

.card__age {
  font-size: 13px;
  color: #807D86;
}

/* --- Location --- */
.card__location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #807D86;
}

.card__location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #F50057;
}

.card__location-link {
  color: #F50057;
}

/* --- Params Stack (vertical, right of photo) --- */
.card__params {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card__param {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #0F0F27;
}

.card__param-label {
  color: #807D86;
  font-size: 11px;
  min-width: 45px;
}

.card__param-value {
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}

.card__param--link {
  text-decoration: none;
  color: inherit;
}

.card__param--link:hover .card__param-value {
  color: #F50057;
}

/* --- Tags --- */
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.card__tag {
  display: inline-block;
  padding: 2px 8px;
  background: #F7F7F7;
  border-radius: 50px;
  font-size: 10px;
  color: #807D86;
  white-space: nowrap;
}

/* --- Description --- */
.card__desc {
  font-size: 12px;
  color: #807D86;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Stats --- */
.card__stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #807D86;
}

.card__stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card__stat svg {
  width: 14px;
  height: 14px;
}

.card__stat--likes svg {
  color: #F50057;
}

/* --- Contacts --- */
.card__contacts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.card__phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F50057;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 50px;
  transition: background 0.2s;
  white-space: nowrap;
}

.card__phone-btn svg {
  width: 14px;
  height: 14px;
}

.card__phone-btn:hover {
  background: #D50049;
}

.card__detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F50057;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 50px;
  transition: background 0.2s;
}

.card__detail-btn:hover {
  background: #D50049;
}

/* --- Messengers --- */
.card__messengers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card__messenger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F7F7F7;
  transition: all 0.15s;
}

.card__messenger svg {
  width: 14px;
  height: 14px;
}

.card__messenger--tg {
  color: #2196F3;
}

.card__messenger--wa {
  color: #4CAF50;
}

.card__messenger--vb {
  color: #7C4DFF;
}

.card__messenger:hover {
  transform: scale(1.1);
}

/* --- Actions Row (vote buttons) --- */
.card__actions-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 4px;
}

.card__vote {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 12px;
  color: #807D86;
  background: #F7F7F7;
  transition: all 0.15s;
}

.card__vote svg {
  width: 14px;
  height: 14px;
}

.card__vote:hover {
  background: #EFEFEF;
}

.card__vote--like.is-active {
  background: #E8F5E9;
  color: #4CAF50;
}

.card__vote--dislike.is-active {
  background: #FFEBEE;
  color: #F44336;
}

.card__vote--fav.is-active {
  background: #FCE4EC;
  color: #F50057;
}

.card__vote--fav.is-active svg {
  fill: #F50057;
}

/* --- Responsive 480+ --- */
@media (min-width: 480px) {
  .card__photo-link {
    max-width: 220px;
  }

  .card__body {
    padding: 16px 18px 14px;
    gap: 8px;
  }

  .card__name {
    font-size: 17px;
  }

  .card__param-value {
    font-size: 14px;
  }

  .card__phone-btn {
    font-size: 13px;
    padding: 8px 16px;
  }
}

/* --- Mobile card body adjustments --- */
@media (max-width: 479px) {
  .card__body {
    padding: 12px 14px;
  }

  .card__params {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .card__param {
    gap: 3px;
  }

  .card__param-label {
    min-width: auto;
  }
}
