/* ===== 지역 변경 모달 (바텀시트) ===== */
.location-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 300; /* 하단 탭바(지도 화면은 200)보다 위 — 같은 값이면 탭바가 시트 아래쪽을 가렸음 */
    align-items: flex-end;
    justify-content: center;
}

.location-modal-overlay.active {
    display: flex;
}

.location-modal {
    width: 100%;
    max-width: 430px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 0 0 24px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.location-modal-overlay.active .location-modal {
    transform: translateY(0);
}

/* 드래그 핸들 */
.location-modal-handle {
    width: 40px;
    height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
    margin: 12px auto 0;
}

/* 헤더 */
.location-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
}

.location-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #1A1A1A;
}

.location-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.location-modal-close:hover {
    color: #333;
}

/* 언어 토글(.lang-toggle/.lang-btn 자체)은 common.css 공용, 모달 안에서만 좌우 여백(20px)이 필요 */
.location-modal .lang-toggle {
    width: calc(100% - 40px);
    margin: 0 20px 16px;
}

/* 현재위치 버튼 */
.location-gps-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: calc(100% - 40px);
    margin: 4px 20px 16px;
    padding: 12px 14px;
    background: #FFFBE6;
    border: 1px solid #FFE57F;
    border-radius: 10px;
    color: #8a6d00;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.location-gps-btn:hover {
    background: #FFF6C2;
}

.location-gps-icon {
    font-size: 16px;
}

.location-modal-divider {
    height: 1px;
    background: #F0F0F0;
    margin: 0 20px 16px;
}

/* 검색바(.location-search-wrap 자체)는 common.css 공용, 모달 안에서만 좌우 여백(20px)이 필요 */
.location-modal .location-search-wrap {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
}

/* 인기 지역 섹션 */
.location-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    padding: 0 20px 10px;
}

.location-modal .region-coming-soon {
    margin: 4px 12px 0;   /* .location-list 좌우 패딩(12px)과 맞춰 지역 카드와 같은 폭 */
    flex: 0 0 auto;
}

.location-list {
    list-style: none;
    padding: 0 12px 8px;
    margin: 0;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.location-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #1A1A1A;
    transition: background 0.15s;
}

.location-item:hover {
    background: #F9F9F9;
}

.location-item.selected {
    color: #B8A000;
    font-weight: 700;
    background: #FFFBE6;
}

.location-item.selected::after {
    content: '✓';
    font-size: 16px;
    color: #FFD60A;
}

/* 지역이 3곳 이하 — 글자 한 줄만 있으면 눌러야 하는 항목인지 안 보여서 카드 + › 로 */
.location-list.is-few .location-item {
    border: 1px solid #EEEEEE;
    margin-bottom: 8px;
    padding: 14px 16px;
}

.location-list.is-few .location-item:not(.selected)::after {
    content: '›';
    font-size: 20px;
    line-height: 1;
    color: #BBBBBB;
}

.location-list.is-few .location-item.selected {
    border-color: #FFE27A;
}

.location-item.hidden {
    display: none;
}
