/* 기본 스타일 */
html, body {
    width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
  }
  #map { position: fixed; inset: 0; }
  
  /* 상단 UI 컨테이너 */
  #top-ui-container {
    position: fixed; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 10px; right: 10px; z-index: 10;
    display: flex; flex-direction: column; gap: 8px;
  }
  .search-wrapper {
    background: rgba(255,255,255,0.98);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    padding: 6px 8px;
    backdrop-filter: saturate(150%) blur(6px);
  }
  #search-box {
    width: 100%; border: none; outline: none; padding: 10px; font-size: 16px; box-sizing: border-box; background: transparent;
  }
  
  /* 필터 행 & 드롭다운 */
  #filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
  
  /* 필터 드롭다운 (아일랜드 버튼 스타일) */
  #filter-row select {
    flex: 1; min-width: 120px;
    text-align: center; text-align-last: center;
    padding: 10px 16px; font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background-color: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    cursor: pointer;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, #999 50%),
      linear-gradient(135deg, #999 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 14px) calc(1em + 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
  }
  #filter-row select:focus {
    outline: none; border-color: #1976d2; box-shadow: 0 0 0 3px rgba(25,118,210,0.12);
  }
  
  /* 하단 정보 시트 */
  #bottom-sheet {
    position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
    border-top-left-radius: 16px; border-top-right-radius: 16px;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.15); z-index: 20;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100%);
    touch-action: pan-y;
  }
  #bottom-sheet.hidden { transform: translateY(100%); }
  #bottom-sheet.half { transform: translateY(0); height: 50vh; }
  #bottom-sheet.quarter { transform: translateY(0); height: 25vh; }
  
  .handle { width: 44px; height: 5px; background: #e5e7eb; margin: 10px auto 6px; border-radius: 3px; }
  #sheet-content { overflow-y: auto; height: calc(100% - 24px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  
  /* 목록 & 상세 정보 스타일 */
  .store-list { list-style: none; padding: 0; margin: 0; }
  .store-list li { padding: 14px 16px; border-bottom: 1px solid #f2f4f7; cursor: pointer; }
  .store-list li:last-child { border-bottom: none; }
  .store-list li .title { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: #111827; }
  .store-list li .category { font-size: 12px; color: #6b7280; }
  .store-detail { padding: 16px; }
  .store-detail .title { font-size: 18px; font-weight: 800; color: #111827; }
  .store-detail .category { color: #1976d2; margin: 8px 0; font-size: 13px; }
  .store-detail .info { margin-top: 12px; line-height: 1.6; font-size: 14px; color: #374151; }
  
  /* 로딩 스피너 */
  #loader-wrapper {
    position: fixed; inset: 0; background-color: rgba(0,0,0,0.45);
    display: none; justify-content: center; align-items: center; z-index: 9999;
  }
  .loader {
    border: 8px solid #f3f3f3; border-radius: 50%; border-top: 8px solid #3498db;
    width: 56px; height: 56px; animation: spin 1s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  