@charset "UTF-8";

  #map {
    position: relative;
    width: 80%;
    height: 400px;
  }
  
  #category-nav {
    position: absolute;
    top: 20px;
    left: 50px;
    transform: translateX(0%);
    display: flex;
    gap: 12px;
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 8px 20px;
  
    z-index: 20;
    max-width: 95vw;
    overflow-x: auto;
  }
  
  .category-btn {
    border: none;
    min-width: 70px; 
    background: none;
    outline: none;
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    color: #333;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    
  }
  
  .category-btn img {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0 auto 2px auto;
  }
  
  .category-btn.active,
  .category-btn:hover {
    background: #f0f4ff;
    color: #2563eb;
    font-weight: bold;
  }
  
  @media (max-width: 600px) {
    .category-nav {
      top: 8px;
      padding: 4px 6px;
      gap: 6px;
    }
    .category-btn img {
      width: 20px;
      height: 20px;
    }
  }
  
  #result-list, .result-list {
    position: absolute;
    max-height: 600px;   /* 지도 높이와 동일하게 */
    overflow-y: auto;  
    top: 120px;
    left: 50px;
    width: 250px;
    
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding: 10px 0;
  }
  
  .side-panel {
    position: absolute;
    top: 20px; left: 20px;
    width: 250px;
    max-height: 90%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 10;
    display: flex;
    flex-direction: column;
  }
  
  .category-list {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    margin: 0;
    list-style: none;
  }
  
  .category-list li {
    cursor: pointer;
    text-align: center;
  }
  
  .result-list {
    flex: 1;
    min-height: 120px;
    overflow-y: auto;
    padding: 10px 0;
  }
  
  .result-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .result-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
  }
  
  .result-list img {
    width: 20px;
  }
