.gm8rm-wrap{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  --gm8rm-icon-size: 36px;
  --gm8rm-icon-pos: left;
}

.gm8rm-button-row{
  width: 100%;
  display: flex;
}

.gm8rm-active-button{
  min-height: 1px;
}

.gm8rm-layout{
  width: 100%;
  display: flex;
  gap: 14px;
  box-sizing: border-box;
  border-radius: 14px;
  overflow: hidden;
}

.gm8rm-list{
  flex: 0 0 35%;
  display: flex;
  min-width: 220px;
}

.gm8rm-items{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding-right: 6px;
  box-sizing: border-box;
  --gm8rm-scrollbar: 10px;
  --gm8rm-thumb: #c7c7c7;
  --gm8rm-track: #f1f1f1;
}

.gm8rm-items::-webkit-scrollbar{ width: var(--gm8rm-scrollbar); height: var(--gm8rm-scrollbar); }
.gm8rm-items::-webkit-scrollbar-thumb{ background: var(--gm8rm-thumb); border-radius: 999px; }
.gm8rm-items::-webkit-scrollbar-track{ background: var(--gm8rm-track); border-radius: 999px; }

.gm8rm-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  transition: transform .08s ease, box-shadow .12s ease;
}

.gm8rm-item:hover{ transform: translateY(-1px); }

.gm8rm-item-left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.gm8rm-wrap[data-iconpos="right"] .gm8rm-item-left{ flex-direction: row-reverse; }

.gm8rm-item-title{
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gm8rm-item-icon,
.gm8rm-pin{
  width: var(--gm8rm-icon-size);
  height: var(--gm8rm-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--gm8rm-icon-size);
}

.gm8rm-item-icon img{
  width: calc(var(--gm8rm-icon-size) * 0.55);
  height: calc(var(--gm8rm-icon-size) * 0.55);
  object-fit: contain;
}

.gm8rm-pin svg,
.gm8rm-item-icon svg{
  width: calc(var(--gm8rm-icon-size) * 0.5);
  height: calc(var(--gm8rm-icon-size) * 0.5);
}

.gm8rm-map{
  flex: 1 1 auto;
  min-width: 0;
  min-height: 260px;
}

.gm8rm-wrap[data-placement="right"] .gm8rm-layout{ flex-direction: row-reverse; }
.gm8rm-wrap[data-placement="top"] .gm8rm-layout,
.gm8rm-wrap[data-placement="bottom"] .gm8rm-layout{ flex-direction: column; }
.gm8rm-wrap[data-placement="bottom"] .gm8rm-layout{ flex-direction: column-reverse; }
.gm8rm-wrap[data-placement="top"] .gm8rm-list,
.gm8rm-wrap[data-placement="bottom"] .gm8rm-list{ min-width: 0; flex-basis: auto; }
.gm8rm-wrap[data-placement="top"] .gm8rm-items,
.gm8rm-wrap[data-placement="bottom"] .gm8rm-items{ flex-direction: row; overflow: auto hidden; padding-right: 0; padding-bottom: 6px; }
.gm8rm-wrap[data-placement="top"] .gm8rm-item,
.gm8rm-wrap[data-placement="bottom"] .gm8rm-item{ flex: 0 0 auto; }

@media (max-width: 767px){
  .gm8rm-layout{
    flex-direction: column;
    height: auto !important;
  }

  .gm8rm-wrap[data-placement="right"] .gm8rm-layout,
  .gm8rm-wrap[data-placement="left"] .gm8rm-layout,
  .gm8rm-wrap[data-placement="top"] .gm8rm-layout,
  .gm8rm-wrap[data-placement="bottom"] .gm8rm-layout{
    flex-direction: column;
  }

  .gm8rm-list{
    min-width: 0;
    flex-basis: auto !important;
  }

  .gm8rm-items{
    max-height: 280px;
  }
}

.gm8rm-notice{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  background: rgba(0,0,0,.03);
}

.gm8rm-leaflet-pin-wrap{
  background: transparent;
  border: 0;
}

.gm8rm-map .leaflet-routing-container,
.gm8rm-map .leaflet-routing-alt,
.gm8rm-map .leaflet-routing-geocoders{
  display: none !important;
}

.gm8rm-map .leaflet-control-container .leaflet-routing-container-hide{
  display: none !important;
}
