/* gt_near map.css 0.1.5 — 민트 문화 지도 (css 판 5)
 * 0.1.5 : 같은 장소 행사 묶음 핀(색 조각 · 숫자) · 묶음 카드
 * 0.1.4 : 장르 색 핀 · PC 한 줄 고르기 줄 · 제목 겹침 정리
 */
.gtnm {
    --gtnm-ver: 5;
    --gtnr-c: var(--gtnr-pt, var(--rb-point, var(--point-color, #ef007c)));
    --gtnm-pl: #6b7280;
    --gtnm-me: #ef4444;
    position: relative;
    color: #222;
}
.gtnm *, .gtnm *::before, .gtnm *::after { box-sizing: border-box; }
.gtnm svg { display: inline-block; width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }
.gtnm button { font: inherit; }

/* 머리 */
.gtnm .gtnm_hd { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; }
.gtnm .gtnm_hd_ic { display: flex; align-items: center; justify-content: center; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; background: var(--gtnr-c); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.gtnm .gtnm_hd_ic svg { width: 30px; height: 30px; }
.gtnm .gtnm_hd_tx { min-width: 0; }
.gtnm .gtnm_lead { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.5; color: #212529; }

/* 고르기 */
.gtnm .gtnm_bar { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 0 0 14px; }
.gtnm .gtnm_tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: #f1f3f5; }
.gtnm .gtnm_tab { appearance: none; margin: 0; padding: 9px 20px; border: 0; border-radius: 999px; background: transparent; font-size: 15px; font-weight: 700; color: #6c757d; cursor: pointer; white-space: nowrap; }
.gtnm .gtnm_tab.is_on { background: #fff; color: #111; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.gtnm .gtnm_chips, .gtnm .gtnm_cats { display: flex; flex-wrap: wrap; gap: 6px; }
.gtnm .gtnm_chip, .gtnm .gtnm_cat { appearance: none; display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 7px 13px; border: 1px solid #dee2e6; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; color: #495057; cursor: pointer; white-space: nowrap; }
.gtnm .gtnm_cat { padding: 5px 11px; font-size: 12px; border-color: transparent; background: #f8f9fa; }
.gtnm .gtnm_chip.is_on { border-color: #222; background: #222; color: #fff; }
.gtnm .gtnm_cat.is_on { background: #343a40; color: #fff; }
.gtnm .gtnm_cat_dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 2px; flex: 0 0 auto; }
.gtnm .gtnm_cat.is_on .gtnm_cat_dot { box-shadow: 0 0 0 2px #fff; }
.gtnm .gtnm_loc { border-color: var(--gtnm-me); color: var(--gtnm-me); font-weight: 700; }
.gtnm .gtnm_loc.is_on { border-color: var(--gtnm-me); background: var(--gtnm-me); color: #fff; }
.gtnm .gtnm_loc.is_wait { opacity: .6; cursor: progress; }
.gtnm .gtnm_loc[hidden] { display: none; }
.gtnm button:focus-visible, .gtnm a:focus-visible { outline: none; box-shadow: 0 0 0 2px #222; }
.gtnm .gtnm_msg { margin: 0 0 10px; font-size: 13px; color: #868e96; }
.gtnm .gtnm_msg:empty { display: none; }

/* 범례 : 지도에 보기 ☑ 행사 ☑ 근처 가게·공간 · 내 위치 */
.gtnm .gtnm_legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: #f8f9fa; }
.gtnm .gtnm_legend_t { font-size: 13px; font-weight: 700; color: #343a40; margin-right: 2px; }
.gtnm .gtnm_type { appearance: none; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 7px 14px 7px 10px; border: 1px solid #dee2e6; border-radius: 10px; background: #fff; font-size: 14px; font-weight: 700; color: #212529; cursor: pointer; }
.gtnm .gtnm_type span { font-weight: 600; color: #868e96; }
.gtnm .gtnm_chk { position: relative; width: 18px; height: 18px; border: 2px solid #adb5bd; border-radius: 5px; background: #fff; }
.gtnm .gtnm_type[aria-pressed="true"] .gtnm_chk { border-color: #222; background: #222; }
.gtnm .gtnm_type[aria-pressed="true"] .gtnm_chk::after { content: ''; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gtnm .gtnm_mk { width: 14px; height: 14px; border-radius: 50%; background: var(--gtnr-c); }
.gtnm .gtnm_type.is_ev .gtnm_mk { background: conic-gradient(#7c3aed 0 25%, #f97316 0 50%, #16a34a 0 75%, #db2777 0); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.gtnm .gtnm_type.is_pl .gtnm_mk { width: 11px; height: 11px; background: var(--gtnm-pl); }
.gtnm .gtnm_type.is_off { color: #868e96; background: #fff; }
.gtnm .gtnm_type.is_off .gtnm_mk { opacity: .35; }
.gtnm .gtnm_legend_me { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 13px; font-weight: 600; color: #495057; }
.gtnm .gtnm_legend_me i { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--gtnm-me); box-shadow: 0 0 0 3px rgba(239,68,68,.25); }

/* 지도 + 목록 */
.gtnm .gtnm_body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; height: 680px; }
.gtnm .gtnm_map { position: relative; min-height: 0; border-radius: 16px; overflow: hidden; background: #e9ecef; }
.gtnm .gtnm_canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.gtnm .gtnm_mapmsg { position: absolute; left: 0; right: 0; top: 50%; margin: 0; text-align: center; font-size: 14px; color: #868e96; }
.gtnm .gtnm_mapmsg[hidden] { display: none; }
.gtnm .gtnm_fit { position: absolute; left: 12px; top: 12px; z-index: 5; appearance: none; margin: 0; padding: 7px 12px; border: 0; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; color: #343a40; box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; }
.gtnm .gtnm_side { min-height: 0; overflow-y: auto; padding-right: 4px; }
.gtnm .gtnm_cnt { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #495057; }
.gtnm .gtnm_cnt:empty { display: none; }
.gtnm .gtnm_list { margin: 0; padding: 0; list-style: none; }
.gtnm .gtnm_sec { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 8px; padding: 0 2px; font-size: 15px; font-weight: 800; color: #111; }
.gtnm .gtnm_sec.is_first { margin-top: 0; }
.gtnm .gtnm_sec small { font-size: 12px; font-weight: 500; color: #868e96; }
.gtnm .gtnm_li { margin: 0 0 8px; }
.gtnm .gtnm_li > button { appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 8px; border: 1px solid #f1f3f5; border-radius: 12px; background: #fff; text-align: left; color: inherit; cursor: pointer; }
.gtnm .gtnm_li > button:hover { border-color: #dee2e6; }
.gtnm .gtnm_li.is_pl > button { border-color: #ebe6dc; background: #faf8f4; }                 /* 가게 · 공간은 배경을 달리 */
.gtnm .gtnm_li.is_on > button { border-color: var(--gtnr-c); box-shadow: 0 0 0 1px var(--gtnr-c); }
.gtnm .gtnm_li_img { position: relative; flex: 0 0 84px; width: 84px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #f1f3f5; }
.gtnm .gtnm_li_img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gtnm .gtnm_pick { position: absolute; left: 4px; top: 4px; padding: 0 5px; border-radius: 4px; background: var(--gtnr-c); color: #fff; font-size: 10px; font-weight: 700; line-height: 1.6; }
.gtnm .gtnm_li_tx { display: block; flex: 1 1 auto; min-width: 0; }
.gtnm .gtnm_li_tx em { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: var(--gtnr-c); }
.gtnm .gtnm_li.is_pl .gtnm_li_tx em { color: var(--gtnm-pl); }
.gtnm .gtnm_li_tx b { display: block; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; color: #222; }
.gtnm .gtnm_li_tx i { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 12px; color: #868e96; }
.gtnm .gtnm_li_d { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #343a40; }
.gtnm .gtnm_none { padding: 40px 10px; text-align: center; font-size: 14px; color: #868e96; }
.gtnm .gtnm_morebtn { appearance: none; display: block; width: 100%; margin: 4px 0 8px; padding: 10px; border: 1px solid #dee2e6; border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600; color: #495057; cursor: pointer; }
.gtnm .gtnm_morebtn[hidden] { display: none; }

/* 핀 (카카오 오버레이 안) — 행사 : 장르 색 물방울 + 흰 동그라미 / 가게 · 공간 : 회색 점 */
.gtnm .gtnm_pin { appearance: none; position: relative; display: block; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .15s; }
.gtnm .gtnm_pin.is_ev { width: 30px; height: 38px; color: var(--gtnr-c); transform-origin: 50% 100%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.gtnm .gtnm_pin.is_ev .gtnm_drop { position: absolute; left: 0; top: 0; width: 30px; height: 38px; fill: currentColor; stroke: #fff; stroke-width: 2; }
.gtnm .gtnm_pin.is_ev.is_pick { transform: scale(1.15); }
.gtnm .gtnm_pin.is_ev:hover, .gtnm .gtnm_pin.is_ev.is_on { transform: scale(1.3); }
.gtnm .gtnm_pin.is_pl { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--gtnm-pl); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.gtnm .gtnm_pin.is_pl:hover, .gtnm .gtnm_pin.is_pl.is_on { transform: scale(1.6); }
.gtnm.is_far .gtnm_pin.is_pl { width: 8px; height: 8px; border-width: 1px; opacity: .85; }
.gtnm.is_far .gtnm_pin.is_ev { transform: scale(.85); }
.gtnm.is_far .gtnm_pin.is_ev:hover, .gtnm.is_far .gtnm_pin.is_ev.is_on { transform: scale(1.15); }

.gtnm .gtnm_pin_n { position:absolute; right:-6px; top:-6px; min-width:18px; height:18px; padding:0 4px; border:2px solid #fff; border-radius:9px; background:#212529; color:#fff; font-size:11px; font-weight:800; line-height:14px; text-align:center; }

/* 내 위치 : 빨간 점 + 퍼지는 원 + 이름표 */
.gtnm .gtnm_me { position: relative; width: 22px; height: 22px; pointer-events: none; }
.gtnm .gtnm_me_dot { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border: 4px solid #fff; border-radius: 50%; background: var(--gtnm-me); box-shadow: 0 1px 6px rgba(0,0,0,.4); }
.gtnm .gtnm_me::before { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(239,68,68,.35); animation: gtnm-ping 1.8s ease-out infinite; }
.gtnm .gtnm_me_t { position: absolute; left: 50%; top: 26px; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: var(--gtnm-me); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
@keyframes gtnm-ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gtnm .gtnm_me::before { animation: none; transform: scale(2); opacity: .5; } }

/* 정보 카드 */
.gtnm .gtnm_cw { position: relative; width: 260px; padding-bottom: 16px; }
.gtnm .gtnm_cw.is_ev { padding-bottom: 48px; }                  /* 물방울 핀 위로 띄운다 */
.gtnm .gtnm_cw.is_pl { padding-bottom: 20px; }
.gtnm .gtnm_card { display: flex; gap: 10px; padding: 10px; border-radius: 12px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 6px 22px rgba(0,0,0,.2); }
.gtnm .gtnm_cw::after { content: ''; position: absolute; left: 50%; width: 12px; height: 12px; margin-left: -6px; background: #fff; transform: rotate(45deg); box-shadow: 3px 3px 6px rgba(0,0,0,.08); bottom: 10px; }
.gtnm .gtnm_cw.is_ev::after { bottom: 42px; }
.gtnm .gtnm_cw.is_pl::after { bottom: 14px; }
.gtnm .gtnm_card_img { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; background: #f1f3f5; }
.gtnm .gtnm_card_img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gtnm .gtnm_card_tx { display: block; flex: 1 1 auto; min-width: 0; padding-right: 14px; }
.gtnm .gtnm_card_tx em { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: var(--gtnr-c); }
.gtnm .gtnm_card_tx em.is_pl { color: var(--gtnm-pl); }
.gtnm .gtnm_card_tx b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 14px; font-weight: 700; line-height: 1.4; color: #222; white-space: normal; word-break: keep-all; }
.gtnm .gtnm_card_tx i { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 12px; color: #868e96; }
.gtnm .gtnm_card_tx small { display: inline-flex; align-items: center; gap: 2px; margin-top: 3px; font-size: 12px; font-weight: 700; color: #343a40; }
.gtnm .gtnm_card_tx small svg { width: 12px; height: 12px; }
.gtnm .gtnm_x { position: absolute; right: 4px; top: 2px; appearance: none; width: 26px; height: 26px; margin: 0; padding: 0; border: 0; background: none; font-size: 20px; line-height: 1; color: #adb5bd; cursor: pointer; }

/* 같은 장소 행사 카드 */
.gtnm .gtnm_cw.is_group { width: 300px; }
.gtnm .gtnm_cw.is_group .gtnm_card { display: block; }
.gtnm .gtnm_grp_hd { padding-right: 18px; margin-bottom: 6px; font-size: 14px; font-weight: 700; white-space: normal; overflow-wrap: break-word; }
.gtnm .gtnm_grp_ul { margin: 0; padding: 0; list-style: none; max-height: 200px; overflow-y: auto; }
.gtnm .gtnm_grp_li a { display: flex; align-items: center; gap: 6px; padding: 6px 4px; border-radius: 6px; color: inherit; text-decoration: none; }
.gtnm .gtnm_grp_li a:hover, .gtnm .gtnm_grp_li.is_on a { background: #f1f3f5; }
.gtnm .gtnm_grp_dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; }
.gtnm .gtnm_grp_cat { flex: 0 0 auto; font-size: 11px; font-weight: 700; }
.gtnm .gtnm_grp_title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.gtnm .gtnm_grp_period { flex: 0 0 auto; font-size: 11px; color: #868e96; }
.gtnm .gtnm_grp_dist { margin-top: 6px; font-size: 12px; color: #343a40; }

/* [css 2] 테마가 1360px 이하에서 본문 여백을 0 으로 만든다 — 좌우 여백은 지도 페이지가 직접 (컬쳐캘린더와 같은 20px) */
@media (max-width: 1360px) {
    .gtnm { padding-left: 20px; padding-right: 20px; }
}
/* PC : 고르기 한 줄, 장르만 가로 넘김 */
@media (min-width: 1025px) {
    .gtnm .gtnm_bar { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 10px; }
    .gtnm .gtnm_tabs, .gtnm .gtnm_chips { flex: 0 0 auto; flex-wrap: nowrap; }
    .gtnm .gtnm_cats { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .gtnm .gtnm_cats::-webkit-scrollbar { display: none; }
    .gtnm .gtnm_cats > .gtnm_cat { flex: 0 0 auto; }
    .gtnm .gtnm_tab { padding: 8px 14px; }
    .gtnm .gtnm_chip { padding: 7px 11px; }
    .gtnm .gtnm_sep { width: 1px; height: 22px; background: #dee2e6; flex: 0 0 1px; }
}
/* 태블릿 · 휴대폰 : 지도 위, 목록 아래 */
@media (max-width: 1024px) {
    .gtnm .gtnm_bar { flex-direction: column; align-items: stretch; }
    .gtnm .gtnm_sep { display: none; }
    .gtnm .gtnm_body { display: block; height: auto; }
    .gtnm .gtnm_map { height: 60vh; min-height: 320px; max-height: 480px; margin-bottom: 14px; }
    .gtnm .gtnm_side { overflow: visible; padding-right: 0; }
}
@media (max-width: 500px) {
    .gtnm .gtnm_hd { gap: 12px; margin-bottom: 16px; }
    .gtnm .gtnm_hd_ic { flex-basis: 44px; width: 44px; height: 44px; border-radius: 13px; }
    .gtnm .gtnm_hd_ic svg { width: 24px; height: 24px; }
    .gtnm .gtnm_lead { font-size: 14px; }
    .gtnm .gtnm_tabs { width: 100%; }
    .gtnm .gtnm_tab { flex: 1 1 0; padding: 8px 6px; font-size: 14px; }
    .gtnm .gtnm_chips, .gtnm .gtnm_cats { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
    .gtnm .gtnm_chips::-webkit-scrollbar, .gtnm .gtnm_cats::-webkit-scrollbar { display: none; }
    .gtnm .gtnm_legend { padding: 10px; gap: 6px; }
    .gtnm .gtnm_legend_t { width: 100%; }
    .gtnm .gtnm_type { flex: 1 1 0; justify-content: center; padding: 7px 8px; font-size: 13px; }
    .gtnm .gtnm_legend_me { display: none; }
    .gtnm .gtnm_map { height: 56vh; min-height: 300px; border-radius: 12px; }
    .gtnm .gtnm_cw { width: 230px; }
    .gtnm .gtnm_cw.is_group { width: 250px; }
}
