:root {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #1f1f1f;
  background: #f4f0ea;
}

* { box-sizing: border-box; }
body { margin: 0; padding: 1.25rem 1rem; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

header h1 { margin-bottom: 0.25rem; }
header p { margin-top: 0; color: #594638; }

.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tab {
  background: #e7d7c6;
  color: #3d2a1d;
  border: 1px solid #bda690;
}

.tab.is-active {
  background: #5a3f2b;
  color: #fff;
}

.tab-panel { display: none; gap: 1rem; }
.tab-panel.is-active { display: grid; }

.card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: end;
}

.field-group { display: grid; gap: 0.25rem; }
.grow { min-width: 0; }

.hint { color: #6f5e4f; }

#map {
  height: 420px;
  border: 1px solid #d9cdc1;
  border-radius: 10px;
}

form { display: grid; gap: 0.55rem; }
input, select, textarea, button { font: inherit; }

input, select, textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #b8aa9e;
  border-radius: 8px;
}

button {
  width: fit-content;
  border: none;
  border-radius: 8px;
  background: #5a3f2b;
  color: #fff;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}
button:hover { background: #6c4d35; }
.secondary { background: #ad4f25; }

.results {
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 0;
  display: grid;
  gap: 0.4rem;
  max-height: 220px;
  overflow: auto;
}

.result-button {
  display: grid;
  gap: 0.1rem;
  width: 100%;
  text-align: left;
  border: 1px solid #d9cdc1;
  background: #fff;
  color: #2f2f2f;
}

.result-button span { font-size: 0.85rem; color: #6f5e4f; }

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.shop-item {
  border: 1px solid #d9cdc1;
  border-radius: 10px;
  padding: 0.8rem;
}

.shop-title { margin: 0; }
.meta { margin: 0.35rem 0; color: #6f5e4f; }
.shop-address, .shop-notes { margin: 0.2rem 0; }
.map-link { display: inline-block; margin-top: 0.25rem; color: #5a3f2b; font-weight: 600; }
.empty { color: #6f5e4f; }

@media (max-width: 900px) {
  .toolbar { grid-template-columns: 1fr; align-items: stretch; }
  #map { height: 340px; }
  .donate-floating {
    top: auto;
    bottom: 0.9rem;
    right: 0.9rem;
  }
}


.donate-floating {
  position: fixed;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d9cdc1;
  border-radius: 999px;
  padding: 0.35rem 0.45rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

.donate-floating img {
  display: block;
}
