/* ปุ่ม ⓘ และกล่องข้อมูล (ใช้ร่วม index.html / map.html) มือถือ = bottom sheet, จอกว้าง = แผงเล็กใกล้ปุ่ม */
.info-btn {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  opacity: 0.9;
  cursor: pointer;
}
.info-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.info-btn:hover { opacity: 1; }

dialog.info {
  --i-ink: #3F5A4A;
  --i-muted: #57725F;
  --i-line: #E3E9DF;
  --i-green: #3E7A56;
  box-sizing: border-box;
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 82dvh;
  margin: 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  overflow: auto;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: #FBF7EE;
  color: var(--i-ink);
  font: 400 15px/1.5 "Sarabun", "Noto Sans Thai", system-ui, sans-serif;
  box-shadow: 0 -8px 30px rgba(23, 34, 29, 0.35);
}
dialog.info::backdrop { background: rgba(23, 34, 29, 0.55); }
dialog.info :focus-visible { outline: 3px solid var(--i-green); outline-offset: 2px; }
.info-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.info-head h2 { margin: 0; font: 600 18px/1.3 "Kanit", "Sarabun", system-ui, sans-serif; }
.info-x {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #E3F1E6;
  color: var(--i-ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; }
.info-list .ico { flex: none; width: 22px; text-align: center; line-height: 1.5; }
.info-list .pins { display: flex; flex-direction: column; gap: 4px; }
.info-list .pin { display: flex; align-items: center; gap: 8px; }
.info-list .pin .swatch { width: 14px; height: 14px; }
.info-list b { font-weight: 600; }
@media (min-width: 640px) {
  dialog.info {
    inset: 56px 12px auto auto;
    width: 360px;
    max-height: calc(100dvh - 80px);
    border-radius: 16px;
    padding-bottom: 16px;
    box-shadow: 0 12px 34px rgba(23, 34, 29, 0.4);
  }
  dialog.info::backdrop { background: rgba(23, 34, 29, 0.25); }
}
