@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

body { font-family: 'Noto Sans KR', sans-serif; -webkit-tap-highlight-color: transparent; background-color: #f3f4f6; color: #111827; }
#map { height: 100vh; width: 100%; z-index: 0; background-color: #f8f9fa; }

/* 마커 디자인 */
.custom-marker-wrapper { position: relative; width: 48px; height: 48px; }
.marker-body { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 3.5px solid #f97316; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,0.25); position: absolute; bottom: 0; left: 0; z-index: 10; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.marker-body.closed { border-color: #9ca3af !important; filter: grayscale(1); opacity: 0.6; }
.marker-body.order-mode { border-color: #10b981; }
.marker-label { position: absolute; bottom: 62px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.98); padding: 5px 12px; border-radius: 14px; font-size: 11px; font-weight: 900; border: 1.5px solid #eee; white-space: nowrap; pointer-events: none; color: #1f2937; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 20; }

/* 카테고리 그리드 UI */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 6px 0; }
.category-chip { background: #fff; border: 1.5px solid #e5e7eb; padding: 12px 0; border-radius: 18px; font-size: 11px; font-weight: 800; color: #4b5563; text-align: center; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.category-chip.active { background: #1f2937; color: #fff; border-color: #1f2937; transform: translateY(-2px); box-shadow: 0 8px 15px rgba(0,0,0,0.2); }

#center-pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); z-index: 500; display: none; pointer-events: none; }

/* 알림 효과 */
#toast { visibility: hidden; min-width: 260px; background: rgba(17, 24, 39, 0.95); color: #fff; text-align: center; border-radius: 50px; padding: 18px; position: fixed; z-index: 10000; left: 50%; bottom: 40px; transform: translateX(-50%); opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); font-weight: 700; box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.2); }
#toast.show { visibility: visible; opacity: 1; bottom: 100px; }

.no-scrollbar::-webkit-scrollbar { display: none; }
#debug-console { display: none; position: fixed; top: 0; left: 0; width: 100%; background: #ef4444; color: white; z-index: 99999; padding: 10px; font-size: 12px; text-align: center; font-weight: bold; }

@keyframes flash-border { 0%, 100% { box-shadow: inset 0 0 0 0 transparent; } 50% { box-shadow: inset 0 0 60px 20px rgba(249, 115, 22, 0.5); } }
.animate-flash { animation: flash-border 1.2s infinite; }

.star-rating i { color: #d1d5db; cursor: pointer; transition: color 0.2s; }
.star-rating i.active { color: #f59e0b; }

input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 28px; width: 28px; border-radius: 50%; background: #f97316; cursor: pointer; margin-top: -11px; box-shadow: 0 4px 10px rgba(0,0,0,0.25); border: 3px solid white; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8px; cursor: pointer; background: #fed7aa; border-radius: 4px; }

.panel-shadow { box-shadow: 0 -15px 30px -5px rgba(0, 0, 0, 0.15); }
.active-filter { background-color: #f97316 !important; color: white !important; border-color: #f97316 !important; }
/* 강조 효과 애니메이션 */
@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.highlight-btn {
    animation: pulse-ring 2s infinite;
    border: 2px solid #f97316 !important;
    z-index: 2000;
}

/* 툴팁 스타일 */
.guide-tooltip {
    position: absolute;
    top: 70px;
    right: 10px;
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 2000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: bounce 1s infinite;
}
.guide-tooltip::after {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    border-width: 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent #1f2937;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}