body {
  margin: 0;
  padding: 0;
  background: #1a1a1a;
  color: white;
  font-family: "Segoe UI", sans-serif;
  overflow: hidden;
}

#ui-layer {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #444;
  pointer-events: none;
}

#search-container {
  pointer-events: auto;
  margin-top: 10px;
}

#search-container input {
  padding: 8px;
  border-radius: 4px;
  border: none;
  width: 150px;
}

#search-container button {
  padding: 8px;
  cursor: pointer;
}

#canvas-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

canvas {
  background: #fff;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  image-rendering: pixelated;
}

.stats {
  font-size: 12px;
  color: #aaa;
  margin-top: 5px;
}

b {
  color: #00ffcc;
}

/* Search Container  */
#search-container {
  position: fixed;
  display: flex;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  background: rgba(255, 255, 255, 0);
  box-shadow: 20px 20px 40px -6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5.1px);
  -webkit-backdrop-filter: blur(50px);
  border-radius: 10px;
  border: 1px solid #05e6b9;
  border-radius: 50px;
  padding: 2px;
}

#search-container input {
  width: 100%;
  border-radius: 50px;
  background: transparent;
  padding: 16px;
}
#search-container input:focus {
  outline: none;
}
#search-container button {
  border-radius: 50px;
  border: none;
  background: #05e6b9;
  padding-left: 20px;
  padding-right: 20px;
}

#billboard-popup {
  position: fixed;
  display: none;
  background: white;
  color: #333;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
  pointer-events: none;
  width: 200px;
  text-align: center;
  border: 1px solid #ddd;
  transition: opacity 0.3s ease;
}

#billboard-popup img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}

#billboard-popup p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

/* Minimap */
#minimap-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 150px;
  height: 150px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #444;
  border-radius: 4px;
  overflow: hidden;
  z-index: 5;
}

#minimapCanvas {
  width: 100%;
  height: 100%;
  background: white;
}

#view-indicator {
  position: absolute;
  border: 1px solid #00ffcc;
  background: rgba(0, 255, 204, 0.2);
  pointer-events: none;
  top: 0;
  left: 0;
}

/* Selection Overlay */

#selection-overlay {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(15, 15, 15, 0.95); /* Deep dark background */
  color: #00ffcc; /* Neon cyan/green text */
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 204, 0.3); /* Subtle neon border */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 204, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  z-index: 1000;
  min-width: 180px;
  backdrop-filter: blur(10px); /* Frosted glass effect */
}

#selection-overlay div {
  line-height: 1.6;
}

#coord-start,
#coord-end {
  font-family: "Courier New", monospace; /* Monospace for coordinates */
  color: #fff;
  font-weight: bold;
}

#selection-dim {
  font-size: 0.9em;
  color: #bbb;
}

#selection-price {
  font-size: 1.2em;
  margin: 5px 0;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

#buy-btn {
  background: #00ffcc;
  color: #000;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 5px;
}

#buy-btn:hover {
  background: #05e6b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 204, 0.4);
}

#buy-btn:active {
  transform: translateY(0);
}

/* Close Selection  */
#close-selection {
  transition: color 0.2s ease;
}

#close-selection:hover {
  color: #ff4d4d !important; /* Turns red on hover */
}
