/* --- Base Styles --- */
body {
  background: #212931;
  color: #fff;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

header, nav, footer {
  background: #2e3842;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

h1, h2, h3, h4, h5, h6 {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 0;
}

a {
  color: #f56a6a;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #fff;
  text-decoration: underline;
}

/* --- Layout --- */
.main-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  max-width: 1600px; /* Increased from 1200px */
  margin: 0 auto;
}

@media (max-width: 900px) {
  .main-content {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0.5rem;
  }
}

/* --- Containers & Cards --- */
.container, section, .card {
  background: #2e3842;
  border-radius: 12px;
  margin: 0 auto 2rem auto;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  max-width: 1400px; /* Increased from 900px */
}

.container {
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  background: #232b33;
}

/* --- Forms & Inputs --- */
label {
  font-weight: 600;
  margin-bottom: 0.5em;
  display: block;
  color: #f56a6a;
  letter-spacing: 0.03em;
}

input, select, textarea {
  background: #212931;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 0.75em;
  margin-bottom: 1em;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: #f56a6a;
  outline: none;
}

::-webkit-input-placeholder { color: #aaa; }
::-moz-placeholder { color: #aaa; }
:-ms-input-placeholder { color: #aaa; }
::placeholder { color: #aaa; }

/* --- Buttons --- */
button, .button {
  background: #f56a6a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75em 2em;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.2s, box-shadow 0.2s;
  margin-top: 0.5em;
}
button:hover, .button:hover {
  background: #ff7b7b;
  box-shadow: 0 4px 16px rgba(245,106,106,0.15);
}

/* --- Map Styles --- */
#mapContainer {
  position: relative;
  width: 100%;
  /*max-width: 1400px; /* Increased from 1024px */
  /*height: 1400px;      /* Increased from 512px */
  margin-bottom: 0;
  border: 4px solid #2e3842;
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
#mapImage {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
#unitMarker {
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0.40;
  background: #000000;
  outline: dashed 4px #bdbdbd;
  /*border: 3px solid #bdbdbd;*/
  /*border-style: dashed;*/
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 2;
  /*box-shadow: 0 0 8px #f56a6a88;*/
}
.unit-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  background: red;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  z-index: 10;
}
/* --- Info Panel --- */
#unitInfo {
  flex: 1 1 0;
  min-width: 300px;
  background: #232b33;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
#unitInfo h2 {
  color: #f56a6a;
  border-bottom: 2px solid #f56a6a33;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

/* --- Definition Lists --- */
dl {
  margin: 0;
}
dt {
  font-weight: 700;
  color: #f56a6a;
  margin-top: 1em;
}
dd {
  margin-left: 20px;
  margin-bottom: 1em;
  word-wrap: break-word;
}
dd ul {
  list-style-type: none;
  padding-left: 0;
}
dd li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5em;
}

/* --- Icons & Tags --- */
.item-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
  border: 1px solid #444;
  border-radius: 6px;
  background: #232b33;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.unit-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  background: #f56a6a;
  color: #fff;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: 600;
  vertical-align: middle;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 4px rgba(245,106,106,0.10);
}

/* --- Bonus Multipliers --- */
#bonusMultipliers {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
#bonusMultipliers label {
  display: block;
  color: #fff;
  font-weight: 500;
}

/* --- Utility --- */
hr {
  border: none;
  border-top: 1px solid #444;
  margin: 2em 0;
}