/* ── Frontend styles for buffalo-run-map ───────────────────────────────────── */

.buffalo-run-map {
  padding: 3.5rem 2rem;
  max-width: 1270px !important;
  padding-top: 0;
}

.buffalo-run-map__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .buffalo-run-map__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }

  .buffalo-run-map__content {
    flex: 1;
  }

  .buffalo-run-map__map-wrapper {
    flex: 0 0 45%;
    align-self: flex-end;
  }
}

/* ── Left column – text content ─────────────────────────────────────────────── */

.buffalo-run-map__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #12284b;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  max-width: 400px;
}

.buffalo-run-map__description {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.7;
  color: #12284b;
  margin: 0 0 1.5rem;
}

.buffalo-run-map__list-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #12284b;
  margin: 0 0 0.6rem;
}

.buffalo-run-map__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.buffalo-run-map__list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  font-size: clamp(0.875rem, 1.4vw, 0.95rem);
  line-height: 1.5;
  color: #12284b;
}

.buffalo-run-map__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-image: url(./img/right-arrow.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.buffalo-run-map__cta-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #12284b;
  margin: 0 0 0.6rem;
  text-transform: none;
  letter-spacing: 0;
}

.buffalo-run-map__cta-description {
  font-size: clamp(0.875rem, 1.4vw, 0.95rem);
  line-height: 1.7;
  color: #12284b;
  margin: 0 0 0.75rem;
}

.buffalo-run-map__cta-link {
  font-size: clamp(0.875rem, 1.4vw, 0.95rem);
  color: #12284b;
  margin: 0;
}

.buffalo-run-map__cta-link a {
  color: #12284b;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.buffalo-run-map__cta-link a:hover {
  opacity: 0.7;
}

/* ── Right column – map ─────────────────────────────────────────────────────── */

.buffalo-run-map__map-wrapper {
  position: relative;
}

.buffalo-run-map__map-container {
  overflow: hidden;
  border-radius: 6px;
  user-select: none;
  -webkit-user-select: none;
}

.buffalo-run-map__map-image {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 40% 90%; /* zoom anchors toward bottom-left area */
  transform: scale(1) translate(0px, 0px);
  /* transition set by JS; define here as fallback */
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none; /* drag is handled on the container */
}

/* ── Zoom controls ─────────────────────────────────────────────────────────── */

.buffalo-run-map__zoom-controls {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px;
  border: 1px solid #12284b;
}

.buffalo-run-map__zoom-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  color: #12284b;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    opacity 0.15s ease;
}

.buffalo-run-map__zoom-btn:hover {
  background-color: rgba(18, 40, 75, 0.08);
}

.buffalo-run-map__zoom-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.buffalo-run-map__zoom-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  color: #12284b;
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 768px) {
  .buffalo-run-map {
    padding: 0;
  }
}
