#tripim-gl-host-controls {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 12;
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.tripim-gl-host-control-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease,
    border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.tripim-gl-host-control-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.tripim-gl-host-control-button[data-active='true'] {
  background: #f97316;
  color: #ffffff;
  border-color: #f97316;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.34);
}

.tripim-gl-host-control-button[data-control-action='toggleGlobeMode'] {
  order: 1;
}

.tripim-gl-host-control-button[data-control-action='togglePinLabels'] {
  order: 2;
}

.tripim-gl-host-control-button[data-layout-mode='panelLeftMapRight'] {
  order: 3;
}

.tripim-gl-host-control-button[data-layout-mode='mapLeftPanelRight'] {
  order: 4;
}

.tripim-gl-host-control-button[data-control-action='panelStepDown'] {
  order: 5;
}

.tripim-gl-host-control-button[data-control-action='panelStepUp'] {
  order: 6;
}

.tripim-gl-host-control-icon {
  width: 16px;
  height: 16px;
  display: block;
  color: currentColor;
  pointer-events: none;
}

@media (max-width: 767px) {
  #tripim-gl-host-controls {
    gap: 6px;
    max-width: calc(100vw - 24px);
  }

  .tripim-gl-host-control-button {
    width: 34px;
    height: 34px;
  }

  .tripim-gl-host-control-button[data-layout-mode],
  .tripim-gl-host-control-button[data-mobile-hidden='true'] {
    display: none !important;
  }
}

.mapboxgl-ctrl-bottom-left {
  display: block;
  margin: 0 0 16px 16px;
  pointer-events: auto;
}

.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl {
  margin: 0 !important;
  flex: 0 0 auto;
}

.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-logo {
  display: none !important;
}

.tripim-mapbox-logo-proxy,
.tripim-mapbox-logo-native-fallback {
  display: none !important;
}

.tripim-mapbox-branding {
  position: absolute !important;
  left: 18px;
  bottom: 18px;
  z-index: 120;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
}

.tripim-mapbox-logo-anchor {
  display: block !important;
  width: 62px;
  height: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  text-decoration: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.72));
}

.tripim-mapbox-logo-anchor img {
  display: block;
  width: 62px;
  height: 14px;
}

.tripim-mapbox-attribution-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.72));
}

.tripim-mapbox-attribution-toggle img {
  display: block;
  width: 14px;
  height: 14px;
}

.tripim-mapbox-attribution-panel {
  position: absolute;
  left: 0;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(15, 23, 42, 0.92);
  white-space: nowrap;
  font: 500 10px/1.15 Arial, Helvetica, sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.tripim-mapbox-attribution-panel[hidden] {
  display: none !important;
}

.tripim-mapbox-attribution-panel a {
  color: inherit;
  text-decoration: none;
}

.tripim-mapbox-attribution-panel a:hover {
  text-decoration: underline;
}

.mapboxgl-ctrl-attrib.mapboxgl-compact {
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden !important;
  pointer-events: none;
}

.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 1px;
  min-height: 1px;
  padding: 0 !important;
  border: 0;
  margin: 0;
  background-color: transparent;
  background-position: center;
  background-size: 18px 18px;
  background-repeat: no-repeat;
  line-height: 1;
  text-align: center;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}
