@media (max-width: 768px) {
  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .ol-control.ol-zoom {
    display: none !important;
  }

  .container, .right-panel, #map {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .slide-panel {
    position: fixed;
    top: 70px;
    left: 0;
    width: 60%;
    height: calc(100% - 60px);
    background-color: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
    overflow-y: auto;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .slide-panel.open {
    transform: translateX(0);
  }

  .toggle-btn {
    position: fixed;
    top: 16px;
    left: 20px;
    z-index: 10000;
    //background: #0d6efd;
    background: #786eff;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    color: #888;
  }

  canvas#data-chart {
    max-width: 100%;
  }

  .container.custom-full-width {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .density-map-btn {
    font-size: 12px;
    border-radius: 6px;
    margin-left: 0 !important;
  }

  #mobile-site-title {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 6px 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }  
  
  .slide-panel #site-title {
    display: none;
  }

  body.is-safari .mappler-logo {
    bottom: 90px;
  }

  body.in-kakaotalk .mappler-logo {
    bottom: 10px !important; 
  }

}
