/* =============================================
   A_agency (시공점 찾기) — v5 통일 정렬 + 자동검색 + 모바일
   ============================================= */

.bbs_wrpas {
    max-width: 1400px !important;
    margin: 30px auto !important;
    padding: 0 24px !important;
    font-family: 'NanumBarunGothic', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif !important;
    color: #2A3242 !important;
    background: transparent !important;
}
.bbs_wrpas * { box-sizing: border-box; }
.bbs_wrpas a { text-decoration: none; }

/* ========== 지도 ========== */
.bbs_wrpas #map {
    width: 100% !important;
    height: 420px !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(12, 35, 64, 0.08) !important;
    overflow: hidden !important;
    background: #F1F5FA;
    border: 1px solid #E4E9F1;
}
.bbs_wrpas .main_geo_btn,
.bbs_wrpas .main_geo_btn_bbs,
.bbs_wrpas .main_geo_btn_bbs2 {
    background-color: #FFFFFF !important;
    border: 1px solid #E4E9F1 !important;
    color: #2A3242 !important;
    border-radius: 8px !important;
    padding: 9px !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08) !important;
}
.bbs_wrpas .main_geo_btn:hover,
.bbs_wrpas .main_geo_btn_bbs:hover,
.bbs_wrpas .main_geo_btn_bbs2:hover {
    border-color: #17BBE1 !important;
    color: #17BBE1 !important;
}

/* ========== 검색바 ========== */
.bbs_wrpas .ser {
    background: #FFFFFF !important;
    border-radius: 12px !important;
    padding: 18px !important;
    box-shadow: 0 4px 12px rgba(12, 35, 64, 0.05) !important;
    border: 1px solid #ECEFF3 !important;
    margin: 20px 0 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}
.bbs_wrpas .ser form { display: contents !important; }
.bbs_wrpas .ser_ul0,
.bbs_wrpas .ser_ul1,
.bbs_wrpas .ser_ul2,
.bbs_wrpas .ser ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 160px !important;
    min-width: 0 !important;
}
.bbs_wrpas .ser_select,
.bbs_wrpas .ser select,
.bbs_wrpas .ser input[type="text"],
.bbs_wrpas .ser input[type="search"] {
    width: 100% !important;
    height: 44px !important;
    border: 1.5px solid #E4E9F1 !important;
    border-radius: 8px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    color: #2A3242 !important;
    background: #FFFFFF !important;
    outline: none;
    font-family: inherit !important;
    appearance: auto;
}
.bbs_wrpas .ser_select:focus,
.bbs_wrpas .ser select:focus,
.bbs_wrpas .ser input:focus {
    border-color: #17BBE1 !important;
    box-shadow: 0 0 0 3px rgba(23, 187, 225, 0.1) !important;
}
.bbs_wrpas .ser button,
.bbs_wrpas .ser .btn_search,
.bbs_wrpas .ser input[type="submit"] {
    height: 44px !important;
    padding: 0 24px !important;
    background: linear-gradient(135deg, #17BBE1 0%, #0E94B0 100%) !important;
    color: #FFFFFF !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(23, 187, 225, 0.28) !important;
    flex: 0 0 auto !important;
}

/* ========== 컨테이너 ========== */
.bbs_wrpas .tbl_head01,
.bbs_wrpas .tbl_wrap {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
.bbs_wrpas .tabl_div {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(12, 35, 64, 0.05);
    border: 1px solid #ECEFF3;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

/* ========== 통일 4컬럼 그리드 (헤더 + 카드) ========== */
/* 4컬럼: 시공점 | 주소 | 전화 | 위치 */

/* PC 헤더 — 매우 강력한 selector + !important */
.bbs_wrpas .tabl_div ul.tabl_th,
.bbs_wrpas .tbl_head01 .tabl_div ul.tabl_th {
    display: grid !important;
    grid-template-columns: 1.6fr 2.2fr 1.3fr 100px !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 14px 24px !important;
    margin: 0 !important;
    background: #F7FAFD !important;
    border-bottom: 1px solid #ECEFF3 !important;
    list-style: none !important;
    float: none !important;
    width: 100% !important;
    position: relative !important;
}
.bbs_wrpas .tabl_div ul.tabl_th.has-check { padding-right: 50px !important; }
.bbs_wrpas ul.tabl_th li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'NanumBarunGothic', sans-serif !important;
    font-size: 12.5px !important;
    color: #6E7585 !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-align: left !important;
    float: none !important;
    width: auto !important;
    background: transparent !important;
    border: 0 !important;
    display: block !important;
}
.bbs_wrpas ul.tabl_th .agc-th-map { text-align: right !important; }

/* 기존 ul.tabl_td 완전 제거 (article.agc-row만 사용) */
.bbs_wrpas ul.tabl_td { display: none !important; }

/* PC 행 카드 — 매우 강력한 selector + !important (헤더와 정확히 동일) */
.bbs_wrpas .tabl_div article.agc-row,
.bbs_wrpas .tbl_head01 .tabl_div article.agc-row {
    display: grid !important;
    grid-template-columns: 1.6fr 2.2fr 1.3fr 100px !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 16px 24px !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid #F0F3F8 !important;
    transition: background 0.2s ease !important;
    margin: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative !important;
}
.bbs_wrpas .tabl_div article.agc-row.agc-row-has-check { padding-right: 50px !important; }
.agc-row:last-child { border-bottom: 0; }
.agc-row:hover {
    background: linear-gradient(90deg, rgba(23, 187, 225, 0.06) 0%, rgba(23, 187, 225, 0.02) 100%) !important;
    box-shadow: inset 4px 0 0 #17BBE1 !important;
}
.agc-row:hover .agc-name-text a { color: #0E94B0 !important; }
.agc-row:hover .agc-tel-link { color: #17BBE1 !important; }

/* 체크박스 — 그리드 셀이 아닌 absolute 포지셔닝 (그리드 망가짐 방지) */
.agc-row-check {
    position: absolute !important;
    top: 14px !important;
    right: 8px !important;
    z-index: 3;
}
.agc-row-has-check { padding-right: 50px !important; }
.bbs_wrpas ul.tabl_th { padding-right: 50px !important; }

/* 셀 공통 */
.agc-cell {
    min-width: 0;
    text-align: left;
}
.agc-mo-label { display: none; }

/* 컬럼 1: 시공점명 (썸네일 + 이름) */
.agc-cell-name {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.agc-thumb {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(23, 187, 225, 0.15), rgba(14, 148, 176, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
}
.agc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.agc-thumb-letter {
    font-family: 'NanumBarunGothic', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #17BBE1;
    letter-spacing: -0.01em;
}
.agc-name-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.agc-name-text a {
    font-family: 'NanumBarunGothic', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #1A2332 !important;
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-decoration: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.agc-name-text a:hover { color: #17BBE1 !important; }
.agc-cat-inline {
    display: inline-block;
    background: rgba(23, 187, 225, 0.1);
    color: #0E94B0;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    font-style: normal;
    width: fit-content;
}

/* 아이콘 wrap — 주소/전화 앞 멋진 아이콘 (시작점 통일) */
.agc-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(23, 187, 225, 0.12), rgba(14, 148, 176, 0.06));
    flex: 0 0 28px !important;
    flex-shrink: 0 !important;
    margin-right: 10px !important;
    transition: all 0.22s ease;
    vertical-align: middle;
}
.agc-icon-wrap svg {
    color: #0E94B0;
    display: block;
}
/* 카드 hover 시 아이콘 강조 효과 제거 — 카드 자체 배경만 변경 */

/* 컬럼 2: 주소 (좌측 정렬 강제) */
.agc-cell-addr {
    text-align: left !important;
    font-size: 13px;
    color: #5A6478;
    overflow: hidden;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    justify-self: stretch !important;
}
.agc-addr-text {
    display: block !important;
    text-align: left !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
    min-width: 0;
    flex: 1 1 0;
    width: auto;
}

/* 컬럼 3: 전화번호 (좌측 정렬 강제) */
.agc-cell-tel {
    text-align: left !important;
    font-size: 13.5px;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    justify-self: stretch !important;
}
.agc-tel-link {
    color: #0E94B0 !important;
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    text-decoration: none !important;
    transition: color 0.18s ease;
}
.agc-tel-link:hover { color: #17BBE1 !important; text-decoration: underline !important; }

/* 컬럼 4: 지도 버튼 */
.agc-cell-map {
    text-align: right;
}
.agc-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    transition: all 0.18s ease;
    text-decoration: none !important;
    border: 1.5px solid #E4E9F1;
    cursor: pointer;
    background: #F4F6FA;
    color: #2A3242 !important;
    font-family: inherit;
    white-space: nowrap;
}
.agc-map-btn:hover {
    background: #1A2332;
    color: #FFFFFF !important;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(26, 35, 50, 0.25);
}

/* 빈 결과 */
.agc-empty {
    text-align: center;
    padding: 70px 24px;
    color: #98A1B4;
    font-size: 15px;
    background: #FAFBFD;
    line-height: 1.6;
}
.agc-empty::before {
    content: "";
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(23, 187, 225, 0.1) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2317BBE1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") center/24px no-repeat;
}

/* ========== 페이지네이션 — #bo_list ID로 무조건 override ========== */
html body #bo_list .pg_wrap,
html body #bo_list nav.pg_wrap {
    margin: 36px 0 12px !important;
    text-align: center !important;
    background: transparent !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
}
html body #bo_list .pg_wrap .pg,
html body #bo_list nav.pg_wrap .pg {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
html body #bo_list .pg_page,
html body #bo_list .pg_current,
html body #bo_list .pg_start,
html body #bo_list .pg_prev,
html body #bo_list .pg_next,
html body #bo_list .pg_end {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #6E7585 !important;
    font-family: 'NanumBarunGothic', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
    line-height: 1 !important;
    box-shadow: none !important;
    float: none !important;
    vertical-align: middle !important;
}
html body #bo_list .pg_page:hover,
html body #bo_list .pg_start:hover,
html body #bo_list .pg_prev:hover,
html body #bo_list .pg_next:hover,
html body #bo_list .pg_end:hover {
    background: rgba(23, 187, 225, 0.1) !important;
    color: #17BBE1 !important;
}
html body #bo_list .pg_current {
    background: linear-gradient(135deg, #17BBE1 0%, #0E94B0 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 18px rgba(23, 187, 225, 0.4) !important;
    font-weight: 800 !important;
    min-width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    transform: scale(1.05);
    border: 0 !important;
}

/* ========== 등록 / 선택삭제 — #bo_list ID로 무조건 override ========== */
html body #bo_list .bo_fx {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 24px 0 8px !important;
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    float: none !important;
    width: 100% !important;
}
html body #bo_list .bo_fx::after { display: none !important; content: none !important; }
html body #bo_list .bo_fx ul { float: none !important; }

/* 기존 bbs_btns1 / bbs_btns2 / bbs_btns3 모두 ID로 강제 override */
html body #bo_list .bbs_btns1,
html body #bo_list .bbs_btns2,
html body #bo_list .bbs_btns3,
html body #bo_list .bo_fx button,
html body #bo_list .bo_fx a.btn,
html body #bo_list .bo_fx a.btn_b01,
html body #bo_list .bo_fx a.btn_b02,
html body #bo_list .bo_fx a.btn_admin,
html body #bo_list .btn_bo_user_btm a,
html body #bo_list .btn_bo_user_btm button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 48px !important;
    line-height: 1 !important;
    padding: 0 28px !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #5A6478 !important;
    font-family: 'NanumBarunGothic', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(12, 35, 64, 0.06) !important;
    letter-spacing: -0.005em !important;
    position: relative !important;
    overflow: hidden !important;
    float: none !important;
    margin: 0 !important;
}

html body #bo_list .bbs_btns1:hover,
html body #bo_list .bo_fx button:hover,
html body #bo_list .bo_fx a.btn:hover,
html body #bo_list .bo_fx a.btn_b01:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(12, 35, 64, 0.1) !important;
}

/* 선택삭제 — 회색 base, hover 빨강 */
html body #bo_list .bo_fx button[value*="삭제"],
html body #bo_list .bo_fx button[value*="delete"],
html body #bo_list .bbs_btns1[value*="삭제"] {
    background: #F4F6FA !important;
    background-color: #F4F6FA !important;
    color: #6E7585 !important;
    box-shadow: inset 0 0 0 1.5px #E4E9F1 !important;
}
html body #bo_list .bo_fx button[value*="삭제"]:hover,
html body #bo_list .bbs_btns1[value*="삭제"]:hover {
    background: #DC2626 !important;
    background-color: #DC2626 !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35), inset 0 0 0 0 transparent !important;
}

/* 등록 — 시안 그라데이션 */
html body #bo_list .bo_fx a.btn_b02,
html body #bo_list .bo_fx a.btn_admin,
html body #bo_list .bo_fx a[href*="write.php"] {
    background: linear-gradient(135deg, #17BBE1 0%, #0E94B0 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 22px rgba(23, 187, 225, 0.4) !important;
}
html body #bo_list .bo_fx a.btn_b02:hover,
html body #bo_list .bo_fx a[href*="write.php"]:hover {
    background: linear-gradient(135deg, #1FCEED 0%, #11A5C2 100%) !important;
    color: #FFFFFF !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 28px rgba(23, 187, 225, 0.55) !important;
}

/* 기존 룰 (위와 같지만 .bbs_wrpas selector — 호환성용 보조) */
.bbs_wrpas .bo_fx {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 24px 0 8px !important;
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
}
.bbs_wrpas .btn_bo_user_btm,
.bbs_wrpas ul.btn_bo_user_btm {
    display: inline-flex !important;
    list-style: none !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
}
.bbs_wrpas .btn_bo_user_btm li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: inline-block !important;
}

/* 기본 모든 액션 버튼 — 큰 사이즈 + 임팩트 */
.bbs_wrpas .bbs_btns1,
.bbs_wrpas .bo_fx button,
.bbs_wrpas .bo_fx a.btn,
.bbs_wrpas .bo_fx a.btn_b01,
.bbs_wrpas .bo_fx a.btn_b02,
.bbs_wrpas .btn_bo_user_btm a,
.bbs_wrpas .btn_bo_user_btm button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 48px !important;
    padding: 0 28px !important;
    background: #FFFFFF !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #5A6478 !important;
    font-family: 'NanumBarunGothic', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: 1 !important;
    box-shadow: 0 2px 8px rgba(12, 35, 64, 0.06) !important;
    letter-spacing: -0.005em !important;
    position: relative;
    overflow: hidden;
}
.bbs_wrpas .bbs_btns1:hover,
.bbs_wrpas .bo_fx button:hover,
.bbs_wrpas .bo_fx a.btn:hover,
.bbs_wrpas .bo_fx a.btn_b01:hover,
.bbs_wrpas .btn_bo_user_btm a:hover,
.bbs_wrpas .btn_bo_user_btm button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(12, 35, 64, 0.1) !important;
}

/* 선택삭제 (value 또는 클래스에 "삭제") — 회색 베이스, hover 빨강 */
.bbs_wrpas .bo_fx button[value*="삭제"],
.bbs_wrpas .bo_fx button[value*="delete"],
.bbs_wrpas .bbs_btns1[value*="삭제"],
.bbs_wrpas .btn_bo_user_btm button[value*="삭제"] {
    background: #F4F6FA !important;
    color: #6E7585 !important;
    border: 0 !important;
    box-shadow: inset 0 0 0 1.5px #E4E9F1 !important;
}
.bbs_wrpas .bo_fx button[value*="삭제"]:hover,
.bbs_wrpas .bbs_btns1[value*="삭제"]:hover,
.bbs_wrpas .btn_bo_user_btm button[value*="삭제"]:hover {
    background: #DC2626 !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35), inset 0 0 0 0 transparent !important;
    transform: translateY(-2px) !important;
}
/* 선택삭제 앞 아이콘 (::before) */
.bbs_wrpas .bo_fx button[value*="삭제"]::before,
.bbs_wrpas .bbs_btns1[value*="삭제"]::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: currentColor;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-2 14a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6M14 11v6'/><path d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/></svg>") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-2 14a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6M14 11v6'/><path d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/></svg>") center/contain no-repeat;
}

/* 등록(글쓰기) — 시안 그라데이션 메인 액션 */
.bbs_wrpas .bo_fx .btn_b02,
.bbs_wrpas .bo_fx a.btn_admin,
.bbs_wrpas .bo_fx .btn_admin,
.bbs_wrpas .bo_fx a[href*="write.php"],
.bbs_wrpas .bo_fx .btn_b01.btn_write,
.bbs_wrpas .bo_fx button[value*="등록"],
.bbs_wrpas .bo_fx a[href*="write"] {
    background: linear-gradient(135deg, #17BBE1 0%, #0E94B0 100%) !important;
    color: #FFFFFF !important;
    border: 0 !important;
    box-shadow: 0 8px 22px rgba(23, 187, 225, 0.4) !important;
}
.bbs_wrpas .bo_fx .btn_b02:hover,
.bbs_wrpas .bo_fx a[href*="write.php"]:hover,
.bbs_wrpas .bo_fx a[href*="write"]:hover {
    background: linear-gradient(135deg, #1FCEED 0%, #11A5C2 100%) !important;
    box-shadow: 0 12px 28px rgba(23, 187, 225, 0.55) !important;
    color: #FFFFFF !important;
    transform: translateY(-3px) !important;
}
/* 등록 앞 + 아이콘 */
.bbs_wrpas .bo_fx .btn_b02::before,
.bbs_wrpas .bo_fx a[href*="write.php"]::before,
.bbs_wrpas .bo_fx a[href*="write"]::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    margin-right: -2px;
}

/* ========== 카카오 오버레이 — 전화번호 안 잘리게 + close 우상단 ========== */
.bbs_wrpas .wrap {
    position: absolute;
    bottom: 44px;
    left: -150px;
    width: 320px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    overflow: hidden;
}
.bbs_wrpas .wrap > .close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 20px !important;
    height: 20px !important;
    cursor: pointer;
    opacity: 0.5;
    z-index: 10;
    transition: opacity 0.2s;
    margin: 0 !important;
}
.bbs_wrpas .wrap > .close:hover { opacity: 1; }
.bbs_wrpas .wrap .info { padding: 14px 36px 14px 14px; }
.bbs_wrpas .wrap .info .body {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.bbs_wrpas .wrap .info .body .img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.bbs_wrpas .wrap .info .body .desc {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
}
.bbs_wrpas .wrap .info .body .desc .titles {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.35;
    word-break: keep-all;
}
.bbs_wrpas .wrap .info .body .desc .titles a {
    color: #1A2332;
    text-decoration: none;
}
.bbs_wrpas .wrap .info .body .desc .titles a:hover { color: #17BBE1; }
.bbs_wrpas .wrap .info .body .desc .sub1 {
    font-size: 12px;
    color: #5A6478;
    margin-bottom: 4px;
    line-height: 1.45;
    word-break: keep-all;
}
.bbs_wrpas .wrap .info .body .desc .sub3 {
    font-size: 13px;
    color: #17BBE1;
    font-weight: 700;
    font-family: 'Roboto Slab', serif;
    line-height: 1.4;
    /* cut90 클래스 무시 — 전화번호 안 잘리게 */
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    max-width: none !important;
    width: auto !important;
}
.bbs_wrpas .wrap .info .body .desc .sub3.cut90,
.bbs_wrpas .wrap .info .body .desc .titles.cut80,
.bbs_wrpas .wrap .info .body .desc .sub1.cut90 {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    max-width: none !important;
    width: auto !important;
}

/* ========== 모바일 클래스 직접 적용 (PHP is_mobile()) ========== */
.agc-row-mobile .agc-cell {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    width: 100%;
}
.agc-row-mobile .agc-cell:last-child { margin-bottom: 0; }
.agc-row-mobile .agc-cell-name {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #F0F3F8;
}
.agc-row-mobile .agc-mo-label {
    display: inline-block !important;
    flex-shrink: 0;
    width: 42px;
    font-size: 11px;
    font-weight: 700;
    color: #98A1B4;
    letter-spacing: 0.04em;
}
.agc-row-mobile .agc-cell-addr,
.agc-row-mobile .agc-cell-tel { font-size: 13px; }
.agc-row-mobile .agc-cell-map { justify-content: stretch; }
.agc-row-mobile .agc-map-btn {
    width: 100% !important;
    padding: 10px 12px !important;
    height: auto !important;
}
.agc-row-mobile .agc-name-text a { font-size: 14.5px; white-space: normal !important; }
.agc-row-mobile .agc-icon-wrap { margin-right: 8px !important; }

/* ========== 모바일 ≤ 820px — 매우 강력한 selector로 PC inline override ========== */
@media all and (max-width: 820px) {
    .bbs_wrpas { padding: 0 14px !important; margin: 16px auto !important; }
    .bbs_wrpas #map { height: 320px !important; border-radius: 10px !important; }
    .bbs_wrpas .ser { padding: 14px !important; gap: 8px !important; }
    .bbs_wrpas .ser_ul0,
    .bbs_wrpas .ser_ul1,
    .bbs_wrpas .ser_ul2 { flex: 1 1 calc(50% - 8px) !important; }
    .bbs_wrpas .ser input[type="search"],
    .bbs_wrpas .ser input[type="text"] { flex: 1 1 100% !important; }

    /* 헤더 숨김 — 매우 강력한 selector */
    .bbs_wrpas .tabl_div ul.tabl_th,
    .bbs_wrpas .tbl_head01 .tabl_div ul.tabl_th { display: none !important; }

    /* 카드 = 적층 (block) */
    .bbs_wrpas .tabl_div article.agc-row,
    .bbs_wrpas .tbl_head01 .tabl_div article.agc-row {
        display: block !important;
        grid-template-columns: none !important;
        padding: 14px 16px !important;
        border-radius: 0 !important;
        gap: 0 !important;
    }
    .bbs_wrpas .tabl_div article.agc-row.agc-row-has-check { padding-right: 50px !important; }

    /* 셀 = 가로 flex (라벨 + 값) */
    .bbs_wrpas .tabl_div article.agc-row .agc-cell {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
        width: 100% !important;
    }
    .bbs_wrpas .tabl_div article.agc-row .agc-cell:last-child { margin-bottom: 0 !important; }
    .bbs_wrpas .tabl_div article.agc-row .agc-cell-name {
        padding-bottom: 10px !important;
        margin-bottom: 10px !important;
        border-bottom: 1px solid #F0F3F8 !important;
    }
    .agc-mo-label {
        display: inline-block !important;
        flex-shrink: 0;
        width: 42px;
        font-size: 11px;
        font-weight: 700;
        color: #98A1B4;
        letter-spacing: 0.06em;
    }
    .bbs_wrpas .tabl_div article.agc-row .agc-cell-addr,
    .bbs_wrpas .tabl_div article.agc-row .agc-cell-tel { font-size: 13px; }
    .bbs_wrpas .tabl_div article.agc-row .agc-cell-map { justify-content: stretch !important; }
    .bbs_wrpas .tabl_div article.agc-row .agc-cell-map .agc-map-btn {
        width: 100% !important;
        padding: 11px 12px !important;
        height: auto !important;
        font-size: 13px !important;
    }
    .bbs_wrpas .tabl_div article.agc-row .agc-name-text a {
        font-size: 14.5px !important;
        white-space: normal !important;
    }
    .bbs_wrpas .tabl_div article.agc-row .agc-icon-wrap {
        margin-right: 8px !important;
        flex: 0 0 26px !important;
        width: 26px !important;
        height: 26px !important;
    }
    .bbs_wrpas .tabl_div article.agc-row .agc-addr-text {
        white-space: normal !important;
        line-height: 1.5 !important;
    }
    .bbs_wrpas .wrap { width: 280px; left: -130px; }
}

/* ========== 모바일 ≤ 480px ========== */
@media all and (max-width: 480px) {
    .bbs_wrpas #map { height: 260px !important; }
    .bbs_wrpas .ser_ul0,
    .bbs_wrpas .ser_ul1,
    .bbs_wrpas .ser_ul2 { flex: 1 1 100% !important; }
    .agc-row { padding: 12px 14px !important; }
    .agc-thumb { width: 38px; height: 38px; }
    .agc-thumb-letter { font-size: 14px; }
    .agc-name-text a { font-size: 13.5px; }
    .agc-mo-label { width: 36px; font-size: 10.5px; }
    .bbs_wrpas .pg_page,
    .bbs_wrpas .pg_current { min-width: 34px !important; height: 34px !important; padding: 0 10px !important; font-size: 12.5px !important; }
}

/* =============================================
   View 페이지 — 시공점 상세 보기
   ============================================= */

html body #bo_v {
    max-width: 1400px !important;
    margin: 30px auto !important;
    padding: 0 24px !important;
    font-family: 'NanumBarunGothic', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif !important;
    color: #2A3242 !important;
}
html body #bo_v *,
html body #bo_v *::before,
html body #bo_v *::after { box-sizing: border-box; }

/* 상단 제목 영역 */
html body #bo_v .bbs_wrpas { width: 100% !important; background: transparent !important; }
html body #bo_v .bis_tit_ul1 {
    background: #FFFFFF !important;
    border-radius: 14px !important;
    padding: 28px 32px !important;
    margin: 0 0 24px !important;
    list-style: none !important;
    border: 1px solid #ECEFF3 !important;
    box-shadow: 0 4px 14px rgba(12, 35, 64, 0.05) !important;
}
html body #bo_v .bis_tit_li {
    font-family: 'NanumSquare', 'NanumBarunGothic', sans-serif !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #1A2332 !important;
    margin: 0 0 14px !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid #ECEFF3 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.3 !important;
    list-style: none !important;
}
html body #bo_v .profile_info_ct {
    font-size: 14.5px !important;
    color: #5A6478 !important;
    line-height: 1.85 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
html body #bo_v .profile_info_ct a {
    color: #17BBE1 !important;
    font-family: 'Roboto Slab', serif !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
html body #bo_v .profile_info_ct a:hover { color: #0E94B0 !important; }

/* 지도 영역 */
html body #bo_v .maps_div {
    margin: 0 0 28px !important;
    padding: 0 !important;
}
html body #bo_v .maps_div_l {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
}
html body #bo_v .info_right,
html body #bo_v #map {
    width: 100% !important;
    height: 420px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 18px rgba(12, 35, 64, 0.08) !important;
    background: #F1F5FA !important;
    border: 1px solid #E4E9F1 !important;
    margin: 0 !important;
}

/* 본문 영역 */
html body #bo_v #bo_v_info {
    background: #FFFFFF !important;
    border-radius: 14px !important;
    padding: 32px !important;
    border: 1px solid #ECEFF3 !important;
    box-shadow: 0 4px 14px rgba(12, 35, 64, 0.05) !important;
    margin: 0 0 24px !important;
}
html body #bo_v #bo_v_img {
    margin: 0 0 24px !important;
    text-align: center !important;
}
html body #bo_v #bo_v_img img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
    margin: 0 auto 14px !important;
    display: block !important;
}
html body #bo_v #bo_v_con {
    font-family: 'NanumBarunGothic', sans-serif !important;
    font-size: 15.5px !important;
    color: #2A3242 !important;
    line-height: 1.85 !important;
    word-break: keep-all !important;
}
html body #bo_v #bo_v_con img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin: 14px 0 !important;
}
html body #bo_v #bo_v_con p { margin: 0 0 14px !important; }

/* 버튼 영역 */
html body #bo_v #bo_v_share {
    margin: 28px 0 24px !important;
    padding: 0 !important;
}
html body #bo_v .btn_v_01 {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}
html body #bo_v .bbs_btns1,
html body #bo_v .bbs_btns2,
html body #bo_v .bbs_btns3,
html body #bo_v #bo_v_share button,
html body #bo_v #bo_v_share a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    padding: 0 28px !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #5A6478 !important;
    font-family: 'NanumBarunGothic', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: 1 !important;
    box-shadow: 0 2px 8px rgba(12, 35, 64, 0.06) !important;
    letter-spacing: -0.005em !important;
    float: none !important;
    margin: 0 !important;
    width: auto !important;
}
html body #bo_v .bbs_btns1:hover,
html body #bo_v #bo_v_share button:hover,
html body #bo_v #bo_v_share a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(12, 35, 64, 0.1) !important;
}

/* 등록 버튼 — 시안 그라데이션 */
html body #bo_v .bbs_btns2,
html body #bo_v #bo_v_share button[onclick*="write"] {
    background: linear-gradient(135deg, #17BBE1 0%, #0E94B0 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 18px rgba(23, 187, 225, 0.35) !important;
}
html body #bo_v .bbs_btns2:hover {
    background: linear-gradient(135deg, #1FCEED 0%, #11A5C2 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 10px 24px rgba(23, 187, 225, 0.5) !important;
}

/* 삭제 — 회색 base, hover 빨강 */
html body #bo_v .bbs_btns3,
html body #bo_v #bo_v_share a[onclick*="del"] {
    background: #F4F6FA !important;
    background-color: #F4F6FA !important;
    color: #6E7585 !important;
    box-shadow: inset 0 0 0 1.5px #E4E9F1 !important;
}
html body #bo_v .bbs_btns3:hover {
    background: #DC2626 !important;
    background-color: #DC2626 !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35), inset 0 0 0 0 transparent !important;
}

/* 첨부파일 영역 */
html body #bo_v #bo_v_file {
    background: #F7FAFD !important;
    border-radius: 12px !important;
    padding: 22px 24px !important;
    margin: 0 0 20px !important;
    border: 1px solid #ECEFF3 !important;
}
html body #bo_v #bo_v_file h2 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #17BBE1 !important;
    margin: 0 0 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
}
html body #bo_v #bo_v_file ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
html body #bo_v #bo_v_file li {
    margin: 0 0 10px !important;
    padding: 12px 14px !important;
    background: #FFFFFF !important;
    border-radius: 8px !important;
    border: 1px solid #ECEFF3 !important;
    list-style: none !important;
}
html body #bo_v #bo_v_file li a {
    color: #17BBE1 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
html body #bo_v #bo_v_file li i { color: #98A1B4 !important; margin-right: 6px !important; }
html body #bo_v #bo_v_file .bo_v_file_cnt {
    display: block !important;
    margin-top: 4px !important;
    font-size: 12px !important;
    color: #98A1B4 !important;
}

/* 모바일 view */
@media (max-width: 820px) {
    html body #bo_v { padding: 0 16px !important; margin: 16px auto !important; }
    html body #bo_v .bis_tit_ul1 { padding: 20px 18px !important; }
    html body #bo_v .bis_tit_li { font-size: 19px !important; padding-bottom: 12px !important; margin-bottom: 12px !important; }
    html body #bo_v .profile_info_ct { font-size: 13.5px !important; }
    html body #bo_v .info_right,
    html body #bo_v #map { height: 320px !important; border-radius: 10px !important; }
    html body #bo_v #bo_v_info { padding: 20px !important; border-radius: 10px !important; }
    html body #bo_v #bo_v_con { font-size: 14.5px !important; }
    html body #bo_v .btn_v_01 { justify-content: stretch !important; }
    html body #bo_v .bbs_btns1,
    html body #bo_v .bbs_btns2,
    html body #bo_v .bbs_btns3 {
        flex: 1 1 calc(50% - 5px) !important;
        height: 44px !important;
        padding: 0 16px !important;
        font-size: 13.5px !important;
    }
}
