body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f7f3e8;
  color: #222;
}

.hero,
main {
  max-width: 960px;
  margin: auto;
  padding: 24px;
}

.eyebrow {
  color: #2f6f4e;
  font-weight: bold;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px #0002;
}

.category {
  color: #2f6f4e;
  font-weight: bold;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card a {
  color: #2f6f4e;
  font-weight: bold;
}

.controls {
  background: #fffaf0;
  border: 1px solid #eadfca;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.controls label {
  display: grid;
  gap: 8px;
  font-weight: bold;
}

input {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #aaa;
  border-radius: 10px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

button {
  padding: 8px 14px;
  border: 1px solid #888;
  border-radius: 999px;
  background: white;
  cursor: pointer;
}

button.active {
  background: #2f6f4e;
  color: white;
}

.card {
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #ddd;
}

.card-body {
  padding: 16px;
}

.empty {
  background: white;
  border-radius: 16px;
  padding: 20px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.links a {
  display: inline-block;
  color: #2f6f4e;
  background: #edf7f1;
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: bold;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-block;
  color: white;
  background: #d0702f;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
}

.food-card {
  background: #fff7ed;
  border: 2px solid #f0c28a;
}

.image-area {
  width: 100%;
  height: 180px;
  background: #eee3d1;
}

.no-image {
  height: 180px;
  display: grid;
  place-items: center;
  color: #7a6a58;
  font-weight: bold;
  background:
    linear-gradient(135deg, #f7f3e8, #e8dcc7);
}

.info-box {
  background: #f4f8f1;
  border-left: 5px solid #2f6f4e;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
}

.info-box h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #2f6f4e;
}

.info-box p {
  margin: 0;
}

.menu-box {
  background: #fff3e3;
  border-left-color: #d0702f;
}

.menu-box h3 {
  color: #d0702f;
}

.control-block {
  margin-top: 16px;
}

.control-title {
  margin: 0 0 8px;
  font-weight: bold;
  color: #2f6f4e;
}

.theme-buttons button {
  background: #fff7ed;
  border-color: #d0702f;
}

.theme-buttons button.active {
  background: #d0702f;
  color: white;
}

.print-button {
  margin-top: 16px;
  width: 100%;
  background: #2f6f4e;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: bold;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-block;
  color: white;
  background: #d0702f;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.mini-badge {
  display: inline-block;
  color: #2f6f4e;
  background: #edf7f1;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: bold;
  font-size: 12px;
}

.food-card {
  background: #fff7ed;
  border: 2px solid #f0c28a;
}

.image-area {
  width: 100%;
  height: 180px;
  background: #eee3d1;
}

.no-image {
  height: 180px;
  display: grid;
  place-items: center;
  color: #7a6a58;
  font-weight: bold;
  background: linear-gradient(135deg, #f7f3e8, #e8dcc7);
}

.info-box {
  background: #f4f8f1;
  border-left: 5px solid #2f6f4e;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
}

.info-box h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #2f6f4e;
}

.info-box p {
  margin: 0;
}

.menu-box {
  background: #fff3e3;
  border-left-color: #d0702f;
}

.menu-box h3 {
  color: #d0702f;
}

.meta {
  font-size: 14px;
  color: #555;
  background: #f7f3e8;
  border-radius: 8px;
  padding: 8px 10px;
}

.favorite-button {
  width: 100%;
  margin: 4px 0 12px;
  padding: 9px 12px;
  border: 1px solid #d0702f;
  border-radius: 999px;
  background: white;
  color: #d0702f;
  font-weight: bold;
}

.favorite-button.favorited {
  background: #d0702f;
  color: white;
}

@media (max-width: 600px) {
  .hero,
  main {
    padding: 16px;
  }

  .buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  button {
    width: 100%;
  }

  .top-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .controls,
  .favorite-button,
  .links {
    display: none;
  }

  body {
    background: white;
  }

  .hero {
    padding-bottom: 8px;
  }

  .cards {
    display: block;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    margin-bottom: 16px;
    break-inside: avoid;
  }

  .image-area {
    height: 120px;
  }

  .card img,
  .no-image {
    height: 120px;
  }
}

.map-section {
  max-width: 960px;
  margin: 0 auto 24px;
  padding: 0 24px;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 10px;
}

.map-header h2 {
  margin: 0;
}

.map-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

#map {
  width: 100%;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 12px #0002;
  border: 1px solid #eadfca;
}

.location-button {
  width: 100%;
  margin-top: 8px;
  background: #2f6f4e;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: bold;
}

.distance {
  font-size: 14px;
  color: #2f6f4e;
  font-weight: bold;
  background: #edf7f1;
  border-radius: 8px;
  padding: 8px 10px;
}

.leaflet-popup-content h3 {
  margin: 0 0 6px;
}

.leaflet-popup-content p {
  margin: 4px 0;
}

.popup-link {
  display: inline-block;
  margin-top: 6px;
  color: #2f6f4e;
  font-weight: bold;
}

@media (max-width: 600px) {
  .map-section {
    padding: 0 16px;
  }

  .map-header {
    display: block;
  }

  #map {
    height: 320px;
  }
}

@media print {
  .map-section {
    display: none;
  }
}