.breadcrumb{display:none!important;}
.main_boundary,.sub_boundary{padding:0!important;}

#gw_top_btn {
    z-index: 0 !important;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, 'Noto Sans KR', sans-serif; background: #f0f0f0; }

.bm-header {
    background: #1d6fa4;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.bm-header .title { font-size: 15px; font-weight: bold; flex: 1; }
.bm-header .sub   { font-size: 11px; opacity: .8; margin-top: 2px; }

.img-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.img-tab {
    flex-shrink: 0;
    padding: 4px 14px;
    border: 1px solid #bbb;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
}
.img-tab.active { background: #1d6fa4; color: #fff; border-color: #1d6fa4; }

.map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: #fff;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #666;
}
.zoom-btns { display: flex; gap: 5px; align-items: center; }
.zoom-btns button {
    border: 1px solid #ddd;
    background: #fff;
    padding: 3px 10px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 3px;
    line-height: 1.4;
}
.zoom-btns span { font-size: 12px; font-weight: bold; color: #1d6fa4; min-width: 40px; text-align: center; }

.canvas-scroll {
    overflow: auto;
    background: #e8e8e8;
    touch-action: pan-x pan-y;
    max-height: calc(100vh - 160px);
}
canvas { display: block; cursor: pointer; }

/* ── 팝업 ── */
.booth-popup {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 0 0 80px;
    transform: translateY(100%);
    transition: transform .3s ease;
    z-index: 200;
    box-shadow: 0 -4px 24px rgba(0,0,0,.18);
    height: 50vh;       /* max-height → height로 고정 */
    overflow-y: auto;
}

.booth-popup.show { transform: translateY(0); }

.popup-drag {
    width: 40px; height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 10px auto 0;
}
.popup-close {
    position: absolute;
    top: 10px; right: 16px;
    font-size: 22px;
    border: none;
    background: none;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
}

/* 부스컷 이미지 */
.popup-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
    margin-top: 8px;
    background: #f5f5f5;
}
.popup-img-placeholder {
    width: 100%;
    height: 80px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 12px;
    margin-top: 8px;
}

/* 팝업 내용 */
.popup-body { padding: 14px 18px 0; }

.popup-num {
    font-size: 13px;
    font-weight: bold;
    color: #1d6fa4;
    background: #e8f0fb;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
}
.popup-name {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    margin-bottom: 6px;
    line-height: 1.3;
}
.popup-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}
.popup-genre {
    font-size: 12px;
    color: #555;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: inline-block;
}
.popup-sns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.sns-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: bold;
}
.sns-tw { background: #e7f3ff; color: #1d9bf0; }
.sns-ig { background: #fce4ec; color: #e91e63; }

.popup-no-data {
    padding: 14px 18px;
    color: #bbb;
    font-size: 13px;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
    line-height: 2;
}

/* --- */
/* ── 전역 리셋 ── */
.breadcrumb { display: none !important; }
.main_boundary, .sub_boundary { padding: 0 !important; }
#gw_top_btn {
    z-index: 0 !important;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, 'Noto Sans KR', sans-serif;
    background: #e8eaed;
    overscroll-behavior: none;
}

/* ══════════════════════════════════════
   헤더
══════════════════════════════════════ */
.bm-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1d6fa4;
    color: #fff;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.bm-header__info { flex: 1; min-width: 0; }
.bm-header__title {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bm-header__sub { font-size: 11px; opacity: .75; margin-top: 2px; }

/* 요일 버튼 */
.day-btns { display: flex; gap: 5px; flex-shrink: 0; }
.day-btn {
    padding: 4px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.5);
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.day-btn.active {
    background: #fff;
    color: #1d6fa4;
    border-color: #fff;
}

/* 줌 버튼 */

.bm-zoom-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 4px 10px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.bm-zoom-bar button {
    padding: 2px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
}

.bm-zoom-bar button:hover {
    background: #e0e0e0;
}

.bm-zoom-bar #zoomInfo {
    min-width: 36px;
    text-align: center;
    font-size: 12px;
    color: #555;
}

/* ══════════════════════════════════════
   탭 / 힌트
══════════════════════════════════════ */
.img-tabs {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.img-tab {
    flex-shrink: 0;
    padding: 4px 14px;
    border: 1px solid #bbb;
    background: #fff;
    font-size: 12px;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: background .15s, color .15s;
}
.img-tab.active { background: #1d6fa4; color: #fff; border-color: #1d6fa4; }

.hint-bar {
    text-align: center;
    font-size: 12px;
    color: #888;
    padding: 5px 0;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

/* ══════════════════════════════════════
   캔버스
══════════════════════════════════════ */
.canvas-scroll {
    overflow: auto;
    background: #d8dce0;
    touch-action: pan-x pan-y;
    /* 높이: 헤더(약52) + 힌트(29) + 검색(52) 제외 */
    height: calc(100dvh - 200px);
}
canvas {
    display: block;
    cursor: grab;
}
canvas:active { cursor: grabbing; }

/* ══════════════════════════════════════
   검색 바
══════════════════════════════════════ */
.search-bar {
    padding: 8px 14px;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: relative; /* 결과 드롭다운 기준점 */
    z-index: 90;
}
.search-inner {
    display: flex;
    gap: 6px;
}
.search-inner input {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    transition: border-color .15s;
}
.search-inner input:focus { border-color: #1d6fa4; }
.search-inner button {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background: #1d6fa4;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: bold;
}
/* 검색 결과: 캔버스 위에 절대 위치로 떠오름 */
#searchResults {
    position: absolute;
    left: 14px; right: 14px;
    top: calc(100% + 2px);
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,.15);
    border: 1px solid #eee;
    z-index: 91;
}
#searchResults:empty { display: none; }
.search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f2f2f2;
    transition: background .12s;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: #f0f6ff; }
.search-num {
    background: #1d6fa4;
    color: #fff;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}
.search-name { font-size: 13px; color: #333; flex: 1; }
.search-unreg { color: #bbb; }
.search-date { font-size: 11px; color: #aaa; flex-shrink: 0; }
.no-result { color: #aaa; font-size: 12px; padding: 10px 12px; }

/* ══════════════════════════════════════
   팝업 오버레이
══════════════════════════════════════ */
#popupOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 199;
}

/* ══════════════════════════════════════
   부스 팝업 (바텀시트)
══════════════════════════════════════ */
.booth-popup {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 0 0 80px;
    transform: translateY(100%);
    transition: transform .3s ease;
    z-index: 200;
    box-shadow: 0 -4px 24px rgba(0,0,0,.18);
    height: 45vh;       /* max-height → height로 고정 */
    overflow-y: auto;
}
.booth-popup.show { transform: translateY(0); }

.popup-drag {
    width: 40px; height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 10px auto 0;
}
.popup-close {
    position: absolute;
    top: 10px; right: 16px;
    font-size: 22px;
    border: none;
    background: none;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
}
.popup-page-info {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #bbb;

}

/* 이전/다음 네비 버튼 */
.popup-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    border: 1px solid #e0e0e0;
    background: rgba(255,255,255,.85);
    border-radius: 50%;
    width: 32px; height: 32px;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .12s;
}
.popup-nav:active { background: #f0f0f0; }
.popup-nav--prev { left: 8px; }
.popup-nav--next { right: 8px; }

/* 부스컷 이미지 */
.popup-img {
    width: 100%;
    max-height: 140px;      /* 200px → 140px */
    object-fit: contain;    /* cover → contain (이미지 전체 보이게) */
    background: #f0f0f0;    /* 여백 배경색 */
    display: block;
    margin-top: 4px;
}
.popup-img-none {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 12px;
    background: #f9f9f9;
    margin-top: 8px;
}

/* 팝업 본문 */
.popup-body { padding: 12px 18px 6px; }
.popup-num {
    font-size: 12px;
    font-weight: bold;
    color: #1d6fa4;
    background: #e8f0fb;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
}
.popup-name {
    font-size: 19px;
    font-weight: bold;
    color: #222;
    margin-bottom: 5px;
    line-height: 1.3;
}
.popup-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}
.popup-genres { margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.popup-genre {
    font-size: 12px;
    color: #555;
    background: #f5f5f5;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
}
.popup-sns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; margin-bottom: 8px; }
.sns-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 14px;
    text-decoration: none;
}
.sns-tw { background: #e7f3ff; color: #1d9bf0; }
.sns-ig { background: #fce4ec; color: #e91e63; }
.popup-no-data {
    font-size: 13px;
    color: #bbb;
    padding: 10px 0 6px;
}

/* ══════════════════════════════════════
   부스 수 배지
══════════════════════════════════════ */
.booth-count {
    position: fixed;
    bottom: 68px;  /* 검색바 위 */
    right: 14px;
    background: rgba(29, 111, 164, .88);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    pointer-events: none;
    z-index: 50;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ══════════════════════════════════════
   빈 데이터
══════════════════════════════════════ */
.no-data {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 14px;
    line-height: 2;
}

.share-btn {
    display: block;
    width: auto;
    margin: 10px auto 0;
    padding: 8px 20px;
    background: #1d6fa4;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}
.share-btn:hover { background: #155a8a; }