/* 새 구조에 맞춘 보정 (원래 스타일은 style.css 등 그대로) */
[x-cloak] { display: none !important; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* 알림 창: 원래는 .is-open 클래스로 보였는데, 이제 Alpine(x-show)이 보이고 숨김 */
#layer-popup, #layer-popup-dim { display: block; }

/* 집 안 테스트 접속 표시 */

/* 페이지 번호 (원래 표 모양을 그대로 쓰되 링크 위치만 맞춤) */
.page-list a { color: inherit; }

/* 댓글 목록 불러오는 동안 */
.comment-list-group.htmx-request { opacity: .5; transition: opacity .2s; }

/* 문의 페이지 첨부 목록 */
#request .dropList li button { border: 0; background: none; margin-left: 8px; color: #999; cursor: pointer; }
.blog-selectbox-option li a { display: block; color: inherit; }

/* ========== 팝업 (지금 사이트 메인의 팝업 모양 그대로) ========== */
.popup { position: relative; border-radius: 20px; overflow: hidden; font-size: 0; line-height: 0; box-shadow: 0 0 35px rgba(0, 0, 0, 0.04); background: #fff; }
.popupWrap { position: absolute; width: auto !important; height: auto !important; }
.popup .img img { max-width: 380px; }
.popup .img a { display: block; line-height: 1; font-size: 0; }
.popup .popup-html { font-size: 16px; line-height: 1.6; padding: 30px 24px 80px; }
.popup .popBtn label { position: absolute; left: 12px; bottom: 12px; display: inline-block; cursor: pointer; padding: 0 10px; height: 45px; line-height: 45px; text-align: center; font-size: 15px; border-radius: 4px; letter-spacing: 0px; opacity: 0.4; }
.popup .popBtn label input { width: 14px; height: 14px; vertical-align: middle; position: relative; top: -1px; margin: 0 5px 0 0; appearance: auto; -webkit-appearance: auto; }
.popup .popBtn label:hover { opacity: 0.8; }
.popup .hide { position: absolute; right: 12px; top: 12px; width: 45px; height: 45px; background: url('/assets/playdev/img/close.png') no-repeat center / 25px; opacity: 0.5; cursor: pointer; border-radius: 4px; font-size: 0; }
.popup .hide:hover { opacity: 0.8; }

/* 글 목록: 대표 이미지가 없을 때 회색 바탕 + 옅은 로고 */
#blog-list .list-image .list-noimg, #blog-view .view-related-image .list-noimg { display: block; width: 100%; height: 100%; background: #f4f4f4 url('/assets/playdev/logo.svg') no-repeat center / 46% auto; position: relative; }
#blog-list .list-image .list-noimg::after, #blog-view .view-related-image .list-noimg::after { content: ''; position: absolute; inset: 0; background: rgba(244, 244, 244, .78); } /* 로고를 옅은 회색으로 */

/* 머리말 검색: 입력 지우기(X) */
#top .search .q-clear { position: absolute; right: 60px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border: 0; border-radius: 50%; background: #eee; color: #777; font-size: 15px; line-height: 30px; text-align: center; cursor: pointer; padding: 0; }
#top .search .q-clear:hover { background: #ddd; color: #222; }
#top .search .contents { padding-right: 100px; }

/* 예산 드롭다운 (FAMILY SITE 와 같은 모양) */
#request .write .costSelect .options li.on::after { content: ''; }
#request .write .costSelect .options li.hi { background: #f4f4f4; }
#request .write .costSelect:focus { outline: none; }
#request .write .costSelect:focus-visible .value { box-shadow: 0 0 0 2px #000 inset; }

/* 문의 보내는 중: 버튼 아이콘 자리에 도는 표시 + 글자 "보내는 중…" (멈춘 것처럼 보이지 않게) */
@keyframes pdSpin { to { transform: rotate(360deg); } }
#request .write .rows.submit button.is-busy,
#request .write .rows.submit button.is-busy:hover { background: #a98bff; cursor: progress; }
#request .write .rows.submit button.is-busy em { width: 22px; height: 22px; margin: 0 12px 0 0; background: none; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: pdSpin .8s linear infinite; }
#quickFrm #submitBtn2.is-busy { color: #fff; background: #a98bff; cursor: progress; }
#quickFrm #submitBtn2.is-busy:before { width: 18px; height: 18px; margin: 0 10px 0 -6px; background: none; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: pdSpin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { #request .write .rows.submit button.is-busy em, #quickFrm #submitBtn2.is-busy:before { animation-duration: 2.4s; } }

/* 문의 버튼 글자: 흰색 + 조금 굵게 (버튼 안 <span> 에 다른 규칙 색이 묻지 않게) */
#request .write .rows.submit button, #request .write .rows.submit button span,
#quickFrm #submitBtn2, #quickFrm #submitBtn2 span { color: #fff; font-weight: 700; }

/* 정렬·몇 개씩 보기 펼침 목록: 글자 조금 작게, 위아래 여백 고르게 */
#blog-list .blog-selectbox-option { padding: 6px; }
#blog-list .blog-selectbox-option li { height: 38px; line-height: 38px; padding: 0 10px; font-size: 15px; text-align: center; }
#blog-list .blog-selectbox-option li a { white-space: nowrap; }

/* 문의 첨부 목록: 왼쪽 미리보기(이미지) · 파일 이름(조금 작게) · 크기 · 오른쪽 끝 X */
#request .write .dropList li { gap: 12px; height: 56px; padding: 0 10px 0 8px; }
#request .write .dropList li .th { flex: 0 0 40px; color: #8f68ff; font-size: 10px; font-weight: 700; }
#request .write .dropList li .nm { font-size: 14px; color: #444; }
#request .write .dropList li .sz { flex: none; font-size: 12.5px; }
#request .dropList li button { flex: none; margin-left: 0; width: 30px; height: 30px; line-height: 30px; border-radius: 50%; font-size: 15px; background: #fff; color: #999; }
#request .dropList li button:hover { color: #000; }
#request .write .dropList li .th span { font-size: 10px; font-weight: 700; color: #8f68ff; letter-spacing: 0; }
