.drilling-rig-map-wrapper {
  display: flex;
}

.drilling-rig-map-wrapper .active-rigs-widget {
  margin-left: 25px;
}

.rig-map-wrap {
  position: relative;
  width: 100%;
  height: 720px; /* adjust as needed */
}

.rig-map {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.rig-legend {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 260px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  font-family: Arial, sans-serif;
  z-index: 5;
}

.rig-legend__header {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Vertically center items */
  padding: 14px 14px 8px 14px;
  border-bottom: 1px solid #eee;
}

.rig-legend__title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.rig-legend__subtitle {
  font-size: 12px;
  color: #666;
}

.rig-legend__toggle {
  border: none;
  background: #f2f2f2;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
}

.rig-legend__toggle-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.rig-legend[aria-expanded="false"] .rig-legend__toggle-icon {
  transform: rotate(-90deg);
}

.rig-legend__panel {
  padding: 12px 14px 14px 14px;
}

.rig-legend__section {
  margin-top: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #888;
}

.rig-legend__row {
  display: flex;
  align-items: center;
  /*gap: 8px;*/
  font-size: 13px;
  /*margin-bottom: 8px;*/
  user-select: none;
  font-weight: bold;
}

.rig-legend__filter[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #007CBA; /* Optional: style the checkbox color */
  margin: 0 2px 0 0;
  vertical-align: middle;
}

.rig-legend__icon img {
  width: 32px;
  height: 32px;
}

.rig-legend__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #ccc;
}

.rig-legend__dot--active { background: #1db954; }
.rig-legend__dot--moving { background: #f5a623; }
.rig-legend__dot--down { background: #e02020; }

.rig-legend__counts {
  font-size: 13px;
  display: grid;
  gap: 6px;
  font-weight: bold;
}

.rig-legend__label {
  color: #888;
}

.rig-legend[aria-expanded="false"] .rig-legend__panel {
  display: none;
}

.rig-infowindow {
  font-family: Arial, sans-serif; 
  min-width: 220px; 
  background: #004A98; 
  color: #fff; 
  border-radius: 8px; 
  padding: 14px 16px; 
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.rig-infowindow__title {
  font-size: 16px; 
  font-weight: 700; 
  margin-bottom: 6px;
}

.rig-infowindow div strong {
  font-weight: bold;
}