body {
            font-family: 'Inter', sans-serif;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
            overflow: hidden;
        }
        #map {
            height: 100dvh;
            width: 100dvw;
        }

        #edit-panel {
    position: absolute;
    top: 6rem; /* 96px from the top. Adjust as needed. */
    right: 1rem; /* 16px from the right. */
    z-index: 1200; /* Ensures it's above the map controls. */
}

/* The JavaScript code adds the 'hidden' class from Tailwind.
  This rule ensures our panel respects that.
*/
#edit-panel.hidden {
    display: none;
}


        .trail-label {
            position: absolute;
            font-size: 15px;
            font-weight: 700;
            white-space: nowrap;
            -webkit-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }
        /* Control buttons (top-right / top-left) */
        .control-btn {
            width: 44px;
            height: 44px;
            border-radius: 9999px;
            background: rgba(255,255,255,0.55); /* white at .55 when inactive */
            color: #111827; /* default icon/text color */
            display: flex;
            align-items: center;
            justify-content: center;
            /*box-shadow: 0 6px 18px rgba(2,6,23,0.08);*/
            cursor: pointer;
        }
        .control-btn + .control-btn { margin-top: 8px; }
        .control-btn .material-symbols-outlined { font-size: 20px; color: inherit; }
        .control-btn.active {
            background: rgba(255,255,255,0.85); /* white at .85 when active */
            color: #111827; /* keep icon color consistent */
            box-shadow: 0 6px 18px rgba(29,78,216,0.12);
        }
        /* Menu filter button and options */
        .menu-filter-button {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            background: #fff;
        }
    /* Menu action icon alignment */
    .menu-action { display: inline-flex; align-items: center; gap: 8px; }
    .menu-action svg { width: 18px; height: 18px; flex: 0 0 18px; display: inline-block; }
    .menu-action .material-symbols-outlined { font-size: 18px; line-height: 1; flex: 0 0 18px; display: inline-block; }
    .menu-action .label { line-height: 1; }
        .menu-options { box-shadow: 0 6px 20px rgba(2,6,23,0.06); }
        .menu-options ul { list-style: none; margin: 0; padding: 0; }
        .menu-options li { padding: 8px 12px; }
        .menu-options li:hover { background: #f3f4f6; }
    

   
        #map-logo {
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1200;
            /* pointer-events: none; /* non-interactive */
            opacity: 0.65;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2px;
        }
        #map-logo img { max-height: 60px; width: auto; display: block; }
        @media (min-width: 768px) { #map-logo img { max-height: 60px; } }


    
    
        /* hide menu toggle and the slide-out menu */
        
        /* hide filter buttons inside the menu (in case panel remains) */
        #equipment-btn, #equipment-options { display: none !important; }
        /* hide import/browse actions */
        #menu-import-btn, #menu-browse-btn { display: none !important; }
        /* hide navigation/tracking and report issue buttons */
        #toggle-tracking, #report-issue-btn { display: none !important; }
  

  
    /* 1. Define the style for our custom info window background */
    .custom-infowindow {
        background: rgba(255, 255, 255, 1);
        padding: 12px;
        border-radius: 8px;
        box-shadow: 0 2px 7px 1px rgba(0,0,0,0.2);
        /*backdrop-filter: blur(5px); /* Adds a nice frosted glass effect on supported browsers */
        /*-webkit-backdrop-filter: blur(5px);*/
        pointer-events: auto; /* Allow interaction with the info window */
    }

    /* 2. Hide the default Google Maps info window bubble */
    .gm-style .gm-style-iw-c {
        padding: 0 !important;
        background: none !important;
        box-shadow: none !important;
        pointer-events: none; /* Prevent interaction with the default bubble */
    }
   .gm-style .gm-style-iw-d {
    background: none !important;
    overflow: hidden !important; /* This also prevents unwanted scrollbars */
}


    /* 3. Hide the default pointer/tail */
    .gm-style .gm-style-iw-t {
        opacity: .65 !important;
    }
    .gm-style button.gm-ui-hover-effect {
        display: none !important;
    }
