/* =========================================
   MAP.CSS
   ========================================= */

body {
  background:
    linear-gradient(
      rgba(5, 5, 8, 0.82),
      rgba(5, 5, 8, 0.95)
    ),
    url("../images/cover.png");

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}


/* =========================================
   PAGE
   ========================================= */

.page {
  width: 100%;
  min-height: 100vh;
  padding: 50px 20px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}


/* =========================================
   HEADER
   ========================================= */

.header {
  text-align: center;
  margin-bottom: 38px;
}

.eyebrow {
  margin-bottom: 12px;
}

h1 {
  margin-bottom: 16px;

  font-size: clamp(2.8rem, 7vw, 5.3rem);
  line-height: 0.95;

  font-weight: 500;
  letter-spacing: -0.04em;
}

.intro {
  max-width: 650px;
  margin: 0 auto;

  font-size: 1.05rem;
  line-height: 1.7;

  color: #d8c6ad;
}


/* =========================================
   MAP FRAME
   ========================================= */

.map-wrapper {
  position: relative;

  width: 100%;
  height: 680px;

  border: 1px solid rgba(201, 164, 106, 0.4);
  border-radius: 28px;

  overflow: hidden;

  background: #0f0f16;

  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55);
}

#map {
  width: 100%;
  height: 100%;

  background: #0f0f16;
}


/* =========================================
   MAP LOOK
   ========================================= */

.leaflet-tile-pane {
  filter:
    grayscale(100%)
    brightness(45%)
    contrast(120%)
    sepia(25%);
}


/* =========================================
   CLASSIFICATION LABEL
   ========================================= */

.classification {
  position: absolute;

  z-index: 500;

  top: 18px;
  left: 18px;

  padding: 9px 14px;

  border: 1px solid rgba(201, 164, 106, 0.45);
  border-radius: 999px;

  background: rgba(10, 10, 15, 0.86);

  backdrop-filter: blur(8px);

  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;

  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: #c9a46a;

  pointer-events: none;
}


/* =========================================
   MARKER
   ========================================= */

.map-marker {
  width: 22px;
  height: 22px;

  border-radius: 50%;

  background: #c9a46a;

  border: 3px solid #130f0c;

  box-shadow:
    0 0 0 2px rgba(201, 164, 106, 0.35),
    0 0 18px rgba(201, 164, 106, 0.7);
}


/* NWO OUTPOST */

.outpost-marker {
  width: 22px;
  height: 22px;

  background: #181820;

  border: 2px solid #c9a46a;

  transform: rotate(45deg);

  box-shadow:
    0 0 14px rgba(201, 164, 106, 0.55);
}


/* SPECIAL LOCATION */

.special-marker {
  width: 25px;
  height: 25px;

  border-radius: 50%;

  background: #eee3d6;

  border: 3px solid #c9a46a;

  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.45);
}


/* =========================================
   POPUPS
   ========================================= */

.leaflet-popup-content-wrapper {
  border: 1px solid rgba(201, 164, 106, 0.4);
  border-radius: 18px;

  background: rgba(15, 15, 22, 0.97);

  color: #f4eee6;

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55);
}

.leaflet-popup-tip {
  background: rgba(15, 15, 22, 0.97);
}

.leaflet-popup-content {
  min-width: 210px;
  margin: 20px;
}

.popup-classification {
  margin-bottom: 5px;

  font-family: Arial, sans-serif;
  font-size: 0.65rem;

  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: #c9a46a;
}

.popup-title {
  margin-bottom: 10px;

  font-size: 1.4rem;
  font-weight: 500;

  color: #fff7ee;
}

.popup-info {
  margin-top: 5px;

  font-family: Arial, sans-serif;
  font-size: 0.82rem;

  line-height: 1.6;

  color: #d8c6ad;
}

.popup-info strong {
  color: #f4eee6;
}

.popup-note {
  margin-top: 12px;
  padding-left: 12px;

  border-left: 2px solid #c9a46a;

  font-style: italic;
  line-height: 1.55;

  color: #eee3d6;
}


/* =========================================
   LEAFLET CONTROLS
   ========================================= */

.leaflet-control-zoom a {
  background: #15151d !important;
  color: #c9a46a !important;

  border-color:
    rgba(201, 164, 106, 0.3) !important;
}

.leaflet-control-attribution {
  background:
    rgba(10, 10, 15, 0.75) !important;

  color: #8e8275 !important;

  font-size: 0.65rem;
}

.leaflet-control-attribution a {
  color: #c9a46a !important;
}


/* =========================================
   LEGEND
   ========================================= */

.legend {
  display: flex;
  flex-wrap: wrap;

  justify-content: center;

  gap: 14px 24px;

  margin-top: 24px;

  padding: 19px 24px;

  border:
    1px solid rgba(255, 255, 255, 0.12);

  border-radius: 18px;

  background:
    rgba(15, 15, 22, 0.72);

  backdrop-filter: blur(10px);
}

.legend-item {
  display: flex;
  align-items: center;

  gap: 9px;

  font-family: Arial, sans-serif;
  font-size: 0.76rem;

  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: #d8c6ad;
}

.legend-symbol {
  display: inline-block;

  width: 12px;
  height: 12px;
}

.legend-symbol.route {
  border-radius: 50%;

  background: #c9a46a;
}

.legend-symbol.outpost {
  background: transparent;

  border: 2px solid #c9a46a;

  transform: rotate(45deg);
}

.legend-symbol.special {
  border-radius: 50%;

  background: #eee3d6;

  border: 2px solid #c9a46a;
}


/* =========================================
   ROUTE NOTE
   ========================================= */

.route-note {
  max-width: 700px;

  margin: 30px auto 0;

  text-align: center;

  font-family: Arial, sans-serif;
  font-size: 0.82rem;

  line-height: 1.7;

  color: #958878;
}


/* =========================================
   BUTTON AREA
   ========================================= */

.buttons {
  display: flex;
  justify-content: center;

  margin-top: 32px;
}

.button {
  border:
    1px solid rgba(255, 255, 255, 0.35);

  font-size: 0.88rem;

  color: #f4eee6;
}

.button:hover {
  background:
    rgba(255, 255, 255, 0.07);
}


/* =========================================
   FOOTER
   ========================================= */

footer {
  margin-top: 38px;

  text-align: center;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

  .page {
    padding: 40px 14px;
  }

  .map-wrapper {
    height: 600px;

    border-radius: 20px;
  }

  .classification {
    top: 12px;
    left: 12px;

    font-size: 0.6rem;
  }

  .legend {
    flex-direction: column;
  }
}
