body {
  margin: 8px calc(8px + 1%);
  color: #ffff99;
  background: #263d2c url('evergreen.jpg') repeat;
}

a:link { color: #ffff00; }
a:visited { color: #ffcc00; }
a:focus-visible, .hut-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.hut-header {
  min-height: 115px;
  padding: 0 0.25rem 0 90px;
  border-block: 3px solid #009933;
  background: url('images/newzealand-map-icon34.gif') no-repeat;
}

.hut-header h1 { font-size: clamp(1.35rem, 4vw, 2rem); }
.hut-header p { margin: 0 0 0.6rem; font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: bold; }

.hut-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 3px solid #009933;
  color: #99ccff;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.hut-nav a { color: #66ffff; }
.hut-intro { margin-block: 1rem; }
.hut-intro h2 { margin: 0; font-size: 1rem; }
.hut-intro p { margin: 0.3rem 0; }

.hut-grid { display: flex; flex-wrap: wrap; gap: 10px 3px; }

.hut-card {
  box-sizing: border-box;
  flex: 0 1 338px;
  max-width: 100%;
  min-height: 294px;
  padding: 2px;
  border: 1px solid silver;
}

.hut-card label { cursor: pointer; }
.hut-photos { margin-top: 2px; }
.hut-photos a { display: block; }
.hut-photos img {
  display: block;
  width: min(100%, 329px);
  aspect-ratio: 329 / 218;
  object-fit: contain;
}

.hut-photos .hut-outside,
.hut-toggle:checked ~ .hut-photos .hut-inside { display: none; }
.hut-toggle:checked ~ .hut-photos .hut-outside,
.hut-photos a:only-child { display: block; }

.hut-card-footer {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.hut-card-footer .icn-lgmap,
.hut-card-footer .icn-track {
  display: block;
  flex: 0 0 30px;
  min-height: 30px;
}

.hut-card-footer .icn-lgmap { background: url('marker.png') no-repeat center top; }
.hut-card-footer .icn-track { background: url('images/hiker.png') no-repeat center top; }
.hut-caption { flex: 1; margin: 0; text-align: center; overflow-wrap: anywhere; }

.hut-footer {
  margin-top: 1rem;
  padding: 15px 0;
  border-top: 3px solid #009933;
  text-align: center;
}

@media (max-width: 360px) {
  .hut-card { min-height: 0; }
}
