/*
  file: favorites.css
  scope: /test/favorites/ お気に入り一覧ページ
*/

.tp-fav-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.tp-fav-head__count {
  font-size: 14px;
  color: #666;
}

.tp-fav-clear-all {
  border: 1px solid #ccc;
  background: #fff;
  color: #444;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}

.tp-fav-clear-all:hover {
  background: #f5f5f5;
}

.tp-fav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.tp-fav-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.tp-fav-card__photo {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f2f2f2;
  overflow: hidden;
}

.tp-fav-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tp-fav-card--no-image .tp-fav-card__body {
  width: 100%;
  flex: 1 1 auto;
}

.tp-fav-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.tp-fav-card__status--delisted {
  align-self: flex-start;
  background: #999;
  color: #fff;
  font-size: 11px;
  border-radius: 4px;
  padding: 2px 8px;
}

.tp-fav-card__title {
  font-weight: 700;
  font-size: 15px;
  margin: 0;
}

.tp-fav-card__room,
.tp-fav-card__mgmt {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

.tp-fav-card__mgmt {
  color: #64748b;
}

.tp-fav-card__rent {
  color: #d33;
  font-weight: 700;
  margin: 0;
}

.tp-fav-card__address {
  color: #666;
  font-size: 13px;
  margin: 0;
}

.tp-fav-card__actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.tp-fav-card__detail {
  flex: 1;
  text-align: center;
  background: #e8722c;
  color: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  text-decoration: none;
}

.tp-fav-card__remove {
  flex: 1;
  border: 1px solid #ccc;
  background: #fff;
  color: #444;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
}

.tp-fav-card__remove:hover {
  background: #f5f5f5;
}

.tp-fav-empty {
  text-align: center;
  padding: 48px 16px;
  color: #555;
}

.tp-fav-empty__msg {
  font-size: 16px;
  margin-bottom: 16px;
}

.tp-fav-empty__cta {
  display: inline-block;
  background: #e8722c;
  color: #fff;
  border-radius: 6px;
  padding: 10px 24px;
  text-decoration: none;
  font-size: 14px;
}

.tp-nav-favorites__count:not([hidden]) {
  display: inline-block;
  margin-left: 2px;
}
