/* ======================================================= */
/* 1-1. 기본 레이아웃 및 Sticky Footer */
/* ======================================================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

#page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative; /* Floating Footer의 기준점 */
}

#content-wrap {
    flex-grow: 1; /* 남은 수직 공간을 모두 차지 */
    display: flex;
    flex-direction: column;
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 15px))
}

/* ======================================================= */
/* 1-2. 푸터 설정 (지도 위 플로팅 및 하단 고정) */
/* ======================================================= */
#main-footer {
    /* 1. 배치 설정 */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1050;

    /* 2. 디자인: Bootstrap 5.3 반투명 유리 효과 */
    background: rgba(33, 37, 41, 0.85); /* 투명도를 살짝 낮춰 가독성 확보 */
    backdrop-filter: blur(8px);       /* 블러 효과를 조금 더 강화 */
    -webkit-backdrop-filter: blur(8px); /* 사파리/아이폰 대응 */
    color: white;

    /* 3. 모바일 안전 영역(Safe Area) 대응 */
    /* 기본 패딩(10px) + 기기별 하단 안전 영역을 더함 */
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));

    /* 전체 높이가 유동적으로 변하도록 설정 */
    box-sizing: border-box;
}

/* ======================================================= */
/* 1-3. 관리자 모드 전용 (반응형 비활성화 - 1300px 고정) */
/* ======================================================= */
body.is-admin {
    min-width: 1300px !important; /* 요청하신 1300px 기준 */
    overflow-x: auto; /* 화면 작아질 때 가로 스크롤 생성 */
}

body.is-admin #page-container,
body.is-admin #admin-main-content-area {
    margin: 0 auto;
}

/* ======================================================= */
/* 1-4. 지도 및 콘텐츠 높이 계산 */
/* ======================================================= */
.map-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#map {
    flex-grow: 1;
    width: 100%;
    /* 뷰포트 높이에서 상하단 요소 제외 계산 */
    /* height: calc(95vh - 141px) !important; */
}

body.is-admin #map {
    height: 800px !important; /* 관리자 모드에서는 고정 높이 사용 */
}

/* 관리자 모드일 때는 모바일 설정 무시 */
body.is-admin .offcanvas {
    width: 400px !important;
}

/* #mapTopMenu {
    height: 50px;
    line-height: 50px;
} */
#mapTopMenu {
    /* height: 50px;  <-- 고정 높이 삭제 (텍스트가 길어지면 자동으로 늘어나야 함) */
    /* line-height: 50px; <-- 삭제 (멀티라인 대응을 위해 padding으로 조절) */
    min-height: 50px; /* 최소 높이만 유지 */
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* [핵심] 모바일에서 길어지면 다음 줄로 넘김 */
    padding: 8px 12px;   /* 내부 여백으로 간격 조절 */
    background-color: #fff;
    flex-shrink: 0;  /* 상단 메뉴가 줄어들지 않도록 고정 */
    line-height: 1.4
}

/* [추가] 텍스트 간격 및 스타일 */
.tech-text-span {
    margin-left: 10px; /* tech_text 좌측 공백 */
    font-size: 0.9rem;  /* 모바일 가독성을 위해 약간 작게 (선택사항) */
    color: #666;       /* 부가 정보 느낌의 색상 */
}

/* ======================================================= */
/* 2-1. 지도 마커 (Custom Marker) */
/* ======================================================= */
.custom-marker {
    position: relative;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 15px;
    background-color: #007bff;
    border-radius: 50%;
    color: white;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* 마커 하단 꼬리 부분 */
.custom-marker::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    margin-left: -8px;
    border-top: 8px solid #007bff;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

/* ======================================================= */
/* 2-2. 커스텀 버튼 및 체크박스 (Form UI) */
/* ======================================================= */
.c-pointer,
.form-raido-label,
.form-checkbox-label,
.checkbox-label {
    cursor: pointer !important;
}

/* 시각적으로 숨겨진 기본 체크박스 */
.visually-hidden-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 체크박스 활성화(Active) 상태 (jQuery 등으로 .active 클래스 제어 시) */
.checkbox-label.active {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

/* ======================================================= */
/* 2-3. 모바일 전용 (Responsive) */
/* ======================================================= */
@media (max-width: 991.98px) {
    /* 모바일에서 Offcanvas 메뉴를 화면의 90%로 확장 */
    .offcanvas {
        width: 90% !important;
    }
}



/* 하단 여백 유틸리티 */
.container-bottom {
    margin-bottom: 5rem !important;
}

/* 필수 입력 부분 별표 표시  */
.required-label::after {
    content: " *";
    color: #dc3545; /* Bootstrap danger 색상 (빨간색) */
    font-weight: bold;
    margin-left: 2px;
}


/* 체크 박스 모양 내기 */
/* 클릭 가능한 손가락 모양 */
.cursor-pointer { cursor: pointer; transition: all 0.2s ease; }

/* 기본 레이블 스타일 */
.checkbox-box-label {
    background-color: #fff;
    border-color: #dee2e6 !important;
}

.checkbox-box-label:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd !important;
}

/* 체크 아이콘 박스 기본 */
.check-icon-box {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    color: transparent; /* 체크 전엔 아이콘 안보임 */
    transition: all 0.2s;
}

/* 체크박스가 선택되었을 때의 스타일 변화 */
.checkbox-box-input:checked + .checkbox-box-label {
    border-color: #0d6efd !important; /* 부트스트랩 프라이머리 컬러 */
    background-color: #f0f7ff;
}

.checkbox-box-input:checked + .checkbox-box-label .check-icon-box {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff; /* 체크 아이콘 흰색으로 표시 */
}

/* 부트스트랩 아이콘 사용 시 필요 (없으면 텍스트로 대체 가능) */

/* 체크 박스 모양 내기 끝 */


/*  포트 폴리오 이미지 나열 하기 mypage */

/* 1. 기본 크기 (모바일: 60px) */
.img-item {
    width: 60px;
    height: 60px;
}

/* 2. PC 크기 (768px 이상일 때: 80px) */
@media (min-width: 768px) {
    .img-item {
        width: 80px;
        height: 80px;
    }
}

/* 삭제 버튼 공통 스타일 */
.btn-delete-custom {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 22px;
    height: 22px;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 호버 시 살짝 커지는 효과 */
.img-item:hover {
    transform: translateY(-2px);
    transition: all 0.2s;
}
/*  포트 폴리오 이미지 나열 하기 mypage 끝 */




/* 활성화되었을 때의 강렬한 빨간색 */
#minishop-favorite-btn.active, .favorite-btn.active {
    color: #ff0000 !important; /* 순수 빨간색 */
}

/* 클릭 시 통통 튀는 효과 */
#minishop-favorite-btn.active i, .favorite-btn.active i {
    animation: heart-pop 0.3s ease-out;
}

@keyframes heart-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); } /* 1.4배 커짐 */
    100% { transform: scale(1); }
}


/* 모달 내부에서 발생하는 모든 자동 스크롤 동작을 일시 정지 */
#detailModal, #detailModal .modal-body {
    scroll-behavior: auto !important;
}

/* 1. 탭 버튼 클릭/포커스 시 발생하는 외곽선 및 위치 조정 방지 */
#shopTab .nav-link:focus, 
#shopTab .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent; /* 모바일 터치 하이라이트 제거 */
}

/* 2. 모달 내부 컨텐츠 전환 시 높이 변화로 인한 튐 방지 */
.tab-content {
    min-height: 50vh; /* 화면 높이의 절반 정도를 항상 유지 */
}