/* Mapa y Datos de Tienda · Z Digital */
.zdsm {
  --zdsm-map-w: 56%;
  --zdsm-gap: 16px;
  --zdsm-pin: #0b57d0;
  --zdsm-divider: #e3e6ee;
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.4;
}
.zdsm *, .zdsm *::before, .zdsm *::after { box-sizing: border-box; }
.zdsm--map-right { flex-direction: row-reverse; }

/* ---------------- Map ---------------- */
.zdsm-map {
  position: relative;
  display: block;
  flex: 0 0 var(--zdsm-map-w);
  max-width: var(--zdsm-map-w);
  min-height: 370px;
  overflow: hidden;
  border: 1px solid #e3e6ee;
  border-radius: 16px;
  background: #eceef2;
  color: inherit;
  text-decoration: none;
  isolation: isolate;
}
.zdsm--map-shadow .zdsm-map { box-shadow: 0 6px 24px rgba(20, 30, 60, .07); }
a.zdsm-map:focus-visible { outline: 3px solid var(--zdsm-pin); outline-offset: 2px; }

.zdsm-illus,
.zdsm-picture,
.zdsm-img,
.zdsm-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.zdsm-img { object-fit: cover; }
.zdsm-picture { margin: 0; }
.zdsm-map--static .zdsm-illus,
.zdsm-map--static .zdsm-img { transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
a.zdsm-map:hover .zdsm-illus,
a.zdsm-map:hover .zdsm-img { transform: scale(1.03); }

/* Illustrated map */
.zdsm-illus {
  --zdsm-bg: #eceef2;
  --zdsm-street: #ffffff;
  --zdsm-park: #d9ebcb;
  --zdsm-ink: #2c3350;
}
.zdsm-i-bg { fill: var(--zdsm-bg); }
.zdsm-i-park { fill: var(--zdsm-park); }
.zdsm-i-st path, .zdsm-i-st2 path, .zdsm-i-av {
  fill: none;
  stroke: var(--zdsm-street);
  stroke-linecap: round;
}
.zdsm-i-st path { stroke-width: 13; }
.zdsm-i-st2 path { stroke-width: 7; }
.zdsm-i-av { stroke-width: 38; }
.zdsm-area {
  position: absolute;
  left: 12%;
  top: 20%;
  z-index: 1;
  color: #2c3350;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1;
  opacity: .85;
  pointer-events: none;
}
.zdsm-i-street {
  fill: var(--zdsm-ink);
  font: 600 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: .02em;
}

/* Pin */
.zdsm-pin {
  position: absolute;
  left: 47%;
  top: 66%;
  z-index: 2;
  width: 32px;
  height: 42px;
  transform: translate(-50%, -100%);
  color: var(--zdsm-pin);
  pointer-events: none;
}
.zdsm-pin-svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 6px rgba(10, 30, 80, .3));
  animation: zdsm-drop .7s cubic-bezier(.34, 1.56, .64, 1) both;
}
.zdsm-pin-pulse {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 30px;
  height: 12px;
  margin-left: -15px;
  border-radius: 50%;
  background: var(--zdsm-pin);
  opacity: .18;
}
.zdsm-pin--pulse .zdsm-pin-pulse { animation: zdsm-pulse 2.2s ease-out infinite; }
.zdsm-pin-label {
  position: absolute;
  left: calc(100% + 8px);
  top: -2px;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--zdsm-pin);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(10, 30, 80, .22);
}
.zdsm-pin-label::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 10px;
  height: 2px;
  margin-top: -1px;
  background: var(--zdsm-pin);
}
@keyframes zdsm-drop {
  from { transform: translateY(-18px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes zdsm-pulse {
  0% { transform: scale(.6); opacity: .35; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Badge */
.zdsm-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  color: #1b1f2e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(20, 30, 60, .1);
  pointer-events: none;
}

/* Deferred (click to load) embed */
.zdsm-map--deferred .zdsm-iframe { visibility: hidden; }
.zdsm-map--deferred.is-loaded .zdsm-iframe { visibility: visible; }
.zdsm-map--deferred.is-loaded .zdsm-illus,
.zdsm-map--deferred.is-loaded .zdsm-load { display: none; }
.zdsm-load {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--zdsm-pin);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(10, 30, 80, .25);
  transition: transform .2s ease;
}
.zdsm-load:hover { transform: translate(-50%, -50%) scale(1.04); }
.zdsm-load .zdsm-ico { color: #fff; }
.zdsm-map--empty { display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: #555; }

/* ---------------- Card ---------------- */
.zdsm-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 26px 28px;
  border: 1px solid #e3e6ee;
  border-radius: 16px;
  background: #fff;
  color: #1f2433;
}
.zdsm--card-shadow .zdsm-card { box-shadow: 0 6px 24px rgba(20, 30, 60, .06); }

.zdsm-block + .zdsm-block {
  margin-top: var(--zdsm-gap);
}
.zdsm--dividers .zdsm-block + .zdsm-block {
  padding-top: var(--zdsm-gap);
  border-top: 1px solid var(--zdsm-divider);
}

.zdsm-name {
  margin: 0 0 4px;
  padding: 0;
  color: #1b1f5e;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}
.zdsm-address {
  margin: 0;
  color: #1f2433;
  font-size: 16px;
}
.zdsm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  background: #0b57d0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.zdsm-btn:hover, .zdsm-btn:focus-visible {
  background: #0842a0;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11, 87, 208, .28);
}
.zdsm-arrow { width: 18px; height: 18px; transition: transform .2s ease; }
.zdsm-btn:hover .zdsm-arrow { transform: translateX(3px); }

.zdsm-hours-title {
  margin: 0 0 10px;
  color: #1b1f5e;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}
.zdsm-season + .zdsm-season { margin-top: 10px; }
.zdsm-pill {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 12px;
  border-radius: 7px;
  background: #dbe9fb;
  color: #1b1f5e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.zdsm-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #1f2433;
  font-size: 16px;
  line-height: 1.45;
}
.zdsm-lines li { margin: 0; padding: 0; }

.zdsm-contacts { margin: 0; padding: 0; list-style: none; }
.zdsm-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: #1f2433;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.zdsm-contact + .zdsm-contact { margin-top: 6px; }
.zdsm-contact a { color: inherit; text-decoration: none; transition: color .2s ease; }
.zdsm-contact a:hover { color: #0b57d0; }
.zdsm-ico { flex: 0 0 auto; width: 18px; height: 18px; color: #1b1f5e; }

/* ---------------- Responsive stacking ---------------- */
@media (max-width: 1024px) {
  .zdsm--stack-tablet { flex-direction: column; }
  .zdsm--stack-tablet .zdsm-map { flex: 0 0 auto; max-width: 100%; width: 100%; }
  .zdsm--stack-tablet.zdsm--card-first .zdsm-card { order: -1; }
}
@media (max-width: 767px) {
  .zdsm--stack-mobile { flex-direction: column; }
  .zdsm--stack-mobile .zdsm-map { flex: 0 0 auto; max-width: 100%; width: 100%; }
  .zdsm--stack-mobile.zdsm--card-first .zdsm-card { order: -1; }
  .zdsm--btn-full .zdsm-btn { display: flex; justify-content: center; width: 100%; }
  .zdsm-name { font-size: 20px; }
  .zdsm-pin-label { font-size: 13px; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .zdsm-pin-svg, .zdsm-pin--pulse .zdsm-pin-pulse { animation: none !important; }
  .zdsm-map--static .zdsm-illus, .zdsm-map--static .zdsm-img { transition: none !important; }
}
