:root { --vh: 100vh; }
body { 
    font-family: 'Noto Sans KR', sans-serif; 
    -webkit-tap-highlight-color: transparent; 
    word-break: keep-all; 
    padding-bottom: calc(64px + env(safe-area-inset-bottom)); 
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

.hero-slider-container { position: relative; width: 100%; height: 340px; overflow: hidden; }
@media (min-width: 768px) { .hero-slider-container { height: 460px; } }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease-in-out; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-slide.active { opacity: 1; z-index: 10; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.8)); }
.hero-content { position: relative; z-index: 20; color: white; width: 100%; padding: 0 1rem; }
.slider-nav { position: absolute; bottom: 40px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 30; }
@media (min-width: 768px) { .slider-nav { bottom: 70px; } }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background-color: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s ease; }
.slider-dot.active { background-color: white; width: 24px; border-radius: 4px; }

.map-bg { background: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover; }

.card-hover { transition: all 0.3s ease; }
@media (min-width: 768px) { .card-hover:hover { transform: translateY(-4px); box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); } }

.pin-bounce { animation: bounce 2s infinite; }
@keyframes bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: translateY(0); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hotplace-container { height: calc(var(--vh) - 64px - env(safe-area-inset-top)); }
@media (min-width: 768px) { .hotplace-container { height: auto; min-height: calc(var(--vh) - 80px); } }
.bottom-nav-safe { padding-bottom: env(safe-area-inset-bottom); height: calc(64px + env(safe-area-inset-bottom)); }
.snap-x-mandatory { scroll-snap-type: x mandatory; }
.snap-center { scroll-snap-align: center; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* ====================================================
   ★ 공통 통합 요소 (유지보수 최적화)
   ==================================================== */

/* 1. 스크롤 등장 애니메이션 (모든 페이지 공통) */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* 2. 에디터(Quill) 본문 렌더링 스타일 (뉴스, 커뮤니티, 관리자 등) */
.ql-editor { line-height: 1.8; font-size: 1.05rem; word-break: break-word; }
.ql-editor img { max-width: 100%; border-radius: 1.5rem; margin: 2rem auto; display: block; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }