html:has(.walk-collection[open]) { overflow: hidden; }
.walk-collection {
  --walk-pad: clamp(16px, 3vw, 32px);
  width: min(960px, calc(100vw - 40px));
  max-width: 100%;
  height: min(810px, 88dvh);
  max-height: calc(var(--dock-visible-height, 100dvh) - 12px);
  inset-block-end: var(--dock-keyboard-inset, 0px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--bg);
}
.walk-collection[open] { display: flex; flex-direction: column; }
.walk-collection [hidden] { display: none; }
.walk-collection-header {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px var(--walk-pad);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.walk-collection-header h2 {
  margin: 0;
  color: var(--ink);
  font: 500 clamp(27px, 4vw, 42px)/1.15 Georgia, 'Times New Roman', serif;
  font-variant-numeric: lining-nums;
  letter-spacing: -.04em;
}
.walk-collection-close {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink); font-size: 26px;
}
.walk-collection-search {
  grid-column: 1/-1;
  display: flex; align-items: center; gap: 9px;
  max-width: 35rem; min-height: 46px; padding-inline: 13px;
  background: var(--surface-soft); border: 1px solid var(--line); border-radius: 11px;
}
.walk-collection-search:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.walk-collection-search svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.walk-collection-search input {
  width: 100%; min-width: 0; padding: 10px 0;
  background: transparent; border: 0; color: var(--ink); font-size: 16px;
}
.walk-collection-search input:focus { outline: none; }
.walk-collection-search input::placeholder { color: var(--muted); opacity: 1; }
.walk-collection-scroll {
  flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain;
  padding: 0 var(--walk-pad) 24px; scrollbar-color: var(--line) var(--bg);
  scroll-padding: 8px;
}
.walk-collection-count { margin: 15px 0 10px; color: var(--muted); font-size: 14px; }
.walk-collection-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.walk-collection-card {
  width: 100%; height: 100%; min-height: 116px; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: center;
  overflow: hidden; text-align: start;
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); background: var(--surface);
}
.walk-collection-card:has(.walk-collection-thumbnail) { grid-template-columns: 30% minmax(0, 1fr) 24px; }
.walk-collection-thumbnail { position: relative; align-self: stretch; min-height: 100%; background: var(--surface-soft); }
.walk-collection-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.walk-collection-photo-kind {
  position: absolute; inset: auto 0 0; padding: 4px 6px;
  color: white; background: rgb(13 28 37 / 82%); font-size: 11px; line-height: 1.22;
}
.walk-collection-copy { display: grid; align-content: center; gap: 5px; padding: 13px 5px 13px 14px; overflow-wrap: anywhere; }
.walk-collection-area { color: var(--warm); line-height: 1.25; font-size: 13px; font-weight: 650; }
.walk-collection-name { color: var(--ink); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.2; letter-spacing: -.02em; }
.walk-collection-description {
  color: var(--muted); font-size: 13px; line-height: 1.45;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.walk-collection-arrow { justify-self: center; color: var(--accent); }
.walk-collection-arrow svg { display: block; width: 15px; height: 15px; }
.walk-collection-more, .walk-collection-clear {
  display: block; min-height: 44px; margin: 16px auto 0; padding: 9px 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--accent);
  font-weight: 600;
}
.walk-collection-clear { margin-inline: 0; }
@media (hover: hover) {
  :is(.walk-collection-card,.walk-collection-more,.walk-collection-clear,.walk-collection-close):hover {
    border-color: var(--accent); background: var(--selected-surface);
  }
}
.walk-collection > .app-dock {
  flex: none; width: 100%; padding-bottom: var(--dock-safe-bottom);
  margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0;
}
.walk-collection > .app-dock [role="search"] { display: none; }
.walk-collection > .app-dock > .dock-inner { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 690px) {
  .walk-collection {
    width: 100%; height: var(--dock-visible-height, 100dvh); max-height: var(--dock-visible-height, 100dvh);
    margin: auto 0 0; border: 0; border-radius: 0;
  }
  .walk-collection-header {
    padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 10px; gap: 8px;
  }
  .walk-collection-list { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .walk-collection-scroll { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .walk-collection-card { min-height: 102px; }
  .walk-collection-copy { padding-inline-start: 10px; }
}
@media (max-height: 420px) {
  .walk-collection { height: var(--dock-visible-height, 100dvh); max-height: var(--dock-visible-height, 100dvh); }
  .walk-collection-header { padding-block: 4px; }
}
