/**
 * 7DS AeroNav Pro WordPress Plugin Scoped Stylesheet
 * Fully scoped under '.aero-plugin-wrapper' to prevent theme conflicts.
 * Tailored specifically to the 7DS logo brand palette: Crimson Red, Electric Cyan, Sapphire Blue, and Deep Slate.
 */

/* ==========================================================================
   1. Scoped CSS Reset & Variable Presets
   ========================================================================== */

.aero-plugin-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    display: block;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

.aero-plugin-wrapper * {
    box-sizing: border-box !important;
}

/* SLEEK DARK MODE (Default Theme) */
.aero-plugin-wrapper .aeronav-dark {
    --bg-app: #070a13;
    --bg-panel: rgba(13, 20, 38, 0.65);
    --bg-panel-solid: #0d1426;
    --bg-card: rgba(26, 37, 65, 0.45);
    --bg-input: rgba(15, 23, 42, 0.6);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Original Theme Palette Constants */
    --accent-primary: #06b6d4;      /* Cyan */
    --accent-secondary: #8b5cf6;    /* Purple */
    --accent-danger: #ef4444;       /* Crimson Red */
    
    --accent-glow: rgba(6, 182, 212, 0.45);
    --btn-primary-gradient: linear-gradient(135deg, #06b6d4, #8b5cf6);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
    --scrollbar-track: #0b0f19;
    --scrollbar-thumb: #1e293b;
    --map-invert: 0.95;
}

/* CLASSIC LIGHT MODE */
.aero-plugin-wrapper .aeronav-light {
    --bg-app: #f1f5f9;
    --bg-panel: rgba(255, 255, 255, 0.75);
    --bg-panel-solid: #ffffff;
    --bg-card: rgba(241, 245, 249, 0.85);
    --bg-input: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: rgba(15, 23, 42, 0.08);
    
    --accent-primary: #0ea5e9;      /* Sky Blue */
    --accent-secondary: #4f46e5;    /* Indigo */
    --accent-danger: #ef4444;       /* Crimson Red */
    
    --accent-glow: rgba(14, 165, 233, 0.25);
    --btn-primary-gradient: linear-gradient(135deg, #0ea5e9, #4f46e5);
    --shadow-premium: 0 20px 45px rgba(15, 23, 42, 0.08);
    --scrollbar-track: #f1f5f9;
    --scrollbar-thumb: #cbd5e1;
    --map-invert: 0;
}

/* SCENIC OUTDOOR MODE */
.aero-plugin-wrapper .aeronav-outdoor {
    --bg-app: #080c09;
    --bg-panel: rgba(16, 26, 20, 0.7);
    --bg-panel-solid: #101a14;
    --bg-card: rgba(24, 43, 31, 0.5);
    --bg-input: rgba(10, 18, 14, 0.7);
    --text-primary: #f2f7f4;
    --text-secondary: #a3b899;
    --text-muted: #6e8461;
    --border-color: rgba(255, 255, 255, 0.06);
    
    --accent-primary: #10b981;      /* Forest Green */
    --accent-secondary: #f59e0b;    /* Warm Amber */
    --accent-danger: #ef4444;       /* Crimson Red */
    
    --accent-glow: rgba(16, 185, 129, 0.4);
    --btn-primary-gradient: linear-gradient(135deg, #10b981, #f59e0b);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.5);
    --scrollbar-track: #080c09;
    --scrollbar-thumb: #1b2e21;
    --map-invert: 0;
}

/* ==========================================================================
   2. Main Application Scaffold Style Resets
   ========================================================================== */

.aero-plugin-wrapper #aeronav-app {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-family: var(--font-body);
}

/* ==========================================================================
   3. Scoped Control Sidebar (Glassmorphic Pane)
   ========================================================================== */

.aero-plugin-wrapper .aeronav-sidebar {
    position: absolute;
    top: 20px;
    left: 20px;
    bottom: 20px;
    width: 350px;
    z-index: 99;
    background: rgba(13, 20, 38, 0.45) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5) !important;
    display: flex;
    flex-direction: column;
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Sidebar Radial Backlight Nebulae Glows */
.aero-plugin-wrapper .aeronav-sidebar::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.22) 0%, transparent 70%) !important;
    filter: blur(40px) !important;
    z-index: -1;
    pointer-events: none;
}

.aero-plugin-wrapper .aeronav-sidebar::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, transparent 70%) !important;
    filter: blur(40px) !important;
    z-index: -1;
    pointer-events: none;
}

.aero-plugin-wrapper .sidebar-scrollable-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Scrollbars inside plugin wrapper */
.aero-plugin-wrapper .sidebar-scrollable-content::-webkit-scrollbar,
.aero-plugin-wrapper .drawer-body::-webkit-scrollbar {
    width: 6px;
}

.aero-plugin-wrapper .sidebar-scrollable-content::-webkit-scrollbar-track,
.aero-plugin-wrapper .drawer-body::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: var(--border-radius-sm);
}

.aero-plugin-wrapper .sidebar-scrollable-content::-webkit-scrollbar-thumb,
.aero-plugin-wrapper .drawer-body::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--border-radius-sm);
}

/* Sidebar App Header Context */
.aero-plugin-wrapper .sidebar-app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aero-plugin-wrapper .sidebar-app-brand .brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00f0ff, #3b82f6) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.15rem !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.45) !important;
}

.aero-plugin-wrapper .sidebar-app-brand h2 {
    margin: 0 !important;
    font-family: var(--font-heading) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    letter-spacing: -0.02em;
}

.aero-plugin-wrapper .sidebar-app-brand .brand-pro {
    color: #00f0ff !important;
    font-weight: 800;
}

/* Premium Global Search Card */
.aero-plugin-wrapper .global-search-container {
    position: relative;
    width: 100%;
}

.aero-plugin-wrapper .global-search-container .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.aero-plugin-wrapper #global-map-search {
    width: 100% !important;
    background: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    color: #fff !important;
    padding: 10px 12px 10px 38px !important;
    font-size: 0.85rem !important;
    font-family: var(--font-body) !important;
    height: 40px !important;
    transition: var(--transition-fast) !important;
}

.aero-plugin-wrapper #global-map-search:focus {
    outline: none !important;
    border-color: #00f0ff !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.25) !important;
    background: rgba(15, 23, 42, 0.7) !important;
}

/* Connected Location Overview Panel */
.aero-plugin-wrapper .route-overview-card {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    position: relative;
    backdrop-filter: blur(10px);
}

.aero-plugin-wrapper .overview-line-graphics {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 22px;
}

.aero-plugin-wrapper .overview-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem !important;
    color: #fff !important;
}

.aero-plugin-wrapper .overview-dot.origin {
    background: linear-gradient(135deg, #00f0ff, #3b82f6) !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4) !important;
}

.aero-plugin-wrapper .overview-dot.destination {
    background: linear-gradient(135deg, #a855f7, #d946ef) !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4) !important;
}

.aero-plugin-wrapper .overview-connector-dotted {
    flex: 1;
    width: 2px;
    border-left: 2px dotted rgba(255, 255, 255, 0.15);
    margin: 4px 0;
}

.aero-plugin-wrapper .overview-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.aero-plugin-wrapper .overview-row {
    display: flex;
    flex-direction: column;
}

.aero-plugin-wrapper .overview-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aero-plugin-wrapper .overview-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-top: 1px;
}
}

/* ==========================================================================
   4. Dynamic Waypoints List & Autocomplete Box
   ========================================================================== */

.aero-plugin-wrapper .waypoints-section h3 {
    margin: 0 0 10px 0 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--text-muted) !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
}

.aero-plugin-wrapper .waypoints-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    margin-bottom: 10px;
}

/* Connective Line Graphic */
.aero-plugin-wrapper .waypoints-list::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 17px;
    bottom: 20px;
    width: 2px;
    border-left: 2px dashed var(--text-muted);
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}

.aero-plugin-wrapper .waypoint-item {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.aero-plugin-wrapper .waypoint-pin {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 10px;
}

/* Scope colored bullet highlights to match the original style */
.aero-plugin-wrapper .waypoint-pin.origin {
    background-color: #10b981; /* Emerald */
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.aero-plugin-wrapper .waypoint-pin.stop {
    background-color: #3b82f6; /* Blue */
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.aero-plugin-wrapper .waypoint-pin.destination {
    background-color: #ef4444; /* Crimson */
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.aero-plugin-wrapper .waypoint-input-wrapper {
    flex: 1;
    position: relative;
}

.aero-plugin-wrapper .waypoint-input {
    width: 100% !important;
    background: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius-md) !important;
    color: #fff !important;
    padding: 10px 12px !important;
    padding-right: 32px !important;
    font-size: 0.85rem !important;
    font-family: var(--font-body) !important;
    margin: 0 !important;
    height: auto !important;
    transition: var(--transition-fast) !important;
}

.aero-plugin-wrapper .waypoint-item:first-of-type .waypoint-input {
    border-color: rgba(0, 240, 255, 0.25) !important;
}

.aero-plugin-wrapper .waypoint-item:first-of-type .waypoint-input:focus {
    outline: none !important;
    border-color: #00f0ff !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35) !important;
    background: rgba(15, 23, 42, 0.7) !important;
}

.aero-plugin-wrapper .waypoint-item:last-of-type .waypoint-input {
    border-color: rgba(168, 85, 247, 0.25) !important;
}

.aero-plugin-wrapper .waypoint-item:last-of-type .waypoint-input:focus {
    outline: none !important;
    border-color: #a855f7 !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.35) !important;
    background: rgba(15, 23, 42, 0.7) !important;
}

.aero-plugin-wrapper .waypoint-input:focus {
    outline: none !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 10px var(--accent-glow) !important;
    background: rgba(15, 23, 42, 0.7) !important;
}

/* Clear icon */
.aero-plugin-wrapper .input-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    font-size: 0.8rem !important;
    padding: 2px !important;
    display: none;
    box-shadow: none !important;
}

.aero-plugin-wrapper .input-clear-btn:hover {
    color: var(--text-primary) !important;
}

/* Auto Search Results Dropdown List */
.aero-plugin-wrapper .autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 1010;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
    display: none;
}

.aero-plugin-wrapper .suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-fast);
}

.aero-plugin-wrapper .suggestion-item i {
    color: var(--accent-primary);
}

.aero-plugin-wrapper .suggestion-item:hover {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

/* Stop Delete Cross Button */
.aero-plugin-wrapper .remove-stop-btn {
    background: transparent !important;
    border: none !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    padding: 6px !important;
    border-radius: 50% !important;
    transition: var(--transition-fast) !important;
    font-size: 0.9rem !important;
    flex-shrink: 0;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aero-plugin-wrapper .remove-stop-btn:hover {
    color: var(--accent-danger) !important;
    background: rgba(211, 30, 53, 0.1) !important;
}

/* Add stop dash button */
.aero-plugin-wrapper .secondary-action-btn {
    background: var(--bg-card) !important;
    border: 1px dashed var(--border-color) !important;
    color: var(--text-secondary) !important;
    padding: 10px !important;
    width: 100% !important;
    border-radius: var(--border-radius-md) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-family: var(--font-body) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    transition: var(--transition-smooth) !important;
    box-shadow: none !important;
}

.aero-plugin-wrapper .secondary-action-btn:hover {
    color: var(--text-primary) !important;
    border-color: var(--accent-primary) !important;
    background: var(--bg-input) !important;
}

/* ==========================================================================
   5. Routing Controls & Metrics Panel
   ========================================================================== */

.aero-plugin-wrapper .routing-control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Gradient Primary Button themed in 7DS colors */
.aero-plugin-wrapper .primary-action-btn {
    background: var(--btn-primary-gradient) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px !important;
    border-radius: var(--border-radius-md) !important;
    cursor: pointer !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: var(--transition-smooth) !important;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25) !important;
}

.aero-plugin-wrapper .primary-action-btn:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.45) !important;
    filter: brightness(1.15) !important;
}

.aero-plugin-wrapper .primary-action-btn:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

.aero-plugin-wrapper .pulse-glow {
    position: relative;
    overflow: hidden;
}

.aero-plugin-wrapper .pulse-glow::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: pluginShimmer 2.5s infinite;
}

@keyframes pluginShimmer {
    0% { left: -100%; }
    100% { left: 150%; }
}

.aero-plugin-wrapper .clear-btn {
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    padding: 10px !important;
    border-radius: var(--border-radius-md) !important;
    cursor: pointer !important;
    font-family: var(--font-body) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: var(--transition-fast) !important;
    box-shadow: none !important;
}

.aero-plugin-wrapper .clear-btn:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--text-muted) !important;
}

/* Metric Display Cards */
/* Metric Display Panel & Grid (Restructured exactly like reference image) */
.aero-plugin-wrapper .route-metrics-panel {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
    backdrop-filter: blur(10px);
}

.aero-plugin-wrapper .route-metrics-panel.hidden {
    display: none !important;
}

.aero-plugin-wrapper .metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
}

.aero-plugin-wrapper .metric-grid-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.aero-plugin-wrapper .metric-grid-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aero-plugin-wrapper .metric-grid-value {
    font-size: 1.15rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #fff;
    margin-top: 2px;
}

.aero-plugin-wrapper .metric-grid-subvalue {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.aero-plugin-wrapper .text-green {
    color: #10b981 !important;
}

/* Compact Transit Selector (Circular Squarish Buttons) */
.aero-plugin-wrapper .compact-transit-selector {
    display: flex;
    gap: 10px;
    width: 100%;
}

.aero-plugin-wrapper .compact-transit-btn {
    flex: 1;
    height: 40px;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    transition: var(--transition-smooth) !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.aero-plugin-wrapper .compact-transit-btn:hover {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.aero-plugin-wrapper .compact-transit-btn.active {
    color: #00f0ff !important;
    background: rgba(0, 240, 255, 0.08) !important;
    border: 1.5px solid #00f0ff !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3) !important;
}

.aero-plugin-wrapper .compact-transit-btn i {
    font-size: 1.05rem !important;
    margin: 0 !important;
}

/* Fastest Route Label */
.aero-plugin-wrapper .route-descriptor-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: left;
    margin-top: 2px;
}

.aero-plugin-wrapper .directions-toggle-btn {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-family: var(--font-body) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 4px !important;
    transition: var(--transition-fast) !important;
    box-shadow: none !important;
}

.aero-plugin-wrapper .directions-toggle-btn:hover {
    border-color: #00f0ff !important;
    color: #00f0ff !important;
    background: rgba(0, 240, 255, 0.03) !important;
}

.aero-plugin-wrapper .sidebar-system-footer {
    margin-top: auto;
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aero-plugin-wrapper .sidebar-system-footer p {
    margin: 0 !important;
}

/* ==========================================================================
   6. Map Frame & Leaflet Control Styles
   ========================================================================== */

.aero-plugin-wrapper .map-viewport {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
    perspective: 1000px !important; /* Enable 3D CSS perspective space! */
    overflow: hidden;
}

.aero-plugin-wrapper .map-viewport #map {
    width: 100% !important;
    height: 100% !important;
    transform: perspective(1000px) rotateX(0deg) scale(1.0) !important;
    transform-origin: bottom center !important;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Loader Widget */
.aero-plugin-wrapper .map-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(11, 18, 36, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-premium);
    z-index: 1005;
}

.aero-plugin-wrapper .map-loader.hidden {
    display: none !important;
}

.aero-plugin-wrapper .loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 240, 255, 0.15);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: pluginSpin 0.8s linear infinite;
}

.aero-plugin-wrapper .loader-text {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
}

@keyframes pluginSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* General Leaflet Overrides within wrapper */
.aero-plugin-wrapper .leaflet-container {
    background-color: #050811 !important; /* Extremely dark Slate Navy background */
    font-family: var(--font-body) !important;
}

.aero-plugin-wrapper .aeronav-dark .leaflet-tile-container img {
    /* Premium high-contrast white streets on dark canvas styling */
    filter: saturate(0%) brightness(2.8) contrast(3.8) !important;
    opacity: 0.9 !important; /* Let dark navy background bleed through for premium depth */
}

/* Re-adjust zoom controls within the wrapper space */
.aero-plugin-wrapper .leaflet-top.leaflet-left {
    top: 20px !important;
    left: 390px !important;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.aero-plugin-wrapper .leaflet-control-zoom {
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-premium) !important;
    border-radius: var(--border-radius-sm) !important;
    overflow: hidden;
}

.aero-plugin-wrapper .leaflet-control-zoom-in,
.aero-plugin-wrapper .leaflet-control-zoom-out {
    background-color: var(--bg-panel-solid) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.aero-plugin-wrapper .leaflet-control-zoom-in:hover,
.aero-plugin-wrapper .leaflet-control-zoom-out:hover {
    background-color: var(--bg-card) !important;
    color: var(--accent-primary) !important;
}

/* Custom Draggable Pins (Premium Glassmorphic Glowing Circles) */
.aero-plugin-wrapper .custom-route-marker {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 32px;
    height: 32px;
}

.aero-plugin-wrapper .marker-pin-outer {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: -16px !important;
    left: -16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    background: rgba(13, 20, 38, 0.6) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    transition: var(--transition-smooth) !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5) !important;
}

.aero-plugin-wrapper .marker-pin-inner {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    background: transparent !important;
}

.aero-plugin-wrapper .custom-route-marker.origin .marker-pin-outer {
    background: rgba(0, 240, 255, 0.25) !important;
    border-color: #00f0ff !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.65) !important;
}

.aero-plugin-wrapper .custom-route-marker.destination .marker-pin-outer {
    background: rgba(168, 85, 247, 0.25) !important;
    border-color: #a855f7 !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.65) !important;
}

.aero-plugin-wrapper .custom-route-marker.stop .marker-pin-outer {
    background: rgba(59, 130, 246, 0.25) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.65) !important;
}

.aero-plugin-wrapper .marker-pin-shadow {
    display: none !important;
}

.aero-plugin-wrapper .custom-route-marker:hover .marker-pin-outer {
    transform: scale(1.15) !important;
}

/* ==========================================================================
   7. Theme Switcher widget (Top Right)
   ========================================================================== */

.aero-plugin-wrapper .theme-switcher-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 99;
    display: flex;
    background: var(--bg-panel);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    gap: 4px;
}

.aero-plugin-wrapper .theme-switch-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent !important;
    border: none !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    transition: var(--transition-smooth) !important;
    box-shadow: none !important;
}

.aero-plugin-wrapper .theme-switch-btn:hover {
    color: var(--text-primary) !important;
    background: var(--bg-card) !important;
}

.aero-plugin-wrapper .theme-switch-btn.active {
    color: var(--text-primary) !important;
    background: var(--bg-panel-solid) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--border-color) !important;
}

/* ==========================================================================
   8. Turn-by-Step Directions Drawer
   ========================================================================== */

.aero-plugin-wrapper .directions-drawer {
    position: absolute;
    top: 20px;
    right: -390px;
    bottom: 20px;
    width: 350px;
    z-index: 99;
    background: var(--bg-panel);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.aero-plugin-wrapper .directions-drawer.open {
    right: 20px;
}

.aero-plugin-wrapper .drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aero-plugin-wrapper .drawer-header h3 {
    margin: 0 !important;
    font-family: var(--font-heading) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
}

.aero-plugin-wrapper .close-drawer-btn {
    background: transparent !important;
    border: none !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    font-size: 1.1rem !important;
    padding: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: var(--transition-fast) !important;
    box-shadow: none !important;
}

.aero-plugin-wrapper .close-drawer-btn:hover {
    color: var(--text-primary) !important;
    background: var(--bg-card) !important;
}

.aero-plugin-wrapper .drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.aero-plugin-wrapper .empty-directions-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
    gap: 10px;
}

.aero-plugin-wrapper .empty-directions-state i {
    font-size: 2.2rem;
    opacity: 0.35;
}

.aero-plugin-wrapper .empty-directions-state p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0 !important;
}

.aero-plugin-wrapper .nav-steps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aero-plugin-wrapper .nav-step-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.aero-plugin-wrapper .nav-step-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: var(--bg-input);
}

.aero-plugin-wrapper .step-icon-container {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.aero-plugin-wrapper .step-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.aero-plugin-wrapper .step-text {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.aero-plugin-wrapper .step-meta {
    display: flex;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ==========================================================================
   9. Collapsible Sidebar Controls
   ========================================================================== */

.aero-plugin-wrapper .sidebar-toggle {
    position: absolute;
    right: -14px;
    top: 30px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-panel-solid) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: var(--transition-smooth) !important;
    z-index: 102;
}

.aero-plugin-wrapper .sidebar-toggle:hover {
    background: var(--bg-card) !important;
    color: var(--accent-primary) !important;
}

.aero-plugin-wrapper .aeronav-sidebar.collapsed {
    transform: translateX(-360px);
}

.aero-plugin-wrapper .aeronav-sidebar.collapsed .sidebar-toggle {
    transform: rotate(180deg);
}

.aero-plugin-wrapper .aeronav-sidebar.collapsed ~ .map-viewport .leaflet-top.leaflet-left {
    left: 20px !important;
}

/* ==========================================================================
   10. Plugin Scoped Mobile bottom-sheets
   ========================================================================== */

@media (max-width: 768px) {
    .aero-plugin-wrapper {
        border-radius: 12px;
    }

    .aero-plugin-wrapper #aeronav-app {
        flex-direction: column;
    }

    .aero-plugin-wrapper .map-viewport {
        border-radius: 0 0 12px 12px;
    }

    .aero-plugin-wrapper .theme-switcher-overlay {
        top: 20px;
        right: 10px;
    }
    
    .aero-plugin-wrapper .theme-switch-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem !important;
    }

    /* Convert Sidebar to Bottom Drawer Sheet */
    .aero-plugin-wrapper .aeronav-sidebar {
        top: auto;
        left: 10px !important;
        right: 10px !important;
        bottom: 10px;
        width: calc(100% - 20px) !important;
        height: 280px;
        border-radius: var(--border-radius-lg);
        transform: translateY(0);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .aero-plugin-wrapper .sidebar-scrollable-content {
        padding: 14px;
        gap: 14px;
    }

    .aero-plugin-wrapper .sidebar-toggle {
        top: -10px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) rotate(90deg) !important;
        width: 20px;
        height: 20px;
    }

    .aero-plugin-wrapper .aeronav-sidebar.collapsed {
        transform: translateY(240px) !important;
    }
    
    .aero-plugin-wrapper .aeronav-sidebar.collapsed .sidebar-toggle {
        transform: translateX(-50%) rotate(-90deg) !important;
    }

    .aero-plugin-wrapper .leaflet-top.leaflet-left {
        top: 70px !important;
        left: 10px !important;
    }

    /* Floating Step Directions bottom overlay for mobile */
    .aero-plugin-wrapper .directions-drawer {
        top: auto;
        left: 10px !important;
        right: 10px !important;
        bottom: 10px;
        width: calc(100% - 20px) !important;
        height: 250px;
        transform: translateY(110%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .aero-plugin-wrapper .directions-drawer.open {
        transform: translateY(0);
        right: 10px;
    }
}

/* ==========================================================================
   13. GPS Geolocation Pulse & Google Maps Navigation HUD Styles
   ========================================================================== */

/* Custom GPS Blue Pulsating Dot */
.aero-plugin-wrapper .gps-marker-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
}

.aero-plugin-wrapper .gps-dot {
    width: 14px;
    height: 14px;
    background: #0084ff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 132, 255, 0.8);
    position: relative;
    z-index: 10;
}

.aero-plugin-wrapper .gps-pulse {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(0, 132, 255, 0.6);
    border-radius: 50%;
    animation: gpsPulse 2s infinite ease-out;
    pointer-events: none;
    z-index: 9;
}

@keyframes gpsPulse {
    0% {
        transform: scale(0.35);
        opacity: 0;
    }
    30% {
        opacity: 0.8;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* GPS Target Lock Button (Floating Circular glass) */
.aero-plugin-wrapper .gps-lock-btn {
    position: absolute;
    top: 80px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(13, 20, 38, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.05rem !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-premium);
    z-index: 100;
    transition: var(--transition-smooth) !important;
}

.aero-plugin-wrapper .gps-lock-btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.aero-plugin-wrapper .gps-lock-btn.locked {
    color: #fff !important;
    background: #00f0ff !important;
    border-color: #00f0ff !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.6) !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* START NAVIGATION HUD INTERFACE OVERLAYS */

/* Active HUD wrapper rules (Hides sidebar, offsets zoom) */
.aero-plugin-wrapper.nav-active .aeronav-sidebar {
    transform: translateX(-370px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.aero-plugin-wrapper.nav-active .leaflet-top.leaflet-left {
    left: 20px !important;
}

.aero-plugin-wrapper.nav-active .directions-drawer.open {
    right: -390px !important; /* Hide directions drawer during navigation HUD */
}

/* Green top turn instruction bar */
.aero-plugin-wrapper .nav-hud-top {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: calc(100% - 40px);
    max-width: 480px;
    background: #15803d !important; /* Authentic Google Green */
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 1;
}

.aero-plugin-wrapper .nav-hud-top.hidden {
    transform: translateX(-50%) translateY(-100px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.aero-plugin-wrapper .nav-hud-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.25rem !important;
    flex-shrink: 0;
}

.aero-plugin-wrapper .nav-hud-top-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.aero-plugin-wrapper .nav-hud-step-dist {
    font-family: var(--font-heading) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1.2;
}

.aero-plugin-wrapper .nav-hud-step-text {
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Navigation Bottom Stats Sheet */
.aero-plugin-wrapper .nav-hud-bottom {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: calc(100% - 40px);
    max-width: 480px;
    background: rgba(13, 20, 38, 0.85) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 1;
}

.aero-plugin-wrapper .nav-hud-bottom.hidden {
    transform: translateX(-50%) translateY(100px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.aero-plugin-wrapper .nav-hud-bottom-stats {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.aero-plugin-wrapper .nav-hud-bottom-time {
    font-family: var(--font-heading) !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #10b981 !important; /* Green glowing remaining time */
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.aero-plugin-wrapper .nav-hud-bottom-meta {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
}

.aero-plugin-wrapper .nav-hud-exit-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ef4444 !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.05rem !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45) !important;
    transition: var(--transition-smooth) !important;
    flex-shrink: 0;
}

.aero-plugin-wrapper .nav-hud-exit-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.6) !important;
    filter: brightness(1.15) !important;
}

/* Mobile responsive alignment overrides */
@media (max-width: 768px) {
    .aero-plugin-wrapper.nav-active .aeronav-sidebar {
        transform: translateY(290px) !important;
        opacity: 0 !important;
    }
    
    .aero-plugin-wrapper .nav-hud-top {
        top: 15px;
    }
    
    .aero-plugin-wrapper .nav-hud-bottom {
        bottom: 15px;
    }
    
    .aero-plugin-wrapper .gps-lock-btn {
        top: 72px;
    }
}

/* ==========================================================================
   14. 3D Cockpit Viewport & Premium Account Profile Drawer Custom Styles
   ========================================================================== */

/* 3D Cockpit Transform on Active Navigation */
.aero-plugin-wrapper.nav-active .map-viewport #map {
    transform: perspective(1000px) rotateX(46deg) scale(1.24) !important;
    transform-origin: bottom center !important;
}

/* User Account Profile Drawer Inner styles */
.aero-plugin-wrapper .profile-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: var(--border-radius-lg) !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
    position: relative !important;
    overflow: hidden !important;
}

.aero-plugin-wrapper .profile-card::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 60%) !important;
    pointer-events: none !important;
}

.aero-plugin-wrapper .profile-avatar-large {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    border: 3px solid rgba(0, 240, 255, 0.3) !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2) !important;
    object-fit: cover !important;
}

.aero-plugin-wrapper .profile-name {
    font-family: var(--font-heading) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 !important;
}

.aero-plugin-wrapper .profile-badge {
    background: rgba(0, 240, 255, 0.08) !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
    color: #00f0ff !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1) !important;
}

.aero-plugin-wrapper .telemetry-section-title {
    font-family: var(--font-heading) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 15px 0 10px 0 !important;
    text-align: left !important;
}

.aero-plugin-wrapper .telemetry-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
}

.aero-plugin-wrapper .telemetry-item {
    background: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-radius: var(--border-radius-md) !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    text-align: left !important;
    transition: var(--transition-fast) !important;
}

.aero-plugin-wrapper .telemetry-item:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(0, 240, 255, 0.1) !important;
}

.aero-plugin-wrapper .telemetry-label {
    font-size: 0.65rem !important;
    color: var(--text-muted) !important;
    text-transform: uppercase !important;
}

.aero-plugin-wrapper .telemetry-value {
    font-family: var(--font-heading) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.aero-plugin-wrapper .drawer-action-btn {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: var(--text-secondary) !important;
    padding: 10px !important;
    border-radius: var(--border-radius-md) !important;
    cursor: pointer !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    transition: var(--transition-smooth) !important;
    box-shadow: none !important;
}

.aero-plugin-wrapper .drawer-action-btn:hover {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.aero-plugin-wrapper .drawer-action-btn.danger:hover {
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

/* ==========================================================================
   11. Theme Navigation Header & Controls Overlay
   ========================================================================== */

/* Frosted Header Overlay */
.header-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    border-radius: var(--border-radius-md);
    background: rgba(13, 20, 38, 0.45);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

/* Premium Branding styles */
.site-branding .site-title-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.logo-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00f0ff, #8b5cf6) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4) !important;
}

.logo-text {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    color: #fff !important;
    letter-spacing: -0.02em;
}

.logo-text .brand-pro {
    color: #00f0ff !important;
    font-weight: 800;
}

/* Center menu links */
.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 20px;
    margin: 0;
}

.main-navigation a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 16px;
    text-decoration: none !important;
    transition: var(--transition-smooth);
}

.main-navigation a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.03);
}

.main-navigation a.active {
    color: #00f0ff !important;
    background: rgba(0, 240, 255, 0.08) !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15) !important;
}

/* Right tools bar */
.header-tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: var(--text-secondary) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    position: relative;
    transition: var(--transition-smooth);
}

.header-tool-btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
}

.header-user-profile {
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.header-user-profile:hover .user-avatar {
    border-color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.user-status-dot.online {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #0d1426;
    border-radius: 50%;
}

/* ==========================================================================
   12. Desktop Offset Layout Overrides
   ========================================================================== */
@media (min-width: 769px) {
    .aero-plugin-wrapper .aeronav-sidebar {
        top: 96px !important;
    }
    
    .aero-plugin-wrapper .leaflet-top.leaflet-left {
        top: 96px !important;
        left: 390px !important;
    }
    
    .aero-plugin-wrapper .theme-switcher-overlay {
        top: 96px !important;
    }
    
    .aero-plugin-wrapper .directions-drawer {
        top: 96px !important;
    }
}

/* ==========================================================================
   13. Premium Navigation Popovers & Toggle Switches
   ========================================================================== */
.header-tools {
    position: relative !important;
}

.header-popover {
    position: absolute !important;
    top: 55px !important;
    right: 0 !important;
    width: 320px !important;
    background: rgba(13, 20, 38, 0.85) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--border-radius-md) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    z-index: 1005 !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.25s ease, transform 0.25s ease !important;
}

.header-popover.hidden {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    pointer-events: none !important;
    display: none !important;
}

.popover-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 8px !important;
    margin-bottom: 4px !important;
}

.popover-header h4 {
    margin: 0 !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: #fff !important;
}

.popover-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.popover-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 8px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    transition: background 0.2s ease !important;
}

.popover-row:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.popover-row i {
    font-size: 0.9rem !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
}

.text-red {
    color: #ef4444 !important;
}

.text-green {
    color: #10b981 !important;
}

.text-cyan {
    color: #00f0ff !important;
}

.popover-row-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    text-align: left !important;
}

.popover-row-title {
    margin: 0 !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.popover-row-desc {
    margin: 0 !important;
    font-size: 0.7rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.3 !important;
}

/* Switch styling */
.settings-toggle-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 0.8rem !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 4px 0 !important;
}

.aero-switch {
    position: relative !important;
    display: inline-block !important;
    width: 38px !important;
    height: 20px !important;
}

.aero-switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.aero-slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: .3s !important;
    border-radius: 20px !important;
}

.aero-slider:before {
    position: absolute !important;
    content: "" !important;
    height: 14px !important;
    width: 14px !important;
    left: 2px !important;
    bottom: 2px !important;
    background-color: #fff !important;
    transition: .3s !important;
    border-radius: 50% !important;
}

.aero-switch input:checked + .aero-slider {
    background-color: #00f0ff !important;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.4) !important;
}

.aero-switch input:checked + .aero-slider:before {
    transform: translateX(18px) !important;
}
