/* 道の駅TRIP 2.0 — 02 みつける｜スポット検索
   Retina完全対応 / 純粋写真背景 ＋ DOMタイポグラフィ
*/

.v2-discover {
  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) + 24px);
  color: var(--ink);
}

/* ─────────────────────────────────────────────────────────────
   Hero Header (純粋写真背景 ＋ DOMタイポグラフィ)
   ───────────────────────────────────────────────────────────── */
.v2-discover-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 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* 下部への滑らかなフェードアウト（正本画像準拠） */
.v2-discover-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(248, 247, 243, 0) 0%, rgba(248, 247, 243, 0.7) 60%, rgba(248, 247, 243, 1) 100%);
  pointer-events: none;
}

.v2-discover-hero-content {
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
}

/* 「みつける」: Shippori Mincho, 600, 正本通りの濃紺 */
.v2-discover-title {
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  font-size: 27px;
  color: #0F2851;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0 0 7px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* 「寄り道で、見つかる、好きがある。」: Shippori Mincho, 600 */
.v2-discover-lead {
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.45;
  color: #162E58;
  letter-spacing: 0.03em;
  margin: 0 0 5px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* 「気になる道の駅を、今の気分から探そう。」: Noto Sans JP, 500 */
.v2-discover-caption {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: #334E68;
  letter-spacing: 0.02em;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* ─────────────────────────────────────────────────────────────
   Search Bar (DOM描画・カプセル型)
   ───────────────────────────────────────────────────────────── */
.v2-discover-search-wrap {
  position: relative;
  z-index: 5;
  width: 100%;
}

.v2-discover-search-bar {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 9999px;
  padding: 4px 5px 4px 14px;
  box-shadow: 0 4px 16px rgba(15, 35, 75, 0.12);
  border: 1px solid rgba(210, 220, 235, 0.85);
  box-sizing: border-box;
  height: 44px;
}

.v2-discover-search-icon {
  width: 18px;
  height: 18px;
  color: #1E293B;
  flex-shrink: 0;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-discover-search-icon svg {
  width: 17px;
  height: 17px;
}

.v2-discover-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13.5px;
  color: #1E293B;
  outline: none;
  padding: 6px 0;
}

.v2-discover-search-input::placeholder {
  color: #64748B;
  font-weight: 400;
}

.v2-discover-search-btn {
  background: #005AEB;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  padding: 6px 18px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 90, 235, 0.28);
  transition: background 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-discover-search-btn:active {
  background: #0045B8;
  transform: scale(0.97);
}

/* ─────────────────────────────────────────────────────────────
   Location Button (DOM描画・現在地ボタン)
   ───────────────────────────────────────────────────────────── */
.v2-discover-location-wrap {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  padding: 7px 0 0;
}

.v2-discover-location-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid #D5DBE1;
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  font-family: "Noto Sans JP", sans-serif;
  color: #334155;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.15s ease;
}

.v2-discover-location-btn:active {
  background: #F1F5F9;
  border-color: #94A3B8;
}

.v2-discover-location-btn svg {
  width: 12px;
  height: 12px;
  color: #005AEB;
}

/* ─────────────────────────────────────────────────────────────
   Category Chips (横スクロール / 右フェード演出)
   ───────────────────────────────────────────────────────────── */
.v2-discover-categories-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* 右端にコンテンツの続きを示す微細なフェードアウト（正本の地色 #F8F7F3 に調和） */
.v2-discover-categories-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 28px;
  background: linear-gradient(90deg, rgba(248, 247, 243, 0) 0%, rgba(248, 247, 243, 0.95) 100%);
  pointer-events: none;
  z-index: 2;
}

.v2-discover-categories {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 30px 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.v2-discover-categories::-webkit-scrollbar {
  display: none;
}

.v2-category-chip {
  flex-shrink: 0;
  background: #FFFFFF;
  color: #334155;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: "Noto Sans JP", sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.v2-category-chip:last-child {
  margin-right: 12px;
}

.v2-category-chip.active {
  background: #005AEB;
  color: #FFFFFF;
  border-color: #005AEB;
  box-shadow: 0 2px 8px rgba(0, 90, 235, 0.28);
}

.v2-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}

.v2-chip-icon svg {
  width: 13px;
  height: 13px;
}

/* ─────────────────────────────────────────────────────────────
   Recommendations Section Header
   ───────────────────────────────────────────────────────────── */
.v2-discover-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 6px 16px 10px;
}

.v2-discover-section-title {
  font-family: "Shippori Mincho", serif;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.02em;
}

.v2-discover-see-all {
  font-size: 12.5px;
  font-weight: 600;
  font-family: "Noto Sans JP", sans-serif;
  color: #005AEB;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.v2-discover-see-all:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────
   Spot Cards List (おすすめ一覧)
   ───────────────────────────────────────────────────────────── */
.v2-discover-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px;
}

.v2-spot-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E8ECEF;
  box-shadow: 0 2px 8px rgba(18, 38, 63, 0.04);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding: 9px;
  gap: 12px;
  position: relative;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.v2-spot-card:active {
  transform: scale(0.99);
  box-shadow: 0 1px 4px rgba(18, 38, 63, 0.08);
}

/* サムネイル画像コンテナ (正本画像比率 約 164:110) */
.v2-spot-thumb-wrap {
  width: 112px;
  height: 75px;
  flex-shrink: 0;
  border-radius: 9px;
  overflow: hidden;
  background: #0B2A6B;
  position: relative;
}

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

/* 情報エリア */
.v2-spot-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 22px;
}

/* 上段：バッジ */
.v2-spot-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 2px;
}

.v2-spot-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
  padding: 2px 8px;
  border-radius: 9999px;
  line-height: 1.25;
}

.v2-spot-badge svg {
  width: 11px;
  height: 11px;
}

/* カテゴリ別バッジ色 */
.v2-spot-badge.badge-station {
  background: #E0F2FE;
  color: #0284C7;
}
.v2-spot-badge.badge-view {
  background: #DCFCE7;
  color: #16A34A;
}
.v2-spot-badge.badge-gourmet {
  background: #FEF3C7;
  color: #D97706;
}
.v2-spot-badge.badge-onsen {
  background: #FFE4E6;
  color: #E11D48;
}
.v2-spot-badge.badge-activity {
  background: #F3E8FF;
  color: #9333EA;
}
.v2-spot-badge.badge-shopping {
  background: #E2E8F0;
  color: #475569;
}

/* お気に入りハートボタン */
.v2-spot-fav-btn {
  background: transparent;
  border: none;
  padding: 5px;
  cursor: pointer;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  transition: transform 0.15s ease, color 0.15s ease;
}

.v2-spot-fav-btn:active {
  transform: scale(1.2);
}

.v2-spot-fav-btn svg {
  width: 17px;
  height: 17px;
}

.v2-spot-fav-btn.is-fav {
  color: #E11D48;
}

.v2-spot-fav-btn.is-fav svg {
  fill: #E11D48;
}

/* 一覧内の駅名：Shippori Mincho, 700 に統一 */
.v2-spot-name {
  font-family: "Shippori Mincho", serif;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 1px 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

/* キャッチコピー：Noto Sans JP */
.v2-spot-desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  color: #64748B;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

/* メタ情報：Montserrat (数字) ＋ Noto Sans JP */
.v2-spot-meta {
  font-size: 10.5px;
  font-weight: 600;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
}

.v2-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.v2-meta-item svg {
  width: 11px;
  height: 11px;
  color: #005AEB;
}

.v2-meta-divider {
  color: #CBD5E1;
  font-weight: 300;
}

/* 右端の矢印（chevron） */
.v2-spot-arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: #CBD5E1;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

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

/* ─────────────────────────────────────────────────────────────
   Discover専用 Bottom Navigation (固定配置 / Noto Sans JP)
   ───────────────────────────────────────────────────────────── */
.v2-discover-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;
}
