/* crew-address.css — 주소 검색 레이어 (V135gz)
   팝업 대신 화면 안에서 연다 */

.ca-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(17, 24, 39, .5);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.ca-modal {
    box-sizing: border-box;
    background: #fff; border-radius: 14px;
    width: 100%; max-width: 500px;
    max-height: 90vh;
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
}
.ca-modal * { box-sizing: border-box; }

.ca-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 16px; border-bottom: 1px solid #F3F4F6;
    font-size: 15px; font-weight: 800; color: #111827;
    flex: none;
}
.ca-x {
    border: none; background: none; font-size: 16px; color: #9CA3AF;
    cursor: pointer; padding: 4px 6px; line-height: 1; font-family: inherit;
}
.ca-x:hover { color: #374151; }

/* V135hd — 검색창 높이가 0으로 찌그러지던 문제.
   .ca-body 가 flex 아이템이라 높이가 '정해지지 않은' 상태였고,
   다음(Daum) 이 만든 안쪽 div 의 height:100% 가 **0** 으로 계산됐습니다.
   → 레이어는 열리는데 안이 텅 빈 하얀 칸으로 보였습니다.
   높이를 픽셀로 못 박고, 안쪽 div·iframe 도 같이 채웁니다. */
.ca-body {
    flex: none;
    height: 460px;
    min-height: 460px;
    overflow: auto;
}
/* 실패 안내(.ca-fail)까지 늘리면 안 되므로 제외한다 */
.ca-body > div:not(.ca-fail):not(.ca-loading) {
    width: 100% !important;
    height: 100% !important;
    min-height: 460px !important;
}
.ca-body iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 460px !important;
}

.ca-loading {
    display: flex; align-items: center; justify-content: center;
    height: 420px; color: #9CA3AF; font-size: 13px;
}

/* ── 못 불러왔을 때 ── */
.ca-fail { padding: 22px 20px 20px; text-align: center; height: auto; min-height: 0; }
.ca-fail-ico { font-size: 30px; line-height: 1; }
.ca-fail-title {
    font-size: 15.5px; font-weight: 800; color: #111827; margin-top: 10px;
}
.ca-fail-sub { font-size: 12.5px; color: #6B7280; margin-top: 5px; line-height: 1.6; }

.ca-fail-help {
    text-align: left; background: #F9FAFB; border: 1px solid #E5E7EB;
    border-radius: 10px; padding: 13px 15px; margin-top: 16px;
    font-size: 12.5px; color: #374151; line-height: 1.75;
}
.ca-fail-help b { color: #111827; }
.ca-fail-help ol { margin: 7px 0 0; padding-left: 19px; }
.ca-fail-help li { margin-bottom: 4px; }
.ca-fail-note {
    margin-top: 10px; padding-top: 9px; border-top: 1px dashed #E5E7EB;
    color: #B45309; font-size: 12px;
}

.ca-btn {
    width: 100%; border: none; border-radius: 9px; padding: 12px 16px;
    font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit;
    background: #FF6B35; color: #fff; margin-top: 12px;
}
.ca-btn:hover { filter: brightness(.95); }
.ca-btn.ghost { background: #F3F4F6; color: #374151; margin-top: 8px; }

/* 직접 입력으로 열린 칸 — 잠긴 칸과 구분되게 */
input.ca-manual {
    background: #FFFBEB !important;
    border-color: #FDE68A !important;
}

@media (max-width: 420px) {
    .ca-modal { max-height: 94vh; }
    .ca-body { height: 420px; min-height: 420px; }
    .ca-body > div:not(.ca-fail):not(.ca-loading), .ca-body iframe { min-height: 420px !important; }
    .ca-loading { height: 420px; }
}
