/* Todaki — listings archive (강남언니 식 카드 그리드). */

body.todaki-listings { background: var(--bg); margin: 0; }

.todaki-listings-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--bg);
  font-family: var(--font-kr);
  min-height: 100vh;
}

/* ─── Sticky top ─── */
.todaki-listings__sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-softer);
}

.todaki-listings__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  height: 56px;
}
.todaki-listings__title {
  font: var(--t-h1);
  letter-spacing: -0.025em;
}
.todaki-listings__head-actions {
  display: flex;
  gap: 4px;
}
.todaki-listings__head-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background var(--t-fast);
}
.todaki-listings__head-icon-btn:hover { background: var(--bg-3); }

/* ─── Region tabs ─── */
.todaki-listings__regions {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line-softer);
}
.todaki-listings__regions::-webkit-scrollbar { display: none; }
.todaki-region-tab {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--t-fast), border-color var(--t-base);
}
.todaki-region-tab:hover { color: var(--ink); }
.todaki-region-tab.is-active {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--ink);
}

/* ─── Sub-region chips ─── */
.todaki-listings__subregions {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.todaki-listings__subregions::-webkit-scrollbar { display: none; }

/* ─── Filter dropdowns ─── */
.todaki-listings__filters {
  padding: 4px 16px 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.todaki-listings__filters::-webkit-scrollbar { display: none; }
.todaki-f-drop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--ink-5);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg);
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.todaki-f-drop:hover { background: var(--bg-3); border-color: var(--ink-4); }
.todaki-f-drop__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ink-2);
}

/* ─── Sort row ─── */
.todaki-listings__sort {
  padding: 18px 16px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.todaki-listings__total {
  color: var(--ink-3);
  margin-left: 6px;
  font-weight: 500;
}
.todaki-listings__sort-key {
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 600;
}

/* ─── Ranking list — list-style with bigger thumbnails ─── */
.todaki-rank-list {
  list-style: none;
  margin: 0;
  padding: 0 16px 24px;
}
.todaki-rank-empty {
  list-style: none;
  padding: 0;
}

.todaki-rank-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-softer);
  position: relative;
}
.todaki-rank-row:last-child { border-bottom: 0; }

.todaki-rank-row__num {
  width: 24px;
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: var(--ink-3);
  flex-shrink: 0;
  line-height: 1;
  align-self: center;
  letter-spacing: -0.02em;
}
.todaki-rank-row__num--top { color: var(--pink); }

.todaki-rank-row__thumb {
  width: 84px;
  height: 84px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  position: relative;
  display: block;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.todaki-rank-row__vip {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--ink);
  color: var(--bg);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 2;
  letter-spacing: 0.05em;
}

.todaki-rank-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.todaki-rank-row__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: block;
  letter-spacing: -0.02em;
}
.todaki-rank-row__meta {
  font-size: 12.5px;
  color: var(--ink-3);
}
.todaki-rank-row__tags {
  display: flex;
  gap: 5px;
  margin-top: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.todaki-rank-row__tags .todaki-chip {
  font-size: 10.5px;
  padding: 3px 8px;
  font-weight: 500;
}
.todaki-rank-row__reviews {
  font-size: 11px;
  color: var(--ink-3);
  margin-left: 4px;
  font-weight: 500;
}

.todaki-rank-row__change {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
  font-family: var(--font-num);
}
.todaki-rank-row__change.todaki-rank--up   { color: var(--pink); }
.todaki-rank-row__change.todaki-rank--flat { color: var(--ink-3); }

/* ─── Editorial collection rail ─── */
.todaki-listings__editorial {
  background: var(--bg);
  border-top: 8px solid var(--bg-2);
  padding-top: 8px;
}
.todaki-listings__editorial-head { padding: 24px 16px 12px; }
.todaki-listings__editorial-rail {
  padding: 4px 16px 32px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.todaki-listings__editorial-rail::-webkit-scrollbar { display: none; }

.todaki-collection-card {
  min-width: 240px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.todaki-collection-card__cover {
  width: 240px;
  height: 140px;
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
}
.todaki-collection-card__title {
  font-size: 14.5px;
  font-weight: 700;
  margin-top: 10px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.todaki-collection-card__meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}

@media (min-width: 768px) {
  body.todaki-listings { background: var(--bg-2); }
  .todaki-listings-shell {
    box-shadow: 0 0 0 1px var(--line-softer);
  }
}
