body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f6f8;
    display: flex;
    height: 100vh;
  }
  
  #map {
    flex: 1;
  }
  
  #filter-panel {
    border-radius: 8px;
    background: #fff;
    padding: 15px;
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
    margin: 10px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }
  
  #filter-panel h4 {
    margin: 0;
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  #filter-panel div { 
    margin-bottom: 8px; 
  }
  
  #filter-panel label {
    font-weight: normal;
    font-size: 14px;
    margin-right: 6px;
  }
  
  #filter-panel select,
  #filter-panel input[type="checkbox"] { 
    margin-right: 6px; 
  }
  
  #apply-filters {
    width: 100%;
    padding: 10px;
    background: #0078d4;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  #filter-toggle {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  /* Technology slider styling */
  .tech-segmented-control {
    display: flex;
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #ddd;
  }
  
  .tech-option {
    flex: 1;
    text-align: center;
  }
  
  .tech-option input {
    display: none;
  }
  
  .tech-option label {
    display: block;
    padding: 8px 0;
    background: #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
    font-size: 12px;
  }
  
  .tech-option input:checked + label {
    background: #0078d4;
    color: white;
  }
  
  /* Leaflet popup styling */
  .leaflet-popup-content {
    font-size: 14px;
  }
  
  .station-popup {
    font-size: 14px;
    line-height: 1.4;
  }
  
  .station-popup h3 {
    margin-top: 0;
    font-size: 16px;
    color: #333;
  }
  
  .station-popup p {
    margin: 2px 0;
  }
  
  /* Responsive layout */
  @media (max-width: 768px) {
    body {
      flex-direction: column;
    }
    
    #filter-panel {
      width: auto;
      margin: 10px;
    }
  }

  /* mobile-friendly layout */
  @media (max-width: 600px) {
    #filter-toggle { 
      display: block; 
    }
    
    #filter-panel {
      display: none;
      position: absolute;
      top: 60px;
      left: 10px;
      right: 10px;
      width: auto;
      max-width: calc(100% - 20px);
      margin: 0;
      z-index: 1000;
    }
    
    #filter-panel.open { 
      display: flex; 
    }
    
    #map {
      height: 100vh;
      width: 100%;
    }
    
    body {
      flex-direction: column;
    }
  }
