.header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 56px 48px;
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(236, 0, 125, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(236, 0, 125, 0.04), transparent 50%),
    #fff;
}
.header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 0, 125, 0.18), transparent);
}
.header .headerContainer {
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.header .contentMiniTitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(236, 0, 125, 0.07);
}
.header .contentMiniTitle svg {
  width: 18px;
  height: 18px;
}
.header .contentTitle {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.header .contentTitle .colored {
  color: var(--primary);
  position: relative;
}
.header .contentDesc {
  max-width: 620px;
  color: #666;
  font-size: 16px;
  line-height: 1.85;
}

.main .mainSection .sectionContainer {
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
  padding-bottom: 88px;
}

.main .storesFilter {
  display: grid;
  grid-template-columns: 1fr 240px auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(236, 0, 125, 0.08);
  border-radius: 24px;
  box-shadow:
    0 18px 50px rgba(20, 10, 30, 0.06),
    0 2px 10px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(10px);
  animation: storesRise 0.55s ease both;
}
.main .storesFilter .filterField {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.main .storesFilter .filterField label {
  font-size: 12px;
  font-weight: 700;
  color: #8a8a8a;
}
.main .storesFilter .filterField input,
.main .storesFilter .filterField select {
  height: 50px;
  width: 100%;
  border: 1px solid #ececef;
  border-radius: 14px;
  padding: 0 16px;
  font: inherit;
  background: #fafafa;
  color: #333;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.main .storesFilter .filterField input:focus,
.main .storesFilter .filterField select:focus {
  outline: none;
  border-color: rgba(236, 0, 125, 0.4);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(236, 0, 125, 0.08);
}
.main .storesFilter .filterActions {
  display: flex;
  gap: 10px;
}
.main .storesFilter .filterActions button,
.main .storesFilter .filterActions a {
  height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.main .storesFilter .filterActions .btnPrimary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(236, 0, 125, 0.28);
}
.main .storesFilter .filterActions .btnPrimary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(236, 0, 125, 0.34);
}
.main .storesFilter .filterActions .btnSecondary {
  background: #f3f3f5;
  color: #555;
}
.main .storesFilter .filterActions .btnSecondary:hover {
  background: #ebebef;
}

.main .resultCount {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
  color: #555;
  animation: storesRise 0.6s ease both;
  animation-delay: 0.05s;
}
.main .resultCount::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(236, 0, 125, 0.15);
}

.main .storesLayout {
  display: grid;
  grid-template-columns: minmax(380px, 480px) 1fr;
  gap: 24px;
  align-items: stretch;
}

.main .storesList {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 760px;
  overflow-y: auto;
  padding: 4px 8px 8px 2px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(236, 0, 125, 0.35) transparent;
}
.main .storesList::-webkit-scrollbar {
  width: 6px;
}
.main .storesList::-webkit-scrollbar-thumb {
  background: rgba(236, 0, 125, 0.3);
  border-radius: 999px;
}

.main .storesList .storeCard {
  position: relative;
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 0;
  min-height: 168px;
  border-radius: 24px;
  border: 1px solid #ececf0;
  background: #fff;
  cursor: pointer;
  text-align: right;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 28px rgba(15, 10, 30, 0.04);
  transition:
    border-color .28s ease,
    box-shadow .28s ease,
    transform .28s cubic-bezier(0.22, 1, 0.36, 1);
  animation: storesRise 0.55s ease both;
}
.main .storesList .storeCard:nth-child(1) { animation-delay: 0.05s; }
.main .storesList .storeCard:nth-child(2) { animation-delay: 0.1s; }
.main .storesList .storeCard:nth-child(3) { animation-delay: 0.15s; }
.main .storesList .storeCard:nth-child(4) { animation-delay: 0.2s; }
.main .storesList .storeCard:nth-child(5) { animation-delay: 0.25s; }
.main .storesList .storeCard:nth-child(n+6) { animation-delay: 0.3s; }

.main .storesList .storeCard::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(180deg, var(--primary), #ff4da6);
  transition: width .28s ease;
  z-index: 2;
}
.main .storesList .storeCard:hover {
  border-color: rgba(236, 0, 125, 0.28);
  box-shadow: 0 18px 40px rgba(236, 0, 125, 0.12);
  transform: translateY(-4px) scale(1.01);
}
.main .storesList .storeCard.is-active {
  border-color: rgba(236, 0, 125, 0.45);
  background: linear-gradient(120deg, rgba(236, 0, 125, 0.045), #fff 42%);
  box-shadow:
    0 20px 48px rgba(236, 0, 125, 0.16),
    0 0 0 1px rgba(236, 0, 125, 0.08);
  transform: translateY(-3px);
}
.main .storesList .storeCard.is-active::before {
  width: 4px;
}

.main .storesList .storeCard .cardAvatar {
  position: relative;
  width: 148px;
  min-height: 168px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(236, 0, 125, 0.12), rgba(236, 0, 125, 0.02)),
    #f3f3f5;
}
.main .storesList .storeCard .cardAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(0.22, 1, 0.36, 1), filter .35s ease;
}
.main .storesList .storeCard:hover .cardAvatar img,
.main .storesList .storeCard.is-active .cardAvatar img {
  transform: scale(1.08);
  filter: saturate(1.08);
}
.main .storesList .storeCard .cardAvatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(255, 255, 255, 0.35));
  pointer-events: none;
}

.main .storesList .storeCard .cardBody {
  min-width: 0;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.main .storesList .storeCard .cardTitle {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #1c1c1c;
  line-height: 1.45;
}
.main .storesList .storeCard .cardMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.main .storesList .storeCard .cardMeta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  background: #f6f6f8;
  border-radius: 999px;
  padding: 6px 11px;
  transition: background .2s ease, color .2s ease;
}
.main .storesList .storeCard.is-active .cardMeta span,
.main .storesList .storeCard:hover .cardMeta span {
  background: rgba(236, 0, 125, 0.08);
  color: #444;
}
.main .storesList .storeCard .cardMeta .metaMap {
  color: var(--primary);
  background: rgba(236, 0, 125, 0.1);
}
.main .storesList .storeCard .cardMeta svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}
.main .storesList .storeCard .cardAddress {
  font-size: 13px;
  color: #666;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.main .storesList .storeCard .cardAction {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.85;
  transition: gap .2s ease, opacity .2s ease;
}
.main .storesList .storeCard:hover .cardAction,
.main .storesList .storeCard.is-active .cardAction {
  gap: 10px;
  opacity: 1;
}
.main .storesList .storeCard .cardAction svg {
  width: 14px;
  height: 14px;
}

.main .storesList .storeEmpty {
  padding: 56px 24px;
  text-align: center;
  color: #777;
  border: 1px dashed #e5e5e8;
  border-radius: 24px;
  background: #fafafa;
}

.main .storesMapWrap {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(236, 0, 125, 0.1);
  background: #eef0f3;
  min-height: 760px;
  box-shadow:
    0 24px 60px rgba(15, 10, 30, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.03);
  animation: storesRise 0.65s ease both;
  animation-delay: 0.08s;
  transition: box-shadow .3s ease, transform .3s ease;
}
.main .storesMapWrap.is-focus {
  box-shadow:
    0 28px 70px rgba(236, 0, 125, 0.16),
    0 0 0 1px rgba(236, 0, 125, 0.12);
}
.main .storesMapWrap #stores-map {
  width: 100%;
  height: 760px;
}
.main .storesMapWrap .mapHint {
  position: absolute;
  z-index: 500;
  top: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.main .storesMapWrap .mapHint span {
  pointer-events: none;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #444;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}
.main .storesMapWrap .mapHint .hintPulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.main .storesMapWrap .mapHint .hintPulse::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: mapPulse 1.6s ease infinite;
}

@keyframes storesRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes mapPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(236, 0, 125, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(236, 0, 125, 0);
    transform: scale(1.05);
  }
}

@media (max-width: 1100px) {
  .main .storesLayout {
    grid-template-columns: minmax(340px, 420px) 1fr;
  }
  .main .storesList .storeCard {
    grid-template-columns: 120px 1fr;
    min-height: 148px;
  }
  .main .storesList .storeCard .cardAvatar {
    width: 120px;
    min-height: 148px;
  }
  .main .storesList,
  .main .storesMapWrap,
  .main .storesMapWrap #stores-map {
    max-height: 640px;
    min-height: 640px;
    height: 640px;
  }
  .main .storesList {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .main .storesLayout {
    grid-template-columns: 1fr;
  }
  .main .storesList {
    max-height: none;
    padding: 0;
  }
  .main .storesMapWrap,
  .main .storesMapWrap #stores-map {
    min-height: 480px;
    height: 480px;
    max-height: none;
  }
  .main .storesFilter {
    grid-template-columns: 1fr;
  }
  .main .storesList .storeCard {
    grid-template-columns: 132px 1fr;
  }
  .main .storesList .storeCard .cardAvatar {
    width: 132px;
  }
}

@media (max-width: 640px) {
  .header .headerContainer,
  .main .mainSection .sectionContainer {
    width: min(1320px, calc(100% - 28px));
  }
  .header {
    padding-block: 40px 32px;
  }
  .main .storesList .storeCard {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .main .storesList .storeCard .cardAvatar {
    width: 100%;
    min-height: 180px;
    height: 180px;
  }
  .main .storesList .storeCard .cardAvatar::after {
    background: linear-gradient(180deg, transparent 45%, rgba(255, 255, 255, 0.55));
  }
  .main .storesList .storeCard .cardBody {
    padding: 16px;
  }
  .main .storesList .storeCard .cardTitle {
    font-size: 16px;
  }
  .main .storesMapWrap,
  .main .storesMapWrap #stores-map {
    min-height: 380px;
    height: 380px;
    border-radius: 22px;
  }
}
