/* ========== 홈 피드 ========== */
.hf-wrap {
    padding: 0 0 40px;
    min-height: 100%;
    background: var(--input-bg);
}
.hf-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 20px 12px;
    border-radius: 0 0 24px 24px;
    text-align: center;
}
.hf-greeting {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}
.hf-region {
    font-size: 14px;
    opacity: 0.85;
}
.hf-banner {
    margin: -12px 20px 0;
    position: relative;
    z-index: 1;
}
.hf-banner-inner {
    background: var(--card);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text2);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    line-height: 1.5;
}
/* 홈 퀵 설정 (위치 + 관심사) */
.hf-quick-settings {
    display: flex; flex-direction: column; gap: 8px;
    margin: 12px 16px 0; position: relative; z-index: 1;
}
.hf-setting-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: 12px;
    background: var(--card); border: 1.5px solid var(--border);
    cursor: pointer; width: 100%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: all 0.15s;
}
.hf-setting-btn:active { transform: scale(0.98); }
.hf-setting-icon { font-size: 18px; }
.hf-setting-label {
    flex: 1; text-align: left; font-size: 13px;
    font-weight: 600; color: var(--text);
}
.hf-setting-arrow {
    font-size: 18px; color: var(--text2); font-weight: 300;
}
.hf-interest-btn {
    border-color: #667eea40;
    background: linear-gradient(135deg, #667eea08, #764ba208);
}
.hf-interest-btn .hf-setting-label {
    font-weight: 500; font-size: 12px;
}

.hf-section {
    margin-top: 28px;
    padding: 0 20px;
    overflow: hidden;
    min-width: 0;
}
.hf-section-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}
.hf-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hf-scroll::-webkit-scrollbar { display: none; }
.hf-card {
    flex-shrink: 0;
    width: 140px;
    background: var(--card);
    border-radius: 14px;
    padding: 16px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hf-card:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.hf-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.hf-card-name {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.hf-card-rank {
    position: absolute; top: 8px; left: 8px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent, #667eea); color: #fff;
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.hf-card { position: relative; }
.hf-card-map-btn {
    position: absolute; top: 6px; right: 6px;
    width: 28px; height: 28px; border-radius: 8px;
    border: 1px solid var(--border); background: var(--bg);
    font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.8; transition: opacity 0.2s;
}
.hf-card-map-btn:active { opacity: 1; transform: scale(0.9); }
.hf-card-addr {
    font-size: 11px; color: var(--text2); margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hf-card-sub {
    font-size: 12px;
    color: var(--text2);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hf-post {
    background: var(--card);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: transform 0.2s;
}
.hf-post:active { transform: scale(0.99); }
.hf-post-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hf-post-meta {
    font-size: 12px;
    color: var(--text2);
    margin-top: 4px;
}
.hf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hf-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--card);
    border: 1.5px solid #667eea;
    color: #667eea;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.hf-tag:active {
    background: #667eea;
    color: white;
}
.hf-empty {
    text-align: center;
    color: var(--text2);
    font-size: 14px;
    padding: 20px 0;
}
/* Skeleton */
.hf-skeleton-title {
    width: 120px; height: 20px;
    background: var(--border); border-radius: 8px;
    margin-bottom: 12px;
    animation: hf-pulse 1.2s infinite;
}
.hf-skeleton-card {
    flex-shrink: 0;
    width: 140px; height: 100px;
    background: var(--border); border-radius: 14px;
    animation: hf-pulse 1.2s infinite;
}
.hf-skeleton-post {
    height: 56px;
    background: var(--border); border-radius: 12px;
    margin-bottom: 8px;
    animation: hf-pulse 1.2s infinite;
}
@keyframes hf-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== 공연/축제 피드 ===== */
.pf-scroll {
    display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 8px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.pf-scroll::-webkit-scrollbar { display: none; }
.pf-card {
    flex-shrink: 0; width: 130px; scroll-snap-align: start;
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; cursor: pointer; transition: transform 0.15s;
}
.pf-card:active { transform: scale(0.97); }
.pf-poster-wrap {
    position: relative; width: 100%; height: 160px; background: var(--input-bg);
    display: flex; align-items: center; justify-content: center;
}
.pf-poster { width: 100%; height: 100%; object-fit: cover; }
.pf-poster-fallback {
    font-size: 36px; display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; color: var(--text2);
}
.pf-state {
    position: absolute; top: 6px; left: 6px; padding: 2px 6px;
    border-radius: 6px; font-size: 10px; font-weight: 700;
}
.pf-state-active { background: #e74c3c; color: #fff; }
.pf-state-upcoming { background: #3498db; color: #fff; }
.pf-info { padding: 8px; }
.pf-name {
    font-size: 12px; font-weight: 700; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    margin-bottom: 2px;
}
.pf-meta { font-size: 10px; color: var(--text2); margin-bottom: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-genre {
    display: inline-block; margin-top: 4px; padding: 2px 6px;
    background: var(--input-bg); border-radius: 6px;
    font-size: 10px; color: var(--text2);
}
.pf-actions {
    display: flex; gap: 6px; margin-top: 8px;
}
.pf-action-btn {
    flex: 1; padding: 6px 0; border: 1px solid var(--border);
    border-radius: 8px; background: var(--card); color: var(--text);
    font-size: 11px; cursor: pointer; text-align: center;
    font-weight: 600; transition: all 0.15s;
}
.pf-action-btn:active { transform: scale(0.95); }
.pf-map-btn {
    border: 1px solid var(--border); color: var(--text);
}
.pf-skeleton-card {
    flex-shrink: 0; width: 160px; height: 280px;
    background: var(--border); border-radius: 14px;
    animation: hf-pulse 1.2s infinite;
}
/* 공연 공유 버튼 */
.pf-share-btn {
    display: block; width: calc(100% - 16px); margin: 0 8px 8px;
    padding: 6px 0; border: 1px solid var(--border); border-radius: 8px;
    background: var(--input-bg); font-size: 12px; cursor: pointer; color: var(--text);
    transition: background .2s;
}
.pf-share-btn:active { background: var(--border); }
/* 박스오피스 랭크 배지 */
.pf-rank {
    position: absolute; top: 8px; left: 8px; width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff;
    background: var(--text2);
}
.pf-rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); }
.pf-rank-2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); }
.pf-rank-3 { background: linear-gradient(135deg, #CD7F32, #A0522D); }

/* ===== 교육·채용 피드 ===== */
.trf-tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.trf-tab {
    flex: 1; padding: 8px 0; border: 1px solid var(--border); border-radius: 10px;
    background: var(--card); font-size: 13px; font-weight: 600; cursor: pointer;
    color: var(--text2); transition: all .2s;
}
.trf-tab.active { background: #667eea; color: #fff; border-color: #667eea; }
.trf-panel { display: none; }
.trf-panel.active { display: block; }
.trf-scroll {
    display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 8px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.trf-scroll::-webkit-scrollbar { display: none; }
.trf-card {
    flex-shrink: 0; width: 220px; background: var(--card);
    border: 1px solid var(--border); border-radius: 14px;
    padding: 14px; scroll-snap-align: start; cursor: pointer;
    position: relative; transition: transform .15s;
}
.trf-card:active { transform: scale(0.97); }
.trf-card-icon { font-size: 28px; margin-bottom: 8px; }
.trf-card-body { min-width: 0; }
.trf-card-title {
    font-size: 14px; font-weight: 700; margin-bottom: 4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.trf-card-meta {
    font-size: 11px; color: var(--text2); margin-bottom: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.trf-badge-free {
    position: absolute; top: 10px; right: 10px;
    background: #4caf50; color: #fff; font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 8px;
}
.trf-skeleton-card {
    flex-shrink: 0; width: 220px; height: 120px;
    background: var(--border); border-radius: 14px;
    animation: hf-pulse 1.2s infinite;
}

/* ===== 관광/행사 피드 ===== */
.tour-scroll {
    display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 8px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.tour-scroll::-webkit-scrollbar { display: none; }
.tour-card {
    flex-shrink: 0; width: 130px; scroll-snap-align: start;
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; cursor: pointer; transition: transform 0.15s;
}
.tour-card:active { transform: scale(0.97); }
.tour-poster-wrap {
    position: relative; width: 100%; height: 140px; background: var(--input-bg);
    display: flex; align-items: center; justify-content: center;
}
.tour-poster { width: 100%; height: 100%; object-fit: cover; }
.tour-poster-fallback {
    font-size: 36px; display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; color: var(--text2);
}
.tour-info { padding: 8px; }
.tour-name {
    font-size: 12px; font-weight: 700; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    margin-bottom: 2px;
}
.tour-meta { font-size: 10px; color: var(--text2); margin-bottom: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-skeleton-card {
    flex-shrink: 0; width: 130px; height: 220px;
    background: var(--border); border-radius: 12px;
    animation: hf-pulse 1.2s infinite;
}

/* ===== 열차 시간표 피드 ===== */
.tf-tabs {
    display: flex; gap: 8px; margin-bottom: 8px; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tf-tabs::-webkit-scrollbar { display: none; }
.tf-tab {
    flex-shrink: 0; padding: 6px 14px; border-radius: 20px;
    border: 1px solid var(--border); background: var(--card);
    color: var(--text2); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
}
.tf-tab-active {
    background: var(--accent, #667eea); color: #fff;
    border-color: var(--accent, #667eea);
}
/* 지하철 시간표 */
.tp-subway-timetable { max-height: 400px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; }
.tp-sw-hour-row { display: flex; border-bottom: 1px solid var(--border); }
.tp-sw-hour-row:last-child { border-bottom: none; }
.tp-sw-hour { min-width: 40px; padding: 8px; text-align: center; font-weight: 700; font-size: 14px; color: var(--accent, #667eea); background: color-mix(in srgb, var(--accent, #667eea) 8%, transparent); border-right: 1px solid var(--border); }
.tp-sw-mins { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px; align-items: center; flex: 1; }
.tp-sw-min { padding: 3px 7px; font-size: 13px; border-radius: 6px; color: var(--text); cursor: default; }
.tp-sw-min-past { opacity: 0.35; }
.tp-sw-min-next { background: var(--accent, #667eea); color: #fff; font-weight: 700; border-radius: 8px; }
.tp-sw-past { opacity: 0.5; }
.tp-sw-station-item { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; cursor: pointer; background: var(--card); transition: background 0.15s; }
.tp-sw-station-item:active { background: var(--border); }

.tf-date-bar {
    display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tf-date-bar::-webkit-scrollbar { display: none; }
.tf-date-chip {
    flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
    padding: 6px 12px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--card); cursor: pointer; transition: all 0.15s; gap: 2px;
}
.tf-date-day { font-size: 11px; color: var(--text2); font-weight: 500; }
.tf-date-num { font-size: 13px; color: var(--text); font-weight: 700; }
.tf-date-weekend .tf-date-day { color: #e74c3c; }
.tf-date-active {
    background: var(--accent, #667eea); border-color: var(--accent, #667eea);
}
.tf-date-active .tf-date-day,
.tf-date-active .tf-date-num { color: #fff; }
.tf-scroll {
    display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.tf-scroll::-webkit-scrollbar { display: none; }
.tf-card {
    flex-shrink: 0; width: 150px; padding: 14px 12px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; scroll-snap-align: start;
    transition: transform 0.15s;
}
.tf-card-past { opacity: 0.45; }
.tf-card-next {
    border-color: var(--accent, #667eea);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #667eea) 25%, transparent);
}
.tf-train-type { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.tf-time { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.tf-route { font-size: 11px; color: var(--text2); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-price { font-size: 12px; color: var(--accent, #667eea); font-weight: 700; }
.tf-list {
    display: flex; flex-direction: column; gap: 1px;
    background: var(--border); border-radius: 12px; overflow: hidden;
    max-height: 320px; overflow-y: auto;
}
.tf-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; background: var(--card);
}
.tf-row-type { font-size: 13px; font-weight: 600; min-width: 90px; }
.tf-row-time { font-size: 14px; font-weight: 700; flex: 1; }
.tf-row-price { font-size: 12px; color: var(--accent, #667eea); font-weight: 600; }
.tf-row.tf-card-past { opacity: 0.4; }
.tf-skeleton-card {
    flex-shrink: 0; width: 150px; height: 110px;
    background: var(--border); border-radius: 14px;
    animation: hf-pulse 1.2s infinite;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: -apple-system, 'Noto Sans KR', sans-serif; overscroll-behavior: none; overflow: hidden; height: 100%; touch-action: pan-x pan-y; }

/* 맵 전용 fixed 요소: body[data-tab]이 map이 아니면 숨김 (header는 모든 탭에서 표시) */
body:not([data-tab="map"]) .filter-bar,
body:not([data-tab="map"]) .tag-filter-bar,
body:not([data-tab="map"]) .list-toggle,
body:not([data-tab="map"]) .floating-myloc { display: none !important; }

/* 공통 앱 바 — 모든 탭 상단에 "여기야" 브랜딩 */
.app-bar {
position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
height: 48px; display: flex; align-items: center; padding: 0 12px; gap: 10px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-bottom: 1px solid rgba(255,255,255,0.1);
}
.app-bar-logo {
font-size: 16px; font-weight: 900; color: #fff; letter-spacing: -0.5px; flex-shrink: 0;
}
.app-bar-center { flex: 1; min-width: 0; overflow: hidden; }
.app-bar-title { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-bar-sub { font-size: 11px; color: rgba(255,255,255,0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-bar-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* .header 완전 제거됨 — app-bar로 통합 */

.filter-bar {
position: fixed; left: 0; right: 0; z-index: 999;
background: var(--card); padding: 6px 12px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
display: none; flex-direction: column; gap: 4px;
opacity: 0; transition: none;
}
.filter-bar.visible { display: flex !important; opacity: 1; }
.filter-row-1 { display: flex; gap: 8px; align-items: center; }
.filter-row-2 { display: flex; gap: 6px; align-items: center; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.filter-row-2::-webkit-scrollbar { display: none; }
.filter-bar input[type="text"] {
flex: 1 1 0; min-width: 0; width: 100%; padding: 8px 12px;
border: 2px solid var(--border); border-radius: 20px;
font-size: 14px; outline: none;
}
.filter-bar input:focus { border-color: #667eea; }

.filter-btn {
padding: 6px 10px; border-radius: 16px;
border: 1.5px solid var(--border); background: var(--card);
font-size: 12px; cursor: pointer; white-space: nowrap;
transition: all 0.2s; min-height: 36px; flex-shrink: 0;
}
.filter-btn.active { background: #667eea; color: white; border-color: #667eea; }
.filter-btn:hover { border-color: #667eea; }
.filter-btn.filter-icon { padding: 8px; min-width: 36px; min-height: 36px; font-size: 16px; text-align: center; flex-shrink: 0; }

.coupon-badge {
display: inline-block; padding: 2px 8px; border-radius: 10px;
font-size: 11px; font-weight: bold;
}
.badge-local { background: #FFF3CD; color: #856404; }
.badge-permit { background: #D4EDDA; color: #155724; }
.badge-onnuri { background: #D4EDDA; color: #155724; }

#map { position: fixed; top: 128px; left: 0; right: 0; bottom: 56px; z-index: 998; } /* top overridden by JS, z-index above tab-content(997) */

.my-location {
position: fixed; bottom: 72px; right: 16px; z-index: 999;
width: 48px; height: 48px; border-radius: 50%;
background: var(--card); border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
cursor: pointer; font-size: 20px;
display: flex; align-items: center; justify-content: center;
}
.my-location:hover { background: var(--input-bg); }

.info-panel {
position: fixed; bottom: 0; left: 0; right: 0; z-index: 1001;
background: var(--card); border-radius: 16px 16px 0 0;
box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
transform: translateY(100%);
transition: transform 0.35s cubic-bezier(.4,0,.2,1);
height: 55vh; max-height: 90vh;
display: flex; flex-direction: column;
will-change: transform;
}
.info-panel.show { transform: translateY(0); }
.info-panel.fullscreen { height: 92vh; border-radius: 0; }
.info-panel .panel-drag-handle {
width: 36px; height: 4px; background: #ddd; border-radius: 2px;
margin: 10px auto 0; flex-shrink: 0;
}
.info-panel .panel-header {
display: flex; align-items: center; justify-content: space-between;
padding: 8px 16px 0; flex-shrink: 0; gap: 4px;
}
.info-panel .panel-header button {
background: none; border: none; font-size: 15px; cursor: pointer;
color: var(--text2); padding: 8px; min-width: 44px; min-height: 44px;
display: flex; align-items: center; justify-content: center;
white-space: nowrap; flex-shrink: 0;
}
.info-panel .panel-body {
flex: 1; overflow-y: auto; padding: 0 16px 80px;
-webkit-overflow-scrolling: touch;
}
.info-panel .name { font-size: 20px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.info-panel .addr {
font-size: 14px; color: #667eea; margin-bottom: 8px; cursor: pointer;
display: flex; align-items: center; gap: 4px;
}
.info-panel .addr:active { opacity: 0.6; }
.info-panel .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.info-panel .tag {
padding: 4px 10px; border-radius: 12px;
font-size: 12px; background: var(--input-bg); color: var(--text2);
}
.info-panel .distance { font-size: 13px; color: #667eea; font-weight: 600; margin-bottom: 16px; }

.detail-actions {
display: flex; gap: 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0;
margin: 12px -16px; padding: 0;
}
.detail-action-btn {
flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
padding: 14px 8px; background: none; border: none; border-right: 1px solid #f0f0f0;
cursor: pointer; font-size: 12px; color: var(--text); font-weight: 500;
min-height: 44px; transition: background 0.15s;
}
.detail-action-btn:last-child { border-right: none; }
.detail-action-btn:active { background: var(--input-bg); }
.detail-action-btn .action-icon { font-size: 20px; }
.detail-action-btn.disabled { opacity: 0.35; pointer-events: none; }
.detail-action-btn.fav-active { color: #f59e0b; }

/* ========== 인사이트 ========== */
.insight-container{padding:0 0 16px}
.insight-section-title{font-size:14px;font-weight:700;margin:16px 0 10px;color:var(--text)}
.insight-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.insight-card{background:var(--card-bg);border-radius:14px;padding:16px 14px;text-align:center;transition:transform .2s}
.insight-card:active{transform:scale(0.97)}
.insight-emoji{font-size:28px;margin-bottom:6px}
.insight-value{font-size:28px;font-weight:800;color:var(--text);line-height:1.2}
.insight-label{font-size:12px;color:var(--text2);margin-top:4px}
.insight-top5{background:var(--card);border-radius:14px;padding:14px 16px;margin-top:4px;box-shadow:0 1px 4px rgba(0,0,0,0.06)}
.insight-top5-item{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--border)}
.insight-top5-item:last-child{border-bottom:none}
.insight-rank{width:22px;height:22px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.insight-store-name{flex:1;font-size:13px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.insight-view-count{font-size:12px;color:var(--text2);flex-shrink:0}
.insight-loading{text-align:center;padding:40px 0}
.insight-loading-spinner{width:28px;height:28px;border:3px solid var(--border);border-top-color:var(--primary,#667eea);border-radius:50%;animation:tpSpin .6s linear infinite;margin:0 auto}

/* ========== 날씨 위젯 (ww-) ========== */
.ww-card{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border-radius:16px;padding:16px;color:#fff;margin-bottom:12px}
.ww-main{display:flex;align-items:center;gap:12px}
.ww-icon{font-size:48px;line-height:1}
.ww-info{flex:1;min-width:0}
.ww-temp{font-size:36px;font-weight:700;line-height:1.1}
.ww-desc{font-size:14px;opacity:0.9;margin-top:2px}
.ww-feels{font-size:12px;opacity:0.75;margin-top:4px}
.ww-aqi{margin-top:10px;display:flex;align-items:center;gap:8px}
.ww-aqi-badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:700}
.ww-aqi-good{background:#27ae60;color:#fff}
.ww-aqi-moderate{background:#f39c12;color:#fff}
.ww-aqi-bad{background:#e74c3c;color:#fff}
.ww-aqi-terrible{background:#8e44ad;color:#fff}
.ww-aqi-detail{font-size:12px;opacity:0.8}
.ww-hourly-scroll{display:flex;gap:6px;overflow-x:auto;margin-top:12px;padding-bottom:4px;-webkit-overflow-scrolling:touch}
.ww-hourly-scroll::-webkit-scrollbar{display:none}
.ww-hourly-item{flex:0 0 auto;text-align:center;background:rgba(255,255,255,0.15);border-radius:12px;padding:8px 10px;min-width:56px}
.ww-hourly-time{font-size:11px;opacity:0.8;white-space:nowrap}
.ww-hourly-icon{font-size:20px;margin:4px 0}
.ww-hourly-temp{font-size:13px;font-weight:600}
/* 스켈레톤 */
.ww-skeleton{min-height:120px;animation:ww-pulse 1.5s ease-in-out infinite}
@keyframes ww-pulse{0%,100%{opacity:1}50%{opacity:0.6}}
.ww-sk-row{display:flex;align-items:center;gap:12px}
.ww-sk-circle{width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,0.2)}
.ww-sk-lines{flex:1;display:flex;flex-direction:column;gap:8px}
.ww-sk-line{height:14px;border-radius:7px;background:rgba(255,255,255,0.2)}
.ww-sk-w60{width:60%}.ww-sk-w40{width:40%}
.ww-sk-bar{height:28px;border-radius:14px;background:rgba(255,255,255,0.15);margin:12px 0}
.ww-sk-box{flex:1;height:60px;border-radius:12px;background:rgba(255,255,255,0.12)}
/* 다크모드 */
/* 트렌딩 스켈레톤 로딩 */
.trend-skeleton div { animation: shimmer 1.2s ease-in-out infinite alternate; }
@keyframes shimmer { 0% { opacity: 0.4; } 100% { opacity: 0.8; } }

/* ========== 홈 지역 인라인 검색 ========== */
.region-inline-search{position:relative}
.region-inline-list{position:absolute;top:100%;left:0;right:0;max-height:200px;overflow-y:auto;background:var(--card,#fff);border:1px solid var(--border,#ddd);border-radius:0 0 10px 10px;z-index:10;box-shadow:0 4px 12px rgba(0,0,0,.1)}
.region-inline-item{padding:10px 14px;font-size:13px;cursor:pointer;border-bottom:1px solid var(--border,#eee);color:var(--text,#333)}
.region-inline-item:hover,.region-inline-item:active{background:var(--bg,#f5f5f5)}
