/* ユーザー投稿 UI */

.lmap-fb-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}
.lmap-fb-btn {
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}
.lmap-fb-btn:hover { background: #e2e8f0; }
.lmap-fb-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* .lmap-reviews / .lmap-reviews h2 の margin は frontend.css 側で一元管理（重複指定を避ける） */
.lmap-avg-rating { font-size: 18px; font-weight: 700; color: #f59e0b; }

.lmap-review-list { list-style: none; padding: 0; margin: 6px 0; }
.lmap-review-list li {
  border-top: 1px solid #e5e7eb;
  padding: 8px 0;
}
.lmap-review-meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 2px;
}
.lmap-review-rating { color: #f59e0b; }
.lmap-review-content {
  white-space: pre-wrap;
  line-height: 1.7;
  color: #1f2937;
}
.lmap-violation-btn {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 11px;
  cursor: pointer;
  margin-left: 8px;
}
.lmap-violation-btn:hover { color: #dc2626; }

.lmap-review-form {
  margin-top: 8px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 6px;
  display: grid;
  gap: 6px;
}
.lmap-review-form label { font-size: 13px; }
.lmap-review-form input, .lmap-review-form textarea {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}
.lmap-review-form button[type="submit"] {
  padding: 8px 16px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.lmap-review-form button[type="submit"]:disabled { opacity: 0.6; }

.lmap-rating-stars { display: inline-flex; gap: 2px; font-size: 22px; cursor: pointer; user-select: none; }
.lmap-rating-star { color: #cbd5e1; }
.lmap-rating-star.is-on { color: #f59e0b; }

.lmap-modal {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.lmap-modal-inner {
  background: #fff; padding: 20px; border-radius: 8px; width: 90%; max-width: 440px;
  display: grid; gap: 10px;
}
.lmap-modal-inner h3 { margin: 0; }
.lmap-modal-inner label { font-size: 13px; display: grid; gap: 4px; }
.lmap-modal-inner select, .lmap-modal-inner textarea {
  padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 4px;
  width: 100%; box-sizing: border-box;
}
.lmap-modal-buttons { display: flex; gap: 6px; justify-content: flex-end; margin-top: 4px; }
.lmap-modal-buttons button { padding: 6px 12px; border-radius: 4px; cursor: pointer; }
.lmap-violation-send { background: #2563eb; color: #fff; border: none; }
.lmap-violation-cancel { background: #e5e7eb; color: #1f2937; border: none; }

.lmap-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1e293b; color: #fff; padding: 8px 14px; border-radius: 6px;
  font-size: 14px; opacity: 0; transition: opacity 200ms, transform 200ms; z-index: 10000;
}
.lmap-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
