body, html { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; font-family: 'Pretendard', sans-serif; background-color: #f8f9fa; color: #343a40; }
input, textarea, select { -webkit-user-select: auto; -moz-user-select: auto; -ms-user-select: auto; user-select: auto; }
img { -webkit-user-drag: none; }

.top-bar-container { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 16px; width: calc(100vw - 32px); display: flex; flex-direction: column; align-items: flex-start; z-index: 10; pointer-events: none; }
.top-row { display: flex; width: 100%; gap: 8px; align-items: center; }
.top-header { flex-shrink: 0; background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 8px 14px; border-radius: 20px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.6); display: flex; flex-direction: row; align-items: center; gap: 10px; pointer-events: auto; white-space: nowrap; width: max-content; }
.header-title { font-size: 16px; font-weight: 800; color: #212529; margin: 0; display: flex; align-items: center; cursor: pointer; flex-shrink: 0; }
#weather-info { font-size: 12px; font-weight: 700; color: #495057; background: rgba(241, 243, 245, 0.8); padding: 4px 8px; border-radius: 12px; display: flex; align-items: center; gap: 2px; cursor: pointer; transition: 0.1s; flex-shrink: 0; }
#weather-info:active { transform: scale(0.92); }
.btn-header-search { background: none; border: none; padding: 0; margin: 0; display: flex; justify-content: center; align-items: center; color: #495057; cursor: pointer; transition: 0.1s; flex-shrink: 0; }
.btn-header-search:active { transform: scale(0.9); color: #FF6B6B; }

.category-nav { display: flex; gap: 6px; overflow-x: auto; pointer-events: auto; scrollbar-width: none; flex: 1; align-items: center; cursor: grab; padding: 2px 0; -webkit-overflow-scrolling: touch; touch-action: pan-x; min-width: 0; flex-wrap: nowrap; }
.category-nav:active { cursor: grabbing; }
.category-nav::-webkit-scrollbar { display: none; }

.chip { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 6px 12px; background: rgba(255,255,255,0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.6); border-radius: 16px; font-size: 12px; font-weight: 700; color: #495057; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: 0.2s; user-select: none; }
.chip.active { background: #343a40; color: white; border-color: #343a40; }
.chip[data-cat="실내"] { color: #FF6B6B; }
.chip[data-cat="실내"].active { background: #FF6B6B; border-color: #FF6B6B; color: white; }
.chip[data-cat="야외"] { color: #37B24D; }
.chip[data-cat="야외"].active { background: #37B24D; border-color: #37B24D; color: white; }
.chip[data-cat="문센"] { color: #845EF7; }
.chip[data-cat="문센"].active { background: #845EF7; border-color: #845EF7; color: white; }

#map { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; background: #e9ecef; }

.custom-marker { position: relative; display: flex; flex-direction: column; align-items: center; cursor: pointer; z-index: 10; }
.custom-marker:hover { z-index: 99999 !important; }
.marker-pin { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: #ffffff; border: 2.5px solid; transform: rotate(-45deg); display: flex; justify-content: center; align-items: center; box-shadow: 0 3px 8px rgba(0,0,0,0.15); transition: all 0.2s ease; }
.marker-icon { transform: rotate(45deg); font-size: 13px; display: flex; justify-content: center; align-items: center; line-height: 1; }
.marker-indoor .marker-pin { border-color: #FF6B6B; }
.marker-outdoor .marker-pin { border-color: #37B24D; }
.marker-moonsen .marker-pin { border-color: #845EF7; }

.marker-label { visibility: hidden; opacity: 0; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: rgba(33, 37, 41, 0.9); color: white; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; transition: all 0.2s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 1000; margin-bottom: 8px; }
.custom-marker:hover .marker-label { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(-5px); }
.custom-marker:hover .marker-pin { transform: rotate(-45deg) scale(1.1); z-index: 100; }
.custom-marker.zoomed .marker-pin { width: 14px; height: 14px; border-width: 2px; }
.custom-marker.zoomed .marker-icon { display: none !important; }
.custom-marker.zoomed.marker-indoor .marker-pin { background: #FF6B6B; }
.custom-marker.zoomed.marker-outdoor .marker-pin { background: #37B24D; }
.custom-marker.zoomed.marker-moonsen .marker-pin { background: #845EF7; }
.custom-marker.zoomed:hover .marker-label { margin-bottom: 4px; }

.info-panel { position: absolute; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 -4px 30px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.6); display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s; z-index: 2000; pointer-events: none; opacity: 0; }
.info-panel.show { opacity: 1; pointer-events: auto; }
.drag-handle { width: 100%; height: 24px; display: none; justify-content: center; align-items: center; flex-shrink: 0; cursor: grab; background: transparent; touch-action: none; }
.drag-handle::after { content: ''; width: 40px; height: 5px; background: rgba(0,0,0,0.2); border-radius: 3px; }

html.is-mobile .info-panel { padding: 0 !important; margin: 0 !important; width: 100vw !important; left: 0 !important; border: none !important; }
html.is-mobile .drag-handle { display: flex; }
html.is-pc .info-panel { top: calc(max(16px, env(safe-area-inset-top)) + 64px); left: 16px; width: 340px; max-height: calc(100vh - 120px - env(safe-area-inset-bottom)); border-radius: 20px; transform: translateX(-20px); bottom: auto; }
html.is-pc .drag-handle { display: none !important; }

html.is-pc .panel-top-bar { position: absolute; top: 12px; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; width: 100%; box-sizing: border-box; padding: 0 16px; pointer-events: none; }
html.is-mobile .panel-top-bar { position: absolute; top: 24px; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; width: 100%; box-sizing: border-box; padding: 8px 16px; pointer-events: none; }

.panel-top-bar > * { pointer-events: auto; }
.panel-weather { background: rgba(255,255,255,0.85); backdrop-filter: blur(8px); border: 1px solid rgba(0,0,0,0.08); padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 800; color: #495057; box-shadow: 0 4px 12px rgba(0,0,0,0.1); cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.1s; }
.panel-weather:active { transform: scale(0.95); }
.btn-back-arrow { width: 32px; height: 32px; background: rgba(255,255,255,0.85); backdrop-filter: blur(4px); border-radius: 50%; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 2px 6px rgba(0,0,0,0.1); color: #495057; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: 0.1s; padding: 0; }
.btn-back-arrow:active { transform: scale(0.9); }
.icon-actions { display: flex; gap: 6px; flex-shrink: 0; }
.icon-btn { width: 36px; height: 36px; background: rgba(255,255,255,0.85); backdrop-filter: blur(8px); border: 1px solid rgba(0,0,0,0.08); border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.1); color: #495057; padding: 0; font-weight: 800; font-size: 14px; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:active { transform: scale(0.9); background: #f8f9fa; }
.view-badge { background: rgba(241, 243, 245, 0.8); backdrop-filter: blur(4px); border: 1px solid rgba(0,0,0,0.05); border-radius: 16px; padding: 4px 10px; font-size: 11px; font-weight: 700; color: #495057; display: flex; align-items: center; gap: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); flex-shrink: 0; }

.info-scroll-area { flex: 1; overflow-y: hidden; overflow-x: hidden; width: 100%; display: flex; flex-direction: column; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; touch-action: none; }
.info-scroll-area::-webkit-scrollbar { width: 6px; }
.info-scroll-area::-webkit-scrollbar-track { background: transparent; }
.info-scroll-area::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
.info-header-wrap { position: relative; width: 100%; flex-shrink: 0; }
html.is-pc .info-header-wrap.no-image { height: 60px; min-height: 60px; } 
html.is-mobile .info-header-wrap.no-image { height: 40px; min-height: 40px; }

.image-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: transparent; touch-action: pan-x; cursor: grab; }
.image-slider:active { cursor: grabbing; }
.image-slider::-webkit-scrollbar { display: none; }
.place-photo { flex: 0 0 100%; width: 100%; height: 240px; scroll-snap-align: center; object-fit: cover; display: block; margin: 0; pointer-events: none; border-radius: 20px 20px 0 0; background: #e9ecef; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 20; pointer-events: none; }
.slider-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: background-color 0.2s, box-shadow 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.slider-dot.active { background: rgba(255,255,255,1); box-shadow: 0 0 4px rgba(0,0,0,0.4); }

.info-body-wrap { padding: 0 20px 30px 20px; height: auto; }
.info-category { font-size: 11px; font-weight: 800; margin-bottom: 4px; flex-shrink: 0; margin-top: 12px; }
.title-row { display: flex; justify-content: flex-start; align-items: center; margin-bottom: 8px; width: 100%; flex-shrink: 0; gap: 6px; }
.info-title-wrap { flex: 0 1 auto; overflow: hidden; white-space: nowrap; position: relative; }
.info-title { font-size: 20px; font-weight: 800; color: #212529; margin: 0; display: inline-block; padding-right: 20px; }
.marquee { animation: marquee 8s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.btn-edit-tiny { background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.05); font-size: 10px; cursor: pointer; border-radius: 50%; width: 20px; height: 20px; display: flex; justify-content: center; align-items: center; color: #495057; flex-shrink: 0; transition: 0.1s; }
.btn-edit-tiny:active { transform: scale(0.9); background: #dee2e6; }
.info-address { font-size: 12px; color: #6B7684; flex-shrink: 0; }
.info-desc { font-size: 13px; color: #495057; line-height: 1.5; margin-bottom: 16px; background: rgba(248, 249, 250, 0.6); padding: 12px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.05); word-break: break-all; overflow-wrap: break-word; flex-shrink: 0; }
.info-tag-wrap { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.info-tag-group { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.info-tag { background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(0,0,0,0.05); color: #495057; font-size: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 600; display: flex; flex-direction: row; align-items: flex-start; width: 100%; box-sizing: border-box; }
.tag-label { color: #868e96; font-weight: 800; font-size: 11px; flex-shrink: 0; width: 40px; margin-top: 2px; }
.tag-value { flex: 1; line-height: 1.5; word-break: keep-all; }

.btn-map-text { padding: 12px; border-radius: 12px; border: none; cursor: pointer; display: flex; justify-content: center; align-items: center; font-weight: 800; font-size: 14px; color: white; box-shadow: 0 2px 6px rgba(0,0,0,0.08); transition: 0.1s; text-decoration: none; }
.btn-map-text:active { transform: scale(0.96); }
.bg-naver { background: #03C75A; }
.bg-kakao { background: #FEE500; color: #191919; }
.bg-tmap { background: #000000; }

.comments-section { border-top: 1px solid rgba(0,0,0,0.08); padding-top: 12px; width: 100%; box-sizing: border-box; flex-shrink: 0; display: flex; flex-direction: column; }
.comments-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.comment-item { padding: 12px; background: rgba(255, 255, 255, 0.6); border-radius: 12px; color: #495057; border: 1px solid rgba(0,0,0,0.05); word-break: break-all; overflow-wrap: break-word; font-size: 12px; line-height: 1.5; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.c-author { font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.comment-delete { background: none; border: none; color: #adb5bd; cursor: pointer; font-size: 11px; padding: 0; }
.btn-more-cmts { background: none; border: none; color: #adb5bd; font-size: 12px; font-weight: 700; cursor: pointer; padding: 8px 0; text-align: center; width: 100%; transition: 0.2s; margin-top: -4px; }
.comment-inputs-top { display: flex; gap: 6px; margin-bottom: 6px; width: 100%; box-sizing: border-box; }
.comment-inputs-top input { flex: 1; min-width: 0; padding: 8px; border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; font-size: 12px; background: rgba(255,255,255,0.6); outline: none; box-sizing: border-box; font-family: inherit; }
.comment-input-wrap { display: flex; gap: 6px; width: 100%; box-sizing: border-box; align-items: flex-start; margin-bottom: 16px; height: 38px; } 
.comment-input-wrap textarea { flex: 1; min-width: 0; height: 100%; padding: 10px; border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; font-size: 12px; background: rgba(255,255,255,0.6); outline: none; box-sizing: border-box; font-family: inherit; resize: none; line-height: 1.4; }
.comment-input-wrap button { height: 100%; background: #495057; color: white; border: none; border-radius: 8px; padding: 0 16px; font-weight: 700; font-size: 12px; cursor: pointer; flex-shrink: 0; white-space: nowrap; box-sizing: border-box; }

.file-upload-wrap { background: rgba(248, 249, 250, 0.6); border: 1px dashed rgba(206, 212, 218, 0.8); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; width: 100%; box-sizing: border-box; transition: 0.2s; }
.file-upload-wrap.dragover { background: #e9ecef; border-color: #adb5bd; }
.file-upload-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.file-upload-header .form-label { margin: 0; }
.file-upload-btn { background: #343a40; color: white; border: none; border-radius: 6px; padding: 6px 12px; cursor: pointer; font-weight: 700; font-size: 11px; display: inline-flex; align-items: center; }
.file-upload-wrap input[type="file"] { display: none; } 

.media-preview-container { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; min-height: 20px; touch-action: pan-x; }
.media-preview-container::-webkit-scrollbar { display: none; }
.media-preview-item { position: relative; width: 76px; height: 76px; flex-shrink: 0; border-radius: 8px; overflow: hidden; border: 1px solid #dee2e6; cursor: grab; background: white; }
.media-preview-item:active { cursor: grabbing; }
.media-preview-img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.media-preview-del { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.6); color: white; border: none; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; display: flex; justify-content: center; align-items: center; cursor: pointer; }
.file-limit-text { font-size: 10.5px; color: #adb5bd; margin-top: 6px; display: block; font-weight: 500; letter-spacing: -0.5px; }

.radio-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.radio-label { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #495057; font-weight: 600; padding: 8px 12px; border: 1px solid rgba(222, 226, 230, 0.6); border-radius: 10px; cursor: pointer; transition: 0.2s; background: rgba(255,255,255,0.5); }
.radio-label:has(input[value="실내"]:checked) { border-color: #FF6B6B; background: rgba(255, 107, 107, 0.1); color: #FF6B6B; }
.radio-label:has(input[value="야외"]:checked) { border-color: #37B24D; background: rgba(55, 178, 77, 0.1); color: #37B24D; }
.radio-label:has(input[value="문센"]:checked) { border-color: #845EF7; background: rgba(132, 94, 247, 0.1); color: #845EF7; }
.radio-label input { display: none; } 

.btn-free-toggle { background: rgba(241, 243, 245, 0.6); border: 1px solid rgba(222, 226, 230, 0.6); color: #495057; font-size: 13px; font-weight: 700; border-radius: 10px; padding: 0 16px; cursor: pointer; transition: 0.2s; white-space: nowrap; flex-shrink: 0; }
.btn-free-toggle:active { transform: scale(0.95); }
.btn-free-toggle.active { background: #343a40; color: white; border-color: #343a40; }

.search-panel { position: absolute; top: max(16px, env(safe-area-inset-top)); z-index: 1500; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 20px; border: 1px solid rgba(255,255,255,0.6); box-shadow: 0 8px 32px rgba(0,0,0,0.1); display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: all 0.3s ease; max-height: calc(100vh - 32px - env(safe-area-inset-bottom)); box-sizing: border-box; }
.search-panel.show { opacity: 1; pointer-events: auto; }
html.is-mobile .search-panel { left: 50%; transform: translateX(-50%) translateY(-10px); width: calc(100vw - 32px); }
html.is-mobile .search-panel.show { transform: translateX(-50%) translateY(0); }
html.is-pc .search-panel { right: 16px; width: 340px; transform: translateX(20px); }
html.is-pc .search-panel.show { transform: translateX(0); }

.search-header { display: flex; gap: 8px; padding: 16px; border-bottom: 1px solid rgba(0,0,0,0.05); align-items: flex-start; }
.search-input-area { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.search-input-area input { width: 100%; border: none; background: rgba(241, 243, 245, 0.6); padding: 12px 14px; border-radius: 12px; font-size: 14px; outline: none; box-sizing: border-box; }
.search-scope-toggle { display: none; gap: 6px; } 
.search-scope-toggle.show { display: flex; }
.scope-btn { flex: 1; padding: 8px 0; border-radius: 8px; border: 1px solid rgba(222, 226, 230, 0.6); background: rgba(255,255,255,0.5); font-size: 11px; font-weight: 700; cursor: pointer; color: #495057; transition: 0.2s; white-space: nowrap; }
.scope-btn.active { background: #343a40; color: white; border-color: #343a40; }
.search-close-btn { background: none; border: none; font-size: 26px; color: #adb5bd; cursor: pointer; padding: 0 4px; line-height: 1; }
.search-results-list { list-style: none; margin: 0; padding: 12px 16px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.search-result-item { padding: 14px; background: rgba(255,255,255,0.7); border-radius: 14px; border: 1px solid rgba(241, 243, 245, 0.6); cursor: pointer; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.res-empty { text-align: center; color: #868e96; font-size: 13px; padding: 20px 0; }

.fab-container { position: absolute; bottom: calc(70px + env(safe-area-inset-bottom)); right: 20px; display: flex; flex-direction: column; gap: 12px; z-index: 100; transition: opacity 0.2s; }
.fab-btn { width: 52px; height: 52px; border: none; border-radius: 26px; color: white; cursor: pointer; display: flex; justify-content: center; align-items: center; box-shadow: 0 6px 16px rgba(0,0,0,0.15); transition: transform 0.1s; }
.fab-btn:active { transform: scale(0.92); }
.btn-location { background: rgba(255,255,255,0.9); border: 1px solid #e9ecef; }
.btn-loading { opacity: 0.4; pointer-events: none; animation: pulse 1s infinite alternate; }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(0.92); } }
.btn-add { background: linear-gradient(135deg, #FF6B6B, #FF8E53); font-size: 30px; font-weight: 300; }

.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; height: calc(56px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid rgba(0,0,0,0.08); display: flex; z-index: 3000; padding-bottom: env(safe-area-inset-bottom); box-sizing: border-box; }
.nav-item { flex: 1; display: flex; flex-direction: row; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #adb5bd; cursor: pointer; transition: 0.2s; gap: 8px; }
.nav-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { color: #212529; }
.nav-item.active svg { stroke: #212529; }

#board-view { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #f8f9fa; z-index: 2000; display: none; padding: 0 20px calc(90px + env(safe-area-inset-bottom)); box-sizing: border-box; overflow-y: auto; }
.board-title-row { display: flex; justify-content: space-between; align-items: center; margin-top: calc(max(24px, env(safe-area-inset-top)) + 10px); margin-bottom: 20px; }
.board-title { font-size: 24px; font-weight: 800; color: #212529; margin: 0; display: flex; align-items: center; gap: 8px; }
.btn-info-circle { width: 22px; height: 22px; border-radius: 50%; background: #e9ecef; color: #868e96; display: flex; justify-content: center; align-items: center; font-weight: 900; font-family: serif; font-size: 14px; cursor: pointer; border: none; transition: 0.1s; }
.btn-info-circle:active { transform: scale(0.9); background: #dee2e6; }
.btn-write-notice { background: #343a40; color: white; border: none; padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; transition: 0.1s; }
.btn-write-notice:active { transform: scale(0.95); }

.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice-card { background: white; border-radius: 16px; padding: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.04); display: flex; gap: 12px; cursor: pointer; transition: 0.1s; align-items: center; }
.notice-card:active { transform: scale(0.98); }
.notice-content { flex: 1; min-width: 0; }
.notice-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: #f1f3f5; }
.n-date { font-size: 11px; color: #adb5bd; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.n-badge { background: #FF6B6B; color: white; font-size: 9px; padding: 2px 6px; border-radius: 6px; }
.n-title { font-size: 15px; font-weight: 800; color: #212529; margin-bottom: 6px; line-height: 1.4; word-break: keep-all; }
.n-desc { font-size: 12px; color: #868e96; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#notice-detail-view { display: none; flex-direction: column; }

/* -- 게시판 상세 열람 시 위쪽으로 비쳐 보이는 현상 차단 -- */
.notice-detail-header { position: sticky; top: 0; background: #f8f9fa; z-index: 100; padding: calc(max(24px, env(safe-area-inset-top)) + 10px) 20px 16px 20px; margin: 0 -20px 20px -20px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.notice-detail-header::before { content: ''; position: absolute; top: -50px; left: 0; right: 0; height: 50px; background: #f8f9fa; }
/* ----------------------------------------------------- */

.detail-top-row { display: flex; justify-content: space-between; align-items: center; }
.btn-back { background: none; border: none; font-size: 16px; font-weight: 800; color: #495057; display: flex; align-items: center; gap: 4px; cursor: pointer; padding: 0; }
.btn-edit-notice, .btn-delete-notice { background: none; border: none; color: #adb5bd; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; }
.detail-title-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 16px; gap: 12px; }
.detail-title { font-size: 20px; font-weight: 800; color: #212529; margin: 0; line-height: 1.4; word-break: keep-all; flex: 1; }
.detail-date { font-size: 11px; color: #adb5bd; font-weight: 600; white-space: nowrap; padding-bottom: 2px; }
.detail-body { font-size: 14px; color: #495057; line-height: 1.6; word-break: break-all; white-space: pre-wrap; }
.notice-detail-img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 10px; display: block; object-fit: contain; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(33, 37, 41, 0.5); z-index: 4000; justify-content: center; align-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-content { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,0.6); padding: 24px; border-radius: 24px; width: 85%; max-width: 440px; box-shadow: 0 16px 48px rgba(0,0,0,0.2); box-sizing: border-box; max-height: 90vh; overflow-x: hidden; overflow-y: auto; position: relative; }

#popup-modal .popup-modal-content { padding: 0; max-width: 320px; border-radius: 20px; overflow: hidden; background: white; border: none; box-shadow: 0 20px 60px rgba(0,0,0,0.15); display: flex; flex-direction: column; }
.popup-img-container { position: relative; width: 100%; aspect-ratio: 4 / 5; background: #f8f9fa; }
.popup-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.7); border: none; width: 36px; height: 36px; border-radius: 50%; display: none; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.15); color: #495057; font-weight: bold; font-size: 16px; backdrop-filter: blur(4px); z-index: 10; transition: 0.2s; }
.popup-nav-btn.prev { left: 12px; }
.popup-nav-btn.next { right: 12px; }
.popup-nav-btn:active { background: white; transform: translateY(-50%) scale(0.9); }
.popup-btn-row { display: flex; width: 100%; border-top: 1px solid #f1f3f5; }
.popup-btn-half { flex: 1; padding: 16px; background: white; border: none; font-size: 14px; cursor: pointer; transition: 0.1s; display: flex; justify-content: center; align-items: center; }
.popup-btn-half:active { background: #f8f9fa; }
.popup-btn-left { font-weight: 600; color: #868e96; border-right: 1px solid #f1f3f5; }
.popup-btn-right { font-weight: 800; color: #FF6B6B; }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 12px; }
.modal-header h3 { margin: 0; font-size: 18px; color: #212529; }
.panel-close-btn-static { background: rgba(248, 249, 250, 0.6); border: none; width: 28px; height: 28px; border-radius: 14px; font-size: 16px; font-weight: bold; color: #adb5bd; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.2s; padding:0; margin-left: auto; }
.panel-close-btn-static:active { transform: scale(0.9); background: #e9ecef; color: #495057; }

.form-label { font-size: 12px; font-weight: 800; color: #495057; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; margin-top: 14px;}
.req { color: #FF6B6B; }
.manual-toggle-wrap { font-size: 13px; color: #495057; font-weight: 700; display: flex; align-items: center; gap: 6px; cursor: pointer; }

.btn-inquiry-small { background: rgba(241, 243, 245, 0.6); color: #495057; border: 1px solid rgba(222, 226, 230, 0.6); border-radius: 10px; font-size: 11px; font-weight: 700; padding: 4px 8px; cursor: pointer; transition: 0.1s; }
.btn-inquiry-small:active { transform: scale(0.95); background: #e9ecef; }

.kakao-search-box { display: flex; gap: 8px; margin-bottom: 8px; }
.kakao-search-box input { flex: 1; margin: 0 !important; }
.kakao-search-box button { background: #495057; color: white; border: none; border-radius: 10px; padding: 0 16px; font-weight: 800; font-size: 13px; cursor: pointer; }

#kakao-result-list { list-style: none; padding: 0; margin: 0 0 12px 0; max-height: 120px; overflow-y: auto; display: none; border: 1px solid #dee2e6; border-radius: 10px; background: white; }
#kakao-result-list li { padding: 10px 12px; border-bottom: 1px solid #f1f3f5; cursor: pointer; font-size: 13px; }

.form-row-group { display: flex; gap: 8px; margin-bottom: 12px; width: 100%; }
.form-row-group select { flex: 1; border: 1px solid #dee2e6; border-radius: 10px; padding: 12px 10px; font-size: 13px; outline: none; box-sizing: border-box; }
.form-row-group input, .form-row-group textarea { flex: 2; margin-bottom: 0 !important; box-sizing: border-box; }
.modal-content input[type="text"], .modal-content input[type="password"], .modal-content textarea, .modal-content select.full-width { width: 100%; margin-bottom: 12px; padding: 12px 14px; box-sizing: border-box; border: 1px solid rgba(222, 226, 230, 0.6); border-radius: 10px; font-size: 14px; outline: none; font-family: inherit; background: rgba(255,255,255,0.6); }
.modal-content input:read-only { background: rgba(241, 243, 245, 0.5); color: #868e96; }
.modal-content textarea { resize: none; line-height: 1.4; }

.btn-group { display: flex; gap: 8px; margin-top: 14px; width: 100%; }
.btn-action { padding: 14px; border: none; border-radius: 10px; cursor: pointer; flex: 1; font-weight: 700; font-size: 14px; }
.btn-cancel { background: rgba(233, 236, 239, 0.8); color: #495057; }
.btn-save { background: #FF6B6B; color: white; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

html.is-mobile .search-panel { visibility: hidden; opacity: 0; pointer-events: none; left: 50%; right: auto; width: calc(100vw - 32px); transform: translateX(-50%) translateY(-10px); }
html.is-mobile .search-panel.show { visibility: visible; opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
html.is-pc .search-panel { visibility: hidden; opacity: 0; pointer-events: none; position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; width: 340px; max-width: calc(100vw - 32px); z-index: 1500; background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(24px); border-radius: 20px; border: 1px solid rgba(255,255,255,0.6); box-shadow: 0 8px 32px rgba(0,0,0,0.1); display: flex; flex-direction: column; transform: translateX(20px); transition: all 0.3s ease; max-height: calc(100vh - 32px - env(safe-area-inset-bottom)); }
html.is-pc .search-panel.show { visibility: visible; opacity: 1; pointer-events: auto; transform: translateX(0); }

html.is-pc .info-panel { max-height: calc(100vh - 120px - env(safe-area-inset-bottom) - 60px) !important; }
html.is-pc .info-body-wrap { padding-bottom: 20px !important; }
html.is-mobile .info-body-wrap { padding-bottom: calc(56px + env(safe-area-inset-bottom) + 20px) !important; }

.panel-weather { padding: 4px 10px !important; border-radius: 12px !important; font-size: 11px !important; height: 28px !important; box-sizing: border-box !important; }
.btn-back-arrow { width: 28px !important; height: 28px !important; }
.icon-btn { width: 28px !important; height: 28px !important; }
.icon-btn svg { width: 14px !important; height: 14px !important; }

html.is-mobile .btn-panel-close { display: none !important; }

html.is-mobile .search-panel { 
    position: absolute !important; 
    left: 50% !important; 
    right: auto !important; 
    transform: translateX(-50%) translateY(-10px) !important; 
    width: calc(100vw - 32px) !important; 
    margin: 0 !important;
}
html.is-mobile .search-panel.show { 
    transform: translateX(-50%) translateY(0) !important; 
}

/* --- 모바일 정보창 레이아웃 및 버튼 스타일 고도화 --- */

/* 1. 날씨/미세먼지 우측 세로 정렬 */
.body-weather-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-left: 12px;
    flex-shrink: 0;
}

.weather-item-row {
    font-size: 11px;
    font-weight: 800;
    color: #495057;
    background: rgba(241, 243, 245, 0.8);
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

/* 1. 상단바 공백 제거 및 지도 확장 */
.top-bar-container {
    top: 0 !important;
    padding-top: max(16px, env(safe-area-inset-top));
}

/* 2. 정보창 헤더 버튼 및 여백 교정 */
.panel-header-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 0 20px; /* 좌우 여백을 원복하여 좁게 만듦 */
    z-index: 110;
}

html.is-mobile .info-panel {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 3. 댓글란 입력 필드 레이아웃 복구 */
.comment-inputs-top {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    width: 100%;
}
.comment-inputs-top input {
    flex: 1;
    padding: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 12px;
    background: rgba(255,255,255,0.6);
}

/* 4. 날씨 세로 정렬 및 위치 조정 */
.body-weather-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-top: 4px; /* 장소명 첫 줄과 맞춤 */
}
.weather-item-row {
    font-size: 11px;
    font-weight: 800;
    color: #495057;
    background: rgba(241, 243, 245, 0.8);
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

/* --- 지도 상단 공백 및 정보창 디자인 완벽 복구 --- */

/* 지도 상단 공백 제거 */
.top-bar-container {
    top: 0 !important;
    padding-top: max(16px, env(safe-area-inset-top));
}

/* 정보창 상단 고정 버튼(공유, X, 뒤로가기)의 레이아웃 독립 보장 */
.panel-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    pointer-events: none;
}
html.is-mobile .panel-top-bar {
    padding: 16px 16px;
}
.panel-top-bar > * {
    pointer-events: auto;
}

/* 닉네임/비번 입력란 가로 분할 정렬 */
.comment-inputs-top {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    width: 100%;
}
.comment-inputs-top input {
    flex: 1;
    padding: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 12px;
    background: rgba(255,255,255,0.6);
    outline: none;
}

html.is-mobile .info-panel {
    top: auto !important;
    bottom: calc(56px + env(safe-area-inset-bottom)) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 85vh !important;
    max-width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
