@charset "UTF-8";
/* 로그북: 시즌 요약 · 스키장 지도 · 월별 기록 · 빠른 입력 (ADR 0019) */
.lb, #modal {
  --lb-soft: color-mix(in srgb, var(--text) 62%, var(--bg));
  --lb-tint: color-mix(in srgb, var(--accent) 12%, var(--surface));
  --cp-soft: var(--lb-soft);
}
.lb { margin: 22px 0 40px; }
.lb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.lb-head h2 { font-size: 21px; letter-spacing: -.7px; }
.lb-seasons { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 14px -2px 0; padding: 2px; }
.lb-seasons::-webkit-scrollbar { display: none; }
.lb-chip { flex-shrink: 0; min-height: 36px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); font-size: 12px; white-space: nowrap; }
.lb-chip[aria-pressed="true"] { background: var(--action-bg); border-color: var(--action-bg); color: var(--accent-text); font-weight: 700; }
.lb-seasons .lb-chip { min-height: 30px; padding: 4px 11px; font-size: 11px; }
.lb-seasons .lb-chip[aria-pressed="true"] { background: var(--lb-tint); border-color: var(--accent); color: var(--text); }

/* 시즌 숫자: 크게 (나이키 런 느낌), 나머지는 담백하게 */
.lb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; padding: 18px 0; border-block: 1px solid var(--line); }
.lb-stats > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 12px; }
.lb-stats > div:first-child { padding-left: 0; }
.lb-stats > div + div { border-left: 1px solid var(--line); }
.lb-stats span { color: var(--lb-soft); font-size: 11px; }
.lb-stats strong { font-size: 32px; font-weight: 750; letter-spacing: -1.2px; line-height: 1.15; }
.lb-stats strong small { margin-left: 2px; color: var(--lb-soft); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.lb-stats .lb-top-place { overflow: hidden; font-size: 17px; letter-spacing: -.5px; line-height: 1.6; white-space: nowrap; text-overflow: ellipsis; }
.lb-stats em { color: var(--accent); font-size: 11px; font-style: normal; font-weight: 600; }
.lb-stats .lb-stats-empty { grid-column: 1 / -1; padding: 0; }

/* 스키장 지도 */
.lb-map-card { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.lb-map-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.lb-map-top strong { font-size: 15px; }
.lb-map-top div { display: flex; align-items: center; gap: 6px; }
.lb-map-top div span { color: var(--accent); font-weight: 700; }
.lb-map-top .cp-badge { font-style: normal; }
.lb-map-credit { margin-top: 10px; color: var(--lb-soft); font-size: 10px; line-height: 1.6; }
.lb-legend { display: inline-flex; align-items: center; gap: 5px; color: var(--lb-soft); font-size: 10px; }
.lb-legend i { width: 8px; height: 8px; border: 1.5px solid var(--line); border-radius: 50%; }
.lb-legend i + i, .lb-legend i:not(:first-child) { margin-left: 6px; }
.lb-legend i.is-visited { border-color: #00a3ae; background: #00a3ae; }
.lb-map-body { display: grid; gap: 14px; margin-top: 10px; }
.lb-map { position: relative; width: 100%; max-width: 250px; aspect-ratio: 300 / 450; justify-self: center; }
.lb-map { overflow: hidden; border-radius: 14px; background: #1b2a33; box-shadow: inset 0 0 0 1px #ffffff14; }
.lb-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.lb-pin { position: absolute; display: grid; place-items: center; width: var(--size); height: var(--size); padding: 0; transform: translate(-50%, -50%); border: 1.5px solid #fff; border-radius: 50%; background: #ffffffd9; box-shadow: 0 1px 4px #000a; color: #102638; font-size: 9px; font-weight: 800; line-height: 1; transition: transform .15s; }
.lb-pin::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; }
.lb-pin.is-visited { border: 2px solid #fff; background: #00a3ae; color: #fff; font-size: 11px; box-shadow: 0 0 0 4px #00b7c355, 0 2px 8px #000c; }
.lb-pin.is-active { z-index: 99 !important; transform: translate(-50%, -50%) scale(1.35); box-shadow: 0 0 0 4px #fff8, 0 2px 10px #000; }
/* 지도 옆 다녀온 기록: 구분 없이 최신 날짜 순 */
.lb-visits { display: flex; flex-direction: column; min-width: 0; }
.lb-visits-top { display: flex; align-items: baseline; gap: 8px; padding: 0 4px 6px; border-bottom: 1px solid var(--line); }
.lb-visits-top strong { font-size: 14px; }
.lb-visits-top span { color: var(--lb-soft); font-size: 11px; }
.lb-places { margin: 0; padding: 0; list-style: none; }
.lb-places li + li { border-top: 1px solid var(--line); }
.lb-visit { display: grid; grid-template-columns: 30px 52px minmax(0, 1fr); align-items: start; gap: 10px; width: 100%; padding: 10px 4px; border-radius: 10px; background: none; color: var(--text); text-align: left; transition: background .15s; }
.lb-visit.is-active { background: var(--lb-tint); }
.lb-date { display: grid; justify-items: center; padding-top: 2px; color: var(--lb-soft); font-size: 10px; line-height: 1.3; }
.lb-date b { color: var(--text); font-size: 18px; font-weight: 750; letter-spacing: -.5px; }
.lb-places img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.lb-place-copy { display: grid; min-width: 0; }
.lb-place-copy strong { display: flex; align-items: center; gap: 6px; overflow: hidden; font-size: 14px; font-weight: 650; line-height: 1.45; white-space: nowrap; }
.lb-place-copy small { overflow: hidden; color: var(--lb-soft); font-size: 11px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; }
.lb-place-copy q { display: -webkit-box; overflow: hidden; margin-top: 2px; color: var(--text); font-size: 12px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; quotes: "“" "”"; }
.lb-place-facts { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.lb-place-facts i { padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; font-style: normal; line-height: 1.7; white-space: nowrap; }
.lb-places-empty .empty-state { margin-top: 10px; border-radius: 16px; padding: 24px 16px; }
.lb-places-empty .empty-state p { font-size: 12px; }
.lb-places-empty .empty-state .primary { min-height: 44px; font-size: 13px; }
@media (hover: hover) and (pointer: fine) {
  .lb-visit:hover, .lb-row:hover { background: var(--surface-hover); }
  .lb-visit.is-active { background: var(--lb-tint); }
}

/* 장소 시트의 기록 줄 */
.lb-month h4 { margin: 16px 0 4px; color: var(--lb-soft); font-size: 12px; font-weight: 600; }
.lb-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 16px; align-items: center; gap: 12px; width: 100%; padding: 9px 4px; border-radius: 12px; background: none; color: var(--text); text-align: left; }
.lb-row + .lb-row { border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.lb-row img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.lb-row > svg { width: 16px; height: 16px; color: var(--lb-soft); }
.lb-row-copy { display: grid; gap: 1px; min-width: 0; }
.lb-row-copy strong { display: flex; align-items: center; gap: 6px; overflow: hidden; font-size: 15px; white-space: nowrap; }
.lb-row-copy small { color: var(--lb-soft); font-size: 12px; }
.lb-first { flex-shrink: 0; padding: 1px 6px; border-radius: 5px; background: var(--lb-tint); color: var(--accent); font-size: 10px; font-style: normal; font-weight: 700; }
.lb-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.lb-tags:empty { display: none; }
.lb-tag { padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-size: 10.5px; line-height: 1.6; }
.lb-stars { color: var(--accent); font-weight: 700; }

/* 기록 입력: 빠른 선택 + 컨디션(시안) */
.lb-quick-dates { display: flex; gap: 6px; margin-top: -8px; }
.lb-recent { display: grid; gap: 6px; margin-top: -6px; }
.lb-recent > span { color: var(--lb-soft); font-size: 12px; }
.lb-recent > div { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-conditions { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.lb-conditions summary { display: flex; align-items: center; gap: 8px; min-height: 48px; font-size: 14px; font-weight: 600; cursor: pointer; }
.lb-conditions[open] { padding-bottom: 14px; }
.lb-choice { margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.lb-choice[hidden] { display: none; }
.lb-choice legend { margin-bottom: 6px; padding: 0; color: var(--lb-soft); font-size: 12px; }
.lb-choice > div { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-form .lb-choice label { display: block; gap: 0; font-weight: 500; }
.lb-choice input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.lb-choice span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px; font-size: 12px; cursor: pointer; }
.lb-choice input:checked + span { background: var(--action-bg); border-color: var(--action-bg); color: var(--accent-text); font-weight: 700; }
.lb-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 기록 상세·장소 시트 */
.lb-detail-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.lb-detail-facts span:not(.lb-first) { padding: 2px 8px; border-radius: 6px; background: var(--surface-hover); font-size: 12px; }
.lb-detail-facts .lb-first { font-size: 12px; padding: 2px 8px; }
.detail-copy .lb-tags { margin-bottom: 8px; }
.lb-place { display: grid; gap: 14px; }
.lb-place > .badge { width: fit-content; margin: 0; }
.lb-place-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 0; border-block: 1px solid var(--line); }
.lb-place-stats div { display: grid; gap: 2px; padding: 0 10px; }
.lb-place-stats div:first-child { padding-left: 0; }
.lb-place-stats div + div { border-left: 1px solid var(--line); }
.lb-place-stats span { color: var(--lb-soft); font-size: 11px; }
.lb-place-stats strong { font-size: 16px; }
.lb-place-note { font-size: 13px; }
.lb-place .lb-month { max-height: 300px; overflow-y: auto; }
.lb-conquest { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 14px; border: 1px dashed var(--line); border-radius: 14px; }
.lb-conquest strong { font-size: 14px; }
.lb-conquest p { grid-column: 1; color: var(--lb-soft); font-size: 12px; }
.lb-conquest .cp-badge { grid-row: 1 / 3; grid-column: 2; }

/* 넓은 화면: 지도 오른쪽에 기록. 목록은 지도 높이 안에서 스크롤 */
@media (min-width: 600px) {
  .lb-map-body { grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
  .lb-visits { contain: size; align-self: stretch; }
  .lb-places { flex: 1; min-height: 0; overflow-y: auto; padding-right: 2px; overscroll-behavior: contain; }
}
@media (min-width: 760px) {
  .lb-stats strong { font-size: 40px; }
  .lb-stats .lb-top-place { font-size: 20px; }
  .lb-map-body { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
  .lb-map { max-width: 260px; }
  .lb-visits { max-width: 600px; }
  .lb-visit { grid-template-columns: 34px 64px minmax(0, 1fr); gap: 12px; }
  .lb-places img { width: 64px; height: 64px; }
  .lb-place-copy q { font-size: 13px; }
  .lb-place-copy strong { font-size: 15px; }
  .lb-place-copy small { font-size: 12px; }
}
