/* よく見る都市（LOC-03・2026-10-28）＝国のページ・都市の日の出／月の出ページの都市一覧のすぐ上。中身は FavoriteCities.js が描く。
   見た目は設計 v1.0（docs/tasks/LOC-03/steps/step01-design.md）＝案A の丸い水色の札（国内ページの a.rowlink と同じ色）。
   スマホを土台にし、PC（1000px 以上）は余白だけ変える。色は国内の Card.css の墨・灰・罫とそろえる。
   📌 クラスは全部 fav- で始める＝ページの他の規則（.sec > h2・html body a など）と取り違えない */
.fav { margin: 0 15px 28px; color: #1c2028; }
.fav[hidden] { display: none; }
.fav .fav-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 0; border: 0; font-size: 1.5rem; line-height: 1.4; font-weight: 700; color: #1c2028; }
.fav .fav-h .star { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; flex: none; }
.fav .fav-empty { margin: 0; padding: 2px 0 0; font-size: 1.3rem; line-height: 1.5; color: #5a6270; }

/* 国の段＝上下の細い罫で区切る。見出しの行全体がボタン（高さ40px＝指で押せる） */
.fav .fav-grp { border-top: 1px solid #dde3ea; }
.fav .fav-grp:last-child { border-bottom: 1px solid #dde3ea; }
.fav .fav-hd { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; margin: 0; padding: 0 2px; border: 0; background: none; font: inherit; font-size: 1.4rem; font-weight: 600; color: #1c2028; text-align: left; cursor: pointer; }
.fav .fav-hd .n { color: #5a6270; font-weight: 400; }
.fav .fav-hd .chev { margin-left: auto; width: 18px; height: 18px; fill: none; stroke: #5a6270; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; flex: none; }
.fav .fav-grp.open > .fav-hd .chev { transform: rotate(180deg); }
.fav .fav-body { padding: 0 0 10px; }

/* 札＝「⠿ 東京 ×」。⠿ と × は見た目より広く触れる（30px・32px） */
.fav .fav-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fav .fav-chip { display: inline-flex; align-items: center; height: 36px; border: 1px solid #cfe3f3; background: #eef7fd; border-radius: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.06); font-size: 1.4rem; line-height: 1; }
.fav .fav-chip .grab { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 36px; color: #8a94a3; cursor: grab; touch-action: none; border-radius: 18px 0 0 18px; }
.fav .fav-chip .grab svg { width: 12px; height: 16px; fill: currentColor; }
.fav .fav-chip .nm { padding: 0 2px; font-weight: 600; color: #1c2028; text-decoration: none; white-space: nowrap; }
.fav .fav-chip a.nm:active { color: #05f; }
.fav .fav-chip.now .nm { color: #5a6270; font-weight: 400; }
.fav .fav-chip .x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 36px; margin: 0; padding: 0; border: 0; background: none; color: #5a6270; cursor: pointer; border-radius: 0 18px 18px 0; }
.fav .fav-chip .x svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.fav .fav-chip .x:active { background: #ddeefb; }

/* ドラッグ（Step4）＝元の札は薄く残し、指の下の写しは白地・空色の枠・濃い影。落ちる先は空色の縦線 */
.fav .fav-chip .grab { -webkit-user-select: none; user-select: none; }
.fav .fav-chip .grab:focus-visible { outline: 2px solid #28A8F5; outline-offset: -2px; }
.fav .fav-chip.dragging { opacity: .35; }
.fav .fav-chip.lift { background: #fff; border-color: #28A8F5; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.fav .fav-chip.lift .grab { color: #28A8F5; cursor: grabbing; }
.fav .fav-drop { width: 3px; height: 36px; margin: 0 -4px; background: #28A8F5; border-radius: 2px; list-style: none; }

/* もっと見る（あと◯件）／たたむ */
.fav .fav-more { margin: 10px 0 0; }
.fav .fav-more button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 0; padding: 0 12px; border: 1px solid #c9d2dc; border-radius: 4px; background: #fff; color: #1c2028; font: inherit; font-size: 1.3rem; font-weight: 600; cursor: pointer; }
.fav .fav-more button .chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fav .fav-more button[aria-expanded="true"] .chev { transform: rotate(180deg); }

@media (min-width: 1000px) {
  .fav { margin: 0 15px 24px; }
}
