html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0c0f12;
  color: #f4f4f4;
  font-family: Arial, sans-serif;
}

#layout {
  display: flex;
  width: 100vw;
  height: 100vh;
}

#left-panel {
  width: 30%;
  height: 100%;
  padding: 30px 48px 48px;
  box-sizing: border-box;
  overflow-y: auto;
  background: #080b0f;
  border-right: 1px solid rgba(255,255,255,0.08);
}

#right-panel {
  position: relative;
  width: 70%;
  height: 100%;
  overflow: hidden;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
}

#app canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.eyebrow {
  color: #9fb5c9;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1;
}

.mountain-elevation {
  margin-top: 10px;
  margin-bottom: 14px;
}

.mountain-elevation span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.86);
  font-size: 1.03rem;
  font-weight: 600;
  letter-spacing: .01em;
}

p {
  margin: 0;
  line-height: 1.5;
  color: #c8d0d8;
  font-size: 14px;
}

.stats {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.stats div {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
}

.stats span {
  display: block;
  color: #9fb5c9;
  font-size: 11px;
  margin-bottom: 4px;
}

.stats strong {
  font-size: 14px;
}

.section {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  margin-top: 28px;
}

.section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 16px;
}

ul {
  margin: 0;
  padding-left: 18px;
  color: #c8d0d8;
  font-size: 13px;
  line-height: 1.55;
}

#status {
  margin-top: 20px;
  color: #9fb5c9;
  font-size: 13px;
}

.trail-tooltip {
  position: absolute;
  z-index: 30;
  display: none;
  pointer-events: none;
  background: rgba(10, 12, 14, 0.9);
  backdrop-filter: blur(10px);
  color: #f4f4f4;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
}

.trail-tooltip strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.route-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.route-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
}

.route-card:hover {
  border-color: rgba(255, 204, 51, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 204, 51, 0.18);
}

.route-card.active {
  border-color: #ffcc33;
  box-shadow:
    0 0 0 1px rgba(255, 204, 51, 0.45),
    0 0 28px rgba(255, 204, 51, 0.16);
}

.route-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.route-header h3 {
  margin: 0;
  font-size: 18px;
}

.route-card p {
  color: rgba(255,255,255,0.76);
  line-height: 1.55;
  font-size: 14px;
}

.route-meta {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.route-meta div {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
}

.route-meta label {
  display: block;
  margin-bottom: 4px;
  color: #8fa1b5;
  font-size: 11px;
}

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

.route-difficulty {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.route-difficulty.easy {
  background: rgba(70,180,110,0.16);
  color: #8cffb0;
}

.route-difficulty.moderate {
  background: rgba(255,190,70,0.16);
  color: #ffd56a;
}

.route-difficulty.hard {
  background: rgba(255,90,90,0.16);
  color: #ff8e8e;
}

.route-difficulty.expert {
  background: rgba(255,60,60,0.2);
  color: #ff5f5f;
}

#map-loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(circle at center, #14202a, #070a0d 68%);
  color: white;
}

.loader-ring {
  width: 54px;
  height: 54px;
  border: 4px solid rgba(255,255,255,0.12);
  border-top-color: #ffcc33;
  border-radius: 50%;
  animation: loader-spin 0.9s linear infinite;
}

.loader-text {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

#map-loader.finishing {
  background: rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(0.75px);
}

#map-loader.finishing .loader-ring {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

body.thumbnail-mode #left-panel,
body.thumbnail-mode #mini-map,
body.thumbnail-mode #map-controls,
body.thumbnail-mode #trail-tooltip,
body.thumbnail-mode #elevation-panel,
body.thumbnail-mode .mobile-mountain-header,
body.thumbnail-mode .mountain-picker,
body.thumbnail-mode .app-menu {
  display: none !important;
}

body.thumbnail-mode #layout {
  display: block;
}

body.thumbnail-mode #right-panel {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

body.thumbnail-mode #app {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

.interactive-3d-info {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.interactive-3d-info strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}


.related-mountains {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.related-mountain-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease,
    background 0.15s ease;
}

.related-mountain-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.related-mountain-card img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-mountain-card-content {
  padding: 14px;
}

.related-mountain-card-content strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}

.related-mountain-card-content span {
  display: block;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.related-mountain-meta {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.related-mountain-meta div {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 768px) {
  .related-mountain-card img {
    height: 130px;
  }

  .related-mountain-card-content {
    padding: 12px;
  }
}


@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  #layout {
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 100vh;
  }

  #right-panel {
    order: 1;
    width: 100%;
    height: 52vh;
    min-height: 360px;
    flex-shrink: 0;
  }

  #left-panel {
    order: 2;
    width: 100%;
    height: auto;
    padding: 14px 16px 90px;
    border-right: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    overflow: visible;
    background: #080c0f;
  }

  .eyebrow {
    margin-top: 10px;
  }

  h1 {
    font-size: 34px;
    margin-bottom: 18px;
  }

  #left-panel > p {
    font-size: 15px;
    line-height: 1.55;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .stats > div {
    padding: 16px;
    border-radius: 14px;
  }
}