/* style.css */
:root { --app-bg: #0a0a0a; --card-bg: #141414; --card-border: #262626; --accent: #FFB300; --safe-top: env(safe-area-inset-top); --safe-bottom: env(safe-area-inset-bottom); }
body { font-family: 'Pretendard', sans-serif; background-color: var(--app-bg); color: #ffffff; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; word-break: keep-all; }

input[type="tel"], input[type="text"], input[type="email"], input[type="password"], textarea, select { font-family: 'Pretendard', sans-serif !important; font-size: 16px !important; }
input, textarea, button, select { -webkit-appearance: none; -moz-appearance: none; appearance: none; border-radius: 0; outline: none; }

.hide-scroll::-webkit-scrollbar { display: none; } 
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }
.glass-header { background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

/* Card UI - PC 호버 효과 개선 */
.glass-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 1.25rem; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
@media (min-width: 1024px) {
    .glass-card:hover { border-color: #555; background: #1a1a1a; transform: translateY(-4px); box-shadow: 0 12px 24px -10px rgba(0,0,0,0.8), 0 0 15px rgba(255,179,0,0.05); } 
}
.glass-card:active { transform: scale(0.98); }

.select-btn.selected { background-color: var(--accent); color: #000; border-color: var(--accent); font-weight: 800; }
.select-btn { background-color: #111; color: #777; border: 1px solid #333; transition: all 0.2s ease; }
.pt-safe { padding-top: calc(4.5rem + var(--safe-top)); } 
.pb-safe { padding-bottom: calc(6.5rem + var(--safe-bottom)); }

.modal-dim { background-color: rgba(0,0,0,0.85); backdrop-filter: blur(8px); }
.modal-anim { animation: popIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes popIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.auth-tab { border-bottom: 2px solid transparent; color: #555; padding-bottom: 12px; cursor: pointer; transition: all 0.3s; font-size: 1rem; font-weight: 600; }
.auth-tab.active { border-bottom: 2px solid var(--accent); color: white; font-weight: 800; }

.custom-checkbox { -webkit-appearance: auto !important; appearance: auto !important; accent-color: var(--accent); width: 1.2rem; height: 1.2rem; cursor: pointer; }
.custom-scrollbar { -webkit-overflow-scrolling: touch; } 
.custom-scrollbar::-webkit-scrollbar { width: 6px; } 
.custom-scrollbar::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 10px; }

.header-circle-btn { width: 44px; height: 44px; border-radius: 50%; background: #141414; border: 1px solid #333; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: all 0.2s ease; cursor: pointer; flex-shrink: 0; overflow: hidden; }
.header-circle-btn:hover { background: #1f2937; border-color: #4b5563; } 
.header-circle-btn:active { transform: scale(0.92); border-color: var(--accent); color: var(--accent); }

.location-field { position: relative; width: 100%; display: flex; gap: 0.5rem; align-items: center; }
.location-field input { flex: 1; height: 3.25rem; background: #111; border: 1px solid #333 !important; border-radius: 0.75rem; padding: 0 1rem; color: white; outline: none; transition: border-color 0.2s; font-weight: 600; }
.location-field input:focus { border-color: var(--accent) !important; }

.remove-way-btn { background: #1a1a1a; color: #ef4444; width: 3.25rem; height: 3.25rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; border: 1px solid #333; transition: all 0.2s; cursor: pointer;}
.remove-way-btn:hover { background: #ef4444; color: white; border-color: #ef4444; }
.add-way-btn { background: rgba(255, 179, 0, 0.05); color: var(--accent); border: 1px dashed rgba(255, 179, 0, 0.4); width: 100%; height: 3.25rem; border-radius: 0.75rem; font-size: 0.9rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; transition: all 0.2s; cursor: pointer; }
.add-way-btn:hover { background: rgba(255, 179, 0, 0.1); }

.map-shortcut-btn { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; font-weight: 900; display: flex; align-items: center; justify-content: center; transition: all 0.2s; cursor: pointer; color: white; border: 1px solid rgba(255,255,255,0.1); }
.map-naver { background: #03c75a; } 
.map-kakao { background: #fee500; color: #000; }
.map-shortcut-btn:hover { filter: brightness(1.1); } 
.map-shortcut-btn:active { transform: scale(0.9); }

.autocomplete-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50; background: #1a1a1a; border: 1px solid #333; border-radius: 0.75rem; max-height: 14rem; overflow-y: auto; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7); display: none; }
.autocomplete-item { padding: 0.8rem 1rem; border-bottom: 1px solid #262626; cursor: pointer; transition: background 0.1s; }
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:active, .autocomplete-item:hover { background-color: #262626; }

/* 지역 모달 PC/모바일 호환성 강화 */
.korea-map-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; margin-top: 1.5rem; margin-bottom: 1rem; padding: 0.75rem; background: #0a0a0a; border-radius: 1.25rem; border: 1px solid #222; }
.map-tile { background: #1a1a1a; border: 1px solid #333; border-radius: 1.5rem; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; color: #777; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); user-select: none; padding: 0.85rem 0; box-shadow: inset 0 2px 4px rgba(255,255,255,0.02), 0 2px 4px rgba(0,0,0,0.2); }
.map-tile.empty { background: transparent; border: none; pointer-events: none; box-shadow: none; }
.map-tile.active { background: var(--accent); color: #000; border-color: var(--accent); box-shadow: 0 0 15px rgba(255,179,0,0.4), inset 0 -2px 4px rgba(0,0,0,0.2); transform: scale(1.05); z-index: 2; font-weight: 900; }
.map-tile:active:not(.empty) { transform: scale(0.92); }

.sub-region-btn { background: #111; border: 1px solid #333; color: #aaa; border-radius: 0.5rem; padding: 0.75rem 0.5rem; font-size: 0.85rem; font-weight: 700; transition: all 0.2s; }
.sub-region-btn.active { background: rgba(255,179,0,0.15); border-color: var(--accent); color: var(--accent); font-weight: 900; }

.tag-chip { background: var(--accent); color: #000; font-size: 0.75rem; font-weight: 900; padding: 0.35rem 0.75rem; border-radius: 99px; display: inline-flex; align-items: center; cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 8px rgba(255,179,0,0.3); }
.tag-chip:active { transform: scale(0.9); }