/* reservation/static/reservation/css/space_list.css */

.space-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* カード本体 */
.space-card {
  cursor: pointer;
  border-radius: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background-color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    border-color 0.12s ease-out;
}

.space-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  border-color: rgba(13, 110, 253, 0.25);
}

/* サムネイル */
.space-card-thumb-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.2),
    rgba(15, 23, 42, 0.4)
  );
}

.space-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease-out;
}

.space-card:hover .space-card-thumb {
  transform: scale(1.04);
}

/* サムネイルがない場合のプレースホルダ */
.space-card-thumb.placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.space-card-thumb .placeholder-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: #6c757d;
}

.space-card-thumb .placeholder-inner i {
  font-size: 1.4rem;
}

/* カード本文 */
.space-card-body {
  padding: 0.75rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.space-card-title {
  font-size: 0.96rem;
  font-weight: 600;
}

.space-card-address {
  font-size: 0.78rem;
}

.space-card-desc {
  font-size: 0.78rem;
  min-height: 2.2em;
}

.space-card-meta {
  margin-top: 0.25rem;
}

.space-card-meta .btn-sm {
  padding-inline: 0.65rem;
}

/* レスポンシブ調整 */
@media (max-width: 575.98px) {
  .space-grid {
    grid-template-columns: 1fr;
  }

  .space-card-body {
    padding: 0.7rem 0.75rem 0.85rem;
  }
}

/* タグ表示（設備） */
.space-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(248, 250, 252, 0.9);
  color: #334155;
}

.tag-chip-muted {
  color: #64748b;
}