/* 예약 문의에 사진 붙이기 — 사이트의 /upload/upload.css (칸: components/site/ContactForm.tsx · 동작: /upload/upload.js)
   색·글꼴·간격은 문의 폼이 놓인 숙소 소개 구역([data-about])의 값(--ab-ink · --ab-ink-2 · --ab-bg · --u)을 그대로 쓴다.
   동의 상자는 문의 폼과 같은 클래스(hm-contact__consent)라 모양이 같다. 누르는 대상은 모두 44px 이상. */
.hm-upload{
  --hu-ink:var(--ab-ink, #3F372F);
  --hu-ink-2:var(--ab-ink-2, rgba(62,54,46,.8));
  --hu-line:rgba(63,55,47,.2);
  display:grid; gap:calc(14 * var(--u, 1px)); min-width:0; margin:0;
}
.hm-upload__title{ margin:0; font-size:max(15px, calc(18 * var(--u, 1px))); line-height:1.4; letter-spacing:-.01em; color:var(--hu-ink-2); }
.hm-upload__help{ margin:0; font-size:max(14px, calc(16 * var(--u, 1px))); line-height:1.6; color:var(--hu-ink-2); word-break:keep-all; overflow-wrap:anywhere; }

/* 사진 고르기 — 보내기 버튼(검정 채움)보다 한 단계 낮은 테두리 버튼. 파일 칸은 버튼 안에 겹쳐 숨기되 키보드로 고를 수 있게 둔다 */
.hm-upload__pick{
  position:relative; justify-self:start; display:inline-flex; align-items:center; justify-content:center;
  min-height:48px; min-width:max(160px, calc(200 * var(--u, 1px))); padding:0 max(22px, calc(32 * var(--u, 1px)));
  font-size:max(16px, calc(20 * var(--u, 1px))); font-weight:500; letter-spacing:-.01em; line-height:1.2;
  color:var(--hu-ink); background:transparent; border:1px solid var(--hu-ink); border-radius:0; cursor:pointer;
  transition:background-color .3s ease, color .3s ease, opacity .3s ease;
}
.hm-upload__pick:hover{ color:var(--ab-bg, #F2F3ED); background:var(--hu-ink); }
.hm-upload__pick:focus-within{ outline:1px solid var(--hu-ink); outline-offset:4px; }
.hm-upload__pick input[type=file]{ position:absolute; inset:0; width:100%; height:100%; margin:0; padding:0; opacity:0; cursor:pointer; font-size:0; }
.hm-upload.is-busy .hm-upload__pick{ opacity:.5; cursor:progress; }
.hm-upload.is-busy .hm-upload__pick input[type=file]{ cursor:progress; }

/* 붙인 사진 — 작은 그림 · 사진 번호와 크기 · [빼기] */
.hm-upload__list{ list-style:none; margin:0; padding:0; display:grid; }
.hm-upload__list:empty{ display:none; }
.hm-upload__item{
  display:grid; grid-template-columns:64px minmax(0, 1fr) auto; align-items:center; gap:14px;
  padding:10px 0; border-bottom:1px solid var(--hu-line);
}
.hm-upload__item:first-child{ border-top:1px solid var(--hu-line); }
.hm-upload__thumb{ display:block; width:64px; height:64px; background:rgba(63,55,47,.08); }
.hm-upload__thumb img{ display:block; width:64px; height:64px; object-fit:cover; }
.hm-upload__thumb:focus-visible{ outline:1px solid var(--hu-ink); outline-offset:3px; }
.hm-upload__name{ min-width:0; font-size:max(15px, calc(17 * var(--u, 1px))); line-height:1.4; color:var(--hu-ink); overflow-wrap:anywhere; }
.hm-upload__remove{
  min-width:44px; min-height:44px; padding:0 10px; margin:0;
  font:inherit; font-size:max(15px, calc(17 * var(--u, 1px))); color:var(--hu-ink);
  background:transparent; border:0; border-radius:0; cursor:pointer;
  text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.18em; transition:color .3s ease;
}
.hm-upload__remove:hover{ color:#A37D59; }
.hm-upload__remove:focus-visible{ outline:1px solid var(--hu-ink); outline-offset:2px; }
.hm-upload__remove[disabled]{ opacity:.5; cursor:default; }

.hm-upload__msg{ margin:0; font-size:max(15px, calc(17 * var(--u, 1px))); line-height:1.5; color:var(--hu-ink-2); word-break:keep-all; overflow-wrap:anywhere; }
.hm-upload__msg[data-kind=ok]{ color:#1a6b3a; }
.hm-upload__msg[data-kind=error]{ color:#b42318; }

@media (max-width:640px){
  .hm-upload__pick{ justify-self:stretch; width:100%; }
}
@media (prefers-reduced-motion:reduce){
  .hm-upload__pick, .hm-upload__remove{ transition:none; }
}
