/* 美食（Food Spots）—— 模块自带样式，沿用模板的色板与圆角 */

#food-spots-root [hidden] { display: none !important; }

.food-note {
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, .6);
  font-size: 11px;
  line-height: 1.6;
}

.food-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.food-tools { display: flex; gap: 6px; margin-left: auto; }
.food-tools button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 680;
}
.food-tools button:hover { color: var(--ink); border-color: var(--lake); }

.food-primary {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.food-primary:hover { background: #1d3b48; }
.food-primary[disabled] { opacity: .6; cursor: default; }

.food-error {
  margin: 10px 0 0;
  padding: 9px 12px;
  border: 1px solid #efd3cb;
  border-radius: 11px;
  color: #9c4630;
  background: #fdf3ef;
  font-size: 11px;
  line-height: 1.6;
}

.food-form-wrap { margin-bottom: 16px; }

.food-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.food-form__head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
}
.food-form__head strong { font-size: 13px; }
.food-form__head span { color: var(--muted); font-size: 10.5px; line-height: 1.5; }

.food-field { display: block; margin-bottom: 12px; }
.food-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}
.food-field > span em { margin-left: 3px; color: #c1674f; font-style: normal; }
.food-field input,
.food-field textarea,
.food-field select {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  outline: none;
  resize: vertical;
}
.food-field select { resize: none; }
.food-field input:focus,
.food-field textarea:focus,
.food-field select:focus { border-color: var(--lake); box-shadow: 0 0 0 3px rgba(40, 123, 144, .1); }
.food-field__hint { display: block; margin-top: 5px; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.food-field__hint[data-state="ok"] { color: var(--forest); }
.food-field__hint[data-state="warn"] { color: var(--warning); }

.food-form__row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 520px) { .food-form__row { grid-template-columns: 1fr 1fr; gap: 12px; } }

.food-form__actions { display: flex; align-items: center; gap: 8px; }
.food-form__actions button[type="button"] {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}
.food-form__actions button[type="button"]:hover { color: var(--ink); border-color: var(--lake); }

.food-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) { .food-list { grid-template-columns: 1fr 1fr; } }

.food-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(25, 47, 55, .06);
  overflow: hidden;
}
.food-card__body { padding: 13px 14px; display: flex; flex-direction: column; gap: 6px; }
.food-card__title { margin: 0; font-size: 14px; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.food-card__dish { margin: 0; color: var(--ink); font-size: 12.5px; line-height: 1.6; overflow-wrap: anywhere; }
.food-card__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.food-chip {
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(25, 47, 55, .05);
  font-size: 10px;
  font-weight: 650;
}
.food-card__geo,
.food-card__linked,
.food-card__note {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.food-card__link {
  align-self: flex-start;
  color: var(--lake);
  font-size: 11px;
  font-weight: 680;
  text-decoration: none;
}
.food-card__link:hover { text-decoration: underline; }

.food-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.food-card__map,
.food-card__actions button {
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  font-size: 11px;
  font-weight: 680;
}
.food-card__map { color: #fff; background: var(--lake); }
.food-card__map:hover { background: #1d6b7b; }
.food-card__actions button { color: var(--muted); background: rgba(25, 47, 55, .05); }
.food-card__actions button:hover { color: var(--ink); background: rgba(25, 47, 55, .1); }
.food-card__actions button[data-action="delete"] { color: #9a7062; background: transparent; }
.food-card__actions button[data-action="delete"]:hover { color: #9c4630; background: #fdf3ef; }

.food-card__map-wrap { padding: 0 12px 12px; }
.food-card__frame {
  width: 100%;
  height: 200px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(25, 47, 55, .04);
}

.food-empty {
  padding: 30px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(255, 255, 255, .55);
}
.food-empty strong { display: block; font-size: 13px; }
.food-empty p { margin: 8px auto 0; max-width: 340px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
