/* ============================================================
   DRONE MARKET — PHP 앱 추가 스타일 (style.css 를 건드리지 않는 보강분)
   ============================================================ */

/* 수정 폼 — 기존 저장 사진의 삭제 선택 */
.pv-item .pv-saved-del {
    position: absolute;
    right: 4px;
    top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 24, 40, .72);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 7px;
    cursor: pointer;
    user-select: none;
}
.pv-item .pv-saved-del input { accent-color: #f04438; }
.pv-item:has(.pv-saved-del input:checked) img { opacity: .35; filter: grayscale(1); }

/* hlist 제목 링크화 대응 */
a.hl-title { display: block; color: inherit; text-decoration: none; }
a.hl-title:hover { text-decoration: underline; }

/* 관리자 테이블 안 상태 변경 form 여백 제거 */
.adm-table form { margin: 0; }

/* 관리자 테이블 제목 링크 */
.adm-table .tt a { color: inherit; text-decoration: none; }
.adm-table .tt a:hover { text-decoration: underline; color: var(--primary); }

/* 페이지네이션 링크 수가 많을 때 줄바꿈 */
.paging { flex-wrap: wrap; }

/* 상세 소유자 상태 select 높이 정렬 */
.va-actions .sel { border-radius: 10px; }

/* ============================================================
   라디오 카드 방어 규칙
   — 서버에 구버전 style.css 가 남아있어도 폼이 깨지지 않도록
     핵심 규칙을 app.css(나중에 로드)에서 한 번 더 강제한다.
   ============================================================ */
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-cards.cols-2 { grid-template-columns: 1fr 1fr; }
.radio-card { position: relative; display: block; margin: 0; }
.radio-card input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    appearance: none;
    -webkit-appearance: none;
}
.radio-card .rc-body {
    display: block;
    border: 1.5px solid var(--line, #e5e8ef);
    border-radius: 12px;
    background: #fff;
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
}
.radio-card .rc-body i { font-size: 22px; color: var(--muted, #8b93a7); margin-bottom: 8px; display: block; }
.radio-card .rc-body strong { display: block; font-size: 14px; font-weight: 700; }
.radio-card .rc-body span { display: block; font-size: 11.5px; color: var(--muted, #8b93a7); margin-top: 3px; }
.radio-card input:checked + .rc-body { border-color: var(--primary, #2457e6); background: var(--primary-light, #eef3ff); }
.radio-card input:checked + .rc-body i,
.radio-card input:checked + .rc-body strong { color: var(--primary, #2457e6); }

/* 모바일: 라디오카드 1열 가로형 (좁은 화면 텍스트 깨짐 방지) */
@media (max-width: 768px) {
    .radio-cards, .radio-cards.cols-2 { grid-template-columns: 1fr; gap: 8px; }
    .radio-card .rc-body { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; }
    .radio-card .rc-body i { margin-bottom: 0; font-size: 17px; width: 24px; text-align: center; flex-shrink: 0; }
    .radio-card .rc-body strong { font-size: 14px; }
    .radio-card .rc-body span { margin-top: 0; margin-left: auto; font-size: 11.5px; flex-shrink: 0; text-align: right; }

    /* 폼 2열 필드도 좁은 화면에서는 1열로 */
    .field-row { grid-template-columns: 1fr; }
}

/* 체크박스 방어 규칙 (구버전 CSS 의 input 전역 스타일 무력화) */
.chk input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    accent-color: var(--primary, #2457e6);
    flex-shrink: 0;
}

/* 거래 방식 체크칩 (매물 등록 폼) */
.trade-chk-row { display: flex; gap: 10px; flex-wrap: wrap; }
.trade-chk {
    background: #fff;
    border: 1.5px solid var(--line, #e3e6ef);
    border-radius: 10px;
    padding: 11px 16px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
}
.trade-chk:has(input:checked) {
    border-color: var(--primary, #2457e6);
    background: var(--primary-light, #eef3ff);
    color: var(--primary, #2457e6);
}

/* 로고 마크 이미지 (메이저컴퍼니 심볼 — 서비스명 텍스트는 유지) */
.logo .logo-mark-img { height: 36px; width: auto; display: block; }
.m-header .mh-logo .logo-mark-img { height: 28px; width: auto; display: block; }
.footer .f-logo { display: flex; align-items: center; gap: 8px; }
.footer .f-logo img { height: 24px; width: auto; display: block; }
.adm-side .as-logo .logo-mark-img { height: 30px; width: auto; display: block; }
.auth-card .ac-logo .logo-mark.is-img {
    background: #fff !important;
    border: 1px solid var(--line, #e3e6ef);
    box-shadow: 0 6px 16px rgba(36, 87, 230, .12);
}
.auth-card .ac-logo .logo-mark.is-img img { width: 72%; height: 72%; object-fit: contain; }

/* 성능평가 스마트스토어 결제 안내 박스 (신청 화면) */
.insp-store-box {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: #eefaf2;
    border: 1px solid #c4ecd4;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.insp-store-box .isb-text { flex: 1; min-width: 220px; }
.insp-store-box .isb-text strong {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: #0d7a43;
    margin-bottom: 4px;
}
.insp-store-box .isb-text span { font-size: 12.5px; color: var(--sub, #5b6472); line-height: 1.5; display: block; }
.insp-store-box .btn { flex-shrink: 0; }

/* 가격 협의가능 태그 (목록 카드·상세) */
.nego-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eefaf2;
    color: #159957;
    border: 1px solid #c4ecd4;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    margin-left: 7px;
    vertical-align: middle;
    white-space: nowrap;
}
