* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f5f8;
  color: #1d1d1f;
}

.app {
  max-width: 520px;
  margin: auto;
  padding: 16px;
}

.header {
  text-align: center;
  margin-bottom: 16px;
}

.header h1 {
  margin-bottom: 6px;
}

.header p {
  margin: 0;
  color: #555;
}

.map-card {
  background: white;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.map {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(90deg, #ddd 1px, transparent 1px),
    linear-gradient(#ddd 1px, transparent 1px);
  background-size: 20% 20%;
  border: 3px solid #222;
  border-radius: 14px;
  overflow: hidden;
}

.map::before {
  content: "MAPA DEMO PISO 1";
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 12px;
  font-weight: bold;
  color: #555;
}

.point {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 6px 8px;
  border-radius: 20px;
  background: #222;
  color: white;
  font-size: 12px;
  z-index: 3;
}

.point-a {
  left: 18%;
  top: 72%;
}

.point-b {
  left: 75%;
  top: 35%;
}

.user-point {
  position: absolute;
  left: 18%;
  top: 72%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: #007aff;
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: bold;
  z-index: 5;
  box-shadow: 0 0 0 8px rgba(0,122,255,0.18);
}

.route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.route line {
  stroke: #ff3b30;
  stroke-width: 2.5;
  stroke-dasharray: 4 3;
}

.panel {
  margin-top: 18px;
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

button {
  width: 100%;
  border: none;
  background: #111;
  color: white;
  font-size: 16px;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
}

.info {
  margin-top: 14px;
  font-size: 14px;
}

.info span {
  display: block;
  margin-top: 4px;
  color: #007aff;
}