.sensor-location-widget {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f5f5f5;
  font-family: Arial, sans-serif;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(45deg, #e8f5e8 25%, transparent 25%), 
              linear-gradient(-45deg, #e8f5e8 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, #e8f5e8 75%), 
              linear-gradient(-45deg, transparent 75%, #e8f5e8 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.location-info {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 20;
  backdrop-filter: blur(4px);
}

.location-info > div:first-child {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
  color: #333;
}

.sensor-coordinates {
  font-size: 13px;
  color: #666;
  font-family: 'Courier New', monospace;
  display: flex;
  align-items: center;
  gap: 4px;
}

.location-update {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  font-family: 'Courier New', monospace;
}

/* Map loading state */
.map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #666;
  font-size: 14px;
  z-index: 15;
}

/* Map error state */
.map-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ff0000;
  font-size: 14px;
  text-align: center;
  z-index: 15;
}

/* Real map container when available */
.real-map {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .location-info {
    top: 12px;
    left: 12px;
    padding: 8px 12px;
  }
  
  .location-info > div:first-child {
    font-size: 13px;
  }
  
  .sensor-coordinates {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .location-info {
    top: 8px;
    left: 8px;
    padding: 6px 10px;
  }
  
  .location-info > div:first-child {
    font-size: 12px;
  }
  
  .sensor-coordinates {
    font-size: 11px;
  }
  
  .location-update {
    font-size: 10px;
  }
}