/* Mapa de ubicación (OpenStreetMap) y botones de "Cómo llegar" */
.kk-map{position:relative;margin-top:40px;border-radius:var(--radius,18px);overflow:hidden;border:1px solid rgba(28,28,28,.1);height:420px;background:#EEF0EC;isolation:isolate}
.kk-map-canvas{position:absolute;inset:0;cursor:pointer;background:#EEF0EC;font-family:var(--body,'Josefin Sans',sans-serif)}
.kk-map-canvas.leaflet-container{font:inherit}
.kk-map .leaflet-tile-pane{filter:saturate(.8) sepia(.06)}
.kk-map .leaflet-control-zoom{border:none;box-shadow:0 6px 18px rgba(28,28,28,.14);border-radius:12px;overflow:hidden}
.kk-map .leaflet-control-zoom a{color:var(--pine,#1C1C1C);width:34px;height:34px;line-height:34px}
.kk-map .leaflet-control-attribution{background:rgba(255,248,240,.85);font-size:10px;border-radius:8px 0 0 0}
/* Placeholder mientras carga */
.kk-map::before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,#EEF0EC 30%,#F6F4EF 50%,#EEF0EC 70%);background-size:200% 100%;animation:kkShimmer 1.4s linear infinite;z-index:0}
.kk-map.kk-map-listo::before,.kk-map.kk-map-fallo::before{display:none}
@keyframes kkShimmer{to{background-position:-200% 0}}
.kk-map-fallo{cursor:pointer;background:#E9EFF9 url("../img/marca/isotipo-mapa.png") center/120px no-repeat}

/* Marcador: tejadillo de Kukihomes */
.kk-pin-wrap{background:none;border:none}
.kk-pin{position:relative;width:84px;height:84px;display:flex;flex-direction:column;align-items:center;cursor:pointer}
.kk-pin-badge{position:relative;z-index:2;margin-top:10px;width:78px;height:46px;border-radius:15px;background:var(--amber,#7699D4);display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(28,28,28,.22);border:2.5px solid #fff;transition:transform .2s ease}
.kk-pin-badge::after{content:"";position:absolute;left:50%;bottom:-8.5px;width:13px;height:13px;background:var(--amber,#7699D4);border-right:2.5px solid #fff;border-bottom:2.5px solid #fff;transform:translateX(-50%) rotate(45deg)}
.kk-roof{display:block;width:62px;height:21px;margin-top:2px;background:center/contain no-repeat;position:relative;z-index:1}
.kk-pin:hover .kk-pin-badge{transform:translateY(-3px)}
.kk-pulse{position:absolute;left:50%;top:66px;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;background:rgba(118,153,212,.45);animation:kkPulse 2.4s ease-out infinite;z-index:1}
@keyframes kkPulse{0%{transform:scale(.6);opacity:.9}100%{transform:scale(4);opacity:0}}

/* Puntos cercanos */
.kk-poi-wrap{background:none;border:none}
.kk-poi{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 4px;border-radius:999px;background:rgba(255,255,255,.95);box-shadow:0 3px 10px rgba(28,28,28,.16);font-size:11.5px;font-weight:600;color:var(--pine,#1C1C1C);white-space:nowrap;cursor:pointer;transition:transform .15s ease}
.kk-poi:hover{transform:scale(1.06)}
.kk-z-low .kk-poi{padding:3px}
.kk-z-low .kk-poi span{display:none}
.kk-poi svg{width:18px;height:18px;padding:3px;border-radius:50%;background:var(--ice,#E9EFF9);fill:none;stroke:var(--amber-deep,#5A7FC0);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:none;box-sizing:content-box}

/* Aviso "toca para abrir" */
.kk-map-hint{position:absolute;left:12px;bottom:12px;z-index:500;display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:999px;background:rgba(28,28,28,.78);color:#fff;font-size:12.5px;font-weight:600;backdrop-filter:blur(6px);text-decoration:none}
.kk-map-hint svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* Dirección y botones bajo el mapa */
.kk-map-foot{margin-top:18px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 20px}
.kk-addr{display:flex;align-items:center;gap:10px;font-size:.98rem;color:var(--pine,#1C1C1C)}
.kk-addr svg{width:20px;height:20px;flex:none;fill:none;stroke:var(--amber-deep,#5A7FC0);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.kk-addr small{display:block;color:var(--stone,#8A8680);font-size:.85rem}
.kk-map-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.kk-map-actions .btn{display:inline-flex;align-items:center;gap:8px}
.kk-map-actions svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.kk-chip{display:inline-flex;align-items:center;gap:7px;padding:10px 16px;border-radius:999px;border:1.5px solid rgba(28,28,28,.14);background:#fff;color:var(--pine,#1C1C1C);font:inherit;font-weight:600;font-size:.9rem;cursor:pointer;transition:border-color .2s,background .2s,transform .2s}
.kk-chip:hover{border-color:var(--amber,#7699D4);transform:translateY(-1px)}
.kk-chip.ok{background:var(--ice,#E9EFF9);border-color:var(--amber,#7699D4)}
.kk-chip[hidden]{display:none}
@media(max-width:640px){
  .kk-map{height:340px;margin-top:28px}
  .kk-map-foot{flex-direction:column;align-items:stretch}
  .kk-map-actions .btn{width:100%;justify-content:center;padding:15px 26px;font-size:1rem}
  .kk-map-actions{gap:8px}
  .kk-chip{flex:1 1 calc(50% - 8px);justify-content:center}
}
@media(prefers-reduced-motion:reduce){.kk-pulse,.kk-map::before{animation:none}}

/* Indicador en el borde para puntos fuera de la vista (p. ej. Pistas y Marchica) */
.kk-edge{position:absolute;z-index:600;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;border-radius:999px;background:#fff;color:var(--pine,#1C1C1C);box-shadow:0 6px 18px rgba(28,28,28,.2);font-size:12.5px;font-weight:700;line-height:1.15;text-decoration:none;white-space:nowrap;transition:box-shadow .2s}
.kk-edge:hover{box-shadow:0 8px 24px rgba(28,28,28,.28)}
.kk-edge[hidden]{display:none}
.kk-edge.kk-edge-left{flex-direction:row}
.kk-edge:not(.kk-edge-left){flex-direction:row-reverse;padding:6px 6px 6px 14px}
.kk-edge small{display:block;font-weight:600;font-size:11px;color:var(--amber-deep,#5A7FC0)}
.kk-edge-arrow{width:28px;height:28px;border-radius:50%;background:var(--amber,#7699D4);display:flex;align-items:center;justify-content:center;flex:none}
.kk-edge-arrow svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.kk-edge-ico{width:18px;height:18px;fill:none;stroke:var(--amber-deep,#5A7FC0);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* Etiqueta a la izquierda del icono (para puntos muy juntos) y subtítulo "Ruta a pie" */
.kk-poi-izq{flex-direction:row-reverse;padding:4px 4px 4px 10px;transform:translateX(calc(-100% + 26px))}
.kk-poi-izq:hover{transform:translateX(calc(-100% + 26px)) scale(1.06)}
.kk-poi span{line-height:1.15}
.kk-poi small{display:block;font-size:10px;font-weight:600;color:var(--amber-deep,#5A7FC0)}
.kk-z-low .kk-poi-izq{transform:none}
