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

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #1b1b2f 0, #050509 55%, #000 100%);
  color: #f5f5f5;
  min-height: 100vh;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid #222;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
}

.hero-brand h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

.hero-brand h2 {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
}

.btn-secondary {
  background: #222;
  color: #eee;
}

.btn-ghost {
  background: transparent;
  color: #ddd;
  border: 1px solid #333;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.hidden {
  display: none !important;
}

/* ⭐ FIXED: Only ONE map-layout block */
.map-layout {
  display: grid;
  grid-template-columns: 1fr 350px; /* left map, right column */
  gap: 24px;
  padding: 24px 32px 40px;
  align-items: start;
}

/* ⭐ Right column stacks submit box + claims list */
.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-panel {
  background: rgba(5, 5, 10, 0.9);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #222;
}

.panel-title {
  font-size: 1rem;
  margin-bottom: 8px;
  opacity: 0.9;
}

.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #333;
  background: #000;
}

/* Image scales to container */
#map-image {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* Canvas overlays image and scales with it */
#map-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.hint {
  margin-top: 8px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.claim-panel {
  background: rgba(5, 5, 10, 0.9);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #222;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.claim-panel h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.claim-panel label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.claim-panel input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #050509;
  color: #f5f5f5;
  font-family: inherit;
}

.claim-panel button {
  margin-top: 4px;
}

.status {
  font-size: 0.85rem;
  margin-top: 8px;
  min-height: 1.2em;
}

.status.error {
  color: #ff6b6b;
}

.status.success {
  color: #4cd964;
}

/* ⭐ Claims list panel */
.claims-list-panel {
  background: rgba(5, 5, 10, 0.9);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #222;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.claims-list {
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
}

.claims-list li {
  padding: 6px 10px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #ddd;
}

@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-wrapper {
    max-height: 70vh;
  }
}
