/* === 기본 스타일 및 변수 (ATM 컨셉 색상 반영) === */
/* Gowun Dodum 폰트는 head에서 임포트합니다. */

/* 전체적인 스타일 재정의 - 맵 관련 모든 요소를 감싸는 wrapper에 적용 */
.shoppingMap_wrapper {
    font-family: "Gowun Dodum", sans-serif;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 20px !important;
    background-color: #1c1c1c !important; /* ATM 컨셉 배경색 적용 */
    color: #eee !important; /* ATM 컨셉 기본 텍스트 색상 */
    margin: 0 !important;
    line-height: 1.6 !important; /* 가독성을 위한 줄 간격 조정 */
    width: 100%;
    box-sizing: border-box;
}
.comment-text-content .comment-mention {
    color: dodgerblue; /* 원하는 색상 */
    font-weight: bold; /* 굵게 */
}
/* wrapper 하위의 h1에만 스타일 적용 */
.shoppingMap_wrapper h1 {
    margin-bottom: 10px;
    color: #fd7e14; /* ATM 컨셉 주황색 */
    text-align: center;
    font-weight: 700;
}

/* 지도 링크 스타일 개선 */
.shopping_shoppingMap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    margin-bottom: 20px; /* 하단 마진 추가 */
}

.shopping_shoppingMap_a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #eee; /* 컨셉 글자색 */
    font-size: 16px;
    font-weight: 700;
    gap: 15px;
    padding: 10px 15px; /* 패딩 조정 */
    background-color: #333; /* 컨셉 배경색 */
    border: 1px solid #444; /* 컨셉 테두리 */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* 그림자 조정 */
    transition: all 0.3s ease;
    margin-right: 15px;
}

.shopping_shoppingMap_a:hover {
    background-color: #444; /* 호버 시 배경색 변경 */
    border-color: #fd7e14; /* 호버 시 테두리 색상 변경 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    color: #fff; /* 호버 시 글자 색상 변경 */
}

.shopping_shoppingMap_img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: none;
}
/* 지도 링크 스타일 개선 끝 */

/* 컨트롤 영역 개선 */
.shoppingMap_wrapper .shoppingMap_controls {
    margin-bottom: 20px; /* 간격 조정 */
    display: flex;
    gap: 15px; /* 요소 간 간격 조정 */
    width: 100%;
    max-width: 900px; /* 최대 너비 제한 조정 */
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 20px; /* 좌우 패딩 추가 */
}

.shoppingMap_wrapper .shoppingMap_search-input-group {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    min-width: 200px; /* 최소 너비 조정 */
}

/* input[type="text"] 스타일 (전체 wrapper 하위) */
.shoppingMap_wrapper input[type="text"] {
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid #555; /* 컨셉 경계선 색상 */
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2); /* 내부 그림자 조정 */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #333; /* 컨셉 배경색 */
    color: #eee; /* 컨셉 글자색 */
    font-family: "Gowun Dodum", sans-serif;
    width: 90%;
}

.shoppingMap_wrapper input[type="text"]::placeholder {
    color: #aaa; /* 플레이스홀더 색상 */
}

.shoppingMap_wrapper input[type="text"]:focus {
    border-color: #fd7e14; /* 포커스 시 컨셉 주황색 */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 0.2rem rgba(253, 126, 20, 0.4); /* 포커스 시 외부 그림자 조정 */
    outline: none;
}

/* button 스타일 (전체 wrapper 하위) */
.shoppingMap_wrapper button {
    padding: 10px 20px;
    background-color: #fd7e14; /* 컨셉 주황색 */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 그림자 조정 */
    flex-shrink: 0;
    font-family: "Gowun Dodum", sans-serif;
}
/* 환율 계산기 결과 금액 색상 */
.exchangeRate_result-amount {
    font-size: 1.8em; /* 크기 조정 */
    font-weight: bold;
    color: #2ecc71; /* 컨셉 초록색 (결과) */
    margin-top: 5px;
}
.shoppingMap_wrapper button:hover {
    background-color: #e06200; /* 진한 주황색 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* 호버 시 그림자 강화 */
}

.shoppingMap_wrapper button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.shoppingMap_wrapper button:disabled {
    background-color: #555; /* 비활성화 컨셉 색상 */
    color: #bbb; /* 비활성화 컨셉 글자색 */
    cursor: not-allowed;
    box-shadow: none;
}

/* 줌 컨트롤 버튼 */
.shoppingMap_wrapper .shoppingMap_zoom-controls {
    display: flex;
    gap: 8px; /* 줌 버튼 간 간격 조정 */
}

.shoppingMap_wrapper .shoppingMap_zoom-controls button {
    padding: 8px 12px;
    font-size: 1rem;
    background-color: #555; /* 컨셉 회색 배경 */
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
/* 줌 버튼 개별 색상 */
.shoppingMap_zoom-controls_m { background-color: #3498db !important; } /* 파란색 */
.shoppingMap_zoom-controls_p { background-color: #e74c3c !important; } /* 빨간색 */

.shoppingMap_wrapper .shoppingMap_zoom-controls button:hover {
    background-color: #666; /* 회색 호버 */
}
.shoppingMap_wrapper .shoppingMap_zoom-controls_m:hover{ background-color: #2980b9 !important; } /* 파란색 호버 */
.shoppingMap_wrapper .shoppingMap_zoom-controls_p:hover{ background-color: #c0392b !important; } /* 빨간색 호버 */


/* 맵 컨테이너 스타일 개선 */
.shoppingMap_wrapper .shoppingMap_map-container {
    position: relative;
    border: 1px solid #444; /* 컨셉 경계선 */
    border-radius: 8px;
    background-color: #282828; /* 컨셉 배경색 */
    width: 100%;
    max-width: 900px;
    height: 750px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* 그림자 조정 */
    scroll-behavior: smooth;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    will-change: transform, scroll-position;
}

/* map-content */
.shoppingMap_wrapper .shoppingMap_map-content {
    position: relative;
    width: 900px; /* 원본 맵 너비 */
    height: 750px; /* 원본 맵 높이 */
    transform-origin: 0 0;
    min-width: 100%;
    min-height: 100%;
}

/* 매장, 계단, 비상호작용 요소 기본 스타일 */
/* isStairs=1 또는 zone='black'인 요소들은 .shoppingMap_non-interactive 클래스를 가짐 */
.shoppingMap_wrapper .shoppingMap_booth,
.shoppingMap_wrapper .shoppingMap_stairs,
.shoppingMap_wrapper .shoppingMap_non-interactive { /* 새로운 클래스 추가 */
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    padding: 3px;
    text-align: center;
    color: #eee; /* 기본 텍스트 색상 */
    cursor: default; /* 모든 요소 기본 커서 default (JS에서 클릭 가능한 매장만 pointer로 변경) */
}

/* booth - 클릭 가능한 매장만 pointer 커서 적용 */
.shoppingMap_wrapper .shoppingMap_booth {
    background-color: rgba(221, 221, 221, 0.1); /* 어두운 배경에 맞게 투명도 조정 */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); /* 내부 테두리 밝게 */
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border-radius: 5px;
}
/* 매장 요소 중 data-shop-id 속성(즉, 클릭 가능한 매장)에만 포인터 커서 적용 */
.shoppingMap_wrapper .shoppingMap_booth[data-shop-id] {
    cursor: pointer;
}


/* 1층 기본 구역 (먹거리) */
.shoppingMap_wrapper .shoppingMap_booth-default {
    box-shadow: inset 0 0 0 2px #fd7e14; /* 컨셉 주황색 내부 테두리 */
}

/* booth:hover - 클릭 가능한 매장에만 호버 효과 적용 */
.shoppingMap_wrapper .shoppingMap_booth[data-shop-id]:hover { /* data-shop-id 속성 있는 요소에만 적용 */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0,0,0,0.3); /* 내부 쉐도우 밝게, 외부 쉐도우 진하게 */
    transform: translateY(-2px);
    z-index: 1;
}

/* stairs - isStairs = 1인 요소에 추가되는 클래스 */
/* non-interactive 클래스와 함께 적용될 수 있으므로 배경 스타일 주의 */
.shoppingMap_wrapper .shoppingMap_stairs {
    background-image: linear-gradient(45deg, #444 25%, transparent 25%, transparent 50%, #444 50%, #444 75%, transparent 75%, transparent); /* 컨셉 패턴 */
    background-size: 15px 15px;
    /* background-color: #3a3a3a; /* 계단 배경색 (non-interactive와 겹치지 않도록 image만 정의하거나, background shorthand 사용) */
    /* background: #3a3a3a linear-gradient(45deg, #444 25%, transparent 25%, transparent 50%, #444 50%, #444 75%, transparent 75%, transparent); */
    /* box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); /* 그림자 */
    /* color: #bbb; /* 계단 글자색은 조금 연하게 */
}
/* 계단 요소 중 글자색은 non-interactive보다 밝게 유지 */
.shoppingMap_wrapper .shoppingMap_stairs {
    color: #bbb;
}


/* 계단 번호가 있는 계단 스타일 - isStairs = 1 이면서 boothNumber 또는 description 있는 요소에 추가 */
.shoppingMap_wrapper .shoppingMap_numbered-stairs {
    /* 2층에서 노란색(#f1c40f) 배경을 사용했지만, 일관성을 위해 패턴 배경을 유지할 수도 있습니다. */
    /* 여기서는 2층 코드에 맞춰 노란색 배경 사용 규칙을 따릅니다. */
    /* background-color: #f1c40f; /* 컨셉 노란색 (필요하다면 추가) */
    /* background-image: none; /* 패턴 제거 (필요하다면 추가) */
    color: #eee; /* 패턴 위에서는 밝은 글자색 */
    font-weight: bold; /* 글자 굵게 */
    /* font-size: 12px; (기본값) */
}

/* 새로운 비상호작용 요소 스타일 (.shoppingMap_non-interactive) */
/* isStairs=1 이거나 zone='black'인 모든 요소에 추가되는 클래스 */
.shoppingMap_wrapper .shoppingMap_non-interactive {
    background-color: #333; /* 어두운 배경색 (black zone 및 기타 비상호작용 영역) */
    background-image: none; /* 계단 패턴과 겹치지 않도록 이미지 제거 */
    /* 다른 스타일 필요시 추가 (예: border, shadow 등) */
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5); /* 내부 테두리 */
    pointer-events: none; /* 클릭 이벤트 무시 - 중요 */
    color: #888; /* 글자색 연하게 */
    font-size: 11px; /* 글자 크기 줄임 */
    font-weight: normal;
    border-radius: 3px;
}
.shoppingMap_non-interactive{
    background-color:#f1c40f !important;
}

/* Zone Colors (내부 그림자 스타일로 변경) - 컨셉 색상 적용 */
/* 1층 범례 (먹거리, 과일, 라탄, 뜨개인형, 기념품, 장난감, 기타)에 매핑되는 색상 */
/* 2층 CSS에서 정의된 색상 값을 사용합니다. */
/* .shoppingMap_booth-black 스타일은 더 이상 매장 요소에는 적용되지 않고 .shoppingMap_non-interactive 에 의해 스타일링 됨 */
.shoppingMap_wrapper .shoppingMap_booth-blue { box-shadow: inset 0 0 0 3px #3498db; } /* 파란색 (과일) */
.shoppingMap_wrapper .shoppingMap_booth-yellow { box-shadow: inset 0 0 0 3px #f1c40f; } /* 노란색 (라탄) */
.shoppingMap_wrapper .shoppingMap_booth-green { box-shadow: inset 0 0 0 3px #2ecc71; } /* 초록색 (뜨개인형) */
.shoppingMap_wrapper .shoppingMap_booth-orange { box-shadow: inset 0 0 0 3px #FFA500; } /* 주황색 (기념품) - 2층 red색상과 다르게 변경 */
.shoppingMap_wrapper .shoppingMap_booth-pink { box-shadow: inset 0 0 0 3px #FF80FF; } /* 핑크색 (장난감) */
.shoppingMap_wrapper .shoppingMap_booth-purple { box-shadow: inset 0 0 0 3px #8000FF; } /* 보라색 (기타) */


/* 호버 시 모든 매장에 공통적으로 외부 쉐도우 적용 */
/* data-shop-id 속성이 있는 매장 요소에만 호버 효과 적용 */
.shoppingMap_wrapper .shoppingMap_booth[data-shop-id]:hover {
    /* 기존 내부 쉐도우 색상은 그대로 유지하면서 외부 쉐도우 추가 */
    box-shadow: inset 0 0 0 3px inherit, 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    z-index: 1;
}


/* 하이라이트 애니메이션 개선 - 컨셉 색상 적용 */
/* 2층 코드 애니메이션 유지 (전반적인 맵 컨셉과 어울림) */
@keyframes pulse-highlight {
    0% {
        box-shadow: inset 0 0 0 3px rgb(59, 127, 248), 0 0 5px rgba(253, 126, 20, 0);
        outline: 2px solid rgba(20, 226, 253, 0.3);
        background-color: rgb(255, 88, 88); /* 배경도 살짝 밝게 */
    }
    50% {
        box-shadow: inset 0 0 0 3px rgb(79, 107, 148), 0 0 15px rgba(253, 126, 20, 0.6);
        outline: 2px solid rgba(15, 186, 233, 0.4);
        background-color: rgb(255, 68, 68); /* 배경도 밝게 */
    }
    100% {
        box-shadow: inset 0 0 0 3px rgba(253, 126, 20, 0.7), 0 0 5px rgba(253, 126, 20, 0);
        outline: 2px solid rgba(253, 126, 20, 0.3);
        background-color: rgba(253, 126, 20, 0.1); /* 배경도 살짝 밝게 */
    }
}

/* highlighted - 검색 하이라이트는 data-number 속성을 가진 요소 중 non-interactive가 아닌 대상에 적용 */
.shoppingMap_wrapper .shoppingMap_highlighted {
    animation: pulse-highlight 1.5s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

/* 메시지 스타일 */
.shoppingMap_wrapper .shoppingMap_message {
    margin-top: 25px;
    padding: 12px 20px;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    /* 컨셉 색상 적용 */
    background-color: #333;
    border: 1px solid #555;
    color: #eee;
}

/* error message */
.shoppingMap_wrapper .shoppingMap_error {
    /* 컨셉 에러 색상 적용 */
    background-color: #4a2b2e; /* 어두운 빨간색 배경 */
    color: #e74c3c; /* 빨간색 글자 */
    border: 1px solid #c0392b; /* 진한 빨간색 테두리 */
}

/* success message */
.shoppingMap_wrapper .shoppingMap_success {
    /* 컨셉 성공 색상 적용 */
    background-color: #2b4d3f; /* 어두운 초록색 배경 */
    color: #2ecc71; /* 초록색 글자 */
    border: 1px solid #27ae60; /* 진한 초록색 테두리 */
}

/* 수선매장 레이블 스타일 */
/* 1층 HTML에는 이 요소가 없지만, 2층 코드에 있으므로 CSS는 유지합니다. */
.shoppingMap_wrapper .shoppingMap_suseon-label {
    position: absolute;
    top: 180px;
    left: 880px;
    width: 450px;
    height: 40px;
    transform: rotate(90deg);
    transform-origin: top left;
    font-weight: 700;
    color: #eee; /* 컨셉 글자색 */
    font-size: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(40, 40, 40, 0.85); /* 컨셉 배경색 투명도 */
    border: 2px dashed #fd7e14; /* 컨셉 주황색 점선 */
    border-radius: 5px;
    box-sizing: border-box;
    z-index: 10;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* 범례 스타일 개선 */
.shoppingMap_wrapper .shoppingMap_legend-container {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 20px 0px;
    background-color: #282828; /* 컨셉 배경색 */
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 900px;
    text-align: center;
}
.shoppingMap_help{
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px 0px;
    background-color: #282828; /* 컨셉 배경색 */
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 900px;
    text-align: center;
}
/* legend-container h3 */
.shoppingMap_wrapper .shoppingMap_legend-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #eee; /* 컨셉 글자색 */
    font-size: 1.2em;
    font-weight: 600;
}

/* legend */
.shoppingMap_wrapper .shoppingMap_legend {
    display: flex;
    gap: 15px 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

/* legend-item */
.shoppingMap_wrapper .shoppingMap_legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    color: #bbb; /* 컨셉 글자색 */
    margin-left: 10px;
}

/* color-box */
.shoppingMap_wrapper .shoppingMap_color-box {
    width: 18px;
    height: 18px;
    background-color: #ffffff; /* 기본 흰색 유지 또는 #444 */
    border: 1px solid #555; /* 컨셉 테두리 */
    box-sizing: border-box;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

/* 범례 색상 (매장의 box-shadow 색상과 일치) */
/* 1층 범례에 맞는 색상 매핑 (클래스 이름은 2층과 동일, 의미는 1층 범례 따름) */
.shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-default { box-shadow: inset 0 0 0 4px #fd7e14; border: none; } /* 기본 (먹거리) - 주황 */
.shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-blue { box-shadow: inset 0 0 0 4px #3498db; border: none; } /* 파란색 (과일) */
.shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-yellow { box-shadow: inset 0 0 0 4px #f1c40f; border: none; } /* 노란색 (라탄) */
.shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-green { box-shadow: inset 0 0 0 4px #2ecc71; border: none; } /* 초록색 (뜨개인형) */
.shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-orange { box-shadow: inset 0 0 0 4px #FFA500; border: none; } /* 주황색 (기념품) - 2층 red색상과 다르게 변경 */
.shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-pink { box-shadow: inset 0 0 0 4px #FF80FF; border: none; } /* 핑크색 (장난감) */
.shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-purple { box-shadow: inset 0 0 0 4px #8000FF; border: none; } /* 보라색 (기타) */

/* 1층에 있는 '계단' 범례 항목 스타일 추가 */
.shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_stairs-legend {
    /* 실제 계단 요소의 배경색(#3a3a3a) 또는 패턴을 시각적으로 표현 */
    background-color: #3a3a3a;
    background-image: linear-gradient(45deg, #444 25%, transparent 25%, transparent 50%, #444 50%, #444 75%, transparent 75%, transparent);
    background-size: 15px 15px;
    border: none; /* box-shadow 대신 배경색/패턴 사용 */
}
/* 새로운 '벽/기타' 범례 항목 스타일 추가 (zone: 'black' 해당) */
.shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_non-interactive-legend {
    background-color: #333; /* .shoppingMap_non-interactive 와 같은 배경색 */
    border: none; /* box-shadow 대신 배경색 */
}


/*환율 계산기 - 컨셉 적용 */
.exchangeRate_container {
    width: 100%; /* 너비 100% */
    max-width: 900px; /* 최대 너비 */
    background-color: #282828; /* 컨셉 배경색 */
    border-radius: 10px;
    padding: 20px; /* 패딩 조정 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-top: 20px; /* 상단 마진 */
    border: 1px solid #444; /* 컨셉 테두리 */
    color: #eee; /* 컨셉 글자색 */
}
.exchangeRate_h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #fd7e14 !important; /* 컨셉 주황색 */
    font-size: 1.5em; /* 크기 조정 */
}
.exchangeRate_input-group {
    margin-bottom: 15px;
}
.exchangeRate_label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: center;
    color: #bbb; /* 컨셉 글자색 */
}
.exchangeRate_input {
    width: 80%; /* 너비 조정 */
    padding: 10px 15px; /* 패딩 조정 */
    border: 1px solid #555; /* 컨셉 테두리 */
    border-radius: 5px;
    font-size: 1rem;
    background-color: #333; /* 컨셉 배경색 */
    color: #eee; /* 컨셉 글자색 */
    font-family: "Gowun Dodum", sans-serif;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
.exchangeRate_input::placeholder {
    color: #aaa;
}
.exchangeRate_result {
    padding: 15px; /* 패딩 조정 */
    background-color: #3a3a3a; /* 컨셉 배경색 */
    border-radius: 5px;
    text-align: center;
    margin-top: 15px;
}
.exchangeRate_result p {
    margin: 0;
}
/* .exchangeRate_result-amount 스타일은 위에 .shoppingMap_wrapper button 에서 정의됨 */
.exchangeRate_info {
    margin-top: 20px;
    font-size: 14px; /* 크기 조정 */
    color: #bbb; /* 컨셉 글자색 */
    text-align: center;
    line-height: 1.4;
}
.exchangeRate_loading {
    text-align: center;
    margin: 20px 0;
    color: #bbb; /* 컨셉 글자색 */
}
.exchangeRate_error {
    color: #e74c3c; /* 빨간색 */
    text-align: center;
    margin: 10px 0;
}


/* --- 팝업 관련 CSS (ATM 컨셉 반영) --- */
/* 팝업 오버레이와 내용은 wrapper 내부에 있지 않습니다. */

/* 오버레이 */
#shoppingMap_boothPopupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* 더 어두운 오버레이 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-family: "Gowun Dodum", sans-serif; /* 폰트 적용 */
}

/* 팝업 콘텐츠 박스 */
#shoppingMap_boothPopupContent {
    background-color: #282828; /* 컨셉 배경색 */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* 더 진한 그림자 */
    max-width: 800px;
    width: 90%;
    max-height: 80vh; /* 높이 제한 조정 (스크롤 가능) */
    overflow-y: auto;
    position: relative;
    color: #eee; /* 컨셉 글자색 */
    border: 1px solid #444; /* 컨셉 테두리 */
}

/* 팝업 스크롤바 스타일 */
#shoppingMap_boothPopupContent::-webkit-scrollbar {
    width: 10px;
}
#shoppingMap_boothPopupContent::-webkit-scrollbar-track {
    background: #333; /* 스크롤바 트랙 색상 */
    border-radius: 5px;
}
#shoppingMap_boothPopupContent::-webkit-scrollbar-thumb {
    background-color: #fd7e14; /* 스크롤바 썸 색상 (컨셉 주황색) */
    border-radius: 5px;
}
#shoppingMap_boothPopupContent::-webkit-scrollbar-thumb:hover {
    background-color: #e06200; /* 호버 색상 */
}
/* 팝업 스크롤바 스타일2 */
#commentList::-webkit-scrollbar {
    width: 10px;
}
#commentList::-webkit-scrollbar-track {
    background: #333; /* 스크롤바 트랙 색상 */
    border-radius: 5px;
}
#commentList::-webkit-scrollbar-thumb {
    background-color: #fd7e14; /* 스크롤바 썸 색상 (컨셉 주황색) */
    border-radius: 5px;
}
#commentList::-webkit-scrollbar-thumb:hover {
    background-color: #e06200; /* 호버 색상 */
}

/* 팝업 닫기 버튼 */
#shoppingMap_closeBoothPopup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa; /* 회색 유지 또는 #fd7e14 (주황색) */
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1; /* 높이 조정 */
}

#shoppingMap_closeBoothPopup:hover {
    color: #fff; /* 호버 시 밝은 색 */
}

/* Elements inside popup content - nested under popup ID */
#shoppingMap_boothPopupContent #shoppingMap_popupBoothNumber { /* id prefixed and nested */
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: #fd7e14; /* 컨셉 주황색 */
    font-size: 1.8em;
    font-weight: bold;
}

/* 팝업 섹션 (품목, 후기, 댓글) */
#shoppingMap_boothPopupContent .shoppingMap_popup-section { /* class prefixed and nested */
    margin-bottom: 5px;
    border-bottom: 1px solid #444; /* 컨셉 구분선 */
    padding-bottom: 15px;
}

#shoppingMap_boothPopupContent .shoppingMap_popup-section:last-child { /* class prefixed and nested */
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* 팝업 섹션 제목 (품목, 후기, 댓글 등) */
#shoppingMap_boothPopupContent .shoppingMap_popup-section h3 { /* class prefixed and nested */
    margin-top: 0;
    margin-bottom: 6px;
    color: #eee; /* 컨셉 글자색 */
    font-size: 1.2em;
    font-weight: bold;
    border-left: 4px solid #fd7e14; /* 컨셉 주황색 라인 */
    padding-left: 10px;
}

/* 품목 테이블 */
#shoppingMap_boothPopupContent #shoppingMap_popupItemsTable { /* id prefixed and nested */
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

#shoppingMap_boothPopupContent #shoppingMap_popupItemsTable th, /* id prefixed and nested */
#shoppingMap_boothPopupContent #shoppingMap_popupItemsTable td { /* id prefixed and nested */
    border: 1px solid #444; /* 컨셉 테두리 */
    padding: 8px;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    color: #eee; /* 컨셉 글자색 */
}

#shoppingMap_boothPopupContent #shoppingMap_popupItemsTable th { /* id prefixed and nested */
    background-color: #333; /* 컨셉 배경색 */
    font-weight: 600;
    color: #fd7e14; /* 컨셉 주황색 */
}

/* 후기 목록 */
#shoppingMap_boothPopupContent #shoppingMap_popupReviewsList { /* id prefixed and nested */
    list-style: disc;
    margin: 0 0 0 20px;
    padding: 0;
}

#shoppingMap_boothPopupContent #shoppingMap_popupReviewsList li { /* id prefixed and nested */
    margin-bottom: 6px;
    line-height: 1.4;
    font-size: 14px;
    color: #eee; /* 컨셉 글자색 */
}

/* 데이터 없음 메시지 */
#shoppingMap_boothPopupContent .shoppingMap_no-data { /* class prefixed and nested */
    text-align: center;
    color: #888; /* 회색 유지 */
    font-style: italic;
    margin-top: 10px;
}

/* --- 댓글 영역 CSS (ATM 컨셉 반영) --- */
/* 2층에서 가져온 댓글 기능 관련 CSS */

.comment-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #444; /* 컨셉 구분선 */
}

.comment-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em; /* 섹션 제목과 동일하게 */
    color: #eee; /* 컨셉 글자색 */
    border-left: 4px solid #fd7e14; /* 컨셉 주황색 라인 */
    padding-left: 10px;
}

#commentList {
    margin-bottom: 10px;
    max-height: 500px; /* 댓글 목록 높이 증가 (예시) */
    overflow-y: auto;
    padding-right: 10px; /* 스크롤바 때문에 오른쪽 패딩 추가 */
}

/* 개별 댓글 */
.comment {
    border: 1px solid #444; /* 컨셉 테두리 */
    padding: 8px; /* 패딩 증가 */
    margin-bottom: 6px; /* 간격 증가 */
    border-radius: 8px; /* 모서리 둥글게 */
    background-color: #333; /* 컨셉 배경색 */
    color: #eee; /* 컨셉 글자색 */
    word-wrap: break-word; /* 긴 단어 자동 줄바꿈 */
}

/* 대댓글 */
.reply-comment {
    margin-left: 20px; /* 들여쓰기 */
    background-color: #3a3a3a; /* 주 댓글보다 살짝 밝은 배경 */
    border-left: 4px solid #555; /* 들여쓰기 구분선 */
    padding-left: 15px; /* 들여쓰기 패딩 */
    margin-bottom: 15px; /* 간격 증가 */
    padding-top: 12px;
    padding-bottom: 12px;
}

/* 댓글 헤더 */
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 세로 중앙 정렬 */
    margin-bottom: 8px; /* 내용과의 간격 */
    flex-wrap: wrap; /* 공간 부족 시 줄바꿈 */
    font-size: 14px;
}

/* 작성자 정보 (닉네임, 시간) */
.comment-author-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.comment-author-info strong {
    color: #fd7e14; /* 컨셉 주황색 */
    font-weight: bold;
    margin-right: 8px;
}

.comment-author-info span {
    font-size: 0.85em;
    color: #bbb; /* 밝은 회색 시간 */
}

/* 댓글 액션 및 좋아요/싫어요 영역 (오른쪽) */
.comment-header-actions {
    display: flex;
    align-items: center;
    gap: 15px; /* 액션과 좋아요/싫어요 버튼 그룹 간격 */
    flex-wrap: wrap;
}

/* 댓글 내용 */
.comment-text-content {
    margin: 0 0 8px 0; /* 하단 간격 */
    line-height: 1.3;
    color: #eee; /* 컨셉 글자색 */
    font-size: 14px;
}

/* 댓글 하단 구분선 */
.comment hr {
    border: none;
    border-top: 1px dashed #555; /* 컨셉 구분선 */
    margin: 6px 0;
}

/* 좋아요/싫어요 버튼 컨테이너 */
.comment-likes {
    display: flex;
    align-items: center;
    gap: 5px; /* 버튼과 숫자 간격 */
    font-size: 14px;
    color: #aaa; /* 기본 아이콘/숫자 색상 */
}

.comment-likes button {
    background: none; /* 배경 없음 */
    border: none; /* 테두리 없음 */
    color: #aaa; /* 기본 아이콘 색상 */
    cursor: pointer;
    padding: 0 3px; /* 내부 패딩 조정 */
    font-size: 1em; /* 아이콘 크기 */
    transition: color 0.2s ease;
    min-width: auto; /* 버튼 최소 너비 제거 */
    box-shadow: none; /* 그림자 제거 */
}

.comment-likes button:hover {
    color: #fff; /* 호버 시 밝은 색 */
    background: none; /* 배경 없음 */
    box-shadow: none; /* 그림자 제거 */
}

.comment-likes button:disabled {
    color: #666; /* 비활성화 색상 */
    cursor: not-allowed;
}

/* 좋아요 누른 상태 */
.comment-likes .like-button.active {
    color: #3498db; /* 파란색 */
}
.comment-likes .like-button.active:hover {
    color: #2980b9; /* 진한 파란색 */
}

/* 싫어요 누른 상태 */
.comment-likes .dislike-button.active {
    color: #e74c3c; /* 빨간색 */
}
.comment-likes .dislike-button.active:hover {
    color: #c0392b; /* 진한 빨간색 */
}

/* 좋아요/싫어요 수 */
.comment-likes span {
    font-size: 1em;
    color: #aaa; /* 기본 숫자 색상 */
    font-weight: normal;
    margin: 0; /* 기본 마진 제거 */
}
.comment-likes .like-count {
    /* 좋아요 숫자에만 적용할 스타일 (선택 사항) */
}
.comment-likes .dislike-count {
    /* 싫어요 숫자에만 적용할 스타일 (선택 사항) */
}


/* 댓글 수정/삭제/답글 버튼 컨테이너 */
.comment-actions button {
    padding: 4px 8px; /* 패딩 조정 */
    margin-left: 8px; /* 간격 조정 */
    font-size: 0.85em; /* 크기 조정 */
    cursor: pointer;
    border-radius: 4px; /* 모서리 둥글게 */
    transition: background-color 0.2s ease, opacity 0.2s ease;
    min-width: auto; /* 최소 너비 제거 */
    box-shadow: none; /* 그림자 제거 */
    font-weight: normal; /* 기본 폰트 굵기 */
}
.comment-actions button:hover {
    opacity: 0.8; /* 호버 시 투명도 */
    box-shadow: none; /* 그림자 제거 */
}
.comment-actions button:disabled {
    background-color: #555;
    color: #bbb;
    cursor: not-allowed;
    opacity: 0.6;
}


.comment-actions button.edit-button {
    background-color: #3498db; /* 파란색 */
    color: white;
    border: none;
}
.comment-actions button.edit-button:hover { background-color: #2980b9; }

.comment-actions button.delete-button {
    background-color: #e74c3c; /* 빨간색 */
    color: white;
    border: none;
    margin-top: 0px;

}
.comment-actions button.delete-button:hover { background-color: #c0392b; }

.comment-actions button.reply-action-button {
    background-color: #fd7e14; /* 컨셉 주황색 */
    color: white;
    border: none;
}
.comment-actions button.reply-action-button:hover { background-color: #e06200; }


/* 새 댓글 작성 폼 컨테이너 (주 댓글 폼) */
#newCommentFormContainer {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed #444; /* 컨셉 구분선 */
    background-color: #3a3a3a; /* 컨셉 배경색 */
    padding: 15px;
    border-radius: 8px;
}

#newCommentFormContainer h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1em;
    color: #bbb; /* 밝은 회색 제목 */
}

#commentInput {
    width: 100%; /* 너비 100% */
    padding: 10px; /* 패딩 조정 */
    margin-bottom: 10px;
    border: 1px solid #555; /* 컨셉 테두리 */
    border-radius: 4px;
    box-sizing: border-box; /* 패딩/보더 포함 너비 계산 */
    resize: vertical; /* 세로 크기 조절 가능 */
    background-color: #444; /* 컨셉 입력 필드 배경색 */
    color: #eee; /* 컨셉 입력 필드 글자색 */
    font-family: "Gowun Dodum", sans-serif;
}

#commentInput::placeholder {
    color: #aaa; /* 플레이스홀더 색상 */
}

#submitCommentBtn {
    padding: 10px 20px; /* 패딩 조정 */
    background-color: #2ecc71; /* 초록색 (성공/작성) */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em; /* 크기 조정 */
    transition: background-color 0.2s ease, opacity 0.2s ease;
    font-weight: bold;
    width: auto; /* 너비 자동 */
}

#submitCommentBtn:hover {
    background-color: #27ae60; /* 진한 초록색 */
    opacity: 1;
}
#submitCommentBtn:disabled {
    background-color: #555;
    color: #bbb;
    cursor: not-allowed;
    opacity: 0.6;
}


#loginRequiredMessage {
    margin-top: 10px;
    font-weight: bold;
    color: #e74c3c; /* 빨간색 (에러) */
    text-align: center; /* 중앙 정렬 */
}

/* 댓글 작성 대기시간 메시지 */
#commentCooldownMessage,
.comment-cooldown-message { /* 대댓글 폼 메시지도 포함 */
    margin-top: 10px;
    font-weight: bold;
    color: #f1c40f; /* 노란색/주황색 계열 (경고/대기) */
    text-align: center; /* 중앙 정렬 */
    font-size: 14px;
}


/* 댓글 수정 모드 스타일 */
.comment .edit-textarea {
    width: 100%; /* 너비 100% */
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #3498db; /* 수정 모드 테두리색 */
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
    background-color: #444; /* 컨셉 입력 필드 배경색 */
    color: #eee; /* 컨셉 입력 필드 글자색 */
    font-family: "Gowun Dodum", sans-serif;
}
.comment .edit-textarea::placeholder {
    color: #aaa;
}

.comment .edit-buttons {
    text-align: right;
    margin-top: 5px;
}
.comment .edit-buttons button {
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    margin-left: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    min-width: auto;
    box-shadow: none;
    background: #3498db;
    color: white;
}
.comment .edit-buttons button:hover {
    opacity: 0.8; /* 호버 시 투명도 */
    box-shadow: none; /* 그림자 제거 */
}

.comment .edit-buttons .save-button {
    background-color: #2ecc71; /* 초록색 */
    color: white;
    border: none;
}
.comment .edit-buttons .save-button:hover { background-color: #27ae60; }

.comment .edit-buttons .cancel-button {
    background-color: #6c757d; /* 회색 */
    color: white;
    border: none;
}
.comment .edit-buttons .cancel-button:hover { background-color: #5a6268; }

/* 대댓글 작성 폼 컨테이너 */
.reply-form-container {
    margin-left: 20px; /* 대댓글 들여쓰기와 동일 */
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #555; /* 대댓글 구분선 */
    background-color: #4a4a4a; /* 대댓글 폼 배경색 (대댓글 배경보다 밝게) */
    padding: 15px;
    border-radius: 8px;
    display: none; /* JS로 제어 */
}
.reply-form-container h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1em;
    color: #bbb; /* 밝은 회색 제목 */
}
.reply-form-container .reply-input {
    width: 100%; /* 너비 100% */
    padding: 10px; /* 패딩 조정 */
    margin-bottom: 10px;
    border: 1px solid #555; /* 컨셉 테두리 */
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
    background-color: #444; /* 컨셉 입력 필드 배경색 */
    color: #eee; /* 컨셉 입력 필드 글자색 */
    font-family: "Gowun Dodum", sans-serif;
}
.reply-form-container .reply-input::placeholder {
    color: #aaa;
}
.reply-form-container .reply-button {
    padding: 10px 20px; /* 패딩 조정 */
    background-color: #2ecc71; /* 초록색 (성공/작성) */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em; /* 크기 조정 */
    transition: background-color 0.2s ease, opacity 0.2s ease;
    font-weight: bold;
    width: auto; /* 너비 자동 */
}
.reply-form-container .reply-button:hover {
    background-color: #27ae60;
    opacity: 1;
}
.reply-form-container .reply-button:disabled {
    background-color: #555;
    color: #bbb;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 베스트 댓글 영역 */
.best-comments-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #444; /* 컨셉 구분선 */
}
.best-comments-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em; /* 섹션 제목과 동일하게 */
    color: #eee; /* 컨셉 글자색 */
    border-left: 4px solid #f1c40f; /* 베스트 댓글은 노란색 라인 */
    padding-left: 10px;
}
#bestCommentList {
    margin-bottom: 15px;
}
.best-comment {
    border: 1px solid #f1c40f; /* 베스트 댓글 테두리 */
    background-color: #444; /* 베스트 댓글 배경색 */
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: #eee;
    word-wrap: break-word;
}
.best-comment .comment-author-info strong {
    color: #f1c40f; /* 베스트 댓글 작성자 닉네임 색상 */
}
.best-comment .comment-likes {
    color: #f1c40f; /* 베스트 댓글 좋아요/싫어요 아이콘 색상 */
}
.best-comment .comment-likes button {
    color: #f1c40f; /* 베스트 댓글 아이콘 색상 */
}
.best-comment .comment-likes button:hover {
    color: #fff; /* 호버 색상 */
}
.best-comment .comment-likes button:disabled {
    color: #888;
}
.best-comments-section .shoppingMap_no-data { /* 베스트 댓글 데이터 없음 메시지 */
    text-align: center;
    color: #888;
    font-style: italic;
}


/* 댓글 페이징 */
#commentPagination {
    margin-top: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #eee; /* 컨셉 글자색 */
}
#commentPagination button {
    padding: 6px 12px;
    background-color: #555; /* 컨셉 배경색 */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
    min-width: auto;
    box-shadow: none;
}
#commentPagination button:hover {
    background-color: #666;
}
#commentPagination button:disabled {
    background-color: #444;
    color: #888;
    cursor: not-allowed;
}
#commentPagination span {
    font-weight: bold;
    color: #fd7e14; /* 컨셉 주황색 */
}


/* 모바일 반응형 - nested under wrapper */
@media (max-width: 768px) {
    /* body padding should perhaps stay on body or parent template */
    body {
        /* 기본 레이아웃 템플릿의 body 스타일을 유지하거나 조정 */
    }

    /* wrapper h1 - nested under wrapper */
    .shoppingMap_wrapper {
        padding: 15px !important; /* 모바일 패딩 조정 */
    }
    .shoppingMap_wrapper h1 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    /* 지도 링크 */
    .shopping_shoppingMap {
        margin-top: 20px; /* 상단 마진 조정 */
        margin-bottom: 15px;
        flex-direction: column; /* 세로 정렬 */
        gap: 15px; /* 이미지와 제목 간격 */
    }
    .shopping_shoppingMap_a {
        margin-right: 0; /* 오른쪽 마진 제거 */
        width: 100%; /* 너비 100% */
        justify-content: center; /* 내용 가운데 정렬 */
        padding: 8px 10px;
    }


    /* controls */
    .shoppingMap_wrapper .shoppingMap_controls {
        flex-direction: column;
        gap: 10px;
        flex-wrap: nowrap;
        align-items: stretch;
        padding: 0 15px; /* 좌우 패딩 조정 */
    }

    /* search-input-group */
    .shoppingMap_wrapper .shoppingMap_search-input-group {
        flex-direction: column;
        gap: 10px;
        flex-grow: 0;
        min-width: auto;
        width: 100%;
    }

    /* input[type="text"], button */
    .shoppingMap_wrapper input[type="text"],
    .shoppingMap_wrapper button {
        width: 100%;
        min-width: auto;
        font-size: 16px;
        padding: 10px 12px;
    }
    .shoppingMap_wrapper .shoppingMap_search-input-group input[type="text"] {
        font-size: 16px;
        width: 95%;
        margin: 0 auto;
    }
    /* zoom-controls */
    .shoppingMap_wrapper .shoppingMap_zoom-controls {
        width: 100%;
        justify-content: stretch;
    }

    /* zoom-controls button */
    .shoppingMap_wrapper .shoppingMap_zoom-controls button {
        flex-grow: 1;
        width: auto;
    }

    /* map-container */
    .shoppingMap_wrapper .shoppingMap_map-container {
        height: 60vh; /* 모바일에서 높이 조정 */
        max-width: 100%;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: none;
        border-radius: 0; /* 모서리 제거 */
    }

    /* 매장, 계단, 비상호작용 요소 모바일 기본 스타일 */
    .shoppingMap_wrapper .shoppingMap_booth,
    .shoppingMap_wrapper .shoppingMap_stairs,
    .shoppingMap_wrapper .shoppingMap_non-interactive {
        font-size: 14px; /* 모바일 기본 폰트 크기 */
        padding: 2px;
    }
    /* 비상호작용 요소 모바일 폰트 크기 조정 */
    .shoppingMap_wrapper .shoppingMap_non-interactive {
        font-size: 10px; /* 모바일에서 비상호작용 요소 폰트 크기 더 줄임 */
    }

    /* 계단 번호 폰트 크기 조정 */
    .shoppingMap_wrapper .shoppingMap_numbered-stairs {
        font-size: 14px; /* 모바일에서 계단 번호 표시 */
    }


    /* suseon-label */
    .shoppingMap_wrapper .shoppingMap_suseon-label {
        /* 모바일에서 수선매장 레이블 필요 없다면 display: none; */
        display: none; /* 모바일에서 숨김 */
    }

    /* legend-container */
    .shoppingMap_wrapper .shoppingMap_legend-container {
        margin-top: 15px;
        padding: 15px 10px; /* 패딩 조정 */
        box-shadow: none;
        margin-bottom: 15px;
    }
    .shoppingMap_wrapper .shoppingMap_legend-container h3{
        margin-bottom: 10px;
        font-size: 1.1em;
    }

    /* legend */
    .shoppingMap_wrapper .shoppingMap_legend {
        gap: 8px 10px;
        justify-content: flex-start;
    }

    /* legend-item */
    .shoppingMap_wrapper .shoppingMap_legend-item {
        font-size: 14px;
        flex: 1 1 45%;
        min-width: 120px; /* 최소 너비 조정 */
        margin-left: 0; /* 마진 제거 */
    }

    /* color-box */
    .shoppingMap_wrapper .shoppingMap_color-box {
        width: 16px;
        height: 16px;
    }
    /* 범례 색상 (모바일) */
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-default { box-shadow: inset 0 0 0 3px #fd7e14; border: none;}
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-blue { box-shadow: inset 0 0 0 3px #3498db; border: none;}
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-yellow { box-shadow: inset 0 0 0 3px #f1c40f; border: none;}
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-green { box-shadow: inset 0 0 0 3px #2ecc71; border: none;}
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-orange { box-shadow: inset 0 0 0 3px #FFA500; border: none;}
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-pink { box-shadow: inset 0 0 0 3px #FF80FF; border: none;}
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-purple { box-shadow: inset 0 0 0 3px #8000FF; border: none;}
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_stairs-legend { background-color: #3a3a3a; background-image: linear-gradient(45deg, #444 25%, transparent 25%, transparent 50%, #444 50%, #444 75%, transparent 75%, transparent); border: none;}
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_non-interactive-legend { background-color: #333; border: none;} /* 모바일용 black zone 범례 색상 */


    /* message */
    .shoppingMap_wrapper .shoppingMap_message {
        margin-top: 15px;
        padding: 12px;
        max-width: 100%;
    }


    /* --- 팝업 스타일 모바일 반응형 --- */
    #shoppingMap_boothPopupContent {
        width: 95%;
        padding: 10px;
        max-height: 80vh;
    }

    #shoppingMap_boothPopupContent h2 {
        font-size: 1.5em;
    }

    #shoppingMap_boothPopupContent h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    #shoppingMap_popupItemsTable th,
    #shoppingMap_popupItemsTable td {
        padding: 6px;
        font-size: 14px;
    }

    #shoppingMap_popupReviewsList li {
        font-size: 14px;
    }

    #shoppingMap_closeBoothPopup {
        font-size: 24px;
        top: 10px;
        right: 10px;
    }

    /* 환율 계산기 모바일 */
    .exchangeRate_container {
        width: 90%;
        margin: 20px auto 0; /* 상단 마진 조정 */
        padding: 15px;
    }
    .exchangeRate_h1 {
        font-size: 1.4em;
        margin-bottom: 10px;
    }
    .exchangeRate_input-group {
        margin-bottom: 10px;
    }
    .exchangeRate_label {
        font-size: 14px;
    }
    .exchangeRate_input{
        width: 90%; /* 모바일 너비 100% */
        padding: 10px;
        font-size: 16px;
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }
    .exchangeRate_result p {
        font-size: 14px;
    }
    .exchangeRate_result-amount {
        font-size: 1.4em;
    }
    .exchangeRate_info {
        font-size: 13px;
        margin-top: 15px;
    }

    /* --- 댓글 영역 모바일 반응형 --- */
    /* 2층에서 가져온 댓글 기능 관련 CSS (모바일) */
    .comment-section h3 {
        font-size: 1.1em;
    }
    #commentList {
        max-height: 350px; /* 모바일에서 높이 조정 */
        padding-right: 5px; /* 스크롤바 패딩 조정 */
    }
    .comment {
        padding: 10px;
        margin-bottom: 10px;
        font-size: 14px;
    }
    .reply-comment {
        margin-left: 15px; /* 들여쓰기 줄임 */
        padding-left: 10px;
        margin-bottom: 10px;
    }
    .comment-author-info {
        flex-direction: column; /* 세로로 쌓기 */
        align-items: flex-start;
        margin-bottom: 5px;
    }
    .comment-author-info strong {
        margin-right: 0;
        margin-bottom: 3px;
    }
    .comment-author-info span {
        margin-left: 0;
        font-size: 0.8em;
    }
    .comment-header-actions {
        flex-direction: row; /* 모바일에서 가로로 나란히 */
        align-items: center; /* 세로 중앙 정렬 */
        gap: 8px; /* 간격 조정 */
        width: auto; /* 너비 자동 */
        margin-top: 0; /* 마진 조정 */
        flex-wrap: nowrap; /* 줄바꿈 방지 */
    }
    .comment-likes {
        justify-content: flex-start; /* 왼쪽 정렬 */
        width: auto; /* 너비 자동 */
    }
    .comment-likes button {
        background: none; /* 배경 없음 */
        border: none; /* 테두리 없음 */
        color: #aaa; /* 기본 아이콘 색상 */
        cursor: pointer;
        padding: 0 3px; /* 내부 패딩 조정 */
        font-size: 1em; /* 아이콘 크기 */
        transition: color 0.2s ease;
        min-width: auto; /* 버튼 최소 너비 제거 */
        box-shadow: none; /* 그림자 제거 */
    }

    .comment-actions {
        text-align: left; /* 왼쪽 정렬 */
        width: auto; /* 너비 자동 */
        display: flex; /* flexbox 사용 */
        gap: 5px; /* 버튼 간격 */
        flex-wrap: nowrap; /* 버튼 줄바꿈 방지 */
        align-items: center;

    }
    /* 댓글 액션 버튼 (수정, 삭제, 답글) 모바일 크기 조정 */
    .comment-actions button {
        margin-left: 0; /* 마진 제거 */
        margin-right: 0; /* 마진 제거 */
        padding: 4px 8px;
        font-size: 0.8em;
        flex-grow: 1; /* 가능한 공간을 채우도록 성장 */
        flex-basis: 0; /* 초기 너비를 0으로 */
        text-align: center; /* 버튼 텍스트 중앙 정렬 */
    }


    #newCommentFormContainer, .reply-form-container {
        padding: 10px;
    }
    #newCommentFormContainer h4, .reply-form-container h4 {
        font-size: 14px;
    }
    #commentInput, .reply-form-container .reply-input {
        padding: 8px;
        font-size: 14px;
    }
    #submitCommentBtn, .reply-form-container .reply-button {
        padding: 8px 15px;
        font-size: 14px;
    }
    .comment .edit-textarea {
        padding: 8px;
        font-size: 14px;
    }
    .comment .edit-buttons {
        text-align: left;
    }
    .comment .edit-buttons button {
        padding: 4px 8px;
        font-size: 0.8em;
        margin-left: 0;
        margin-right: 8px;
    }
    .reply-form-container {
        margin-left: 15px; /* 모바일 대댓글 폼 들여쓰기 */
    }
    #commentPagination {
        gap: 8px;
        font-size: 14px;
    }
    #commentPagination button {
        padding: 4px 8px;
        font-size: 0.8em;
    }
}


/* 더 작은 모바일 (예: 480px 이하) */
@media (max-width: 480px) {
    .shoppingMap_wrapper {
        padding: 10px !important; /* 패딩 더 줄임 */
    }
    .shoppingMap_wrapper h1 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    .shopping_shoppingMap {
        margin-top: 15px;
        margin-bottom: 10px;
        gap: 10px;
    }
    .shopping_shoppingMap_a {
        padding: 6px 8px;
        gap: 10px;
    }
    .shopping_shoppingMap_img {
        width: 40px;
        height: 40px;
    }
    .shoppingMap_wrapper .shoppingMap_controls {
        gap: 8px;
        padding: 0 10px;
    }
    .shoppingMap_wrapper .shoppingMap_search-input-group {
        gap: 8px;
    }
    .shoppingMap_wrapper input[type="text"],
    .shoppingMap_wrapper button {
        font-size: 14px;
        padding: 8px 10px;
    }
    .shoppingMap_wrapper .shoppingMap_search-input-group input[type="text"] {
        font-size: 14px;
    }
    .shoppingMap_wrapper .shoppingMap_zoom-controls {
        gap: 6px;
    }
    .shoppingMap_wrapper .shoppingMap_zoom-controls button {
        padding: 6px 10px;
        font-size: 14px;
    }

    .shoppingMap_wrapper .shoppingMap_map-container {
        height: 50vh; /* 높이 더 줄임 */
    }
    /* 매장, 계단, 비상호작용 요소 더 작은 모바일 기본 스타일 */
    .shoppingMap_wrapper .shoppingMap_booth,
    .shoppingMap_wrapper .shoppingMap_stairs,
    .shoppingMap_wrapper .shoppingMap_non-interactive {
        font-size: 12px; /* 더 작은 모바일 기본 폰트 크기 */
    }
    /* 비상호작용 요소 더 작은 모바일 폰트 크기 조정 */
    .shoppingMap_wrapper .shoppingMap_non-interactive {
        font-size: 9px; /* 더 작은 모바일에서 폰트 크기 더 줄임 */
    }
    .shoppingMap_wrapper .shoppingMap_numbered-stairs {
        font-size: 12px; /* 모바일 작은 화면에서 계단 번호 */
    }

    .shoppingMap_wrapper .shoppingMap_suseon-label { /* 모바일 숨김 유지 */
        display: none;
    }
    .shoppingMap_wrapper .shoppingMap_legend-container {
        margin-top: 10px;
        padding: 10px 5px;
        margin-bottom: 10px;
    }
    .shoppingMap_wrapper .shoppingMap_legend-container h3 {
        font-size: 1em;
        margin-bottom: 8px;
    }
    .shoppingMap_wrapper .shoppingMap_legend {
        gap: 6px 8px;
    }
    .shoppingMap_wrapper .shoppingMap_legend-item {
        font-size: 0.8em;
        flex: 1 1 48%; /* 두 개씩 */
        min-width: auto;
    }
    .shoppingMap_wrapper .shoppingMap_color-box {
        width: 14px;
        height: 14px;
    }
    /* 범례 색상 (더 작은 모바일) */
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-default { box-shadow: inset 0 0 0 3px #fd7e14; }
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-blue { box-shadow: inset 0 0 0 3px #3498db; }
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-yellow { box-shadow: inset 0 0 0 3px #f1c40f; }
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-green { box-shadow: inset 0 0 0 3px #2ecc71; }
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-orange { box-shadow: inset 0 0 0 3px #FFA500; }
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-pink { box-shadow: inset 0 0 0 3px #FF80FF; }
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_booth-purple { box-shadow: inset 0 0 0 3px #8000FF; }
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_stairs-legend { background-color: #3a3a3a; background-image: linear-gradient(45deg, #444 25%, transparent 25%, transparent 50%, #444 50%, #444 75%, transparent 75%, transparent); }
    .shoppingMap_wrapper .shoppingMap_legend .shoppingMap_color-box.shoppingMap_non-interactive-legend { background-color: #333; } /* 더 작은 모바일용 black zone 범례 색상 */


    .shoppingMap_wrapper .shoppingMap_message {
        margin-top: 10px;
        padding: 10px;
        font-size: 14px;
    }
    .exchangeRate_container {
        padding: 10px;
        margin-top: 15px;
    }
    .exchangeRate_h1 {
        font-size: 1.2em;
        margin-bottom: 8px;
    }
    .exchangeRate_label {
        font-size: 0.8em;
    }
    .exchangeRate_input {
        padding: 8px;
        font-size: 14px;
    }
    .exchangeRate_result p {
        font-size: 0.8em;
    }
    .exchangeRate_result-amount {
        font-size: 1.2em;
    }
    .exchangeRate_info {
        font-size: 12px;
        margin-top: 10px;
    }

    /* 팝업 모바일 스타일 더 줄임 */
    #shoppingMap_boothPopupContent {
        padding: 10px;
    }
    #shoppingMap_boothPopupContent h2 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }
    #shoppingMap_boothPopupContent h3 {
        font-size: 1em;
        margin-bottom: 8px;
    }
    #shoppingMap_popupItemsTable th,
    #shoppingMap_popupItemsTable td {
        padding: 5px;
        font-size: 0.85em;
    }
    #shoppingMap_popupReviewsList li {
        font-size: 0.85em;
    }
    #shoppingMap_closeBoothPopup {
        font-size: 20px;
        top: 5px;
        right: 5px;
    }

    /* 댓글 영역 모바일 스타일 더 줄임 */
    .comment-section h3 {
        font-size: 1em;
        margin-bottom: 10px;
    }
    #commentList {
        max-height: 300px; /* 높이 더 줄임 */
    }
    .comment {
        padding: 8px;
        margin-bottom: 8px;
        font-size: 0.8em;
    }
    .reply-comment {
        margin-left: 10px;
        padding-left: 8px;
        margin-bottom: 8px;
    }
    .comment-author-info {
        flex-direction: column; /* 세로로 쌓기 */
        align-items: flex-start;
        margin-bottom: 5px;
    }
    .comment-author-info strong {
        font-size: 1em;
    }
    .comment-author-info span {
        font-size: 0.75em;
    }
    .comment-header-actions {
        gap: 5px;
    }
    .comment-likes {
        gap: 3px;
    }
    .comment-likes button {
        padding: 0 2px;
        font-size: 14px;
    }
    .comment-actions {
        gap: 3px;
    }
    /* 댓글 액션 버튼 (수정, 삭제, 답글) 더 작은 모바일 크기 조정 */
    .comment-actions button {
        margin-left: 0; /* 마진 제거 */
        margin-right: 0; /* 마진 제거 */
        padding: 3px 6px;
        font-size: 0.75em;
        flex-grow: 1; /* 가능한 공간을 채우도록 성장 */
        flex-basis: 0; /* 초기 너비를 0으로 */
        text-align: center; /* 버튼 텍스트 중앙 정렬 */
        /* 버튼 크기가 너무 작아지지 않도록 최소 크기 지정 */
        min-width: 35px;
        min-height: 25px;
        max-width: 35px;
        max-height: 25px;
        box-sizing: border-box; /* 패딩/보더 포함 크기 */
    }

    .reply-form-container {
        margin-left: 10px;
    }
    #commentPagination {
        gap: 6px;
        font-size: 0.8em;
    }
    #commentPagination button {
        padding: 3px 6px;
        font-size: 0.75em;
    }
}
