/*
=============================================================================
ページヘッダー・コンテナ関連
=============================================================================
*/

/* メインコンテナ */
.hotel-archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

@media (max-width: 768px) {
  .hotel-archive-container {
    padding: 15px;
  }
}

/* アーカイブヘッダー */
.archive-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #007cba, #0099d4);
  color: white;
  border-radius: 4px;
}

.c-pageTitle {
  margin-bottom: 32px;
}

/* 検索フォームリンク */
.search-form-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

/* 検索フォームリンクホバー時 */
.search-form-link:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/*
=============================================================================
ホテル一覧 検索結果ヘッダー (件数 + ソート)
=============================================================================
*/

/* 件数とソートのコンテナ */
.database-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 15px;
}

@media (max-width: 768px) {
  .database-header {
    justify-content: center;
  }
  .database-results-count {
    width: 100%;
    text-align: center;
  }
}

/*
=============================================================================
検索結果セクション
=============================================================================
*/

/* 検索結果メインエリア */
.hotel-results {
  margin-top: 30px;
}

/* 検索結果セクション共通 */
.search-results-section {
  margin-bottom: 50px;
}

/* 検索結果見出し */
.search-results-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
  border-bottom: none;
  border-left: none;
  padding-left: 0;
}

/* 検索タイプ表示 */
.search-type-indicator {
  background: #e8f4fd;
  border: 1px solid #bee5eb;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
}

/* 検索結果件数表示 */
.api-results-count,
.database-results-count {
  font-size: 18px;
  margin-bottom: 0; /* 修正 */
  color: #333;
  font-weight: 600;
}
.database-results-count p {
  margin: 0;
  font-size: 1.1em;
}

/* API利用不可時の案内 */
.api-unavailable-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 20px;
  margin: 20px 0;
}

/* 検索結果なし表示 */
.no-results,
.no-api-results,
.no-database-results {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 4px;
  color: #666;
}

/*
=============================================================================
ホテル一覧 ソート機能
=============================================================================
*/
.hotel-sort-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0; /* 修正 */
}

.hotel-sort-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hotel-sort-form .sort-label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.hotel-sort-form select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
}

@media (max-width: 768px) {
  .hotel-sort-container {
    justify-content: center;
  }
}

/*
=============================================================================
★ 空室あり/なし ホテル見出し (新規追加)
=============================================================================
*/

/* 見出し 共通スタイル */
.vacant-hotels-header,
.no-vacant-hotels-header {
  font-size: 18px;
  font-weight: 600;
  padding: 12px 18px;
  margin-top: 40px;
  margin-bottom: 20px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 空室あり (目立たせる) */
.vacant-hotels-header {
  background-color: #e6f7ee;
  border-color: #a7d8be;
  color: #2a6f47;
}

.vacant-hotels-header .fa-calendar-check {
  color: #28a745;
}

/* 空室なし・未確認 (控えめに) */
.no-vacant-hotels-header {
  background-color: #f8f9fa;
  color: #666;
}

.no-vacant-hotels-header .fa-calendar-times {
  color: #888;
}

/*
=============================================================================
ホテル一覧グリッドレイアウト
=============================================================================
*/

/* 楽天トラベルの口コミ評価表示 */
.hotels-review-rakuten {
  font-size: 12px;
  color: #666;
  margin-bottom: 15px;
  text-align: right;
}

/* ホテルカード一覧グリッド（最小400px幅で自動調整） */
.hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .hotels-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/*
=============================================================================
ホテルカード共通スタイル
=============================================================================
*/

/* ホテルカード基本スタイル */
.hotel-card {
  border: none;
  border-radius: 4px;
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: all 0.4s ease;
  position: relative;
}

/* ホテルカードホバー時（浮き上がり効果） */
.hotel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/*
=============================================================================
ホテル画像エリア
=============================================================================
*/

/* ホテル画像コンテナ */
.hotel-image {
  height: 240px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hotel-image {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hotel-image {
    height: 180px;
  }
}

/* ホテル画像 */
.hotel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* ホテル画像ホバー時（拡大効果） */
.hotel-card:hover .hotel-image img {
  transform: scale(1.08);
}

/* 画像なし表示 */
.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #f0f0f0;
  color: #999;
  font-size: 16px;
}

/*
=============================================================================
ホテル情報表示エリア
=============================================================================
*/

/* ホテル情報コンテナ */
.hotel-info {
  padding: 25px;
}

@media (max-width: 480px) {
  .hotel-info {
    padding: 20px;
  }
}

/* ホテル名 */
.hotel-name {
  margin: 0 0 15px 0;
  font-size: 1.4em;
  line-height: 1.3;
}

.post_content .hotel-name {
  background: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.post_content .hotel-name:before {
  border-top: none;
  border-bottom: none;
}

@media (max-width: 480px) {
  .hotel-name,
  .post_content .hotel-name {
    font-size: 1.2em;
  }
}

/* ホテル名リンク */
.hotel-name a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ホテル名リンクホバー時 */
.hotel-name a:hover {
  color: #667eea;
}

/* 外部リンク表示 */
.external-link {
  font-size: 0.8em;
  margin-left: 5px;
  opacity: 0.7;
}

/* 施設特色テキスト */
.hotel-special {
  color: #666;
  font-size: 0.9em;
  line-height: 1.5;
  margin-bottom: 15px;
  font-style: italic;
}

/* ホテル情報各項目（住所、アクセス等） */
.hotel-info p {
  margin: 8px 0;
  font-size: 0.9em;
  line-height: 1.5;
  color: #555;
}

/* 料金表示 */
.hotel-price {
  color: #ff6b35 !important;
  font-weight: bold;
  font-size: 1.1em !important;
  margin: 15px 0 !important;
  text-align: right;
}

/* 料金数字部分 */
.price-amount {
  font-size: 1.3em;
}

/* 料金期間表示 */
.price-period {
  font-size: 0.8em;
  color: #666;
  font-weight: normal;
}

/*
=============================================================================
バッジ・タグ系スタイル
=============================================================================
*/

/* ホテルソースバッジ共通 */
.hotel-source-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: bold;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* WordPress登録データバッジ */
.wordpress-badge {
  background: rgba(40, 167, 69, 0.9);
  color: white;
}

/* 楽天APIバッジ */
.rakuten-badge {
  background: rgba(220, 53, 69, 0.9);
  color: white;
}

/* ★★★ 新規追加：空室ありバッジ ★★★ */
.rakuten-badge-vacant {
  background: rgba(40, 167, 69, 0.9); /* WordPressバッジと同じ緑 */
  color: white;
}
.rakuten-badge-vacant .fa-calendar-check {
  margin-right: 4px;
}

/* ★★★ 新規追加：満室バッジ ★★★ */
.rakuten-badge-full {
  background: rgba(108, 117, 125, 0.9); /* グレー */
  color: white;
}
.rakuten-badge-full .fa-calendar-times {
  margin-right: 4px;
}

/* おやこんぱす評価（コンテナ） */
.oyacompass-rating-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: row; /* ★ row に変更 (もし縦なら column) */
  gap: 8px;
  z-index: 2;
}

/* おやこんぱす評価（個別バッジ） */
.oyacompass-rating-badge {
  color: #fff;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  cursor: help;
}

/* ベビー評価の色（管理画面と統一） */
.oyacompass-rating-badge.is-baby {
  background-color: #e67e22;
}

/* キッズ評価の色（管理画面と統一） */
.oyacompass-rating-badge.is-kids {
  background-color: #3498db;
}

.oyacompass-rating-badge .rating-icon {
  font-size: 16px;
  line-height: 1;
}

.oyacompass-rating-badge .rating-score {
  font-size: 15px;
  line-height: 1;
}

/*
=============================================================================
子連れ機能タグシステム
=============================================================================
*/

/* 子連れ機能タグコンテナ */
.family-features {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .family-features {
    justify-content: center;
  }
}

/* 機能タグ共通スタイル */
.feature-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

@media (max-width: 480px) {
  .feature-tag {
    font-size: 0.7em;
    padding: 5px 10px;
  }
}

/* 機能タグホバー時 */
.feature-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 貸切風呂タグ */
.feature-tag.private-bath {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
}

/* ベビーベッドタグ */
.feature-tag.baby-bed {
  background: linear-gradient(135deg, #f3e5f5, #e1bee7);
  color: #7b1fa2;
}

/* ベッドガードタグ */
.feature-tag.bed-guard {
  background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
  color: #388e3c;
}

/* 離乳食タグ */
.feature-tag.baby-food {
  background: linear-gradient(135deg, #fff3e0, #ffcc80);
  color: #f57c00;
}

/* アレルギー対応タグ */
.feature-tag.allergy {
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  color: #d32f2f;
}

/* ベビーチェアタグ */
.feature-tag.baby-chair {
  background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
  color: #00695c;
}

/* ベビー用品タグ */
.feature-tag.baby-items {
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
  color: #3f51b5;
}

/* コインランドリータグ */
.feature-tag.laundry {
  background: linear-gradient(135deg, #f1f8e9, #dcedc8);
  color: #689f38;
}

/* 緊急時施設タグ */
.feature-tag.emergency {
  background: linear-gradient(135deg, #fce4ec, #f8bbd9);
  color: #c2185b;
}

/* その他項目数表示タグ */
.feature-tag.more-features {
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  color: #757575;
  border: 2px dashed #bdbdbd;
}

/*
=============================================================================
アクションボタン
=============================================================================
*/

/* ホテルアクションエリア */
.hotel-actions {
  margin-top: 20px;
}

/* 詳細ボタン */
.detail-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: var(--color_cta);
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

/* 詳細ボタンホバー時 */
.detail-btn:hover {
  background: var(--color_main);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  color: white;
}

/* 予約ボタン */
.booking-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

/* 予約ボタンホバー時 */
.booking-btn:hover {
  background: linear-gradient(135deg, #218838, #1abc9c);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
  color: white;
}

/* ★★★ 新規追加：詳細ボタンと予約ボタンが両方ある場合の間隔 ★★★ */
.detail-btn + .booking-btn {
  margin-top: 10px;
}

/*
=============================================================================
ページネーション
=============================================================================
*/

/* ページネーションコンテナ */
.pagination-wrapper {
  text-align: center;
  margin: 40px 0;
}

/* ページネーションリンク・番号 */
.pagination-wrapper a,
.pagination-wrapper span {
  display: inline-block;
  padding: 12px 18px;
  margin: 0 3px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #667eea;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
}

@media (max-width: 768px) {
  .pagination-wrapper a,
  .pagination-wrapper span {
    padding: 10px 14px;
    margin: 0 2px 16px;
  }
}

/* ページネーションホバー時 */
.pagination-wrapper a:hover {
  background: var(--color_main);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 現在ページ表示 */
.pagination-wrapper .current {
  background: var(--color_main);
  color: white;
  border-color: #667eea;
}

/*
=============================================================================
サイドバー時のフォーム
=============================================================================
*/

#sidebar .hotel-search-form {
  padding: 12px 8px;
  margin-top: 24px;
}

#sidebar .accordion-content .search-grid {
  padding: 8px;
}
