/* 道の駅TRIP 2.0 — 04 お気に入り
   正本デザイン Single Source of Truth に基づく完全DOMスタイリング
*/

.v2-favorites {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #F8F7F3;
  min-height: 100vh;
  position: relative;
  box-sizing: border-box;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 32px);
  color: var(--ink);
}

/* ─────────────────────────────────────────────────────────────
   1. Hero Header (海岸写真背景 ＋ DOMタイポグラフィ)
   ───────────────────────────────────────────────────────────── */
.v2-fav-hero {
  position: relative;
  width: 100%;
  background-image: url('../assets/hero-discover-clean.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding: 24px 16px 44px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.v2-fav-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(248, 247, 243, 0) 0%, rgba(248, 247, 243, 0.7) 65%, rgba(248, 247, 243, 1) 100%);
  pointer-events: none;
}

.v2-fav-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* 「お気に入り」: Shippori Mincho, 700, 自然な文字間 */
.v2-fav-title {
  display: block;
  width: fit-content;
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  font-size: 30px;
  color: #0E2548;
  letter-spacing: -0.04em;
  font-feature-settings: normal;
  white-space: nowrap;
  line-height: 1.15;
  margin: 0 0 8px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* 「好きな道の駅が、もっと特別になる。」: Shippori Mincho, 600 */
.v2-fav-lead {
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.45;
  color: #142B52;
  letter-spacing: 0.03em;
  margin: 0 0 6px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* 「お気に入りの道の駅を見つけて、あなただけの特別なリストをつくろう。」: Noto Sans JP, 500 */
.v2-fav-caption {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.45;
  color: #334E68;
  letter-spacing: 0.02em;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* ─────────────────────────────────────────────────────────────
   2. お気に入り集計カード (3分割タブ / Heroオーバーラップ)
   ───────────────────────────────────────────────────────────── */
.v2-fav-summary-wrap {
  position: relative;
  z-index: 5;
  margin: -22px 16px 14px;
}

.v2-fav-summary-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E6EAEF;
  box-shadow: 0 4px 18px rgba(15, 35, 75, 0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  box-sizing: border-box;
}

.v2-fav-summary-tab {
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.v2-fav-summary-tab:active {
  transform: scale(0.97);
}

.v2-fav-summary-tab.is-active {
  background: #EBF5FE;
}

.v2-fav-tab-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  color: #475569;
}

.v2-fav-tab-icon svg {
  width: 18px;
  height: 18px;
}

.v2-fav-summary-tab.is-active .v2-fav-tab-icon {
  color: #005AEB;
}

.v2-fav-tab-label {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 2px;
  white-space: nowrap;
}

.v2-fav-summary-tab.is-active .v2-fav-tab-label {
  color: #005AEB;
}

.v2-fav-tab-count {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: #64748B;
  line-height: 1.1;
}

.v2-fav-summary-tab.is-active .v2-fav-tab-count {
  color: #005AEB;
}

/* ─────────────────────────────────────────────────────────────
   3. 検索・フィルターバー
   ───────────────────────────────────────────────────────────── */
.v2-fav-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 14px;
  box-sizing: border-box;
}

.v2-fav-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 0 12px;
  height: 42px;
  box-shadow: 0 2px 6px rgba(15, 35, 75, 0.02);
  box-sizing: border-box;
}

.v2-fav-search-icon {
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v2-fav-search-icon svg {
  width: 16px;
  height: 16px;
}

.v2-fav-search-input {
  border: none;
  outline: none;
  width: 100%;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12.5px;
  color: #111827;
  background: transparent;
  padding-left: 8px;
}

.v2-fav-search-input::placeholder {
  color: #94A3B8;
}

.v2-fav-filter-btn {
  width: 42px;
  height: 42px;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 35, 75, 0.02);
  transition: transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.v2-fav-filter-btn:active {
  transform: scale(0.95);
}

.v2-fav-filter-btn svg {
  width: 18px;
  height: 18px;
}

/* ─────────────────────────────────────────────────────────────
   4. お気に入り駅カード一覧
   ───────────────────────────────────────────────────────────── */
.v2-fav-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v2-fav-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E8ECEF;
  box-shadow: 0 2px 8px rgba(15, 35, 75, 0.03);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.v2-fav-card:active {
  transform: scale(0.99);
}

.v2-fav-thumb-wrap {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  background: #0B2A6B;
  flex-shrink: 0;
}

.v2-fav-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v2-fav-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.v2-fav-name {
  font-family: "Shippori Mincho", serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-fav-location {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  color: #8E9BAE;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-fav-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 状態タグ: 「○ 行った」「○ 行きたい」 */
.v2-fav-tag-status {
  background: #EBF4FE;
  border-radius: 10px;
  padding: 2px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #005AEB;
}

.v2-fav-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1.5px solid #005AEB;
  background: transparent;
  box-sizing: border-box;
  display: inline-block;
}

/* カテゴリタグ: 「海の幸」「温泉」など */
.v2-fav-tag-cat {
  background: #EEF2F6;
  border-radius: 6px;
  padding: 2px 7px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #475569;
}

/* 右側アクション */
.v2-fav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 2px;
}

.v2-fav-heart-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #E11D48;
  padding: 0;
  transition: transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.v2-fav-heart-btn:active {
  transform: scale(0.85);
}

.v2-fav-heart-btn svg {
  width: 20px;
  height: 20px;
}

.v2-fav-arrow {
  color: #CBD5E1;
  display: flex;
  align-items: center;
}

.v2-fav-arrow svg {
  width: 11px;
  height: 11px;
}

.v2-fav-no-results {
  text-align: center;
  padding: 40px 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  color: #94A3B8;
}

/* ─────────────────────────────────────────────────────────────
   5. お気に入り活用ヒント
   ───────────────────────────────────────────────────────────── */
.v2-fav-hint-card {
  margin: 16px 16px 0;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E8ECEF;
  box-shadow: 0 2px 8px rgba(15, 35, 75, 0.03);
  padding: 14px 16px;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.12s ease;
}

.v2-fav-hint-card:active {
  transform: scale(0.99);
}

.v2-fav-hint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.v2-fav-hint-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.v2-fav-hint-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
}

.v2-fav-hint-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
}

.v2-fav-hint-arrow {
  color: #CBD5E1;
  display: flex;
  align-items: center;
}

.v2-fav-hint-arrow svg {
  width: 12px;
  height: 12px;
}

.v2-fav-hint-desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   6. 大型CTAボタン「道の駅をさがす」
   ───────────────────────────────────────────────────────────── */
.v2-fav-cta-btn {
  margin: 16px 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #005AEB;
  border-radius: 14px;
  height: 50px;
  padding: 0 18px;
  color: #FFFFFF;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 90, 235, 0.25);
  box-sizing: border-box;
  transition: transform 0.12s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.v2-fav-cta-btn:active {
  transform: scale(0.98);
  background: #0048BD;
}

.v2-fav-cta-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v2-fav-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-fav-cta-icon svg {
  width: 20px;
  height: 20px;
}

.v2-fav-cta-label {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.v2-fav-cta-arrow {
  display: flex;
  align-items: center;
}

.v2-fav-cta-arrow svg {
  width: 14px;
  height: 14px;
}

/* ─────────────────────────────────────────────────────────────
   7. Empty State (お気に入り0件時)
   ───────────────────────────────────────────────────────────── */
.v2-fav-empty-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 40px;
  text-align: center;
  box-sizing: border-box;
}

.v2-fav-empty-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  margin-bottom: 16px;
}

.v2-fav-empty-icon-wrap svg {
  width: 32px;
  height: 32px;
}

.v2-fav-empty-title {
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.v2-fav-empty-desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12.5px;
  color: #64748B;
  line-height: 1.55;
  margin: 0 0 24px;
}

.v2-fav-empty-cta {
  background: #005AEB;
  border-radius: 12px;
  height: 44px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 90, 235, 0.2);
  transition: transform 0.12s ease;
}

.v2-fav-empty-cta:active {
  transform: scale(0.97);
}

/* ─────────────────────────────────────────────────────────────
   8. Favorites専用 Bottom Navigation (固定配置 / お気に入りアクティブ)
   ───────────────────────────────────────────────────────────── */
.v2-favorites-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--nav-h) + var(--safe-b));
  padding: 6px 12px calc(8px + var(--safe-b));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #FFFFFF;
  border-top: 1px solid #ECE8E0;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.04);
  z-index: 100;
  font-family: "Noto Sans JP", sans-serif;
}
