/* v1.0.9: aircraft hit-targets, nearby list, GPS pin, and streamlined navigation. */
#mapViewport #mapMarkers{z-index:12!important;pointer-events:none!important}
#mapViewport #mapMarkers button.airMark.tf19AircraftTap{pointer-events:auto!important;cursor:pointer!important;touch-action:manipulation!important;min-width:48px!important;min-height:48px!important;position:absolute!important;isolation:isolate;z-index:4!important}
#mapViewport #mapMarkers button.airMark.tf19AircraftTap.active{z-index:16!important}
#mapViewport #mapMarkers .airMark .tf18MapGlyph,
#mapViewport #mapMarkers .airMark .tf18MapGlyph *{pointer-events:none!important}
#mapViewport #mapMarkers .airMark .tf19IcaoPlane{display:block!important;width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important;min-width:34px!important;min-height:34px!important;object-fit:contain!important;flex:0 0 34px!important;filter:brightness(0) saturate(100%) invert(86%) sepia(13%) saturate(805%) hue-rotate(174deg) brightness(107%)!important;transform-origin:center!important}
#mapViewport #mapMarkers .airMark.active .tf19IcaoPlane{filter:brightness(0) saturate(100%) invert(62%) sepia(91%) saturate(2421%) hue-rotate(172deg) brightness(104%)!important}
#mapViewport #mapMarkers .airMark .planeText{pointer-events:none!important;color:#f5faff!important;background:#14212fe8!important;border:1px solid #63849b!important;border-radius:9px!important;padding:5px 8px!important;max-width:142px!important;white-space:normal!important;overflow:visible!important;font-size:12px!important}
#mapViewport #mapMarkers .airMark .planeText strong{display:block;font-size:13px!important;overflow-wrap:anywhere}
#mapViewport #mapMarkers .airMark .planeText small{display:block;font-size:12px!important;line-height:1.25!important}
#mapViewport #mapMarkers .observer{z-index:14!important}
/* The old list buttons had no skin and appeared as native white rectangles. */
#r11AircraftList{width:min(420px,calc(100vw - 28px))!important;max-height:calc(100dvh - 110px)!important;overflow:auto!important}
#r11AircraftRows{display:flex!important;flex-direction:column!important;gap:6px!important;padding:8px 12px 18px!important;max-width:100%!important}
#r11AircraftRows .r11AircraftRow{display:block!important;box-sizing:border-box!important;appearance:none!important;width:100%!important;min-height:49px!important;margin:0!important;padding:12px 14px!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:13px!important;font-weight:600!important;line-height:1.4!important;background:#16293d!important;color:#e9f6ff!important;border:1px solid #476885!important;border-radius:10px!important;box-shadow:none!important}
#r11AircraftRows .r11AircraftRow:hover,#r11AircraftRows .r11AircraftRow:focus-visible{background:#254666!important;border-color:#82c8fa!important}
#r11AircraftClose{min-height:44px!important;min-width:44px!important}
#trackedBtn[hidden]{display:none!important}
#routeTabs [hidden]{display:none!important}
#routeTabs{gap:9px!important;padding:0 16px 14px!important}
#routeTabs button{height:44px!important;flex:1!important;background:#142738!important;border-radius:10px!important;color:#ecf6ff!important}
#routeTabs button.active{background:#17547e!important;border-color:#77baf0!important}
#routesPanel #routeList{max-height:min(47dvh,550px)!important;overflow:auto!important}
#routesPanel .routeRow{border-radius:9px!important;background:#182c40!important;padding:12px!important;min-height:48px!important}
#routesPanel .panelFoot{font-size:12px!important}
#routesPanel .panelFoot a{color:#87d0ff!important}
#locationContent #locationChoices .profileEntry{display:flex!important;gap:8px!important;width:100%!important;align-items:stretch!important;margin-bottom:8px!important}
#locationContent #locationChoices .profileEntry button:first-child{flex:1 1 auto!important;min-width:0!important;min-height:52px!important;background:#1b3b51!important;border-radius:9px!important;color:#edf8ff!important;border:1px solid #476a83!important;text-align:left!important;overflow-wrap:anywhere!important}
#locationContent #locationChoices .profileEntry button small{display:block!important;font-size:12px!important;white-space:normal!important}
#locationContent #locationChoices .profileEntry [data-remove-location]{min-width:44px!important}
#locationContent label{font-size:12px!important;line-height:1.4!important}
#locationContent input{min-height:44px!important;font-size:16px!important}
#tf19GpsHint{font-size:12px!important;line-height:1.5!important;padding:0 14px!important}
#tf18DragPin{background:#146aa4!important}
#autoTransitTab:not([hidden]){max-width:min(465px,calc(100vw - 24px))!important;box-shadow:0 12px 45px #000b!important}
#autoTransitTab #autoTransitToggle{min-height:48px!important;font-size:14px!important}
#autoTransitTab .autoTransitEntry{min-height:90px!important;font-size:13px!important;text-align:left!important}
#autoTransitTab .autoTransitEntry .tf15Thumbnail{max-width:86px!important;max-height:86px!important}
/* Prevent sheet titles from colliding with map-caption labels or the nav. */
body.tf19PanelOpen .map-label{visibility:hidden!important}
#aircraftPanel>.panelHeading{isolation:isolate!important}
@media(max-width:760px){
 #r10MobileNav.tf18Nav{padding:5px!important;gap:3px!important;left:max(9px,env(safe-area-inset-left))!important;right:max(9px,env(safe-area-inset-right))!important;z-index:120!important;max-width:calc(100vw - 18px)!important;box-sizing:border-box!important}
 #r10MobileNav.tf18Nav button{font-size:12px!important;min-width:44px!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;padding:4px 2px!important}
 #r10MobileNav.tf18Nav #tf18SearchOpen[hidden]{display:none!important}
 #r10MobileNav.tf18Nav [data-tf18-open="locationBtn"]{min-width:43px!important}
 #mapScreen>.leftDrawer:not([hidden]),#mapScreen>.rightDrawer:not([hidden]),#mapScreen>#r11AircraftList:not([hidden]){top:calc(94px + env(safe-area-inset-top))!important;max-height:calc(100dvh - 109px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;z-index:75!important}
 #mapScreen>#aircraftPanel:not([hidden]){top:calc(94px + env(safe-area-inset-top))!important;max-height:calc(100dvh - 110px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;z-index:76!important}
 #tf18Search{top:calc(94px + env(safe-area-inset-top))!important;z-index:78!important}
 #autoTransitTab:not([hidden]){bottom:calc(14px + env(safe-area-inset-bottom))!important;max-height:35dvh!important;z-index:32!important}
 #autoTransitTab.expanded #autoTransitEntries{max-height:25dvh!important;overflow:auto!important}
 #tf18PinControls{bottom:calc(20px + env(safe-area-inset-bottom))!important;max-width:calc(100vw - 20px)!important}
 #mapViewport #mapMarkers .airMark .tf19IcaoPlane{width:29px!important;height:29px!important;max-width:29px!important;max-height:29px!important;min-width:29px!important;min-height:29px!important}
 #mapViewport #mapMarkers .airMark .planeText{max-width:105px!important;padding:4px 6px!important}
 #mapViewport #mapMarkers .airMark .planeText strong{font-size:12px!important}
}
@media (orientation:landscape) and (max-height:500px){
 #r10MobileNav.tf18Nav{height:52px!important;max-height:52px!important;max-width:calc(100vw - 30px)!important}
 #aircraftPanel:not([hidden]),#r11AircraftList:not([hidden]),#routesPanel:not([hidden]),#locationPanel:not([hidden]){top:calc(59px + env(safe-area-inset-top))!important;max-height:calc(100dvh - 66px - env(safe-area-inset-top))!important;width:min(480px,58vw)!important;right:8px!important;left:auto!important}
}

/* Coordinate grid now overlays the basemap, rather than replacing it. */
#mapViewport #terrainFallback.tf19GridOverlay{z-index:3!important;pointer-events:none!important;opacity:.48!important;background-color:transparent!important;background-image:linear-gradient(to right,#c9e8f5b8 1px,transparent 1px),linear-gradient(to bottom,#c9e8f5b8 1px,transparent 1px)!important;background-size:64px 64px!important}
#offlineLayer.active{border:1px solid #79c6f3!important;background:#194f78!important}
body.tf15-night #mapViewport #terrainFallback.tf19GridOverlay{background-color:transparent!important;filter:none!important;background-image:linear-gradient(to right,#f5aaaa66 1px,transparent 1px),linear-gradient(to bottom,#f5aaaa66 1px,transparent 1px)!important}
