/* ============================================
   호호요가 구인 공고 지도 - 스타일시트 (라이트 테마)
   ============================================ */

:root {
    --primary-color: #e8a54b;
    --primary-light: #f5c97e;
    --primary-dark: #c48a2f;
    --accent-color: #e8a54b;
    --success-color: #4ecdc4;
    --error-color: #ff6b6b;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --text-dark: #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --sidebar-width: 320px;
    --sidebar-collapsed-width: 60px;
    --detail-panel-width: 380px;
    /* 추가된 변수 */
    --ios-blur: blur(20px);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-dark: rgba(26, 26, 46, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        "Pretendard",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    background: #1a1a2e;
    color: var(--text-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    min-height: 100dvh;
}

/* ios-blur utility */
.ios-blur {
    backdrop-filter: var(--ios-blur);
    -webkit-backdrop-filter: var(--ios-blur);
    background-color: var(--glass-bg);
}

.hidden {
    display: none !important;
}

#app {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    aspect-ratio: 9 / 19.5;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    width: auto;
    gap: 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

@media (max-width: 767px) {
    body {
        background: var(--bg-light);
        display: block;
        overflow: hidden;
        height: 100dvh;
        min-height: 100dvh;
    }

    #app {
        width: 100%;
        height: 100dvh;
        max-height: none;
        aspect-ratio: auto;
        border-radius: 0;
        box-shadow: none;
    }
}

/* 사이드바 컨테이너 (모바일 오버레이) */
.sidebar-container {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 200;
    pointer-events: none;
    background: transparent;
    overflow: visible;
}

/* Header - 모바일 상단 바 */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    border-bottom: none;
}

.flex-items-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.sidebar-header .logo {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.header-info {
    display: none;
}

.header-info span {
    padding: 6px 12px;
    background: var(--bg-white);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

/* Filter Panel (모바일 오버레이) */
.filter-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent;
    overflow: visible;
    transform: none;
    min-height: 0;
    min-width: 0;
}

.filter-content {
    background: var(--bg-white);
    position: absolute;
    top: 100px;
    left: 12px;
    right: 12px;
    bottom: calc(70px + env(safe-area-inset-bottom));
    padding: 20px;
    overflow-y: auto;
    display: none;
    pointer-events: auto;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 450;
}

.filter-content.show {
    display: block;
}

/* Detail Panel (바텀 시트) */
.detail-panel {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    min-width: 100%;
    height: calc(100% - 70px - 160px);
    z-index: 250;
    transform: translateY(110%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-left: none;
    opacity: 1;
    pointer-events: auto;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detail-panel.active {
    transform: translateY(0);
    width: 100%;
    min-width: 100%;
}

.detail-panel.hidden {
    display: flex !important;
    transform: translateY(110%);
    opacity: 1;
    width: 100%;
    min-width: 100%;
    pointer-events: none;
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.detail-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.detail-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-light);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.detail-close:hover {
    background: var(--error-color);
    color: white;
}

.detail-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-secondary);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.day-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.day-filters .filter-btn {
    width: 100%;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    /* 원형에서 사각형으로 변경 */
    font-size: 0.9rem;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 165, 75, 0.1);
}

.filter-select option {
    background: var(--bg-white);
    color: var(--text-dark);
}

.reset-btn {
    width: 100%;
    padding: 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.reset-btn:hover {
    background: var(--error-color);
    border-color: var(--error-color);
    color: white;
}

/* Map Container */
.map-container {
    position: relative;
    background: var(--bg-light);
    grid-row: 1;
    grid-column: 1;
    border-radius: 0;
}

/* ============================================
   아코디언 & 카드 스타일
   ============================================ */

/* 아코디언 아이템 */
.accordion-item {
    background: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.accordion-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(232, 165, 75, 0.1);
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    background: var(--bg-white);
    transition: background 0.2s;
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-toggle {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-light);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.accordion-item.open .accordion-toggle {
    transform: rotate(90deg);
    background: var(--primary-color);
    color: white;
}

.accordion-title {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accordion-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 10px;
    flex-shrink: 0;
}

.accordion-status.active {
    background: rgba(78, 205, 196, 0.15);
    color: #0d9488;
}

.accordion-status.closed {
    background: rgba(255, 107, 107, 0.15);
    color: #dc2626;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-body {
    max-height: 600px;
}

.accordion-content {
    padding: 0 16px 16px 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
    padding-top: 16px;
}

/* 단일 아이템 카드 (포인트 1개일 때) */
.job-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.job-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.job-card-company {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    flex: 1;
    /* 회사명이 공간 차지하도록 */
    margin-right: 12px;
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ccc;
    /* 기본 회색 */
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    transform: scale(1.1);
    color: #ff6b6b;
    /* 호버 시 약간 붉게 */
}

.favorite-btn.active {
    color: #ff4757;
    /* 활성화 시 빨간색 */
}

.job-card-company {
    /* margin-bottom 제거 (job-card-top에서 처리) */
    margin-bottom: 0;
}

.job-card-title {
    font-size: 0.8rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.job-tag {
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.job-tag.active {
    background: rgba(78, 205, 196, 0.15);
    color: #0d9488;
}

.job-tag.closed {
    background: rgba(255, 107, 107, 0.15);
    color: #dc2626;
}

.job-details {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.job-row {
    display: flex;
    align-items: flex-start;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.job-row:last-child {
    margin-bottom: 0;
}

.job-label {
    flex-shrink: 0;
    width: 60px;
    font-weight: 600;
    color: var(--text-dark);
}

.job-row a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.job-row a:hover {
    text-decoration: underline;
}

.job-link {
    display: block;
    padding: 14px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
}

.job-link:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 165, 75, 0.3);
}

/* 광고 영역 스타일 */
.ad-banner-link {
    display: block;
    margin-top: 24px;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ad-banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.ad-banner-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 추가 광고주 모집 영역 스타일 */
.ad-recruit-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.ad-recruit-box {
    flex: 1;
    height: 80px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ad-recruit-box:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 165, 75, 0.15);
}

/* job content (더보기 기능) */
.job-content-container {
    margin-bottom: 16px;
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
}

.job-content {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.6;
    white-space: pre-wrap;
    /* 줄바꿈 유지 */
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.job-content.collapsed {
    max-height: 2.8em;
    /* 약 3줄 높이 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
}

/* 흐림 효과 (선택사항, line-clamp 사용 시 겹칠 수 있어 제외하거나 조정) */
/*
.job-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2em;
    background: linear-gradient(transparent, #f9fafb);
}
*/

.read-more-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    padding-top: 8px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.read-more-btn:hover {
    text-decoration: underline;
}

/* 클러스터 리스트 아이템 */
.cluster-item {
    margin-bottom: 16px;
}

.cluster-item:last-child {
    margin-bottom: 0;
}

/* 클러스터 요약 헤더 */
.cluster-summary {
    background: linear-gradient(135deg,
            var(--primary-color),
            var(--primary-dark));
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    color: white;
}

.cluster-summary-title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cluster-summary-count {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.cluster-summary-location {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
    font-weight: 500;
}

/* 줌 버튼 (클러스터 상세보기) */
.zoom-in-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.zoom-in-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Legend */
.legend {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--bg-white);
    padding: 16px 20px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 500;
    border: 1px solid var(--border-color);
}

.legend-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.legend-item:last-child {
    margin-bottom: 0;
}

/* ============================================
   모바일 UI 전용 스타일 (모든 화면에서 적용)
   ============================================ */

.mobile-only-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-dark);
    margin-left: 8px;
}

.desktop-only {
    display: none;
}

.auth-btn .btn-text {
    display: none;
}

.auth-btn {
    padding: 8px;
}

.auth-container {
    display: flex;
    align-items: center;
}

/* 모바일 필터 바 (목록 상단) */
.mobile-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.mobile-filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-chip-remove {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 0 2px;
}

.filter-reset-sm {
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 12px;
    background: white;
    flex-shrink: 0;
}

/* ============================================
   로그인/회원가입/프로필 UI
   ============================================ */

.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: white;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-family:
        "Google Sans",
        Roboto,
        arial,
        sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-btn:hover {
    background-color: #f7f8f8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    border-color: #d2e3fc;
}

.auth-btn:active {
    background-color: #f1f3f4;
}

.google-icon {
    width: 18px;
    height: 18px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: var(--bg-light);
    color: var(--error-color);
}

/* 하단 네비게이션 */
.mobile-bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid var(--border-color);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(60px + env(safe-area-inset-bottom));
    z-index: 999;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: none;
    border: none;
    color: #94a3b8;
    transition: all 0.2s;
    padding-top: 8px;
}

.nav-item .material-icons-round {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary-color);
}


/* 지도 위 정보 카드 */
.map-info-card {
    position: absolute;
    top: 80px;
    /* 헤더 아래 */
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), 480px);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 10px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 10px;
    z-index: 400;
    border: 1px solid var(--border-color);
    align-items: center;
    /* Ensure vertical alignment */
}

/* Mobile buttons inside map info card */
.map-info-card .mobile-only-btn {
    border: none;
    background: transparent;
    width: auto;
    height: auto;
    padding: 4px;
    margin: 0;
    color: var(--text-secondary);
}

.map-info-card .mobile-only-btn:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.map-info-item {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.map-info-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.map-info-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

@media (max-width: 390px) {
    .map-info-card {
        padding: 8px 10px;
        gap: 6px;
    }

    .map-info-value {
        font-size: 0.95rem;
    }

    .map-info-label {
        font-size: 0.65rem;
    }
}

/* Auth View Container */
.auth-view-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px 20px;
}

.auth-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.auth-message {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.auth-login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.auth-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* My Info Card */
.my-info-card {
    width: 100%;
    background: white;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.my-info-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 4px solid var(--bg-light);
}

.my-info-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.my-info-email {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.my-info-logout-btn {
    width: 100%;
    padding: 14px;
    background: #fff0f0;
    color: #ff4757;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 즐겨찾기 목록 */
.fav-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fav-tabs {
    display: flex;
    padding: 4px;
    background: var(--bg-light);
    border-radius: 12px;
    gap: 4px;
}

.fav-tab {
    flex: 1;
    padding: 8px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s;
}

.fav-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-weight: 700;
}

.fav-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    position: relative;
}

.fav-card.closed {
    background: #fffbfb;
    border-color: #ffeaea;
}

.fav-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fav-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.fav-badge.active {
    background: rgba(78, 205, 196, 0.15);
    color: #0d9488;
}

.fav-badge.closed {
    background: #fee2e2;
    color: #ef4444;
}

.fav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.fav-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.fav-info-box {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.fav-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.fav-info-row:last-child {
    margin-bottom: 0;
}

.fav-label {
    color: var(--text-muted);
}

.fav-value {
    color: var(--text-dark);
    text-align: right;
}

.fav-value.bold {
    font-weight: 600;
    color: var(--primary-dark);
}

.fav-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.fav-action-btn.disabled {
    background: var(--bg-light);
    color: var(--text-muted);
    cursor: not-allowed;
}

.fav-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.fav-empty-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

/* 찜한 공고 탭 스타일 */
.fav-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #f1f3f4;
    /* 회색 배경 */
    border-radius: 12px;
}

.fav-tab {
    flex: 1;
    padding: 8px 0;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-align: center;
}

.fav-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    font-weight: 700;
}

.fav-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

/* ============================================
   지원 기능 스타일
   ============================================ */

/* 공고 카드 하단 액션 영역 */
.job-card-actions {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.job-card-actions .job-link {
    flex: 1;
}

/* 지원하기 / 지원완료 버튼 */
.apply-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 8px;
    border: 1.5px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.apply-btn.applied {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.apply-btn.applied:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.apply-btn .material-icons-round {
    font-size: 17px;
}

/* 지원일 선택 모달 */
.apply-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.apply-modal-content {
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    width: 100%;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.apply-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.apply-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.apply-modal-close {
    background: var(--bg-light);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
}

.apply-date-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.apply-date-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-light);
    font-family: inherit;
    margin-bottom: 20px;
    -webkit-appearance: none;
}

.apply-date-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.apply-modal-actions {
    display: flex;
    gap: 10px;
}

.apply-modal-cancel {
    flex: 1;
    padding: 14px;
    border: 1.5px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.apply-modal-confirm {
    flex: 2;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.apply-modal-confirm:hover {
    background: var(--primary-dark);
}

.apply-modal-confirm.danger {
    background: #ef4444;
}

.apply-modal-confirm.danger:hover {
    background: #dc2626;
}

/* 내 정보 - 컴팩트 프로필 */
.myinfo-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.my-info-card.compact {
    flex-direction: row;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.my-info-avatar-sm {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--bg-light);
    flex-shrink: 0;
    object-fit: cover;
}

.my-info-text {
    flex: 1;
    min-width: 0;
}

.my-info-name-sm {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.my-info-email-sm {
    font-size: 0.8rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-info-logout-btn-sm {
    background: #fff0f0;
    color: #ff4757;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.my-info-logout-btn-sm:hover {
    background: #ff4757;
    color: white;
}

/* 지원 현황 통계 카드 */
.app-stats-card {
    background: white;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--border-color);
}

.app-stats-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.app-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 10px;
    background: var(--bg-light);
}

.app-stat-item.pending  { background: #fffbeb; }
.app-stat-item.accepted { background: #f0fdf4; }
.app-stat-item.rejected { background: #fff1f2; }

.app-stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.app-stat-item.pending  .app-stat-num { color: #d97706; }
.app-stat-item.accepted .app-stat-num { color: #16a34a; }
.app-stat-item.rejected .app-stat-num { color: #dc2626; }

.app-stat-label {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* 지원 카드 */
.app-card {
    background: white;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--border-color);
}

.app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.app-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-pending  { background: #fffbeb; color: #d97706; }
.status-accepted { background: #f0fdf4; color: #16a34a; }
.status-rejected { background: #fff1f2; color: #dc2626; }

.app-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.app-remove-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

.app-remove-btn .material-icons-round { font-size: 18px; }

.app-date-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

/* 결과 입력 버튼 */
.app-result-btns {
    display: flex;
    gap: 8px;
}

.app-result-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.app-result-btn .material-icons-round { font-size: 16px; }

.app-result-btn.accepted {
    background: #f0fdf4;
    color: #16a34a;
    border: 1.5px solid #bbf7d0;
}

.app-result-btn.accepted:hover {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
}

.app-result-btn.rejected {
    background: #fff1f2;
    color: #dc2626;
    border: 1.5px solid #fecdd3;
}

.app-result-btn.rejected:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.app-result-change-btn {
    width: 100%;
    padding: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.app-result-change-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============================================
   업데이트 소식 버튼 & 모달
   ============================================ */

.header-right {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.update-news-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    transition: all 0.2s;
}

.update-news-btn:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.update-news-btn .material-icons-round {
    font-size: 22px;
}

.update-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 1.5px solid white;
    display: none;
}

/* 업데이트 모달 오버레이 */
.update-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.update-modal-overlay.hidden {
    display: none !important;
}

.update-modal-content {
    background: white;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    animation: slideUpModal 0.3s ease-out;
}

@keyframes slideUpModal {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.update-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.update-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.update-modal-title .material-icons-round {
    font-size: 22px;
    color: var(--primary-color);
}

.update-modal-close {
    background: var(--bg-light);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.update-modal-close:hover {
    background: var(--border-color);
}

.update-modal-body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 최신 업데이트 카드 */
.update-latest {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid var(--primary-light);
    border-radius: 16px;
    padding: 18px;
    position: relative;
}

.update-version-badge {
    position: absolute;
    top: -8px;
    left: 16px;
    background: var(--primary-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.update-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    margin-top: 4px;
}

.update-item-version {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: rgba(232, 165, 75, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
}

.update-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.update-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.update-highlights {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.update-highlights li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.update-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
}

/* 구분선 */
.update-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
}

.update-divider::before,
.update-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.update-divider span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

/* 이전 업데이트 히스토리 */
.update-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.update-history-item {
    background: var(--bg-light);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.update-history-item .update-item-title {
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.update-history-item .update-highlights li {
    font-size: 0.82rem;
}

.update-history-item .update-highlights li::before {
    content: '·';
    font-size: 1.1rem;
}
