/* Выбор города (geo/default) — tshop_3: окно из шапки и страница.
 * Ручки дизайнера стилей: --title-size, --title-color, --geo-columns (колонок в списке на широком экране).
 */
@layer modules {
  .t3-geo { container: geo / inline-size; --geo-columns: 4; }
  .t3-modal .t3-geo .wrap { padding: 0; }
  .t3-geo__wrap { display: grid; gap: var(--s-5); }

  .t3-geo__head { display: grid; gap: var(--s-2); }
  .t3-geo__title { margin: 0; font-size: var(--title-size, var(--fs-xl)); color: var(--title-color, inherit); }
  .t3-geo__current { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: var(--fs-s); color: var(--text-2); }
  .t3-geo__current b { color: var(--text); }

  .t3-geo__search {
    position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: var(--s-2);
    min-height: 52px; padding: 0 var(--s-4); border-radius: var(--radius-pill);
    border: var(--line-w) solid var(--line-strong); background: var(--surface); color: var(--text-3);
    box-shadow: 0 8px 16px -12px rgb(0 0 0 / .25);
  }
  .t3-geo__search:focus-within { border-color: var(--text); color: var(--text); }
  .t3-geo__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: var(--fs-m); color: var(--text); }
  [data-style="editorial"] .t3-geo__search { border-radius: 0; }

  .t3-geo__list { columns: 2 180px; column-gap: var(--s-6); }
  @container geo (min-width: 760px) { .t3-geo__list { columns: var(--geo-columns) 160px; } }
  .t3-geo__list.is-filtered { columns: 1; }
  .t3-geo__group { break-inside: avoid; padding-bottom: var(--s-4); }
  .t3-geo__group[hidden] { display: none; }
  .t3-geo__list.is-filtered .t3-geo__letter { display: none; }
  .t3-geo__letter { margin: 0 0 var(--s-1); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-l); color: var(--brand-text); }
  .t3-geo__cities { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
  .t3-geo__list.is-filtered .t3-geo__cities { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .t3-geo__city {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
    min-height: 36px; padding: 0 var(--s-3); margin-inline: calc(-1 * var(--s-3)); border-radius: var(--radius-s);
    color: var(--text); font-size: var(--fs-m);
  }
  .t3-geo__city:hover, .t3-geo__city:focus-visible { background: var(--surface-2); outline: none; }
  .t3-geo__city[aria-current] { font-weight: 600; color: var(--brand-text); }
  .t3-geo[aria-busy="true"], .t3-geo__wrap[aria-busy="true"] { opacity: .6; pointer-events: none; }
  .t3-geo__more { display: grid; gap: var(--s-2); }
  .t3-geo__more .t3-geo__cities { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .t3-geo__empty { margin: 0; color: var(--text-2); }
}
