html,
body {
  margin: 0;
  background: #070a0d;
  color: white;
  font-family: Arial, sans-serif;
}

#hero {
  position: relative;
  height: 46vh;
  overflow: hidden;

  /* background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.25),
      rgba(0,0,0,0.55)
    ),
    url('/static/hero.jpg'); */

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

#hero-overlay {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at center,
      rgba(0,0,0,0.15),
      rgba(0,0,0,0.62)
    );
}

#hero-content {
  position: relative;
  z-index: 2;

  max-width: 760px;

  padding:
    90px
    72px;
}

.eyebrow {
  color: #c5a35b;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: 64px;
  line-height: 0.95;
}

#hero p {
  margin-top: 24px;
  max-width: 620px;

  color: rgba(255,255,255,0.82);
  font-size: 18px;
  line-height: 1.6;
}

#layout {
  display: flex;
  min-height: 80vh;
  margin-bottom: 50px;
}

/*************************************************************/
/*********************** Sidebar / Cards *******************/
/*************************************************************/

#sidebar {
  width: 420px;
  overflow-y: auto;

  border-right: 1px solid rgba(255,255,255,0.08);

  background: #0b0f14;
}

#mountain-list {
  padding: 24px;
}

.mountain-card {
  display: block;

  margin-bottom: 16px;
  padding: 20px;

  border-radius: 20px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);

  text-decoration: none;
  color: inherit;

  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.mountain-card:hover {
  transform: translateY(-2px);

  border-color: rgba(255,204,51,0.28);

  background: rgba(255,255,255,0.06);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-top h2 {
  margin: 0;
  font-size: 24px;
}

.card-top span {
  color: #d9b85f;
  font-weight: 700;
}

.card-region {
  margin-top: 8px;

  color: #9eb0c2;
  font-size: 14px;
}

.card-meta {
  display: flex;
  gap: 16px;

  margin-top: 18px;
}

.card-meta div {
  flex: 1;

  padding: 12px;

  border-radius: 12px;

  background: rgba(255,255,255,0.04);
}

.card-meta label {
  display: block;

  margin-bottom: 4px;

  color: #8395a8;
  font-size: 11px;
}

.card-meta strong {
  font-size: 13px;
}


/*************************************************************/
/************************** Map *****************************/
/*************************************************************/

#map-area {
  flex: 1;
  position: relative;

  background:
    radial-gradient(
      circle at center,
      #1a2632,
      #091019
    );
}

#overview-map {
  position: absolute;
  inset: 0;
}

.leaflet-container {
  width: 100%;
  height: 100%;
  background: transparent;
  font-family: Arial, sans-serif;
  cursor: grab;
}

.leaflet-container:active {
  cursor: grabbing;
}

.leaflet-pane,
.leaflet-top,
.leaflet-bottom {
  z-index: 10;
}

.leaflet-control-container {
  display: none;
}

.leaflet-image-layer {
  opacity: 0.82;

  filter:
    brightness(0.88)
    saturate(0.9)
    drop-shadow(0 0 28px rgba(112,177,142,0.18))
    drop-shadow(0 0 90px rgba(112,177,142,0.1));
}


.leaflet-interactive {
  transition:
    fill 0.2s,
    stroke 0.2s,
    opacity 0.2s;
}

.leaflet-interactive:hover {
  opacity: 1;
}

@media (max-width: 1100px) {
  #map-area {
    min-height: 480px;
  }
}

@media (max-width: 820px) {
  #map-area {
    height: 52vh;
  }

  .mountain-marker label {
    display: none;
  }
}

.leaflet-image-layer {
  image-rendering: -webkit-optimize-contrast;
}

/***************************************************/
/****************** Filters *******************/
/***************************************************/

#filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 34px;
  background: #080c10;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#filter-controls {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

#active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 0;
}

#filters input,
#filters select {
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.045);
  color: white;
  font-size: 14px;
}

#filters input {
  width: 340px;
}

#filters select {
  min-width: 180px;
}

#filters option {
  background: #0b0f14;
  color: white;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 10px;

  height: 38px;
  padding: 0 14px;

  border-radius: 999px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);

  font-size: 13px;
  color: white;
}

.filter-chip button {
  border: none;
  background: transparent;
  color: #d9b85f;
  cursor: pointer;
  font-size: 15px;
}

#clear-filters {
  background: transparent;
  border: none;
  color: #d9b85f;
  cursor: pointer;
  font-size: 13px;
}

#filters-toggle {
  display: none;
}

@media (max-width: 768px) {
  #hero {
    height: auto;
    min-height: 340px;
  }

  #hero-content {
    padding: 70px 24px 48px;
  }

  .eyebrow {
    font-size: 11px;
    margin-bottom: 14px;
  }

  h1 {
    font-size: 46px;
    line-height: 0.95;
  }

  #hero p {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.55;
  }

  #filters {
    padding: 18px 16px;
    gap: 12px;
  }

  #filter-controls {
    flex-direction: column;
    gap: 10px;
  }

  #filters input,
  #filters select {
    width: 100%;
    min-width: 0;
    height: 46px;
    box-sizing: border-box;
  }

  #layout {
    flex-direction: column;
    margin-bottom: 0;
  }

  #map-area {
    order: 1;
    height: 42vh;
    min-height: 300px;
  }

  #sidebar {
    order: 2;
    width: 100%;
    border-right: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    overflow: visible;
  }

  #mountain-list {
    padding: 16px;
  }

  .mountain-card {
    padding: 18px;
    margin-bottom: 12px;
    border-radius: 18px;
  }

  .card-top h2 {
    font-size: 22px;
  }

  .card-meta {
    gap: 10px;
  }

  .card-meta div {
    padding: 10px;
  }
}


@media (max-width: 768px) {
  #filters-toggle {
    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 16px;

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;

    background: rgba(255,255,255,0.03);

    color: white;
    font-size: 14px;
    font-weight: 600;
  }

  #filters-toggle::after {
    content: "⌄";
    font-size: 18px;
    color: rgba(255,255,255,0.65);
    transition: transform .2s ease;
  }

  #filters-toggle.open::after {
    transform: rotate(180deg);
  }
}

@media (max-width: 768px) {
  #filters {
    padding: 14px 16px;
  }

  #filter-controls {
    display: none;
    margin-top: 12px;
  }

  #filter-controls.open {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #filters input,
  #filters select {
    width: 100%;
    box-sizing: border-box;
  }

  #active-filters {
    margin-top: 10px;
  }
}