.store-map {
  margin: 0 0 24px;
  color: #2f3542;
  position: relative;
  z-index: 30;
}

.store-map__header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
  z-index: 20;
}

.store-map__title {
  margin: 0;
}

.store-map__meta,
.store-map__notice {
  color: #6b7280;
  font-size: 14px;
}

.store-map__notice {
  margin-bottom: 12px;
}

.store-map__controls {
  min-width: 260px;
}

.store-map__city {
  width: 100%;
  min-height: 38px;
}

.store-map__city-menu {
  display: none;
}

.store-map__body {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(360px, 1fr);
  gap: 16px;
  align-items: stretch;
  min-height: 0;
}

.store-map__drawer {
  min-width: 0;
}

.store-map__drawer-head,
.store-map__drawer-backdrop,
.store-map__list-toggle {
  display: none;
}

.store-map__list {
  display: grid;
  gap: 8px;
  align-content: start;
  max-height: 540px;
  overflow: auto;
  padding-right: 4px;
}

.store-map__item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: inherit;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.store-map [hidden] {
  display: none !important;
}

.store-map__item:hover,
.store-map__item:focus,
.store-map__item.is-active {
  border-color: #1e91cf;
  box-shadow: 0 0 0 2px rgba(30, 145, 207, .12);
  outline: none;
}

.store-map__name,
.store-map__address,
.store-map__phone,
.store-map__time {
  display: block;
}

.store-map__name {
  font-weight: 700;
  margin-bottom: 3px;
}

.store-map__address,
.store-map__phone,
.store-map__time {
  color: #5f6875;
  font-size: 13px;
}

.store-map__route {
  display: inline-block;
  margin-top: 8px;
  color: #1e91cf;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.store-map__route:hover,
.store-map__route:focus {
  color: #176f9f;
  text-decoration: underline;
}

.store-map__map {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.store-map__canvas {
  min-height: 540px;
  height: 100%;
  background: #eef3f6;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  cursor: grab;
  touch-action: none;
}

.store-map__canvas.leaflet-dragging {
  cursor: grabbing;
}

.store-map__canvas .leaflet-container,
.leaflet-container.store-map__canvas {
  min-height: 540px;
}

.store-map .leaflet-popup-content {
  font-size: 13px;
  line-height: 1.45;
}

.store-map__empty {
  padding: 16px;
  text-align: center;
  color: #6b7280;
  border: 1px solid #ddd;
  background: #fff;
}

@media (max-width: 767px) {
  .store-map {
    padding-bottom: 72px;
  }

  .store-map__header {
    position: relative;
    z-index: 500;
  }

  .store-map__header,
  .store-map__body {
    display: block;
  }

  .store-map__city,
  .store-map__canvas {
    width: 100%;
  }

  .store-map__controls {
    min-width: 0;
    margin-top: 12px;
    position: relative;
    z-index: 520;
    pointer-events: auto;
  }

  .store-map__city {
    display: block;
    position: relative;
    z-index: 920;
    width: 100%;
    min-height: 44px;
    padding: 8px 38px 8px 12px;
    color: #2f3542;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.25;
    pointer-events: auto;
  }

  .store-map__city-menu {
    display: none;
    position: relative;
    width: 100%;
    z-index: 530;
  }

  .store-map__city-menu.is-open {
    z-index: 900;
  }

  .store-map__city-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    color: #2f3542;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.25;
    text-align: left;
  }

  .store-map__city-button span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .store-map__city-arrow {
    width: 0;
    height: 0;
    margin-left: 10px;
    border-top: 5px solid #2f3542;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    flex: 0 0 auto;
  }

  .store-map__city-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 910;
    max-height: 260px;
    overflow: auto;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .18);
  }

  .store-map__city-menu.is-open .store-map__city-options {
    display: block;
  }

  .store-map__city-option {
    display: block;
    width: 100%;
    padding: 9px 12px;
    color: #2f3542;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 14px;
    line-height: 1.25;
    text-align: left;
  }

  .store-map__city-option:last-child {
    border-bottom: 0;
  }

  .store-map__city-option.is-active,
  .store-map__city-option:hover,
  .store-map__city-option:focus {
    color: #fff;
    background: #1e91cf;
  }

  .store-map__list-toggle {
    display: inline-flex;
    position: relative;
    z-index: 40;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin: 0 0 12px;
    padding: 8px 12px;
    color: #fff;
    background: #1e91cf;
    border: 0;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1;
  }

  .store-map__list-toggle-icon,
  .store-map__list-toggle-icon::before,
  .store-map__list-toggle-icon::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    content: "";
  }

  .store-map__list-toggle-icon {
    position: relative;
  }

  .store-map__list-toggle-icon::before,
  .store-map__list-toggle-icon::after {
    position: absolute;
    left: 0;
  }

  .store-map__list-toggle-icon::before {
    top: -5px;
  }

  .store-map__list-toggle-icon::after {
    top: 5px;
  }

  .store-map__drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483001;
    width: 100vw;
    height: 100vh;
    padding: 0;
    background: #fff;
    transform: translateX(-100%);
    transition: transform .22s ease;
    visibility: hidden;
  }

  .store-map.is-list-open .store-map__drawer {
    transform: translateX(0);
    visibility: visible;
  }

  .store-map.is-list-open {
    z-index: 2147483000;
  }

  .store-map__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    padding: 0 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
  }

  .store-map__drawer-title {
    font-size: 18px;
    font-weight: 700;
  }

  .store-map__drawer-close {
    width: 40px;
    height: 40px;
    padding: 0;
    color: #2f3542;
    background: transparent;
    border: 0;
    font-size: 30px;
    line-height: 40px;
  }

  .store-map__list {
    height: calc(100vh - 54px);
    max-height: none;
    margin: 0;
    padding: 12px;
    overflow: auto;
  }

  .store-map__canvas,
  .store-map__canvas .leaflet-container,
  .leaflet-container.store-map__canvas {
    height: 58vh;
    min-height: 360px;
    max-height: 520px;
  }
}

@media (max-width: 767px) {
  body.store-map-list-open {
    overflow: hidden;
  }
}
