.lm-store-locations {
  --lm-store-locations-bg: transparent;
  --lm-store-locations-title: #2f2a24;
  --lm-store-locations-text: #5f5952;
  --lm-store-locations-accent: #c79a6b;
  --lm-store-locations-card: #ffffff;
  --lm-store-locations-shadow: rgba(37, 30, 24, 0.12);
  padding: clamp(8px, 1.2vw, 12px) 0;
  background: var(--lm-store-locations-bg);
  color: var(--lm-store-locations-text);
}

.wp-block-acf-lm-store-locations {
  margin-block: 0;
}

.lm-store-locations.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.wp-admin .lm-store-locations.alignfull,
.editor-styles-wrapper .lm-store-locations.alignfull,
.block-editor-block-list__layout .lm-store-locations.alignfull {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.lm-store-locations__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.lm-store-locations__header {
  text-align: center;
  margin-bottom: clamp(20px, 3vw, 36px);
  position: relative;
}

.lm-store-locations__eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--lm-store-locations-accent);
  margin-bottom: 8px;
}

.lm-store-locations__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--lm-store-locations-title);
  margin: 0 0 8px;
}

.lm-store-locations__subtitle {
  margin: 0 auto;
  max-width: 560px;
  font-size: 1rem;
}

.lm-store-locations__carousel {
  display: grid;
  gap: 18px;
}

.lm-store-locations__track {
  display: flex;
  gap: clamp(20px, 3vw, 32px);
  overflow-x: hidden;
  padding: 4px 6px 18px;
  margin: 0 -6px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: default;
}

.lm-store-locations__track::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.lm-store-locations__track.is-dragging {
  cursor: grabbing;
}

.lm-store-locations__card {
  background: var(--lm-store-locations-card);
  border-radius: 20px;
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: none;
  display: grid;
  gap: 16px;
  flex: 0 0 calc((100% - clamp(20px, 3vw, 32px)) / 2);
  scroll-snap-align: start;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.lm-store-locations__card:hover,
.lm-store-locations__card:focus-within {
  box-shadow: 0 16px 32px rgba(37, 30, 24, 0.14);
  transform: translateY(-2px);
}

.lm-store-locations__card-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--lm-store-locations-title);
  font-weight: 600;
}

.lm-store-locations__slider {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: #e7e0d9;
  user-select: none;
  touch-action: none;
  --lm-compare: 52%;
}

.lm-store-locations__media-layer {
  position: absolute;
  inset: 0;
}

.lm-store-locations__media-layer--right {
  clip-path: inset(0 0 0 var(--lm-compare));
}

.lm-store-locations__media-el {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lm-store-locations__map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.lm-store-locations__slider:not(.is-map-unlocked) .lm-store-locations__map-iframe,
.lm-store-locations__track.is-dragging .lm-store-locations__map-iframe {
  pointer-events: none;
}

.lm-store-locations__map-unlock {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  border: 0;
  border-radius: 10px;
  padding: 3px 6px;
  background: rgba(47, 42, 36, 0.72);
  color: #ffffff;
  font-size: 9px;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.16);
  display: none;
}

.lm-store-locations__map-unlock.is-active {
  background: var(--lm-store-locations-accent);
}

.lm-store-locations__slider.is-map-revealed .lm-store-locations__map-unlock {
  display: inline-flex;
}

.lm-store-locations__media-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(215, 208, 202, 0.8));
}

.lm-store-locations__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--lm-compare);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.lm-store-locations__divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--lm-store-locations-accent);
}

.lm-store-locations__handle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--lm-store-locations-accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(28, 22, 18, 0.25);
  cursor: ew-resize;
  pointer-events: auto;
}

.lm-store-locations__handle svg {
  width: 22px;
  height: 22px;
}

.lm-store-locations__slider.is-dragging .lm-store-locations__handle {
  cursor: grabbing;
}

.lm-store-locations__info {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.lm-store-locations__address,
.lm-store-locations__hours,
.lm-store-locations__phone {
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.lm-store-locations__phone {
  color: var(--lm-store-locations-accent);
  font-weight: 600;
}

.lm-store-locations__empty {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.lm-store-locations__controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lm-store-locations__controls--footer {
  justify-content: center;
  margin-top: 8px;
}

.lm-store-locations__nav {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(31, 28, 26, 0.2);
  background: #ffffff;
  color: #1f1c1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lm-store-locations__nav:hover {
  background: #2c1810;
  color: #ffffff;
  border-color: #2c1810;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(44, 24, 16, 0.18);
}

.lm-store-locations__nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

@media (max-width: 640px) {
  .lm-store-locations__track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 7vw;
    padding: 4px 7vw 10px;
    margin: 0;
    cursor: grab;
  }

  .lm-store-locations__track.is-dragging {
    cursor: grabbing;
  }

  .lm-store-locations__card {
    border-radius: 16px;
    flex-basis: 92%;
    scroll-snap-align: center;
    padding: 20px;
  }

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

  .lm-store-locations__map-unlock {
    right: 8px;
    bottom: 8px;
    font-size: 8px;
    padding: 2px 5px;
  }
}
