/* Poner en el mapa (fase 0, mockups/poner-en-el-mapa.html): la hoja para poner un lugar, la ficha de un lugar sin dueño, el reclamo, el pin
   del mapa y el chip "Nuevo en Wilep". Prefijo pm-; el pin es .w-lugar. Un solo acento (--acc), tinta y grises; nada de emoji. */

/* ── Pin en el mapa: foto redonda con borde punteado (sin foto, el monograma). Sin acento hasta que tenga dueño. ── */
.w-lugar { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px dashed var(--ink, #1F1D1A); background: var(--surf, #fff); color: var(--ink, #1F1D1A);
  display: grid; place-items: center; overflow: hidden; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 3px 10px rgba(31, 29, 26, .25); }
.w-lugar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.leaflet-marker-icon .w-lugar { margin: -6px 0 0 -6px; }
body.radar-on .w-lugar, body.pintando .w-lugar, body.lg-fuera .w-lugar { display: none !important; }

/* ── La hoja ── */
.pm { padding: 2px 2px 8px; }
.pm-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.pm-paso { font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.pm-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surf2, #F4F1EB); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.pm-x .trazo { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pm h3 { font-weight: 400; font-size: 20px; margin: 8px 0 0; line-height: 1.2; }
.pm .sub { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 4px 0 0; }
.pm label.pm-et { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.pm input[type="text"], .pm input[type="tel"] { width: 100%; box-sizing: border-box; min-height: 48px; border: 0; border-radius: 14px; background: var(--field, #F4F1EB); color: var(--ink);
  font: inherit; font-size: 16px; padding: 0 14px; }
.pm input:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }

.pm-foto { display: block; position: relative; margin-top: 12px; cursor: pointer; }
.pm-foto input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pm-foto .caja { aspect-ratio: 4 / 3; border-radius: var(--r-sm, 18px); background: var(--surf2, #F4F1EB); border: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent);
  display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; overflow: hidden; position: relative; }
.pm-foto .caja img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pm-foto .caja .trazo { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; display: block; margin: 0 auto 6px; }
.pm-foto .cambiar { position: absolute; right: 10px; bottom: 10px; background: var(--ink); color: var(--surf); border-radius: 999px; font-size: 12px; padding: 6px 12px; }
.pm-foto.falta .caja { border-color: var(--danger); color: var(--danger); }

.pm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-chips button { font: inherit; font-size: 13px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--field, #F4F1EB); color: var(--ink); cursor: pointer; }
.pm-chips button.on { background: var(--ink); color: var(--surf); }
.pm-opc { margin-top: 14px; padding: 12px; border-radius: var(--r-sm, 18px); background: var(--surf2, #F4F1EB); }
.pm-opc > b { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.pm-opc label.pm-et { margin-top: 10px; }
.pm-opc input[type="text"], .pm-opc input[type="tel"] { background: var(--surf, #fff); }

.pm-punto { margin: 14px 0 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pm-punto b { color: var(--ink); font-weight: 500; }
.pm-punto.mal { color: var(--danger); }
.pm-punto button { font: inherit; font-size: 13px; border: 0; background: var(--ink); color: var(--surf); border-radius: 999px; min-height: 34px; padding: 0 14px; cursor: pointer; }

.pm-boton { width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--acc); color: var(--acc-ink); display: flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 500; font-size: 16px; cursor: pointer; margin-top: 16px; }
.pm-boton.sec { background: var(--surf2, #F4F1EB); color: var(--ink); }
.pm-boton.ink { background: var(--ink); color: var(--surf); }
.pm-boton:disabled { opacity: .5; cursor: default; }
.pm-dos { display: flex; gap: 10px; }
.pm-dos .pm-boton { flex: 1; }

.pm-tarjetas { display: grid; gap: 10px; margin-top: 14px; }
.pm-tarjeta { display: block; width: 100%; text-align: left; font: inherit; border: 2px solid var(--line, rgba(31, 29, 26, .08)); background: var(--surf, #fff); color: var(--ink);
  border-radius: var(--r-sm, 18px); padding: 16px; cursor: pointer; }
.pm-tarjeta b { display: block; font-weight: 500; font-size: 17px; }
.pm-tarjeta small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.pm-tarjeta:hover, .pm-tarjeta:focus-visible { border-color: var(--acc); }
.pm-nota { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 12px 0 0; }
.pm-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--danger-bg); color: var(--danger); font-size: 14px; line-height: 1.4; }

.pm-giro { display: grid; place-items: center; padding: 40px 0; color: var(--muted); font-size: 14px; gap: 12px; text-align: center; }
.pm-giro i { width: 26px; height: 26px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--ink) 15%, transparent); border-top-color: var(--acc); animation: pm-gira .8s linear infinite; }
@keyframes pm-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pm-giro i { animation-duration: 2.4s; } }

/* El lugar parecido (pantalla 6) y la ficha (pantalla 7) */
.pm-par { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px; border-radius: var(--r-sm, 18px); background: var(--surf2, #F4F1EB); }
.pm-par .fig { width: 56px; height: 56px; border-radius: 14px; background: var(--surf, #fff); overflow: hidden; flex: none; display: grid; place-items: center; font-weight: 600; color: var(--ink); }
.pm-par .fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-par b { display: block; font-weight: 500; font-size: 16px; }
.pm-par small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 2px; }

.pm-ficha .grande { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-sm, 18px); background: var(--surf2, #F4F1EB); overflow: hidden; display: grid; place-items: center; font-size: 34px; font-weight: 600; color: var(--ink); }
.pm-ficha .grande img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-ficha .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pm-pil { font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--field, #F4F1EB); color: var(--ink); }
.pm-pil.sin { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.pm-pil.nuevo { background: var(--acc); color: var(--acc-ink); }
.pm-quien { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.pm-quien .av { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--surf); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.pm-dato { margin: 8px 0 0; font-size: 14px; line-height: 1.4; }

.pm-listo { text-align: center; padding-top: 6px; }
.pm-listo .check { width: 56px; height: 56px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; margin: 4px auto 6px; }
.pm-listo .check .trazo { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pm-listo .pm-quien { justify-content: center; }

/* El pin de "Mis lugares" y el chip del perfil */
.pm-mios { display: grid; gap: 8px; }
.pm-mio { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-sm, 18px); background: var(--surf, #fff); box-shadow: var(--csh, 0 1px 3px rgba(31, 29, 26, .08)); cursor: pointer; border: 0; width: 100%; text-align: left; font: inherit; color: var(--ink); }
.pm-mio .fig { width: 48px; height: 48px; border-radius: 12px; background: var(--surf2, #F4F1EB); overflow: hidden; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.pm-mio .fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-mio .tx { flex: 1; min-width: 0; }
.pm-mio .tx b { display: block; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-mio .tx small { display: block; font-size: 13px; color: var(--muted); }
.pm-vacio { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 4px 0 0; }
.pm-chip-nuevo { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); vertical-align: middle; }
.pm-aviso { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surf2, #F4F1EB); color: var(--ink); font-size: 14px; line-height: 1.4; }
