local E, C, L = select(2, ...):unpack()
local S = E:GetModule("Skins")

------------------------------------------------------------------------
-- Taxi / Flight Map Frame
-- Ported from AuroraClassic FrameXML/TaxiFrame.lua (2026-06)
------------------------------------------------------------------------

function S:Taxi()
    if not C.general.skins then return end

    TaxiFrame:DisableDrawLayer("BORDER")
    TaxiFrame:DisableDrawLayer("OVERLAY")
    TaxiFrame.Bg:Hide()
    TaxiFrame.TitleBg:Hide()
    TaxiFrame.TopTileStreaks:Hide()

    S:CreateBackground(TaxiFrame, nil, 3, -23, -5, 3)
    S:ReskinClose(TaxiFrame.CloseButton, TaxiRouteMap)
end

S:AddCallback("Taxi")
