html, body {
  height: 100%;
}

body {
  font-family: system-ui, sans-serif;
  margin: 0;
  color: #222;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Background layers ---------- */
.bg-collage, .bg-city {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.bg-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.bg-tile {
  background-size: cover;
  background-position: center;
}

.bg-city {
  background-size: cover;
  background-position: center;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.35);
}

/* ---------- Header / footer contrast bars ---------- */
.site-header, .site-footer {
  position: relative;
  z-index: 1;
  background: rgba(20, 20, 20, 0.88);
}

.header-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px;
}

.header-inner h1 {
  margin: 0;
  font-size: 26px;
  color: #fff;
  letter-spacing: 0.01em;
}

.footer-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 20px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  color: #ccc;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Page content ---------- */
.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 20px 40px;
  position: relative;
  flex: 1;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.date-row {
  display: flex;
  gap: 12px;
}

.date-row label {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: #555;
  gap: 4px;
}

input {
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
}

button {
  padding: 10px 16px;
  font-size: 15px;
  border: none;
  background: #222;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #444;
}

#status {
  color: #333;
  font-size: 14px;
}

.hidden {
  display: none;
}

#results {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 20px;
}

/* ---------- Day cards ---------- */
.day-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.day-card {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 14px 16px;
  background: #fff;
}

.day-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.day-stats {
  font-size: 13px;
  color: #666;
  margin: 0 0 10px;
}

.day-wear, .day-do {
  font-size: 14px;
  margin: 0 0 6px;
}

/* ---------- Pack list ---------- */
.pack-list {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.pack-list h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 10px;
}

.clothes-images {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.clothes-thumb {
  width: 90px;
  text-align: center;
  font-size: 11px;
  color: #666;
}

.clothes-thumb img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 4px;
}

.clothes-thumb.loading {
  width: 90px;
  height: 90px;
  background: #eee;
  border-radius: 6px;
}

.clothes-thumb.missing {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  border-radius: 6px;
  padding: 4px;
}