/* Mapa das unidades (componente do novo.tamandare.com). */
#tam-unidades{--blue:#4bd3ff;position:relative;isolation:isolate;width:100%;max-width:960px;height:490px;margin:auto;overflow:hidden;border-radius:22px;background:transparent;color:#ecf8ff;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;border:0;box-sizing:border-box}
#tam-unidades *,#tam-unidades *::before,#tam-unidades *::after{box-sizing:border-box}
#tam-unidades [hidden]{display:none!important}
#tam-unidades button,#tam-unidades a{font-family:inherit;-webkit-tap-highlight-color:transparent}
#tam-unidades button{cursor:pointer;margin:0;letter-spacing:normal;text-transform:none}
#tam-unidades button:focus-visible,#tam-unidades a:focus-visible{outline:2px solid #5ddcff;outline-offset:3px}
#tam-unidades .tm-stage,#tam-unidades .tm-map{position:absolute;inset:0;width:100%;height:100%}
#tam-unidades .tm-map canvas{max-width:none!important;outline:none}
#tam-unidades .tm-header{position:absolute;z-index:3;top:12px;left:12px;right:12px;display:flex;justify-content:space-between;gap:10px;pointer-events:none}
#tam-unidades .tm-brand,#tam-unidades .tm-count,#tam-unidades .tm-tools,#tam-unidades .tm-list button{background:rgba(15,72,110,.62);backdrop-filter:blur(14px) saturate(140%);-webkit-backdrop-filter:blur(14px) saturate(140%);border:1px solid rgba(144,218,255,.38);box-shadow:0 5px 20px #0003,inset 0 1px 0 #ffffff1f}
#tam-unidades .tm-brand{padding:8px 11px;border-radius:11px}
#tam-unidades .tm-brand small{display:block;font-size:7px;font-weight:650;letter-spacing:.9px;color:#bde8ff}
#tam-unidades .tm-brand strong{display:block;font-size:14px;line-height:1.35;color:white}
#tam-unidades .tm-count{display:flex;align-items:center;gap:5px;border-radius:11px;padding:7px 10px;align-self:start}
#tam-unidades .tm-count b{font-size:23px;color:#65dbff;line-height:1}
#tam-unidades .tm-count span{font-size:7px;line-height:1.25;color:#e1f6ff}
#tam-unidades .tm-tools{position:absolute;z-index:4;right:12px;top:80px;display:flex;flex-direction:column;padding:3px;gap:2px;border-radius:12px}
#tam-unidades .tm-tools button{display:grid;place-items:center;width:34px;height:35px;padding:8px;border:0;border-radius:7px;background:transparent;color:#e9faff}
#tam-unidades .tm-tools button:hover{background:#75d4ff30}
#tam-unidades .tm-tools button:disabled{opacity:.3;cursor:default}
#tam-unidades .tm-tools svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#tam-unidades .tm-list{position:absolute;z-index:4;left:12px;right:12px;bottom:24px;display:flex;flex-wrap:wrap;justify-content:center;gap:6px;pointer-events:none}
#tam-unidades .tm-list button{pointer-events:auto;display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:8px 11px;color:#f1fbff;font-size:11px;line-height:1.25;font-weight:650;border-radius:20px}
#tam-unidades .tm-list button::before{content:"";flex:none;width:6px;height:6px;background:#ff2854;border-radius:50%;box-shadow:0 0 8px #ff285450}
#tam-unidades .tm-list button:hover,#tam-unidades .tm-list button[aria-pressed="true"]{background:#146b9dbf;border-color:#80e1ff}
#tam-unidades .tm-status{position:absolute;z-index:2;top:65px;left:15px;right:70px;margin:0;font-size:11px;color:#c6eaff;line-height:1.4}
#tam-unidades .maplibregl-popup{z-index:5;font-family:inherit}
#tam-unidades .maplibregl-popup-content{padding:8px;border-radius:13px;background:#fff;color:#193248;box-shadow:0 12px 35px #0007}
#tam-unidades .maplibregl-popup-anchor-bottom .maplibregl-popup-tip{border-top-color:#fff;border-top-width:14px;border-left-width:13px;border-right-width:13px}
#tam-unidades .tm-balloon{display:grid;grid-template-columns:41% minmax(0,1fr);gap:12px;min-height:154px}
#tam-unidades .tm-photo{display:block;width:100%;height:100%;min-height:154px;object-fit:cover;border-radius:7px;background:#d5e9f4}
#tam-unidades .tm-copy{position:relative;padding:7px 3px 4px 0;min-width:0;display:flex;flex-direction:column;align-items:stretch}
#tam-unidades .tm-copy small{display:flex;align-items:center;gap:5px;color:#516477;font-size:10px;font-weight:650;padding-right:22px}
#tam-unidades .tm-copy small::before{content:"";width:8px;height:8px;border-radius:50%;background:#ed2250}
#tam-unidades .tm-copy h3{font-size:24px;line-height:1.1;letter-spacing:-.5px;margin:5px 15px 6px 0;color:#0e2738;font-weight:800}
#tam-unidades .tm-copy p{font-size:11px;line-height:1.5;color:#526674;margin:0 0 10px;overflow-wrap:anywhere}
#tam-unidades .tm-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:auto;width:100%}
#tam-unidades .tm-route,#tam-unidades .tm-tour{display:flex;align-items:center;justify-content:center;min-width:0;min-height:36px;margin:0;text-align:center;border-radius:12px;padding:8px 4px;color:white!important;text-decoration:none!important;font-size:9px;font-weight:750;line-height:1.25;overflow-wrap:anywhere;transition:filter .2s ease}
#tam-unidades .tm-route{background:#ed1745}
#tam-unidades .tm-tour{background:#087da5}
#tam-unidades .tm-route:hover,#tam-unidades .tm-tour:hover{filter:brightness(1.1)}
#tam-unidades .tm-close{position:absolute;right:0;top:0;width:24px;height:24px;padding:0;background:transparent;border:0;color:#6a7882;font-size:21px;line-height:1}
#tam-unidades .tm-attribution{position:absolute;bottom:4px;right:12px;left:12px;text-align:right;z-index:3;font-size:8px;line-height:12px;color:#7593a5;pointer-events:none}
#tam-unidades .tm-attribution a{pointer-events:auto;color:inherit;text-decoration:none}
@media(max-width:520px){#tam-unidades{height:490px;border-radius:17px}#tam-unidades .tm-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;left:10px;right:10px}#tam-unidades .tm-list button{font-size:10px;padding:7px 4px;min-height:34px}#tam-unidades .tm-balloon{gap:8px;grid-template-columns:36% minmax(0,1fr);min-height:145px}#tam-unidades .tm-photo{min-height:145px}#tam-unidades .tm-copy h3{font-size:20px}#tam-unidades .tm-copy p{font-size:10px}#tam-unidades .tm-tools{right:10px}#tam-unidades .tm-brand small{font-size:6px}#tam-unidades .tm-brand strong{font-size:13px}#tam-unidades .tm-route,#tam-unidades .tm-tour{font-size:8px;padding:8px 3px}}
@media(max-width:340px){#tam-unidades .tm-count span{display:none}#tam-unidades .tm-copy h3{font-size:17px}#tam-unidades .tm-balloon{grid-template-columns:32% minmax(0,1fr)}}
#tam-unidades .tm-hover{pointer-events:none;z-index:6}
#tam-unidades .tm-hover .maplibregl-popup-content{padding:8px 12px;border-radius:8px;font-size:12px;font-weight:750;line-height:1.3;white-space:nowrap;color:#123b58;background:#fff;box-shadow:0 4px 16px #0005}
#tam-unidades .tm-hover .maplibregl-popup-tip{border-top-width:7px;border-left-width:7px;border-right-width:7px}
