* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  height: 100vh;
  overflow: hidden;
  background: #1a1a2e;
  color: #e0e0e0;
}

#map {
  width: 100%;
  height: 100vh;
  position: relative;
}

/* Search */
#search-box {
  position: fixed;
  top: 60px;
  left: 10px;
  z-index: 10001;
  width: 200px;
}

#search-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-family: Roboto, Arial, sans-serif;
  border: none;
  border-radius: 3px;
  background: #fff;
  color: #333;
  box-shadow: rgba(0,0,0,0.3) 0px 1px 4px -1px;
  outline: none;
}

#search-input::placeholder {
  color: #999;
}

#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  background: #fff;
  border-radius: 3px;
  box-shadow: rgba(0,0,0,0.3) 0px 2px 8px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.search-result {
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
  font-family: Roboto, Arial, sans-serif;
}

.search-result:last-child {
  border-bottom: none;
}

.search-result:hover {
  background: #f5f5f5;
}

.search-result-ident {
  font-weight: 700;
  color: #1a73e8;
  margin-right: 6px;
}

.search-result-name {
  color: #333;
}

.search-result-meta {
  font-size: 10px;
  color: #999;
  margin-top: 1px;
}

/* Map controls */
#map-controls {
  position: fixed;
  top: 12px;
  left: 180px;
  z-index: 10000;
  display: flex;
  gap: 1px;
  background: rgba(0,0,0,0.15);
  border-radius: 3px;
  box-shadow: rgba(0,0,0,0.3) 0px 1px 4px -1px;
  overflow: hidden;
}

#map-controls button {
  background: #fff;
  color: rgb(86, 86, 86);
  border: none;
  padding: 7px 10px;
  font-size: 11px;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

#map-controls button:hover {
  background: #f5f5f5;
  color: #333;
}

#map-controls button.active {
  background: #e8f0fe;
  color: #1a73e8;
}

.airspace-label {
  background: rgba(0, 0, 0, 0.85) !important;
  padding: 2px 5px !important;
  border-radius: 2px !important;
  white-space: nowrap !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}

.control-sep {
  width: 4px;
}

/* Plates modal */
#plates-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 19999;
}

#plates-panel {
  display: none;
  position: fixed;
  top: 5vh;
  left: 5vw;
  width: 90vw;
  height: 90vh;
  z-index: 20000;
  background: #1a1a2e;
  border-radius: 10px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.7);
  overflow: hidden;
}

#plates-sidebar {
  width: 280px;
  height: 100%;
  overflow-y: auto;
  background: #16213e;
  border-right: 1px solid #0f3460;
  display: flex;
  flex-direction: column;
}

#plates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #0f3460;
  border-bottom: 1px solid #533483;
  flex-shrink: 0;
}

#plates-title {
  font-size: 14px;
  font-weight: 700;
  color: #e94560;
}

#plates-close {
  background: none;
  border: none;
  color: #8899aa;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

#plates-close:hover {
  color: #e94560;
}

#plates-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.plates-section {
  margin-bottom: 8px;
}

.plates-section-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8899aa;
  padding: 8px 10px 4px;
  font-weight: 600;
}

.plates-item {
  padding: 8px 10px;
  font-size: 13px;
  color: #ccc;
  cursor: pointer;
  border-radius: 4px;
  margin: 1px 0;
}

.plates-item:hover {
  background: rgba(255,255,255,0.06);
}

.plates-item.active {
  background: rgba(233, 69, 96, 0.15);
  color: #e94560;
}

#plates-viewer {
  flex: 1;
  height: 100%;
  background: #2a2a3e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667788;
  font-size: 14px;
}
