.vmc-map-pin {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(28,27,26,0.25);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vmc-map-pin::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  transform: rotate(45deg);
}
.vmc-map-pin:hover {
  transform: rotate(-45deg) scale(1.25);
  z-index: 10;
}
.vmc-map-pin--place, .vmc-map-pin--lugar { background: var(--jade); }
.vmc-map-pin--event, .vmc-map-pin--evento { background: var(--rosa); }
.vmc-map-pin--experience, .vmc-map-pin--experiencia { background: var(--amber); }
.vmc-map-pin--neighborhood, .vmc-map-pin--barrio { background: var(--terra); }

.vmc-map-popup {
  width: 220px;
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-body, "Inter", sans-serif);
}
.vmc-map-popup__img {
  width: 100%;
  height: 100px;
  background-size: cover;
  background-position: center;
}
.vmc-map-popup__body {
  padding: 10px 12px;
}
.vmc-map-popup__tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--rosa, var(--rosa));
  letter-spacing: 0.08em;
}
.vmc-map-popup__title {
  margin: 4px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
}
.vmc-map-popup__meta {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: var(--muted, #8A8175);
}

.vmc-map-floating-header {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 15;
  pointer-events: none;
}

.vmc-map-controls-bar {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  pointer-events: none;
}
.vmc-map-controls-bar > * {
  pointer-events: auto;
}

.vmc-map-mode-toggle {
  display: inline-flex;
  background: #ffffff;
  padding: 4px;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.vmc-map-mode-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-family: var(--font-sans, inherit);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft, #4B5563);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.vmc-map-mode-btn.is-active {
  background: #0F172A;
  color: #ffffff;
}

.vmc-map-route-selector {
  display: inline-flex;
}
.vmc-route-select {
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #D90429;
  color: #0F172A;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(217, 4, 41, 0.15);
  outline: none;
}

.vmc-waypoint-pin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #D90429;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(217, 4, 41, 0.4);
  border: 2.5px solid #ffffff;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vmc-waypoint-pin:hover {
  transform: scale(1.2);
  z-index: 20;
}

.vmc-metro-pin {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #0072CE;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.72rem;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.vmc-route-summary-card {
  position: absolute;
  bottom: 24px;
  left: 16px;
  width: calc(100% - 32px);
  max-width: 380px;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 15;
  font-family: var(--font-sans, inherit);
  animation: vmcSlideUp 0.3s ease;
}
@keyframes vmcSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.vmc-route-summary-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.vmc-route-summary-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #D90429;
  background: rgba(217, 4, 41, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.vmc-route-summary-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
}
.vmc-route-close-btn {
  background: transparent;
  border: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: #94A3B8;
  cursor: pointer;
  padding: 2px 6px;
}
.vmc-route-close-btn:hover {
  color: #0F172A;
}

.vmc-route-metrics {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  background: #F8FAFC;
  border-radius: 10px;
  margin-bottom: 12px;
  align-items: center;
}
.vmc-route-metric {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}
.vmc-route-stops-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: #64748B;
}

.vmc-route-steps-list {
  max-height: 130px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding-right: 4px;
}
.vmc-route-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #1E293B;
}
.vmc-route-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #D90429;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vmc-route-step-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.vmc-route-actions {
  display: flex;
  gap: 8px;
}
.vmc-route-gmaps-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  background: #D90429;
  color: #ffffff;
  border: 0;
}
