:root {
    --bg: #000;
    --fg: #e6e6e6;
    --muted: #8a8a8a;
    --accent: #00e08a;
    --card: #111;
    --card-border: #222;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --max-width: 95vw;
  }

  * { box-sizing: border-box }

  html, body {
    height: 100%;
    margin: 0;
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  .wrap {
    width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: 20px;
  }

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  header h1 {
    margin: 0;
    font-size: clamp(20px, 3vw, 28px);
  }

  .updated {
    font-size: 14px;
    color: var(--muted);
    padding: 2px 8px;
    border: 1px solid var(--card-border);
    border-radius: 999px;
  }

  .grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
  }

  @media (min-width: 900px) {
    .grid {
      grid-template-columns: 1fr 2fr;
      align-items: stretch;
    }
  }

  .card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .pad {
    padding: 16px;
  }

  .photo {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--card-border);
  }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
  }

  .accent { color: var(--accent); }

     .stats {
     display: grid;
     grid-template-columns: repeat(2, minmax(0, 1fr));
     grid-template-rows: repeat(2, auto);
     gap: 12px;
     margin-top: 8px;
   }

  .stat {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px;
  }

  .stat .k { font-size: 12px; color: var(--muted); }
  .stat .v { font-weight: 600; margin-top: 4px; }

  .map {
    width: 100%;
    min-height: 400px;
    aspect-ratio: 16/9;
    border: 0;
    display: block;
    border-radius: 12px;
    flex: 1;
  }

  footer {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
  }

  .fade-swap { transition: opacity 0.28s ease, transform 0.28s ease; will-change: opacity, transform; }
  .fade-out { opacity: 0; transform: translateY(3px); }
  .fade-in { opacity: 1; transform: none; }

  @media (prefers-reduced-motion: reduce) {
    .fade-swap { transition: none; }
  }

  .chip {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
  }

  .chip.bad {
    color: #ffb3b3;
    border-color: #402020;
    background: #1a0000;
  }

  .cluster {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
  }

  .location-link {
    font-size: 14px;
    color: var(--accent);
    margin-top: 8px;
    display: block;
    word-break: break-word;
  }

  /* Link styling */
  a {
    color: #f5f5f5; /* Off-white color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
  }

  a:hover {
    color: #00e08a; /* Green hover color matching accent */
  }

  a:visited {
    color: #f5f5f5; /* Keep visited links the same off-white color */
  }

  a:visited:hover {
    color: #00e08a; /* Same green hover for visited links */
  }