/* Aportes de visitantes en el mapa (19-11-2026). Usa las variables de estilo.css y las piezas de mapa2.css (.m2-btn, .m2-fila, .m2-ico). */
/* Secundario, como "Zonas": el rosa queda para la acción principal de cada pantalla. */

/* Mientras se elige un sitio se aparta el resto de la interfaz del visor */
.m2.ap-on .m2-hoja, .m2.ap-on .m2-arriba, .m2.ap-on .m2-aviso, .m2.ap-on .m2-busq, .m2.ap-on .m2-ctrl > :not(.zoom) { display: none !important; }
.m2.ap-on .m2-ctrl { display: none !important; }

.ap { position: absolute; inset: 0; z-index: 1150; pointer-events: none; }
.ap[hidden] { display: none; }
.ap-cab, .ap-hoja { pointer-events: auto; }
.ap-cab { position: absolute; top: 10px; left: max(12px, var(--izq)); right: max(12px, var(--der)); display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 16px; background: rgba(21, 23, 43, .97); border: 1px solid var(--borde); border-radius: 26px; box-shadow: 0 4px 16px rgba(0, 0, 0, .4); }
.ap-cab p { flex: 1; min-width: 0; margin: 0; font-size: 15px; line-height: 1.3; }
@media (max-width: 359px) { .ap-cab p { font-size: 13.5px; } .ap-cab { padding-left: 12px; } }
.ap-cab .m2-btn { flex: none; min-height: 40px; padding: 0 14px; }

/* Cruz para afinar: anillo fino con marcas y un punto, siempre en el centro de lo que se ve del mapa */
.ap-cruz { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.ap[data-paso="2"] .ap-cruz, .ap[data-paso="3"] .ap-cruz, .ap[data-paso="4"] .ap-cruz { display: none; }
.ap-cruz i, .ap-cruz::before, .ap-cruz::after { position: absolute; content: ""; }
.ap-cruz i { left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(12, 13, 27, .75), inset 0 0 0 1px rgba(12, 13, 27, .75); }
.ap-cruz::before { left: -34px; top: -.75px; width: 68px; height: 1.5px; background: linear-gradient(90deg, #fff 0 14px, transparent 14px 54px, #fff 54px); filter: drop-shadow(0 0 1px #0c0d1b) drop-shadow(0 0 1px #0c0d1b); }
.ap-cruz::after { left: -.75px; top: -34px; width: 1.5px; height: 68px; background: linear-gradient(180deg, #fff 0 14px, transparent 14px 54px, #fff 54px); filter: drop-shadow(0 0 1px #0c0d1b) drop-shadow(0 0 1px #0c0d1b); }
.ap-cruz i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--rosa); box-shadow: 0 0 0 1px #0c0d1b; }

/* Punto elegido mientras se rellena el resto */
.ap-pin i { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--rosa); border: 2px solid #0c0d1b; box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(0, 0, 0, .5); }

/* Hoja propia (abajo en el móvil, columna en ordenador) */
.ap-hoja { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - 74px); display: flex; flex-direction: column; background: var(--panel); border-top: 1px solid var(--borde); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 34px rgba(0, 0, 0, .45); }
.ap[data-paso="2"] .ap-hoja { height: calc((100% - var(--bajo, 0px)) * .64 + var(--bajo, 0px)); }
.ap-cont { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px max(16px, var(--der)) calc(16px + var(--bajo, 0px) + env(safe-area-inset-bottom, 0px)) max(16px, var(--izq)); }
.ap[data-paso="2"] .ap-cont { display: flex; flex-direction: column; min-height: 0; flex: 1; padding-bottom: 0; }
.ap-bot { display: flex; gap: 8px; }
.ap-bot .m2-btn { flex: 1; }
.ap-bot .m2-btn.pri { flex: 1.6; }
.ap-bot .m2-btn:disabled { opacity: .45; cursor: default; }
.ap-nota1 { margin: 0 0 12px; font-size: 15px; line-height: 1.35; min-height: 1em; }
.ap-nota1:empty { display: none; }
.ap-prop { display: flex; align-items: center; gap: 10px; }
.ap-prop > span { display: grid; font-weight: 600; }
.ap-prop small { font-weight: 400; font-size: 14px; }
.ap-aviso { margin: 0 0 12px; font-size: 15px; color: var(--melocoton); }
.ap-cab2 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 17px; }
.ap-filtro { width: 100%; font: inherit; font-size: 17px; color: var(--texto); background: var(--panel2); border: 1px solid var(--borde); border-radius: 999px; padding: 0 18px; height: 44px; outline: 0; -webkit-appearance: none; appearance: none; flex: none; }
.ap-filtro:focus { border-color: var(--rosa); }
.ap-filtro::placeholder, .ap-campo ::placeholder { color: var(--tenue); }
.ap-tipos { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; flex: 1; min-height: 0; padding-bottom: calc(16px + var(--bajo, 0px) + env(safe-area-inset-bottom, 0px)); }
.ap-tipos .m2-sub:first-child { margin-top: 12px; }
.ap-elegido { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 18px; }
.ap-elegido b { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.ap-link { font: inherit; font-size: 15px; color: var(--rosa); background: none; border: 0; padding: 10px 4px; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ap-campo { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14px; color: var(--tenue); }
.ap-campo input, .ap-campo textarea { width: 100%; font: inherit; font-size: 17px; color: var(--texto); background: var(--panel2); border: 1px solid var(--borde); border-radius: 14px; padding: 10px 14px; outline: 0; -webkit-appearance: none; appearance: none; }
.ap-campo input { height: 46px; }
.ap-campo textarea { resize: vertical; min-height: 64px; line-height: 1.35; }
.ap-campo input:focus, .ap-campo textarea:focus { border-color: var(--rosa); }
.ap-privado { margin: 12px 0 0; font-size: 13px; color: var(--tenue); }
.ap-dist { margin: 0 0 14px; font-size: 15px; color: var(--tenue); }
.ap-gracias { margin: 4px 0 16px; font-size: 17px; line-height: 1.4; }

/* En la ficha del sitio */
.ap-mal { display: block; font: inherit; font-size: 14px; color: var(--tenue); background: none; border: 0; padding: 12px 0 4px; min-height: 44px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--borde); text-underline-offset: 3px; }
.ap-mal:hover { color: var(--texto); }

/* Ordenador y móvil tumbado: la hoja ocupa la columna de la izquierda y el aviso va sobre el mapa */
@media (min-width: 900px), (orientation: landscape) and (min-width: 560px) and (max-height: 520px) {
  .ap-cab { left: calc(var(--lado) + 14px); right: auto; max-width: min(560px, calc(100% - var(--lado) - 100px)); top: 14px; }
  .ap-hoja, .ap[data-paso="2"] .ap-hoja { right: auto; top: 0; width: var(--lado); height: auto; max-height: none; border-radius: 0; border-top: 0; border-right: 1px solid var(--borde); box-shadow: none; }
  .ap-cont { padding-top: 20px; }
  .m2.ap-on .m2-ctrl { display: grid !important; }
}

/* Página de revisión del dueño (/_aportes/revisa) */
.apr-entra form { display: grid; gap: 12px; max-width: 360px; margin: 18px 0; }
.apr-entra label { display: grid; gap: 6px; }
.apr input, .apr select { font: inherit; font-size: 16px; color: var(--texto); background: var(--panel2); border: 1px solid var(--borde); border-radius: 10px; padding: 8px 12px; }
.apr-mal { color: var(--melocoton); }
.apr-ok { background: var(--panel2); border: 1px solid var(--rosa); border-radius: 12px; padding: 10px 14px; }
.apr-mapa { height: 46vh; min-height: 280px; border-radius: 14px; background: #2f90b0; margin: 16px 0; }
.apr-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.apr-g { background: var(--panel); border: 1px solid var(--borde); border-radius: 14px; padding: 12px 14px; transition: border-color .3s; }
.apr-g.foco { border-color: var(--rosa); }
.apr-g-cab { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.apr-g-cab i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #0c0d1b; flex: none; }
.apr-votos { margin-left: auto; font-size: 14px; color: var(--tenue); }
.apr-datos { margin: 6px 0; font-size: 14px; color: var(--tenue); }
.apr-ver { font: inherit; font-size: 14px; color: var(--rosa); background: none; border: 0; padding: 0 0 0 6px; cursor: pointer; text-decoration: underline; }
.apr-notas { margin: 6px 0; padding-left: 18px; font-size: 15px; }
.apr-acc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.apr-acc input { flex: 1 1 200px; }
.apr-no { font: inherit; font-size: 15px; color: var(--texto); background: none; border: 1px solid var(--borde); border-radius: 999px; padding: 6px 16px; cursor: pointer; }
