/* =====================================
   宿リンクカード（共通スタイル）
===================================== */
:root {
  --btn-rakuten: #76ae25;
  --btn-jalan: #ff7a15;
  --btn-rurubu: #000066;
  --btn-yahoo: #ff0033;
  --btn-ikyu: #bf9500;
  --btn-agoda: #5392f9;
}

/* カード全体枠 */
.custom-hotel-card {
  display: flex;
  flex-direction: row;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  margin: 24px 0;
  padding: 16px;
  gap: 16px;
  box-sizing: border-box;
}

/* 左側：画像エリア */
.custom-hotel-card .card-thumb {
  flex: 0 0 150px;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  height: 150px;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f1f5f9;
}
.custom-hotel-card .card-thumb a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.custom-hotel-card .card-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto !important;
  border-radius: 8px !important;
}

/* 右側：情報エリア */
.custom-hotel-card .card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* タイトル */
.custom-hotel-card .card-title {
  margin: 0 0 2px 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
}
.custom-hotel-card .card-title a {
  color: #1a202c;
}
.custom-hotel-card .card-title a:hover {
  text-decoration: underline !important;
}

/* 住所・地図 */
.custom-hotel-card .card-address {
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.5;
}
.custom-hotel-card .map-badge {
  background-color: #64748b !important;
  color: #ffffff !important;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.2s ease;
}
.custom-hotel-card .map-badge:hover {
  background-color: #cbd5e1 !important;
  color: #334155 !important;
}

/* 詳細情報（アクセス・駐車場・チェックイン・アウト） */
.custom-hotel-card .card-meta-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background-color: #f8fafc;
  border: 1px solid #f1f5f9;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.5;
}
.custom-hotel-card .meta-item span {
  font-weight: 700;
  color: #334155;
}

/* レビュー */
.custom-hotel-card .card-review-wrapper {
  display: flex;
  margin: 0;
}
.custom-hotel-card .card-review {
  font-size: 0.9rem;
  width: fit-content;
}
.custom-hotel-card .card-review:hover {
  opacity: 0.8;
}
.custom-hotel-card .stars { color: #f59e0b; font-size: 0.95rem; }
.custom-hotel-card .score { font-weight: 700; color: #d97706; font-size: 0.95rem; }
.custom-hotel-card .count { color: #94a3b8; font-size: 0.8rem; }

/* 料金 */
.custom-hotel-card .card-price {
  font-size: 0.9rem;
  font-weight: bold;
  color: #475569;
}
.custom-hotel-card .card-price .price-value {
  font-size: 1.2rem;
  color: #e53e3e;
  margin-left: 6px;
}
.custom-hotel-card .card-price .price-value:hover {
  opacity: 0.8;
}

/* ボタン群（PCは3列） */
.custom-hotel-card .card-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}

/* ボタン共通 */
.custom-hotel-card .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 8px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
  letter-spacing: 0.02em;
}
.custom-hotel-card .btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.custom-hotel-card .btn:active {
  transform: translateY(0);
}

/* =====================================
   スマホ最適化（画面幅640px以下）
===================================== */
@media (max-width: 640px) {
  .custom-hotel-card {
    flex-direction: column;
    padding: 14px;
    gap: 12px;
  }

  .custom-hotel-card .card-thumb {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 180px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .custom-hotel-card .card-thumb a {
    width: 100% !important;
    height: 100% !important;
  }
  .custom-hotel-card .card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .custom-hotel-card .card-title {
    font-size: 1.1rem;
  }
  .custom-hotel-card .card-address {
    font-size: 0.85rem;
  }
  .custom-hotel-card .card-meta-list {
    font-size: 0.8rem;
    padding: 8px 10px;
  }
  .custom-hotel-card .card-review {
    font-size: 0.9rem;
  }
  .custom-hotel-card .stars {
    font-size: 1rem;
  }
  .custom-hotel-card .score {
    font-size: 1rem;
  }
  .custom-hotel-card .card-price {
    font-size: 0.9rem;
  }
  .custom-hotel-card .card-price .price-value {
    font-size: 1.15rem;
  }

  .custom-hotel-card .card-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 6px;
  }
  .custom-hotel-card .btn {
    padding: 9px 8px !important;
    font-size: 0.88rem !important;
    border-radius: 20px !important;
    line-height: 1.3 !important;
  }
}