/* =========================================================
   Puntos de Venta – Public Styles
   Design: split panel – list left / satellite map right
   ========================================================= */

:root {
  --pdv-primary: #7a1e2e;
  --pdv-primary-dark: color-mix(in srgb, var(--pdv-primary) 80%, #000 20%);
  --pdv-text: #1a1a1a;
  --pdv-muted: #555;
  --pdv-border: #e0e0e0;
  --pdv-bg: #ffffff;
  --pdv-radius: 50%;
  --pdv-font-title: 'Arial Black', 'Franklin Gothic Heavy', Impact, sans-serif;
}

/* ── Wrapper ──────────────────────────────────────── */
.pdv-wrapper {
  display: flex;
  width: 100%;
  min-height: 480px;
  background: var(--pdv-bg);
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  border-top: 5px solid var(--pdv-primary);
  border-bottom: 5px solid var(--pdv-primary);
}

/* ── List Panel ───────────────────────────────────── */
.pdv-list-panel {
  flex: 0 0 44%;
  max-width: 44%;
  padding: 48px 40px 40px 40px;
  overflow-y: auto;
  box-sizing: border-box;
}

.pdv-title {
  font-family: var(--pdv-font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 32px 0;
  line-height: 1;
  color: var(--pdv-text);
}

/* ── Items ────────────────────────────────────────── */
.pdv-list {
  display: flex;
  flex-direction: column;
}

.pdv-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--pdv-border);
  cursor: pointer;
  transition: background 0.15s;
}

.pdv-item:first-child {
  border-top: 1px solid var(--pdv-border);
}

.pdv-item:hover,
.pdv-item:focus,
.pdv-item.is-active {
  outline: none;
  background: rgba(0,0,0,0.025);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
}

.pdv-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pdv-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pdv-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdv-item-address {
  font-size: 0.82rem;
  color: var(--pdv-muted);
  line-height: 1.4;
}

/* ── Plus Button ──────────────────────────────────── */
.pdv-item-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: var(--pdv-radius);
  background: var(--pdv-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  padding: 0;
}

.pdv-item-btn:hover {
  background: var(--pdv-primary-dark, #5e1622);
}

.pdv-item.is-active .pdv-item-btn {
  transform: rotate(45deg);
}

/* ── Map Panel ────────────────────────────────────── */
.pdv-map-panel {
  flex: 1 1 0;
  min-height: 480px;
  position: relative;
}

.pdv-map {
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.pdv-map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  color: var(--pdv-muted);
  text-align: center;
}

/* ── Info Window ──────────────────────────────────── */
.pdv-infowindow {
  font-family: Arial, Helvetica, sans-serif;
  min-width: 200px;
  max-width: 280px;
}

.pdv-infowindow h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px 0;
  color: #1a1a1a;
}

.pdv-infowindow p {
  margin: 4px 0;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.4;
}

.pdv-infowindow a {
  color: var(--pdv-primary, #7a1e2e);
  text-decoration: none;
}

.pdv-infowindow a:hover {
  text-decoration: underline;
}

/* ── Empty State ──────────────────────────────────── */
.pdv-empty {
  color: var(--pdv-muted);
  font-style: italic;
  padding: 12px 0;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .pdv-wrapper {
    flex-direction: column;
  }

  .pdv-list-panel {
    flex: none;
    max-width: 100%;
    padding: 32px 24px 24px;
  }

  .pdv-map-panel {
    min-height: 320px;
  }

  .pdv-map {
    min-height: 320px;
  }
}

@media (max-width: 480px) {
  .pdv-list-panel {
    padding: 24px 16px 16px;
  }

  .pdv-title {
    font-size: 2rem;
  }
}
