/* LX-GLOBE 20261127-1318
   1) Мгновенная статичная заглушка глобуса, кроссфейд к canvas.
   2) Дом.стиль правого блока регионов: без панелей и рамок, ровная сетка.
   Откат: убрать link /lx-globe.css из sub_filter @nuxt и этот файл из shared.
   Бэкап: /root/lx-backups/20261127-1318-globe/
*/

/* ---------- placeholder ---------- */
#home-map .home-map__globe,
#home-map .home-map__placeholder {
  position: relative;
}
#home-map .home-map__globe::before,
#home-map .home-map__placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/lx-globe-placeholder-dark.webp") center / contain no-repeat;
  pointer-events: none;
  z-index: 1;
  transition: opacity .4s ease;
}
html.light #home-map .home-map__globe::before,
html.light #home-map .home-map__placeholder::before,
html:not(.dark) #home-map .home-map__globe::before,
html:not(.dark) #home-map .home-map__placeholder::before {
  background-image: url("/lx-globe-placeholder-light.webp");
}
#home-map .home-map__globe:has(canvas)::before {
  opacity: 0;
}

/* ---------- regions panel, house style ---------- */
#home-map .home-map__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 40px;
  margin: 0 0 20px;
  padding: 0;
  align-items: end;
}
#home-map .home-map__stat {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
#home-map .home-map__stat-value {
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  display: block;
}
#home-map .home-map__stat-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  display: block;
}
#home-map .home-map__hint {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 36em;
}

#home-map .home-map__list {
  max-height: 340px;
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--color-text) 22%, transparent) transparent;
  -webkit-mask-image: linear-gradient(#000 0%, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(#000 0%, #000 calc(100% - 28px), transparent);
}
#home-map .home-map__list::-webkit-scrollbar {
  width: 4px;
}
#home-map .home-map__list::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
#home-map .home-map__list::-webkit-scrollbar-track {
  background: transparent;
}
#home-map .home-map__list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--color-text) 22%, transparent);
  border-radius: 4px;
}

#home-map .home-map__item,
#home-map .home-map__item.is-active,
#home-map .home-map__item:focus-visible,
#home-map .home-map__item:hover,
html.dark #home-map .home-map__item.is-active,
html.dark #home-map .home-map__item:focus-visible {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
#home-map .home-map__item {
  width: 100%;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent) !important;
  transition: color .2s;
  display: block;
  cursor: pointer;
}
#home-map li:last-child .home-map__item {
  border-bottom-color: transparent !important;
}
#home-map .home-map__item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
#home-map .home-map__item-name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}
#home-map .home-map__item:hover .home-map__item-name,
#home-map .home-map__item.is-active .home-map__item-name,
#home-map .home-map__item:focus-visible .home-map__item-name {
  color: var(--color-text);
}
#home-map .home-map__item.is-active .home-map__item-name {
  font-weight: 600;
}
#home-map .home-map__item-count {
  color: #ffb400 !important;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 600;
  flex: none;
}

/* тонкая линия прогресса одной толщины */
#home-map .home-map__item-bar {
  display: block;
  height: 1px;
  margin: 10px 0 8px;
  background: color-mix(in srgb, var(--color-text) 10%, transparent);
  border-radius: 0;
  overflow: hidden;
}
#home-map .home-map__item-bar i {
  display: block;
  height: 100%;
  background: #ffb400;
  border-radius: 0;
  opacity: .85;
}

#home-map .home-map__item-who {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.4;
  max-height: calc(1.4em * 2);
}

/* Пенза: только маленькая метка «офис», без панели */
#home-map .home-map__item.is-office .home-map__item-name::after {
  content: " офис";
  color: #ffb400;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  vertical-align: 1px;
}

@media (max-width: 1199px) {
  #home-map .home-map__list { max-height: 320px; }
}
@media (max-width: 767px) {
  #home-map .home-map__stats { gap: 8px 24px; margin-bottom: 16px; }
  #home-map .home-map__item { padding: 12px 0; }
  #home-map .home-map__item-name,
  #home-map .home-map__item-count { font-size: 14px; }
}
