:root {
  --bg: #0b1220;
  --panel: #162235;
  --border: #2b3b52;
  --accent: #ff633b;
  --text: #f5f7fb;
  --muted: #b9c5d5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

.container {
  max-width: 850px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
}

.logo {
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
  text-decoration: none;
}

.languages {
  display: flex;
  gap: 6px;
}

.languages button {
  width: auto;
  padding: 9px 12px;
}

h1 { font-size: clamp(26px, 5vw, 38px); }
h2 { font-size: 20px; margin-top: 0; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin: 18px 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

input, textarea, select {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #0d1828;
  color: white;
  font: inherit;
}

textarea { min-height: 100px; resize: vertical; }

.field { margin-bottom: 16px; }

button {
  padding: 13px 20px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #111827;
  font-weight: 800;
  cursor: pointer;
}

button:disabled { opacity: .55; cursor: wait; }

.secondary {
  background: #304158;
  color: white;
}

.muted { color: var(--muted); }

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox input { width: auto; }

#status { margin-top: 16px; }

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .logo { font-size: 23px; }
}

/* VUKRAX address autocomplete */
.address-field {
  position: relative;
}

.address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  max-height: 260px;
  overflow-y: auto;
  background: var(--card, #fff);
  border: 1px solid var(--border, #ddd);
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.address-suggestions[hidden] {
  display: none;
}

.address-option {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--border, #ddd);
  background: transparent;
  color: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.address-option:hover,
.address-option:focus {
  background: rgba(128,128,128,.12);
}

.address-option:last-child {
  border-bottom: 0;
}

/* Readable autocomplete suggestions */
.address-suggestions {
  background: #172235;
  border-color: #40516b;
}

.address-option {
  color: #ffffff;
  background: #172235;
  font-size: 14px;
  line-height: 1.5;
}

.address-option:hover,
.address-option:focus {
  color: #ffffff;
  background: #30445f;
}

/* Hide the flag in Leaflet attribution */
.leaflet-control-attribution a[href*="leafletjs.com"] {
  font-size: 0;
}

.leaflet-control-attribution a[href*="leafletjs.com"]::after {
  content: "Leaflet";
  font-size: 11px;
}

/* VUKRAX compact address suggestions and separate dimensions */
.address-suggestions { max-height: 126px; overflow-y: auto; }
.address-option { padding: 6px 9px; font-size: 12px; line-height: 1.25; }
.dimensions-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.dimensions-grid .field { min-width:0; }
.dimensions-grid input { min-width:0; padding:10px 8px; }
@media (max-width:380px) { .dimensions-grid { gap:6px; } .dimensions-grid label { font-size:12px; } }
