.find-us-page {
  --find-header: var(--site-header-height, 80px);
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

.find-us-page main {
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

.find-map {
  position: relative;
  height: calc(100vh - var(--find-header));
  min-height: 680px;
  overflow: hidden;
  background: #e5e5e5;
  user-select: none;
  touch-action: none;
}

.find-map-stage {
  --map-x: 0px;
  --map-y: 0px;
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
}

.find-live-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: #e5e5e5;
  transition: opacity 260ms ease;
}

.find-map-stage.has-live-map .find-live-map {
  opacity: 1;
}

.find-map-stage.has-live-map .find-map-image,
.find-map-stage.has-live-map .find-map-markers {
  opacity: 0;
  pointer-events: none;
}

.find-live-map .leaflet-tile-pane {
  filter: grayscale(1) saturate(0.22) contrast(0.92) brightness(1.05);
}

.find-live-map .leaflet-container {
  background: #e5e5e5;
}

.find-live-map .leaflet-control-container {
  display: none;
}

.leaflet-div-icon.live-store-marker {
  border: 0;
  background: transparent;
}

.live-store-marker {
  opacity: 1;
  transform-origin: center;
  transition:
    opacity 220ms ease,
    filter 220ms ease;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
}

.live-store-marker.is-hidden,
.leaflet-marker-icon.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.live-store-marker img {
  position: absolute;
  display: block;
  max-width: none !important;
  pointer-events: none;
}

.live-store-marker .marker-base {
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.live-store-marker .marker-symbol {
  left: 6px;
  top: 8px;
  width: calc(100% - 12px) !important;
  height: calc(100% - 16px) !important;
}

.live-store-marker.is-selected {
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.28));
}

.live-dot-marker {
  border: 0;
  border-radius: 50%;
  background: transparent;
  filter: none;
  transition: opacity 180ms ease;
}

.live-dot-marker img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

.find-map-stage.is-dragging {
  cursor: grabbing;
}

.find-map-image {
  position: absolute;
  max-width: none;
  object-fit: fill;
  transform: translate3d(var(--map-x), var(--map-y), 0);
  transform-origin: center;
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.find-map-image-wide {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.find-map-image-zoom {
  left: -79.63%;
  top: -68.84%;
  width: 228.78%;
  height: 247.6%;
  opacity: 1;
}

.find-map-stage[data-map-mode="wide"] .find-map-image-wide {
  opacity: 1;
}

.find-map-stage[data-map-mode="wide"] .find-map-image-zoom {
  opacity: 0;
}

.find-map-markers {
  position: absolute;
  inset: 0;
  transform: translate3d(var(--map-x), var(--map-y), 0);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.store-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
  transition:
    opacity 280ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 240ms ease;
}

.store-marker.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.store-marker:hover,
.store-marker:focus-visible {
  transform: translate(-50%, -50%) scale(1.14);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.25));
  outline: none;
}

.store-marker img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}

.store-marker .marker-symbol {
  inset: 8px 6px;
  width: calc(100% - 12px);
  height: calc(100% - 16px);
}

.store-marker.is-dot {
  width: 12px;
  height: 12px;
  filter: none;
}

.store-marker.is-dot .marker-symbol {
  display: none;
}

.store-marker.is-selected {
  width: 64px;
  height: 77px;
  border-radius: 0;
  transform: translate(-50%, -92%) scale(1);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.28));
}

.store-marker.is-selected:hover,
.store-marker.is-selected:focus-visible {
  transform: translate(-50%, -92%) scale(1.06);
}

.store-search {
  position: absolute;
  left: clamp(24px, 6.25vw, 120px);
  top: 60px;
  z-index: 30;
  width: 362px;
  height: 72px;
  margin: 0;
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  transition:
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 260ms ease;
}

.find-map.has-selection .store-search {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-10px, 0, 0);
  pointer-events: none;
}

.store-search-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  margin-left: 20px;
  background: url("assets/find-us/search-icon.svg") center / 30px 30px no-repeat;
  filter: brightness(0);
  transform: rotate(-45deg);
}

.store-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 22px 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #050505;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  font-family: inherit;
}

.store-search input::placeholder {
  color: rgba(0, 0, 0, 0.6);
  opacity: 1;
}

.store-results {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: min(420px, calc(100vw - 48px));
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.14);
}

.store-result {
  width: 100%;
  min-height: 74px;
  padding: 14px 16px;
  display: block;
  border: 0;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  color: #050505;
  cursor: pointer;
}

.store-result:hover,
.store-result:focus-visible,
.store-result.is-active {
  background: #f3f7f4;
  outline: none;
}

.store-result strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 500;
}

.store-result span {
  display: block;
  margin-top: 6px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 13px;
  line-height: 1.35;
}

.store-detail {
  position: absolute;
  left: clamp(24px, 6.25vw, 120px);
  top: 60px;
  z-index: 40;
  width: 540px;
  height: 448px;
  padding: 0;
  border: 1px solid #008c38;
  border-radius: 10px;
  background: #fff;
  color: #050505;
  transform: translate3d(-18px, 0, 0);
  opacity: 0;
  transition:
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.store-detail.is-open {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.store-detail-close {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: url("assets/find-us/close.svg") center / 40px 40px no-repeat;
  cursor: pointer;
}

.store-detail h1 {
  position: absolute;
  left: 40px;
  top: 31px;
  width: 373px;
  margin: 0;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: capitalize;
}

.store-address {
  position: absolute;
  left: 40px;
  top: 132px;
  width: 373px;
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
  text-transform: capitalize;
}

.store-detail dl {
  margin: 0;
}

.store-detail dl > div {
  position: absolute;
  left: 40px;
  width: 460px;
  padding: 15px 0 0;
  border-top: 1px solid #e9e9e9;
}

.store-detail dl > div:nth-child(1) {
  top: 208px;
}

.store-detail dl > div:nth-child(2) {
  top: 311px;
}

.store-detail dt {
  margin: 0 0 6px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
  text-transform: capitalize;
}

.store-detail dd {
  width: 460px;
  margin: 0;
  color: #050505;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 500;
  text-transform: capitalize;
}

@media (max-width: 1020px) {
  .find-us-page {
    --find-header: 72px;
  }

  .find-map {
    min-height: calc(100vh - var(--find-header));
  }

  .store-search {
    left: 20px;
    top: 20px;
    width: min(362px, calc(100vw - 40px));
    height: 60px;
  }

  .store-search-icon {
    margin-left: 14px;
  }

  .store-search input {
    font-size: 16px;
  }

  .store-detail {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: 20px;
    width: auto;
    height: auto;
    min-height: 0;
    max-height: calc(100% - 40px);
    padding: 24px 24px 28px;
    overflow: auto;
  }

  .store-detail-close {
    top: 22px;
    right: 20px;
  }

  .store-detail h1,
  .store-address,
  .store-detail dd {
    position: static;
    width: auto;
  }

  .store-detail h1 {
    padding-right: 48px;
    font-size: 24px;
  }

  .store-address {
    margin-top: 28px;
    font-size: 16px;
  }

  .store-detail dl {
    margin-top: 28px;
  }

  .store-detail dl > div,
  .store-detail dl > div:nth-child(1),
  .store-detail dl > div:nth-child(2) {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
  }

  .store-detail dt,
  .store-detail dd {
    font-size: 15px;
  }

  .store-detail dl > div {
    padding-bottom: 18px;
  }
}

@media (max-width: 760px) {
  .find-us-page main {
    padding-top: 72px;
  }

  .find-map {
    height: calc(100vh - 72px);
  }

  .store-marker.is-selected {
    width: 52px;
    height: 62px;
  }
}
