/**
 * СамНашёл v2 — Каталог магазинов
 */

.v2-stores-page {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter) 64px;
}

.v2-stores-hero {
  background: var(--surface);
  border-radius: var(--radius-panel);
  padding: 32px 32px 28px;
  margin-bottom: var(--v2-block-gap);
}

.v2-stores-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.v2-stores-hero__sub {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 36rem;
}

.v2-stores-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: var(--v2-block-gap);
}

.v2-stores-toolbar .sn-field {
  flex: 1 1 220px;
  max-width: 400px;
  margin: 0;
}

.v2-stores-toolbar .sn-input {
  height: 44px;
}

.v2-stores-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v2-stores-filter {
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
}

.v2-stores-filter:hover {
  color: var(--ink);
}

.v2-stores-filter.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.v2-stores-layout {
  display: grid;
  gap: var(--v2-block-gap);
  align-items: start;
}

@media (min-width: 1000px) {
  .v2-stores-layout {
    grid-template-columns: 380px 1fr;
  }
}

.v2-stores-list-panel {
  background: var(--card);
  border-radius: 20px;
  padding: 12px;
  max-height: min(72vh, 720px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v2-store-card {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}

.v2-store-card:hover {
  border-color: var(--border-strong);
}

.v2-store-card.active {
  border-color: var(--ink);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.v2-store-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.v2-store-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.v2-store-card__rating {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}

.v2-store-card__rating span {
  color: var(--ink-muted);
  font-weight: 500;
}

.v2-store-card__address {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}

.v2-store-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.v2-store-tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--card);
  color: var(--ink-muted);
}

.v2-stores-map-col {
  display: flex;
  flex-direction: column;
  gap: var(--v2-block-gap);
}

.v2-stores-map {
  position: relative;
  min-height: 320px;
  height: min(48vh, 420px);
  background:
    linear-gradient(135deg, #e8e6e2 0%, #d4d0ca 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.v2-stores-map__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

.v2-stores-map__label {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.v2-stores-map__pin {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform var(--duration-fast), background var(--duration-fast);
}

.v2-stores-map__pin:hover,
.v2-stores-map__pin.active {
  transform: scale(1.25);
  background: var(--accent);
}

.v2-stores-detail {
  background: var(--card);
  border-radius: 20px;
  padding: 24px 28px;
}

.v2-stores-detail[hidden] {
  display: none !important;
}

.v2-stores-detail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.v2-stores-detail h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.v2-stores-detail__meta {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.v2-stores-detail__meta strong {
  color: var(--ink);
  font-weight: 500;
}

.v2-stores-detail__snippet {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.v2-stores-detail__actions {
  margin-bottom: 4px;
}

.v2-stores-detail__actions .sn-btn {
  min-width: 160px;
}

.v2-stores-reviews {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--surface);
}

.v2-stores-reviews h3 {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.v2-stores-review {
  padding: 12px 0;
  border-bottom: 1px solid var(--surface);
  font-size: 0.88rem;
  line-height: 1.5;
}

.v2-stores-review:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.v2-stores-review__author {
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.v2-stores-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.v2-nav-link--current {
  opacity: 0.45;
  pointer-events: none;
}

.v2-stores-suggest {
  margin-top: 40px;
}

.v2-stores-suggest__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 24px;
  padding: 28px 32px;
  background: var(--surface);
  border-radius: var(--radius-panel);
  border: 1px solid var(--border);
}

.v2-stores-suggest__inner h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.v2-stores-suggest__inner p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
  max-width: 36rem;
  line-height: 1.45;
}
