/**
 * [motai_locations_gallery] — cards 270px + carrusel (flechas si no caben todas).
 */

.motai-locations-gallery {
  --motai-lg-slide: 0;
  --motai-lg-gap: 28px;
  --motai-lg-card-width: 270px;
  --motai-lg-count: 1;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  overflow-x: hidden;
}

.motai-locations-gallery__viewport {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  container-type: inline-size;
  container-name: motai-lg;
  /* pan-y: scroll vertical de la página; horizontal lo gestiona el JS (evita que el navegador se coma el swipe) */
  touch-action: pan-y;
}

.motai-locations-gallery__track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--motai-lg-gap);
  box-sizing: border-box;
  width: max-content;
  max-width: none;
  transform: translateX(
    calc(
      var(--motai-lg-slide) * -1 * (var(--motai-lg-card-width) + var(--motai-lg-gap))
    )
  );
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.motai-locations-gallery__card {
  background: #f2f2f2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex: 0 0 var(--motai-lg-card-width);
  width: var(--motai-lg-card-width);
  min-width: var(--motai-lg-card-width);
  max-width: var(--motai-lg-card-width);
}

.motai-locations-gallery__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e5e5e5;
}

.motai-locations-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
}

.motai-locations-gallery__img--placeholder {
  min-height: 100%;
  background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
}

.motai-locations-gallery__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 auto;
}

.motai-locations-gallery__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.25;
  font-family: "Montserrat", "Poppins", system-ui, -apple-system, sans-serif;
}

.motai-locations-gallery__address-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.motai-locations-gallery__pin {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 2px;
  color: #00b6c8;
}

.motai-locations-gallery__pin svg,
.motai-locations-gallery__pin .motai-locations-gallery__pin-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.motai-locations-gallery__pin svg {
  stroke: #00b6c8;
}

.motai-locations-gallery__address {
  font-size: 0.9rem;
  font-weight: 400;
  color: #5c5c5c;
  line-height: 1.4;
}

.motai-locations-gallery__map-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 25px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  /* Colores/borde: Bricks (.outline.bricks-color-secondary) */
}

/* Navegación (misma idea que motai-services-gallery): abajo a la derecha */
.motai-locations-gallery__nav {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.motai-locations-gallery--has-nav .motai-locations-gallery__nav {
  display: flex;
}

.motai-locations-gallery__nav-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(15, 23, 42, 0.12);
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.motai-locations-gallery__nav-btn:hover,
.motai-locations-gallery__nav-btn:focus-visible {
  background: #cbd5e1;
  color: #0f172a;
  outline: none;
}

.motai-locations-gallery__nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.motai-locations-gallery__nav-btn .motai-locations-gallery__nav-icon,
.motai-locations-gallery__nav-btn svg.motai-lucide-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.motai-locations-gallery__nav-btn svg {
  stroke: currentColor;
}

@media (max-width: 599px) {
  .motai-locations-gallery {
    --motai-lg-gap: 20px;
  }
}
