:root {
  --bg-deep: #141414;
  --bg-main: #1a1a1a;
  --bg-raised: #2a2a2a;
  --border: #ffffff0d;
  --text-primary: #d8dee9;
  --text-heading: #ffffff;
  --text-muted: #cccccc99;
  --accent-blue: #4c9df3;
  --accent-cyan: #88c0d0;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
  width: 100%;
  max-width: 720px;
  padding: 3rem 1.5rem;
}

h1 {
  color: var(--text-heading);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

h2 {
  color: var(--text-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  color: #66aefa;
  text-decoration: underline;
}

ul {
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.25rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.image-wrapper {
  background-color: var(--bg-raised);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid #3a3a3a;
}

footer {
  width: 100%;
  max-width: 720px;
  padding: 0 1.5rem 2rem;
}

footer hr {
  border: none;
  border-top: 1px solid #3a3a3a;
  margin-bottom: 1rem;
}

footer p {
  font-size: 0.85rem;
}

.page-header {
  width: 100%;
  max-width: 720px;
  padding: 1rem 1.5rem 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.page-header .btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  cursor: default;
  opacity: 0.5;
  pointer-events: none;
}

.page-header a.btn {
  color: var(--accent-blue);
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
}

.page-header a.btn:hover {
  color: #66aefa;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 640px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.map-section {
  min-width: 0;
}

.resources-list {
  list-style: none;
}

.resources-section .empty-state {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.25rem;
}

.resources-section:has(.resources-list:not(:empty)) .empty-state {
  display: none;
}

.weather-readout {
  background-color: var(--bg-raised);
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.weather-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.weather-values {
  color: var(--accent-cyan);
  font-size: 1rem;
  margin-bottom: 0;
}

.weather-unavailable {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
}

.weather-time {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0;
}
