/* ═══════════════════════════════════════════════════════════════════
   9080 Land — Mini App: шапка, нижняя панель, карточки лотов, выбор регионов.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Шапка: название, кнопка «Где искать», тема ── */
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.brand span {
  color: var(--orange);
}
.head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.scope-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 210px;
  min-height: 42px;
  padding: 6px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}
.scope-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scope-chip svg {
  flex: none;
  color: var(--accent);
}
.icon-btn {
  font-size: 22px;
  line-height: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
}

/* ── Выбор периода под шапкой ── */
.period-bar {
  margin-bottom: 14px;
}
.period-bar .cap {
  font-size: 13px;
  color: var(--hint);
  margin: 0 0 6px 2px;
}

/* ── Нижняя панель ── */
.nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  box-shadow: var(--shadow-up);
  padding-bottom: env(safe-area-inset-bottom);
}
.navbtn {
  flex: 1;
  min-height: 62px;
  border: 0;
  background: none;
  color: var(--hint);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  touch-action: manipulation;
}
.navbtn svg {
  width: 24px;
  height: 24px;
}
.navbtn.active {
  color: var(--accent);
}
.navbtn.active::before {
  content: "";
  position: absolute;
  width: 36px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--btn);
  top: 0;
}
.navbtn {
  position: relative;
}

/* ── Карточки действий на главной ── */
.actions {
  display: grid;
  gap: 10px;
}
.action {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  touch-action: manipulation;
}
.action .ic {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--btn);
  color: #fff;
}
.action.orange .ic {
  background: var(--orange);
}
.action.green .ic {
  background: var(--teal-solid);
}
.action.red .ic {
  background: var(--danger);
}
.action.violet .ic {
  background: #7c3aed;
}
.action.yellow .ic {
  background: var(--gold-solid);
  color: #1f1500;
}
.action b {
  display: block;
  font-size: 16px;
}
.action small {
  color: var(--hint);
  font-size: 13px;
}
.action .chev {
  margin-left: auto;
  color: var(--hint);
  font-size: 22px;
}

/* ── Лот в списке ── */
.lot-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
  min-height: 64px;
}
.lot-card:last-child {
  border-bottom: 0;
}
.lot-main {
  flex: 1;
  min-width: 0;
}
.lot-title {
  font-weight: 600;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lot-meta {
  font-size: 13px;
  color: var(--hint);
  margin-top: 3px;
}
.lot-side {
  text-align: right;
  flex: none;
}
.lot-price {
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  white-space: nowrap;
}
.lot-dist {
  font-size: 12px;
  color: var(--hint);
  margin-top: 3px;
}
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 4px;
  font-size: 14px;
  color: var(--hint);
}
.results-head b {
  color: var(--fg);
}
.more {
  margin-top: 12px;
}

/* ── Поиск: подсказки по периоду и точке ── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 12px;
}
.chip {
  min-height: 40px;
  padding: 6px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
}
.chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
details.more-filters {
  margin: 4px 0 10px;
}
details.more-filters summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.cta {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 12px;
}
.cta b {
  display: block;
  margin-bottom: 4px;
}

/* ── Выбор регионов (нижняя шторка) ── */
.sheet-bg {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(14px + env(safe-area-inset-bottom));
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.sheet-body {
  overflow-y: auto;
  flex: 1;
  margin: 8px -4px;
  padding: 0 4px;
}
.reg-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
}
.reg-item {
  margin: 0;
  min-height: 44px;
  font-size: 14px;
}
.sheet-foot {
  display: flex;
  gap: 10px;
  padding-top: 8px;
}
.sheet-foot .btn {
  flex: 1;
}
.sheet-foot .count {
  align-self: center;
  font-size: 13px;
  color: var(--hint);
}

/* ── Подразделы аналитики ── */
.subnav {
  margin-bottom: 12px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 200;
  max-width: 90%;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: var(--shadow);
}
.modal-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  width: 100%;
  max-width: 420px;
  margin: auto 0;
}
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  padding: 16px;
  align-items: center;
  justify-content: center;
}
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* ── Окно «Написать разработчику» ── */
.fb-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.fb-text {
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  resize: vertical;
}
.fb-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--hint);
}
