html {
    overflow-x: hidden;
}

@media (max-width: 575px) {
  .container-sm, .container {
    max-width: 100%;
  }
}

/******
* 페이지링크로 이동하였을 때 위에 메뉴때문에 가려져서 100px의 여유를 준다.
 *******/
section {
    scroll-margin-top: 100px;
}

/******
* swiper
 *******/
.slide-caption {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 2;  /* ← 오버레이보다 높게! */
  width: 100%;
  text-align: center;
}

.slide-caption * {
  color: #fff;
}

.swiper-controls {display:none}
.swiper-container:hover .swiper-controls {
    display: block;
}

/******
* 데이터 없음 보여주는 카드
 *******/
.card-empty {
    grid-column: 1 / -1; /* 그리드 전체 너비를 차지 */
    background-color: #f8f9fa;
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    border-radius: 0.5rem;
}

/******
* 팝업용 css
 *******/
.popup_area {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.popup_area.active {
    opacity: 1;
    visibility: visible;
}
.popup_area.removing {
    opacity: 0;
    visibility: hidden;
}

.popup_area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
}

.popup_wrapper {
    width: 400px;
    position: absolute;
    z-index: 10;
    top: 100px;
    left: 400px;
    border-radius: 10px;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
}

/* ✅ 모바일 대응 */
@media (max-width: 576px) {
    .popup_wrapper {
        width: 90%;
    }
}

.popup_area .swiper {
    background-color: #fff;
    border-radius: 10px;
}

.popup_area .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}
.popup_area .swiper-slide .content {
    padding: 10px;
}

.popup_area .btn-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    font-size: 0;
    text-indent: -9999px;
    background: no-repeat top / 35px url(/assets/images/ico_close.svg);
    display: block;
    z-index: 11;
}

/******
* 팝업용 css
 *******/

/* 숫자 입력에서 스핀 버튼 제거 */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/*****************************************************
 * https://weddinggarden.tibo.kr/ 에서 상단 슬라이드에서
 * 이미지때문에 하얀 글씨가 잘 안보임 수정
 ****************************************************/
.swiper-slide.bg-dark {
    position: relative;
    overflow: hidden;
}

.swiper-slide.bg-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.swiper-slide.bg-dark .overlay-text {
    position: absolute;
    z-index: 2;
    color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.swiper-thumbs .swiper-slide img {
    height: 100px;
    object-fit: cover;
    aspect-ratio: 1.5 / 1;
    display: block;
}

/******
* 쇼핑
 *******/
.btn-red {
    background-color: #e2626b !important;
    color: #fff !important;
}

/******
* 부동산
 *******/

/* map_mode가 있을 때 기본은 3개 */
.map-mode #listCanvas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* map_mode가 있을 때 2000px 이하에서는 2개로 변경 */
@media (max-width: 1999px) {
    .map-mode #listCanvas {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 999px) {
    .map-mode #listCanvas {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Bootstrap col 스타일 무력화 */
.map-mode #listCanvas > [class*="col-"] {
    width: 100%;
    flex: none;
}

/* 공통 스타일 */
.map-label {
    background-color: var(--bs-primary); /* Bootstrap 기본 primary 색상 사용 */
    color: white;
    font-weight: bold;
    font-size: 14px;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); /* 부드러운 입체감 */
    transition: transform 0.2s ease-in-out;
}

.map-label:hover {
    background-color: #fff !important;
    border: 1px solid #333 !important;
    color: #333 !important;
    position: relative;
    z-index: 1000;
}

.map-label.active {
    background-color: #fff !important;
    border: 1px solid #333 !important;
    color: #333 !important;
    position: relative;
    z-index: 1000;
}

.property-search-wrapper .dropdown {
    position: relative;
    max-width: 180px;
}

#section-mobile-more {
    display: none; /* 모바일 기본 숨김 */
}

@media (max-width: 767.98px) {
    #section-mobile-more.mobile-active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1050;
        background-color: #fff;
        overflow-y: auto;
    }

    .mobile-more-header {
        padding: 15px;
        border-bottom: 1px solid #dee2e6;
    }

    #section-mobile-more.mobile-active #section-mobile-more-body {
        padding: 15px;
    }
}

@media (min-width: 768px) {
    #section-mobile-more {
        display: flex !important;
        gap: 1rem;
        position: static;
        height: auto;
        background: transparent;
    }
}

.mobile-more-header,
.btn-mobile-more {
    display: none;
}

/* 모바일 화면일 경우 50%로 변경 */

@media (max-width: 768px) {
    .property-search-wrapper .dropdown {
        max-width: 100% !important;
        width: 100% !important;
    }

    .property-search-wrapper .position-relative {
        width: 100% !important;
    }

    #mapToggle {
        position: fixed;
        z-index: 1000;
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        top: auto !important; /* 기존 top 값 무효화 */
    }

    .mobile-more-header,
    .btn-mobile-more {
        display: block;
    }
}

.property-search-wrapper .dropdown .dropdown-toggle-box {
    cursor: pointer;

    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.7;

    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: 1px solid rgb(26, 24, 22);
    border-radius: 0.4rem;
    box-shadow: 0rem 0rem 1.25rem rgba(30, 34, 40, 0.04);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;

    padding-right: 30px;
    color: rgb(26, 24, 22);

    white-space: nowrap;
    /* 줄 바꿈 금지 */
    overflow: hidden;
    /* 넘친 부분 숨김 */
    text-overflow: ellipsis;
    /* 말줄임표(...) 표시 */
}

.property-search-wrapper .dropdown i {
    position: absolute;
    top: 9px;
    right: 5px;
    font-size: 20px;
    color: rgb(26, 24, 22);
}

.property-search-wrapper .dropdown .dropdown-menu {
    min-width: 350px;
    margin-top: 10px !important;
}

#mainprice_slider {
    max-width: 100%;
    height: auto;
}

#subprice_slider {
    max-width: 100%;
    height: 80px;
}

#mapToggle.btn-group > .btn {
    padding: 0.375rem 1.25rem;
}

#mapToggle.btn-group > .btn.active {
    background-color: white;
    border: 1px solid #000;
    color: black;
}

html.map-mode,
body.map-mode {
    overflow: hidden;
    height: 100vh;
}

#mainContent {
    height: auto;
    background-color: #f9f9f9;
}

body.map-mode #mainContent {
    height: calc(100vh - 181px);
    /* 지도 모드일 때만 높이 제한 */
    display: flex;
}

#listPanel {
    width: 100%;
    height: auto;
    overflow: visible;
}

body.map-mode #listPanel {
    width: 50%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 100% !important; /* 지도모드에서는 container의 max-width제약을 없앰 */
}

#mapPanel {
    width: 50%;
    height: 100%;
    position: relative;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: block;
    /* 항상 block, 대신 보여짐은 상태로 제어 */
    pointer-events: none;
    /* 비활성화된 상태일 때 클릭 방지 */
}

body.map-mode #mapPanel {
    opacity: 1;
    transform: translateX(0%);
    pointer-events: auto;
}

body.map-mode #mapPanel {
    display: block;
}

#mapCanvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.cursor-pointer {
    cursor: pointer;
}

@media (max-width: 767.98px) {
    /* ✅ 모바일에서는 숨김 */
    body.map-mode #listPanel {
        display: none;
    }
    #mapPanel {
        width: 100%;
    }

    body.map-mode footer {
        display: none;
    }
}

/* 구글지도 인포윈도우 패딩 제거 및 스타일 조정*/
.gm-style .gm-style-iw-c {
    padding: 0px !important;
}
.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

.gm-style .gm-style-iw-d .mb-4 {
    margin-bottom: 0rem !important;
}

.gm-style-iw-ch {
    display: none;
}
.gm-style-iw-chr {
    position: relative;
}
.gm-style-iw-chr button {
    position: absolute !important;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.gm-ui-hover-effect > span {
    background-color: #fff !important;
}

#mapCanvas > div > div > div > div {
    border: none !important;
}

/* 소셜로그인 디자인 */

.social-btn {
    display: flex;
    align-items: center; /* 세로 방향 중앙 정렬 */
    justify-content: center; /* 가로 방향 중앙 정렬 */
    width: 100%;
    border-radius: 5px;
    background-color: #fff; /* 배경색 */
    color: #000; /* 텍스트 색상 */
    border: 1px solid #e0e0e0; /* 테두리 */
    cursor: pointer;
    text-decoration: none; /* 텍스트 밑줄 제거 */
    padding: 10px 15px; /* 패딩으로 버튼 내부 공간을 조정 */
    transition: background-color 0.3s; /* 0.3초 동안 배경색 변경 효과 */
    text-align: left; /* 텍스트를 왼쪽으로 정렬합니다. */
}
.social-btn:hover {
    color: #fff;
}
.social-btn.s-google:hover {
    background: #4175df;
}
.social-btn.s-naver:hover {
    background: #03c75a;
}
.social-btn.s-micro:hover {
    background: #00a4ef;
}
.social-btn.s-kakao:hover {
    background: #d9ca11;
}

.social-group {
    width: 155px;
    display: flex;
}

.social-icon-wrapper {
    flex-shrink: 0; /* 아이콘이 축소되지 않도록 설정합니다. */
    display: flex;
    justify-content: center; /* 가로 방향 중앙 정렬 */
    align-items: center; /* 세로 방향 중앙 정렬 */
    margin-right: 10px; /* 아이콘과 텍스트 사이의 여백 */
    width: 20px;
    height: 20px;
    background-size: cover;
}
.social-google-bg {
    background-image: url("/assets/images/social_google.png");
}

.social-naver-bg {
    background-image: url("/assets/images/social_naver.png");
}

.social-kakao-bg {
    background-image: url("/assets/images/social_kakao.png");
}

.social-icon {
    width: 25px; /* 아이콘 크기 */
    height: 25px; /* 아이콘 크기 */
}

img {
    max-width: 100%;
}

footer .widget img {
    max-width: 200px;
    max-height: 50px;
}

/* 카카오톡 아이콘용 추가 스타일 */
.share-dropdown .dropdown-menu .dropdown-item[data-id="kakaotalk"] svg {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

/*******************************
 * fmenu
 *******************************/
.btn-fmenu-wrapper {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 1000;
    width: 58px;
    opacity: 0.5;
    /* animation: balloon 1.5s ease-in-out infinite; */
    transition: opacity ease 0.3s;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: fadeInRight;
    animation-name: fadeInRight;
    animation-delay: 0.3s;
    -webkit-animation-delay: 0.3s;
}

.btn-fmenu-wrapper:hover {
    opacity: 1;
}

.btn-fmenu-wrapper a {
    display: block;
    margin: 5px 0px;
    cursor: pointer;
}

.btn-fmenu-wrapper img {
    max-width: 100%;
}

.ck-editor__editable_inline{
    height: 250px;
}

<style>
/* 부동산 정보 테이블 공통 스타일 */
.property-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid #ddd !important;
}

/* 테이블 헤더 공통 */
.property-th {
    width: 20% !important;
    min-width: 100px !important;
    border-top: 1px solid #dddddd !important;
    border-bottom: 1px solid #dddddd !important;
    padding: 8px !important;
    word-wrap: break-word !important;
    word-break: keep-all !important;
}

/* 라이트 모드 헤더 */
.property-th-light {
    background-color: #f9f9f9 !important;
}

/* 다크 모드 헤더 */
.property-th-dark {
    background-color: #0c1427 !important;
    color: #fff !important;
}

/* 테이블 데이터 공통 */
.property-td {
    width: 80% !important;
    border-top: 1px solid #dddddd !important;
    border-bottom: 1px solid #dddddd !important;
    padding: 8px !important;
    word-wrap: break-word !important;
    word-break: keep-all !important;
}


/****
*** 부동산 상세페이지
**/
/* propert-content 내부의 부동산 정보 테이블 스타일 */
.propert-content figure.table {
    width: 100% !important;
    margin: 20px 0 !important;
}

.propert-content figure.table table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    border-bottom: 1px solid #ddd !important;
}

/* 2열 테이블 (건축물대장, 토지정보) */
.propert-content figure.table table tbody tr th {
    width: 20% !important;
    min-width: 120px !important;
    border: 1px solid #dddddd !important;
    padding: 10px 8px !important;
    background-color: #f9f9f9 !important;
    font-weight: 600 !important;
    text-align: left !important;
    vertical-align: middle !important;
    word-wrap: break-word !important;
    word-break: keep-all !important;
}

.propert-content figure.table table tbody tr td {
    width: 80% !important;
    border: 1px solid #dddddd !important;
    padding: 10px 8px !important;
    vertical-align: middle !important;
    word-wrap: break-word !important;
    word-break: keep-all !important;
    line-height: 1.4 !important;
}

/* 4열 테이블 (층별 정보) */
.propert-content figure.table table thead tr th {
    border: 1px solid #dddddd !important;
    padding: 10px 8px !important;
    background-color: #f9f9f9 !important;
    font-weight: 600 !important;
    text-align: left !important;
    vertical-align: middle !important;
    word-wrap: break-word !important;
    word-break: keep-all !important;
}

.propert-content figure.table table thead tr th:nth-child(1) {
    width: 15% !important;
    min-width: 80px !important;
}

.propert-content figure.table table thead tr th:nth-child(2) {
    width: 20% !important;
    min-width: 100px !important;
}

.propert-content figure.table table thead tr th:nth-child(3) {
    width: 32.5% !important;
    min-width: 120px !important;
}

.propert-content figure.table table thead tr th:nth-child(4) {
    width: 32.5% !important;
    min-width: 120px !important;
}

/* 층별 정보 테이블의 tbody */
.propert-content figure.table table:has(thead) tbody tr td {
    border: 1px solid #dddddd !important;
    padding: 8px !important;
    text-align: center !important;
    vertical-align: middle !important;
    word-wrap: break-word !important;
    word-break: keep-all !important;
    line-height: 1.3 !important;
}

.propert-content figure.table table:has(thead) tbody tr td:nth-child(1) {
    width: 15% !important;
    font-weight: 500 !important;
}

.propert-content figure.table table:has(thead) tbody tr td:nth-child(2) {
    width: 20% !important;
    font-weight: 500 !important;
}

.propert-content figure.table table:has(thead) tbody tr td:nth-child(3) {
    width: 32.5% !important;
    text-align: left !important;
}

.propert-content figure.table table:has(thead) tbody tr td:nth-child(4) {
    width: 32.5% !important;
    text-align: left !important;
}

/* 제목 스타일 */
.propert-content h3 {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 30px 0 15px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #007bff !important;
}

.propert-content h3:first-of-type {
    margin-top: 20px !important;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .propert-content figure.table table {
        font-size: 13px !important;
    }
    
    .propert-content figure.table table th,
    .propert-content figure.table table td {
        padding: 6px 4px !important;
    }
    
    .propert-content figure.table table tbody tr th {
        min-width: 100px !important;
    }
    
    .propert-content figure.table table thead tr th:nth-child(1) {
        min-width: 60px !important;
    }
    
    .propert-content figure.table table thead tr th:nth-child(2) {
        min-width: 80px !important;
    }
    
    .propert-content figure.table table thead tr th:nth-child(3),
    .propert-content figure.table table thead tr th:nth-child(4) {
        min-width: 100px !important;
    }
}

@media (max-width: 576px) {
    .propert-content figure.table table {
        font-size: 12px !important;
    }
    
    .propert-content figure.table table th,
    .propert-content figure.table table td {
        padding: 4px 3px !important;
    }
    
    /* 모바일에서 층별 정보 테이블 스크롤 */
    .propert-content figure.table:has(table thead) {
        overflow-x: auto !important;
    }
}

/* 호버 효과 */
.propert-content figure.table table tbody tr:hover {
    background-color: #f8f9fa !important;
}

/* 줄무늬 효과 (선택적) */
.propert-content figure.table table:has(thead) tbody tr:nth-child(even) {
    background-color: #f8f9fa !important;
}

.propert-content figure.table table:has(thead) tbody tr:nth-child(even):hover {
    background-color: #e9ecef !important;
}