    *, *::before, *::after { box-sizing: border-box; }
    :root { --sidebar-bg:#003366; --accent:#005fcc; }
    html, body { height:100%; margin:0; font-family:Arial, sans-serif; background:#f4f4f4; }
    #container { position:relative; display:flex; height:100%; width:100%; }

    .visually-hidden {
    position: absolute !important;
    width: 1px; 
    height: 1px; 
    padding: 0; 
    margin: -1px; 
    overflow: hidden; 
    clip: rect(0, 0, 0, 0); 
    white-space: nowrap; 
    border: 0;
  }


  .popover-content p a {
    color: #006DE0;
  }

    gmp-map-3d { flex:1; height:100%; width:100%; }
    gmp-popover { --gmp-popover-max-width: 320px; }
    .popover-content img { width:100%; height:auto; border-radius:8px; }

    /* === SIDEBAR BASE === */
    #sidebar {
      position: absolute;
      left: 0;
      bottom: 80px; /* mobile footer height offset */
      width: 100%;
      max-height: 75%;
      background: var(--sidebar-bg);
      color: white;
      display: flex;
      flex-direction: column;
      transform: translateY(100%);
      transition: transform 0.3s ease;
      border-top-left-radius: 16px;
      border-top-right-radius: 16px;
      box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.4);
      z-index: 2500;
    }
    #sidebar.active { transform: translateY(0); }

    .sidebar-content {
      overflow-y: auto;
      padding: 10px;
      flex: 1;
    }

    /* --- Marker list items --- */
    .marker-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px;
      background: #004080;
      border-radius: 10px;
      margin-bottom: 8px;
      cursor: pointer;
      transition: background 0.3s;
    }
    .marker-item:hover { background: #005fcc; }
    .marker-item img {
      width: 60px;
      height: 60px;
      border-radius: 8px;
      object-fit: cover;
    }
    .marker-item span {
      flex: 1;
      font-size: 1rem;
      font-weight: 500;
      color: #fff;
    }

    .marker-details {
      display: none;
      background: #00264d;
      padding: 10px;
      border-left: 3px solid var(--accent);
      border-radius: 0 0 10px 10px;
      margin-bottom: 8px;
    }
    .marker-item.active + .marker-details { display: block; }
    .marker-details h3 {
      margin-top: 0;
      font-size: 1rem;
      font-weight: bold;
      color: #fff;
    }
    .marker-details .info-block {
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }
    .marker-details .info-block img {
      width: 100px;
      height: 100px;
      border-radius: 8px;
      object-fit: cover;
    }
    .marker-details .info-block p {
      margin: 0;
      font-size: 0.9rem;
      line-height: 1.3;
      color: #ddd;
    }

    .links {
      display: grid;
      gap: 8px;
      margin-top: 10px;
    }
    .links a {
      display: block;
      text-align: center;
      background: var(--accent);
      color: #fff;
      text-decoration: none;
      padding: 8px;
      border-radius: 6px;
      transition: background 0.2s;
    }
    .links a:hover { background: #fff; color: var(--sidebar-bg); }

    /* === FOOTER BAR (MOBILE) === */
    .footer-bar {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 80px;
      background: #002b5c;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 16px;
      border-top: 1px solid rgba(255,255,255,0.2);
      z-index: 3000;
    }
    .footer-bar .map-logo img {
      width: 48px;
      height: 48px;
      border-radius: 4px;
    }
    .footer-bar h2 {
      font-size: 1.2rem;
      margin: 0;
      flex: 1;
      padding-left: 10px;
    }

    .chevron-btn {
      background: var(--accent);
      color: #fff;
      border: none;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      font-size: 1.2rem;
      cursor: pointer;
      transition: transform 0.3s ease, background 0.3s ease;
    }
    .chevron-btn:hover { background:#004aa6; }
    .chevron-btn.active { transform:rotate(360deg); }

          .map-logo, .ttl {display: none;}
          .map-logo-mobile img {
    max-width: 60px;
}

.desktop-toggle {
  display: none;
}

/* === Search Bar === */
.search-bar {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  background: #002b5c;
}
.search-bar input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* === Resource Pills === */
.resource-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}


.icon-legend {
  background: #002b5c;
  color: #fff;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.legend-title {
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 6px;
}

.legend-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.legend-list[style*="display: none"] {
  visibility: hidden;
}

.parking-legend {
  background: #002b5c;
  color: #fff;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  margin-top: 6px; /* <-- add this for spacing from resources */
}


ul#parkingList button img {
    max-width: 40px;
}

/* === Collapsible Legend === */
.legend-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 0.95rem;
  font-weight: bold;
  padding: 10px 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.legend-toggle:hover,
.legend-toggle:focus {
  background: rgba(255, 255, 255, 0.15);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.legend-toggle i {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

/* Hover / focus effect for individual legend items */
.legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 6px;
  border-radius: 6px;
  cursor: default;
  transition: background 0.2s ease;
}

.legend-icon i {
  font-size: 1.5rem;
}



.legend-list li {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  flex-direction: column;
  text-align: center;
  margin: 1em;
}

.legend-icon i {
  font-size: 1.5rem;
}

.resource-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.icon-pill {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.icon-pill:hover,
.icon-pill:focus {
  background: rgba(255,255,255,0.2);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.popover-content .icon-pill {
    color: #003366;
}

.legend-item.active .icon-pill {
  background: rgba(255,255,255,0.3);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.close-details-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  float: right;
  cursor: pointer;
  transition: color 0.2s ease;
}
.close-details-btn:hover,
.close-details-btn:focus {
  color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


    /* === DESKTOP LAYOUT === */
    @media (min-width: 769px) {
      .desktop-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    background: white;
    color: var(--sidebar-bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.3s ease, background 0.3s ease;
  }
  .desktop-toggle:hover { background: #004aa6; color: white; }
  .desktop-toggle.active { transform: rotate(360deg); }

  /* Collapsed sidebar state */
  #sidebar.collapsed {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  /* When collapsed, move toggle button slightly outward */
  #sidebar.collapsed .desktop-toggle {
    position: absolute;
    right: -40px;
    top: 20px;
    z-index: 4000;
  }
      #sidebar {
        top: 0;
        bottom: 0;
        width: 320px;
        transform: translateY(0);
        border-radius: 0;
        max-height: none;
        box-shadow: none;
      }
            .map-logo, .ttl {display: block;}

      /* Add header inside sidebar for desktop */
      .sidebar-header {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #002b5c;
        padding: 14px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
      }
      .sidebar-header .map-logo img {
        width: 48px;
        height: 48px;
        border-radius: 4px;
      }
      .sidebar-header h2 {
        margin: 0;
        font-size: 1.3rem;
        flex: 1;
      }

      .footer-bar { display: none; } /* hide footer on desktop */
    }
    .hangtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.marker-details .info-block .hangtags .hangtag-img, .popover-content .hangtags img.hangtag-img{
  width: 38px;
  height: auto;
}

.hangtag-label {
  display: block;
  color: #fff;
  font-size: 0.85rem;
  margin: 4px;
}
s
.legend-list .legend-icon i {
  font-size: 2rem;
}

.parking-legend .legend-list .legend-icon i {
  font-size: 2rem;
}

.popover-content .hangtags i {
    font-size: 2em;
    padding: .15em;
}

.custom-marker {
  width: 38px;
  height: 38px;
  background: #333;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}
.custom-marker i {
  pointer-events: none;
}

.category-legend {
  background:#002b5c;
  color:white;
  padding:10px 14px;
  border-bottom:1px solid rgba(255,255,255,0.2);
}

.category-list {
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:10px;
}

.category-item {
  text-align:center;
  cursor:pointer;
  padding:8px;
  border-radius:6px;
  transition:background .2s;
  font-size: 0.8rem;
}

.category-item img {
  width:34px;
  height:34px;
  object-fit:contain;
  pointer-events:none;
}

.category-item.active {
  background:rgba(255,255,255,.3);
}

.category-toggle {
  background:transparent;
  border:none;
  width:100%;
  color:white;
  text-align:left;
  font-size:0.95rem;
  font-weight:bold;
  display:flex;
  justify-content:space-between;
  cursor:pointer;
  padding:10px 0;
}

.category-toggle:hover {
  background:rgba(255,255,255,0.15);
}

button#clearFiltersBtn {
  background:var(--accent); 
  border:none; padding:6px 10px; 
  border-radius:6px; 
  cursor:pointer; 
  color:white;
}

button#clearFiltersBtn:hover {
    background: #fff;
    color: var(--sidebar-bg);
}

.icon-pill {
    cursor: unset;
}

.hangtags i:hover,
.icon-pill:hover {
    filter: brightness(1.2);
    cursor: pointer;
}

.location-details p a {
    color: white;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.popover-close-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
}

.popover-close-btn:hover {
  background: rgba(0,0,0,0.8);
}

#poiMask {
  position: absolute;
  inset: 0;
  z-index: 2; /* ABOVE the map, BELOW your markers/sidebar */
  
  pointer-events: none; /* map stays interactive */

  /* The magic: blur the POIs behind it */
  backdrop-filter: blur(3px) brightness(0.5);
  opacity: 0;           /* hidden by default */
  transition: opacity .25s ease;
}

#poiMask.active {
  opacity: 1;
}

.parking-disclaimer {
  position: relative;
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
}

.disclaimer-link {
  color: #005fcc;
  text-decoration: underline;
  cursor: pointer;
}

.disclaimer-link:focus {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

.disclaimer-tooltip {
  position: absolute;
  bottom: 125%;
  left: 0;
  z-index: 1000;

  background: #222;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.3;
  width: 260px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.parking-disclaimer:hover .disclaimer-tooltip,
.parking-disclaimer:focus-within .disclaimer-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sidebar-content a.disclaimer-link {
  color: white;
}

.sidebar-content .hangtags i {
  padding: 6px;
}