/* =========================================================
   RENTAL TEMPLATE V2 — STORE
   Фото без обрезки + отдельная видимая карта.
   ========================================================= */

.store-section {
  padding: 6px 0 72px;
  scroll-margin-top: 96px;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 16px;
  align-items: stretch;
}

.store-photo-card,
.store-info-card,
.store-map-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.store-photo-card {
  overflow: hidden;
  border-radius: 26px;
}

.store-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef0f3;
}

.store-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.store-photo-caption {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
}

.store-photo-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-primary-soft);
}

.store-info-card {
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  padding: 28px;
}

.store-info-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.store-eyebrow {
  margin: 0 0 6px;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.store-name {
  margin: 0;
  color: var(--text-main);
  font-size: 29px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.store-detail {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.store-detail-text {
  margin: 5px 0 0;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.45;
}

.store-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

.store-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-meta-label {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.store-schedule-content {
  min-width: 0;
}

.store-hours {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.store-hours-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
}

.store-hours-row strong {
  flex: 0 0 auto;
  color: var(--text-main);
  font-weight: 650;
}

.store-hours-row-muted strong {
  color: var(--brand-primary);
}

.store-phone {
  display: inline-block;
  margin-top: 4px;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 650;
}

.store-phone:hover {
  color: var(--brand-primary);
}

.store-actions {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.store-actions .btn {
  width: 100%;
  min-height: 46px;
}

/* ---------- Map ---------- */

.store-map-card {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 26px;
}

.store-map-head {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.store-map-kicker {
  margin: 0 0 3px;
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.store-map-title {
  margin: 0;
  color: var(--text-main);
  font-size: 22px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.store-map-link {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 15px;
  background: #fff;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  transition:
    border-color .18s ease,
    background .18s ease,
    color .18s ease;
}

.store-map-link:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 30%, var(--line));
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

.store-map-embed {
  position: relative;
  width: 100%;
  min-height: 360px;
  overflow: hidden;
  background: #eef0f3;
}

.store-map-embed > iframe {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  border: 0 !important;
}

/* ---------- Tablet ---------- */

@media (max-width: 980px) {
  .store-layout {
    grid-template-columns: 1fr;
  }

  .store-photo {
    aspect-ratio: 4 / 3;
  }

  .store-info-card {
    padding: 26px;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 620px) {
  .store-section {
    padding: 0 0 46px;
  }

  .store-layout {
    gap: 12px;
  }

  .store-photo-card,
  .store-info-card,
  .store-map-card {
    border-radius: 20px;
  }

  .store-photo {
    aspect-ratio: 4 / 3;
  }

  .store-photo-caption {
    min-height: 50px;
    padding: 12px 14px;
    font-size: 12px;
  }

  .store-info-card {
    padding: 20px 17px 17px;
  }

  .store-info-head {
    padding-bottom: 17px;
  }

  .store-name {
    font-size: 24px;
  }

  .store-detail {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    padding: 16px 0;
  }

  .store-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .store-hours-row {
    gap: 10px;
    font-size: 12px;
  }

  .store-phone {
    font-size: 17px;
  }

  .store-actions {
    grid-template-columns: 1fr;
    padding-top: 17px;
  }

  .store-map-card {
    margin-top: 12px;
  }

  .store-map-head {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .store-map-title {
    font-size: 20px;
  }

  .store-map-link {
    width: 100%;
    text-align: center;
  }

  .store-map-embed {
    min-height: 360px;
  }
}

@media (max-width: 390px) {
  .store-info-card {
    padding-inline: 15px;
  }

  .store-hours-row {
    align-items: start;
  }
}

/* =========================================================
   STORE GALLERY
   Горизонтальный scroll-snap слайдер:
   2 фото на desktop, 1 фото на mobile.
   ========================================================= */

.store-gallery {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.store-gallery-head {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.store-gallery-kicker {
  margin: 0 0 3px;
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.store-gallery-title {
  margin: 0;
  color: var(--text-main);
  font-size: 22px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.store-gallery-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-gallery-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--text-main);
  font-size: 19px;
  line-height: 1;
  box-shadow: 0 7px 18px rgba(20, 27, 40, .05);
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    opacity .18s ease;
}

.store-gallery-arrow:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand-primary) 28%, var(--line));
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  box-shadow: 0 10px 22px rgba(20, 27, 40, .08);
}

.store-gallery-arrow:disabled {
  cursor: default;
  opacity: .35;
  box-shadow: none;
}

.store-gallery-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.store-gallery-viewport::-webkit-scrollbar {
  display: none;
}

.store-gallery-track {
  display: flex;
  gap: 16px;
  padding: 16px;
}

.store-gallery-slide {
  flex: 0 0 calc((100% - 16px) / 2);
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #eef0f3;
  scroll-snap-align: start;
}

.store-gallery-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .store-gallery-slide:hover img {
    transform: scale(1.018);
  }
}

.store-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 0 16px 16px;
}

.store-gallery-dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #cfd5dc;
  transition:
    width .18s ease,
    border-radius .18s ease,
    background .18s ease;
}

.store-gallery-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--brand-primary);
}

@media (max-width: 760px) {
  .store-gallery-slide {
    flex-basis: 82%;
  }
}

@media (max-width: 620px) {
  .store-gallery {
    margin-top: 12px;
    border-radius: 20px;
  }

  .store-gallery-head {
    min-height: 0;
    padding: 15px 16px;
  }

  .store-gallery-title {
    font-size: 19px;
  }

  .store-gallery-arrow {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .store-gallery-track {
    gap: 12px;
    padding: 12px;
  }

  .store-gallery-slide {
    flex-basis: 100%;
    border-radius: 15px;
  }

  .store-gallery-dots {
    padding: 0 12px 13px;
  }
}

