/* ============================================================
   일자리 맵 — map.css
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #app { height: 100%; overflow: hidden; }
body { font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
       font-size: 14px; color: #222; background: #f5f5f5; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select { font: inherit; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ── CSS Variables ── */
:root {
    --primary:    #1E5FBF;
    --primary-dk: #154da3;
    --primary-lt: #e8f0ff;
    --accent:     #FF6B35;
    --success:    #2E9E62;
    --gray-100:   #f8f9fa;
    --gray-200:   #eeeff1;
    --gray-300:   #dee0e3;
    --gray-400:   #b0b3b8;
    --gray-500:   #6b7280;
    --gray-700:   #374151;
    --gray-900:   #111827;
    --white:      #ffffff;
    --header-h:   56px;
    --panel-w:    340px;
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
    --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,.12);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.16);
    --z-panel:    100;
    --z-modal:    300;
    --z-toast:    400;
    --z-btn-float:200;
    --trans:      all .2s ease;
}

/* ── Layout ── */
#app { display: flex; flex-direction: column; }

.main-layout {
    position: relative;
    flex: 1;
    display: flex;
    overflow: hidden;
}

.mobile-view-switch {
    display: none;
}

/* ── Search Header ── */
.search-header {
    height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    z-index: var(--z-panel);
    flex-shrink: 0;
}

.header-logo { flex-shrink: 0; }
.logo-text { font-size: 16px; color: var(--gray-700); letter-spacing: -.5px; }
.logo-text strong { color: var(--primary); }

.search-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border: 1.5px solid var(--gray-200);
    border-radius: 24px;
    overflow: hidden;
    transition: border-color .15s;
}
.search-wrap:focus-within { border-color: var(--primary); }

.search-box { flex: 1; display: flex; align-items: center; padding: 0 12px; }
.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--gray-900);
    min-height: 0;
    height: 100%;
}
.search-box input::placeholder { color: var(--gray-400); }

.btn-search {
    padding: 0 14px;
    height: var(--header-h);
    color: var(--primary);
    display: flex; align-items: center;
}
.btn-search:hover { color: var(--primary-dk); }

.header-actions { display: flex; gap: 8px; }

.btn-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--gray-300);
    font-size: 13px;
    color: var(--gray-700);
    background: var(--white);
    position: relative;
    white-space: nowrap;
    transition: var(--trans);
}
.btn-icon:hover { border-color: var(--primary); color: var(--primary); }
.btn-icon.active { border-color: var(--primary); color: var(--primary); background: var(--primary-lt); }

.filter-badge {
    position: absolute;
    top: -4px; right: -4px;
    width: 16px; height: 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    display: flex; align-items: center; justify-content: center;
}

/* ── Job Panel (Left / Bottom) ── */
.job-panel {
    width: var(--panel-w);
    flex-shrink: 0;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: var(--z-panel);
}

.panel-header {
    min-height: 48px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}
.job-panel.is-updating .panel-header::after {
    content: none;
}
.count-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    color: var(--gray-500);
}
.count-text strong { color: var(--primary); font-weight: 700; }

.sort-dropdown {
    flex: 0 0 88px;
    width: 88px;
    min-width: 88px;
    max-width: 88px;
}

.sort-dropdown-btn {
    width: 100%;
    height: 30px;
    min-height: 30px;
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    padding: 0 9px 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    gap: 4px;
}
.sort-dropdown-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    color: var(--gray-500);
    stroke-width: 2.3;
}
.sort-dropdown-btn:hover,
.sort-dropdown-btn:focus { border-color: var(--primary); color: var(--primary); }

.sort-dropdown-menu {
    z-index: calc(var(--z-panel) + 5);
    width: 112px;
    padding: 5px;
    border: 1px solid var(--gray-200);
    gap: 2px;
}

.sort-option {
    width: 100%;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 9px;
    color: var(--gray-700);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.sort-option.is-active {
    color: var(--primary);
    background: var(--primary-lt);
}

/* ── Recent Searches ── */
.recent-searches {
    padding: 10px 16px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-100);
}
.recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--gray-500);
}
.btn-text-sm { font-size: 12px; color: var(--gray-400); }
.btn-text-sm:hover { color: var(--accent); }

.recent-list { display: flex; flex-wrap: wrap; gap: 6px; }
.recent-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 14px;
    font-size: 12px;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--trans);
}
.recent-item:hover { border-color: var(--primary); color: var(--primary); }
.recent-del { font-size: 14px; color: var(--gray-400); line-height: 1; }

/* ── Job List ── */
.job-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.job-list::-webkit-scrollbar { width: 4px; }
.job-list::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }

.job-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background .15s;
}
.job-item:hover, .job-item.active { background: var(--primary-lt); }
.job-item:last-child { border-bottom: none; }

.job-company {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.badge-public {
    font-size: 11px;
    padding: 1px 5px;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 3px;
}
.badge-private {
    font-size: 11px;
    padding: 1px 5px;
    background: #f3e5f5;
    color: #6a1b9a;
    border-radius: 3px;
}

.job-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.job-tag {
    font-size: 11px;
    padding: 2px 7px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    color: var(--gray-500);
}
.job-tag.close-soon { color: var(--accent); border-color: #ffd6c5; background: #fff3ee; }

/* ── Skeleton Loading ── */
.skeleton-item { padding: 14px 16px; border-bottom: 1px solid var(--gray-200); }
.skeleton {
    height: 72px;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── No Result ── */
.no-result { flex: 1; display: flex; flex-direction: column; align-items: center;
             justify-content: center; color: var(--gray-400); gap: 4px; }
.no-result-sub { font-size: 12px; }

/* ── Map Container ── */
#mapContainer {
    flex: 1;
    min-width: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.map-unavailable {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(30,95,191,.06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(30,95,191,.06) 1px, transparent 1px),
        #eef3f8;
    background-size: 32px 32px;
}

.local-map-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.local-map-grid {
    position: absolute;
    inset: -40px;
    background:
        radial-gradient(circle at 22% 24%, rgba(46,158,98,.16) 0 10%, transparent 10.5%),
        radial-gradient(circle at 70% 32%, rgba(30,95,191,.13) 0 12%, transparent 12.5%),
        radial-gradient(circle at 50% 76%, rgba(255,107,53,.13) 0 13%, transparent 13.5%),
        linear-gradient(28deg, transparent 0 46%, rgba(30,95,191,.13) 46.4% 47.2%, transparent 47.6%),
        linear-gradient(135deg, transparent 0 54%, rgba(46,158,98,.12) 54.4% 55.1%, transparent 55.5%);
}

.local-map-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(30,95,191,.06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(30,95,191,.06) 1px, transparent 1px);
    background-size: 32px 32px;
}

.local-markers {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.local-job-marker {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 160px;
    padding: 4px 8px 4px 5px;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: var(--gray-900);
    box-shadow: var(--shadow-sm);
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 3;
}

.local-job-marker:hover,
.local-job-marker.selected {
    z-index: 4;
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.local-marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.78);
    flex: 0 0 auto;
}

.local-job-marker.is-private .local-marker-dot { background: var(--accent); }
.local-marker-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-fallback {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 360px;
    margin: 0 20px;
    padding: 18px 20px;
    border: 1px solid rgba(30,95,191,.16);
    border-radius: 10px;
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow-sm);
    text-align: center;
    z-index: 5;
}

.local-map-notice {
    position: absolute;
    right: 18px;
    top: 18px;
    max-width: 300px;
    padding: 12px 14px;
    border: 1px solid rgba(30,95,191,.14);
    border-radius: 10px;
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

.map-fallback-title {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
}

.map-fallback-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray-500);
}

/* ── Floating Buttons ── */
.btn-my-location {
    position: absolute;
    bottom: 20px; right: 56px;
    width: 44px; height: 44px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    z-index: var(--z-btn-float);
    transition: var(--trans);
}
.btn-my-location:hover { background: var(--primary-lt); }

.btn-research {
    position: absolute;
    top: 14px; left: 50%; transform: translateX(-50%);
    padding: 9px 18px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    z-index: var(--z-btn-float);
    transition: var(--trans);
}
.btn-research:hover { background: var(--primary); color: #fff; }

/* ── Job Detail Panel ── */
.job-detail {
    position: absolute;
    top: 0; left: var(--panel-w);
    width: 360px;
    height: 100%;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    z-index: calc(var(--z-panel) + 1);
    box-shadow: var(--shadow-md);
    animation: slideIn .2s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(-16px); } }

.detail-header {
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--gray-200);
    gap: 10px;
    flex-shrink: 0;
    font-weight: 600;
    color: var(--gray-700);
}
.btn-close {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    color: var(--gray-500);
    transition: var(--trans);
}
.btn-close:hover { background: var(--gray-200); color: var(--gray-900); }

.detail-content { flex: 1; overflow-y: auto; padding: 20px 16px; }
.detail-content::-webkit-scrollbar { width: 4px; }
.detail-content::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }

.detail-company { font-size: 13px; color: var(--gray-500); margin-bottom: 4px; }
.detail-title {
    font-size: 18px; font-weight: 700; color: var(--gray-900);
    margin-bottom: 16px; line-height: 1.4;
}
.detail-divider { height: 1px; background: var(--gray-200); margin: 16px 0; }
.detail-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.detail-info-item { display: flex; flex-direction: column; gap: 2px; }
.detail-info-label { font-size: 11px; color: var(--gray-400); }
.detail-info-value { font-size: 13px; color: var(--gray-700); font-weight: 500; }
.detail-addr { font-size: 13px; color: var(--gray-600); line-height: 1.5; margin-bottom: 20px; }
.detail-addr svg { vertical-align: middle; margin-right: 4px; color: var(--accent); }

.btn-go-detail {
    display: block;
    width: 100%;
    padding: 13px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background .15s;
    margin-top: 8px;
}
.btn-go-detail:hover { background: var(--primary-dk); }

/* ── Modal ── */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: flex;
         align-items: flex-end; justify-content: center; visibility: visible !important; opacity: 1;
         pointer-events: auto; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); pointer-events: auto; }
.modal-sheet {
    position: relative;
    z-index: 1;
    width: 100%; max-width: 480px;
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    animation: slideUp .25s ease;
    pointer-events: auto;
}
@keyframes slideUp { from { transform: translateY(100%); } }

.modal-center { /* 가운데 모달 (위치 안내) */
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    max-width: 360px;
    margin: auto;
}
.modal-icon { font-size: 40px; margin-bottom: 16px; }
.modal-center h2 { font-size: 18px; color: var(--gray-900); margin-bottom: 10px; }
.modal-desc { font-size: 14px; color: var(--gray-500); line-height: 1.6; margin-bottom: 24px; }

.modal-handle {
    width: 36px; height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin: 12px auto 0;
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}
.modal-header h2 { font-size: 16px; color: var(--gray-900); }
.modal-body { padding: 16px 20px; }
.modal-footer {
    display: flex; gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
}
.modal-center .modal-footer { border-top: none; padding: 0; }

#filterModal {
    inset: var(--header-h) auto 0 0;
    width: min(560px, calc(100vw - 32px));
    height: calc(100vh - var(--header-h));
    align-items: stretch;
    justify-content: flex-start;
    z-index: var(--z-modal);
}

#filterModal .modal-overlay {
    display: none;
}

#filterModal .modal-sheet {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: 10px 0 28px rgba(15, 35, 70, .12);
    animation: filterPanelIn .18s ease;
}

@keyframes filterPanelIn {
    from { transform: translateX(-100%); }
}

/* ── Filter Chips ── */
.filter-group { margin-bottom: 20px; }
.filter-label { display: block; font-size: 13px; font-weight: 600;
                color: var(--gray-700); margin-bottom: 8px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 7px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: 20px;
    font-size: 13px;
    color: var(--gray-600);
    background: var(--white);
    transition: var(--trans);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { border-color: var(--primary); color: var(--primary);
               background: var(--primary-lt); font-weight: 600; }

/* ── Buttons ── */
.btn-primary {
    flex: 1;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 14px; font-weight: 600;
    transition: background .15s;
}
.btn-primary:hover { background: var(--primary-dk); }
.btn-secondary {
    flex: 0 0 auto;
    padding: 12px 20px;
    background: var(--white);
    color: var(--gray-700);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 14px; font-weight: 500;
}
.btn-secondary:hover { background: var(--gray-100); }

/* ── Loading ── */
.loading-overlay {
    position: fixed; inset: 0;
    background: rgba(255,255,255,.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}
.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 80px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,.75);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    z-index: var(--z-toast);
    white-space: nowrap;
    animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ── Map Top Bar ── */
.map-top-bar {
    position: absolute;
    top: 12px; right: 12px; left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    z-index: var(--z-btn-float);
    pointer-events: none;
    max-width: calc(100% - 24px);
}
.map-location-label {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    box-shadow: var(--shadow-sm);
    pointer-events: auto;
    white-space: nowrap;
}
.map-top-actions {
    display: flex;
    gap: 6px;
    pointer-events: auto;
}
.btn-map-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    white-space: nowrap;
    transition: var(--trans);
}
.btn-map-top:hover { background: var(--gray-100); }
.btn-map-top-accent { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-map-top-accent:hover { background: var(--primary-dk); }
.map-top-actions .btn-primary { flex: 0 0 auto; }
.mobile-label { display: none; }

/* ── Map Zoom Controls ── */
.map-zoom-controls {
    position: absolute;
    right: 12px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    z-index: var(--z-btn-float);
}
.btn-zoom {
    width: 36px; height: 36px;
    font-size: 20px;
    font-weight: 300;
    color: var(--gray-700);
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
    line-height: 1;
}
.btn-zoom:hover { background: var(--gray-100); }
.zoom-divider { height: 1px; background: var(--gray-200); }

/* ── Filter Modal: 검색 조건 ── */
.modal-sheet-lg {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.modal-body-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}
.modal-body-scroll::-webkit-scrollbar { width: 4px; }
.modal-body-scroll::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }

.filter-row {
    display: flex;
    align-items: flex-start;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-200);
    gap: 16px;
}
.filter-row-last { border-bottom: none; }
.filter-label-col {
    flex-shrink: 0;
    width: 90px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    padding-top: 3px;
}
.filter-val-col {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
}
.filter-col2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.filter-col3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }

.cb-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
    min-width: 0;
    line-height: 1.35;
}
.cb-label input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }

.btn-filter-select {
    padding: 6px 14px;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--primary);
    background: var(--white);
    cursor: pointer;
    transition: var(--trans);
}
.btn-filter-select:hover { background: var(--primary-lt); }
.filter-selected-text { font-size: 12px; color: var(--gray-500); }

.career-range {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--gray-600);
}
.input-num {
    width: 52px;
    padding: 5px 8px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 13px;
    text-align: center;
    outline: none;
}
.input-num:focus { border-color: var(--primary); }

.filter-salary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.sel-sal {
    padding: 6px 10px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    cursor: pointer;
}
.input-sal {
    width: 70px;
    padding: 5px 8px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 13px;
    text-align: center;
    outline: none;
}
.input-sal:focus { border-color: var(--primary); }

.filter-footer {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}
.filter-summary {
    font-size: 12px;
    color: var(--primary);
    padding: 4px 0;
}
.filter-footer-btns {
    display: flex;
    gap: 10px;
}
.filter-footer-btns .btn-secondary {
    display: flex;
    align-items: center;
    gap: 5px;
}

#filterModal .modal-sheet-lg {
    border-radius: 0;
    max-height: none;
}

#filterModal .modal-header {
    min-height: 56px;
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
}

#filterModal .modal-body-scroll {
    padding: 12px 14px 18px;
    background: #f6f8fb;
}

#filterModal .filter-row {
    display: grid;
    gap: 12px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(15, 35, 70, .05);
}

#filterModal .filter-row-last {
    margin-bottom: 0;
}

#filterModal .filter-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#filterModal .filter-section.hidden {
    display: none;
}

#filterModal .filter-row:first-child {
    grid-column: 1 / -1;
}

#filterModal .filter-label-col {
    width: auto;
    padding-top: 0;
    color: var(--text-strong);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0;
}

#filterModal .filter-val-col,
#filterModal .filter-salary {
    gap: 8px;
}

#filterModal .filter-col2,
#filterModal .filter-col3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#filterModal .filter-val-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    align-items: stretch;
}

#filterModal .filter-edu-row .filter-val-col {
    grid-template-columns: 1fr;
}

#filterModal #filterSectionPub .filter-edu-row {
    grid-column: 1 / -1;
}

#filterModal #filterSectionPub .filter-edu-row .filter-val-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#filterModal .cb-label {
    position: relative;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8px 10px;
    border: 1px solid #dbe4ef;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--gray-700);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
    hyphens: auto;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}

#filterModal .filter-row:first-child .cb-label {
    min-height: 42px;
    padding: 8px 9px;
}

#filterModal .cb-label:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f8fbff;
}

#filterModal .cb-label:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-lt);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(30, 95, 191, .18);
}

#filterModal .cb-label input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

#filterModal .cb-label:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

#filterModal .radio-label {
    justify-content: flex-start;
    min-height: 28px;
    padding: 4px 4px 4px 24px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    text-align: left;
    font-weight: 600;
}

#filterModal .radio-label::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    width: 14px;
    height: 14px;
    border: 1.5px solid #aab7c8;
    border-radius: 999px;
    transform: translateY(-50%);
    background: #fff;
}

#filterModal .radio-label:hover {
    border-color: transparent;
    background: transparent;
    color: var(--primary);
}

#filterModal .radio-label:has(input:checked) {
    border-color: transparent;
    background: transparent;
    color: var(--primary);
    box-shadow: none;
}

#filterModal .radio-label:has(input:checked)::before {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 3px #fff;
    background: var(--primary);
}

#filterModal .filter-footer {
    flex: 0 0 auto;
    background: #fff;
    box-shadow: 0 -10px 18px rgba(15, 35, 70, .08);
}

/* ── 위치 재선택 모달 ── */
.loc-tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    flex-shrink: 0;
}
.loc-tab {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--trans);
}
.loc-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }

.loc-tab-content { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

/* 지역별 */
.region-grid {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: 360px;
}
.region-col { display: flex; flex-direction: column; overflow-y: auto; }
.region-col::-webkit-scrollbar { width: 4px; }
.region-col::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }
.region-sido { width: 130px; border-right: 1px solid var(--gray-200); background: var(--gray-100); flex-shrink: 0; }
.region-sigungu { flex: 1; }

.region-list { padding: 8px 0; }
.region-item {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
    transition: background .12s;
}
.region-item:hover { background: var(--gray-200); }
.region-item.active {
    color: var(--primary);
    font-weight: 700;
    background: var(--white);
    position: relative;
}
.region-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--primary);
}
.region-item.selected-gu {
    color: var(--primary);
    background: var(--primary-lt);
    font-weight: 600;
}

/* 역세권별 */
.subway-selects {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}
.sel-subway {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    cursor: pointer;
}
.sel-subway:focus { border-color: var(--primary); }

.station-grid {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    align-content: start;
    height: 300px;
}
.station-grid::-webkit-scrollbar { width: 4px; }
.station-grid::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }
.station-item {
    padding: 8px 6px;
    font-size: 12px;
    text-align: center;
    color: var(--gray-700);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--trans);
    border: 1px solid transparent;
}
.station-item:hover { background: var(--gray-100); border-color: var(--gray-300); }
.station-item.active { color: var(--primary); border-color: var(--primary); background: var(--primary-lt); font-weight: 600; }

/* ── Utility ── */
.hidden { display: none !important; }

/* ── Kakao 마커 오버라이드 ── */
.job-marker-wrap { cursor: pointer; }
.job-marker {
    position: relative;
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50% 50% 50% 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transform: rotate(-45deg);
    cursor: pointer;
    transition: var(--trans);
}
.job-marker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    transform: rotate(45deg);
}
.job-marker.is-public { background: var(--primary); }
.job-marker.is-private { background: var(--accent); }
.job-marker.selected {
    z-index: 2;
    box-shadow: var(--shadow-md);
}
.job-marker-count { display: inline-block; margin-left: 3px; }

/* ── Responsive: Mobile ── */
@media (max-width: 768px) {
    :root { --panel-w: 0px; }

    html, body, #app { width: 100%; max-width: 100%; }

    .search-header {
        gap: 8px;
        padding: 0 16px;
    }

    .search-wrap { min-width: 0; }
    .header-actions { flex-shrink: 0; }

    .map-top-bar {
        left: 12px;
        right: 12px;
        justify-content: flex-end;
        gap: 6px;
        overflow: hidden;
    }

    .map-location-label {
        flex: 0 0 auto;
        padding: 7px 10px;
    }

    .map-top-actions {
        flex: 1;
        min-width: 0;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .map-top-actions::-webkit-scrollbar { display: none; }

    .btn-map-top {
        flex: 0 0 auto;
        min-height: 32px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .local-map-notice {
        left: 20px;
        right: 20px;
        top: auto;
        bottom: calc(45vh + 16px);
        max-width: none;
        text-align: center;
    }

    .local-job-marker {
        max-width: 120px;
        font-size: 10px;
    }

    .desktop-label { display: none; }
    .mobile-label { display: inline; }

    .job-panel {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        width: 100%;
        height: 45vh;
        border-right: none;
        border-top: 1px solid var(--gray-200);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        box-shadow: var(--shadow-lg);
        transition: height .3s ease;
        z-index: var(--z-panel);
    }
    .job-panel.expanded { height: 80vh; }
    .panel-header::before {
        content: '';
        display: block;
        position: absolute;
        top: 6px; left: 50%;
        transform: translateX(-50%);
        width: 36px; height: 4px;
        background: var(--gray-300);
        border-radius: 2px;
    }
    .panel-header { position: relative; }

    .job-detail {
        left: 0;
        width: 100%;
        height: 70vh;
        top: auto;
        bottom: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-right: none;
        border-top: 1px solid var(--gray-200);
    }

    .btn-my-location { bottom: calc(45vh + 16px); }
    .btn-research { top: 8px; }

    .header-logo { display: none; }
    .modal-sheet { max-width: 100%; }

    .modal-sheet-lg {
        width: 100%;
        max-height: calc(100vh - 24px);
    }

    .filter-row {
        display: block;
        padding: 16px 20px;
    }

    .filter-label-col {
        display: block;
        width: auto;
        margin-bottom: 10px;
        padding-top: 0;
        font-size: 13px;
    }

    .filter-val-col {
        width: 100%;
        min-width: 0;
        gap: 8px 10px;
    }

    .filter-col2,
    .filter-col3 {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .cb-label {
        white-space: normal;
        align-items: flex-start;
        word-break: keep-all;
    }

    .career-range {
        width: 100%;
        flex-wrap: wrap;
    }

    .filter-salary {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .filter-salary .sel-sal,
    .filter-salary .cb-label {
        grid-column: 1 / -1;
    }

    .input-sal,
    .input-num {
        width: 100%;
    }

    .station-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .region-sido { width: 112px; }
    .region-item { padding: 10px 14px; }
}

/* ============================================================
   시안 반영 리디자인 — daisyUI/Tailwind 기반 정적 UI 보정
   ============================================================ */
:root {
    --primary: #1565d8;
    --primary-dk: #0f4db3;
    --primary-lt: #edf4ff;
    --accent: #17a886;
    --mixed: #7a5ce5;
    --danger: #ef3340;
    --surface: #ffffff;
    --line: #dce5f2;
    --text-strong: #111827;
    --text-body: #243041;
    --text-muted: #64748b;
    --soft-shadow: 0 8px 24px rgba(15, 35, 70, .12);
    --card-shadow: 0 4px 14px rgba(15, 35, 70, .08);
    --header-h: 72px;
    --panel-w: 384px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

body {
    color: var(--text-body);
    background: #fff;
    letter-spacing: 0;
}

.search-header {
    height: var(--header-h);
    padding: 0 28px;
    gap: 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(15, 35, 70, .02);
}

.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 384px;
    min-width: 280px;
}

.logo-mark {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.logo-mark svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.4;
}

.logo-text {
    color: var(--text-strong);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0;
    word-break: keep-all;
}

.search-wrap {
    flex: 0 1 560px;
    height: 42px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.search-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 101, 216, .1);
}

.search-box { padding: 0 14px; }
.search-box input {
    font-size: 15px;
    color: var(--text-body);
}
.search-box input::placeholder { color: #8b9bb0; }

.btn-search {
    width: 48px;
    height: 40px;
    padding: 0;
    justify-content: center;
    color: var(--primary);
}

.main-layout { background: #fff; }

.job-panel {
    width: var(--panel-w);
    border-right: 1px solid var(--line);
    background: #fff;
}

.job-panel.panel-highlight {
    box-shadow: inset 0 0 0 2px rgba(21, 101, 216, .28);
}

.panel-search-section {
    padding: 20px 22px 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.panel-title {
    margin: 0 0 14px;
    color: var(--text-strong);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.panel-search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-search-wrap {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.panel-search-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 101, 216, .1);
}

.panel-search-input {
    flex: 1;
    height: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0 12px;
    font-size: 14px;
    color: var(--text-body);
}

.panel-search-input::placeholder { color: #8b9bb0; }

.panel-search-btn {
    flex: 0 0 42px;
    width: 42px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    color: var(--primary);
    border-radius: 0;
}

.panel-advanced-btn {
    flex: 0 0 104px;
    min-height: 42px;
    height: 42px;
    padding: 0 12px;
    gap: 6px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 6px 12px rgba(21, 101, 216, .18);
}

.panel-advanced-btn:hover,
.panel-advanced-btn:focus-visible {
    background: var(--primary-dk);
    color: #fff;
}

.panel-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.panel-filter-btn {
    min-height: 38px;
    padding: 0 12px;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--text-body);
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.panel-filter-btn:hover,
.panel-filter-btn:focus-visible {
    border-color: var(--primary);
    color: var(--primary);
    background: #f8fbff;
}

.panel-job-button {
    justify-content: center;
    background: var(--primary-lt);
    border-color: rgba(21, 101, 216, .32);
    color: var(--primary);
}

.panel-filter-select {
    width: 100%;
    min-height: 38px;
    height: 38px;
    padding: 0 28px 0 12px !important;
    border: 1px solid var(--line);
    border-radius: 7px;
    background-color: #fff;
    color: var(--text-body);
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
    outline: none;
}

.panel-filter-select:hover,
.panel-filter-select:focus {
    border-color: var(--primary);
}

.panel-filter-select.is-active {
    border-color: rgba(21, 101, 216, .42);
    background-color: var(--primary-lt);
    color: var(--primary);
}

.panel-filter-more {
    grid-column: 1 / -1;
    justify-content: center;
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 6px 12px rgba(21, 101, 216, .18);
}

.panel-filter-more:hover,
.panel-filter-more:focus-visible {
    color: #fff;
    border-color: var(--primary-dk);
    background: var(--primary-dk);
}

.panel-header {
    min-height: 50px;
    padding: 0 22px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.count-text {
    color: var(--text-body);
    font-size: 13px;
    font-weight: 600;
}

.count-text strong {
    color: var(--primary);
    font-weight: 800;
}

.sort-dropdown {
    flex: 0 0 92px;
    width: 92px;
    min-width: 92px;
}

.sort-dropdown-btn {
    height: 34px;
    min-height: 32px;
    padding: 0 10px 0 12px;
    border: 1px solid #d8e4f2;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(15, 35, 70, .06);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    background-color: #f8fbff;
}

.sort-dropdown-icon {
    color: var(--primary);
}

.sort-dropdown-btn:hover,
.sort-dropdown-btn:focus {
    border-color: var(--primary);
    background-color: #fff;
    color: var(--primary-dk);
}

.sort-dropdown-btn:hover .sort-dropdown-icon,
.sort-dropdown-btn:focus .sort-dropdown-icon {
    color: var(--primary-dk);
}

.sort-dropdown-menu {
    width: 124px;
    margin-top: 6px;
    padding: 5px;
    gap: 2px;
    border: 1px solid var(--line);
    box-shadow: var(--card-shadow);
}

.recent-searches {
    margin: 0;
    padding: 10px 22px;
    border-bottom: 1px solid var(--line);
    background: #f8fbff;
}

.job-list {
    padding: 12px 22px;
    background: #fff;
}

.job-item {
    position: relative;
    margin-bottom: 10px;
    padding: 13px 38px 13px 12px;
    border: 1px solid #e5edf7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 35, 70, .04);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.job-item:hover,
.job-item.active {
    background: #fff;
    border-color: rgba(21, 101, 216, .46);
    box-shadow: var(--card-shadow);
    transform: translateY(-1px);
}

.job-company {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.job-company-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-public,
.badge-private {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 6px;
    border-radius: 5px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.badge-public { background: var(--primary); }
.badge-private { background: var(--accent); }

.job-title {
    margin: 0 0 8px;
    color: var(--text-strong);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.36;
}

.job-meta {
    gap: 6px;
    margin-bottom: 10px;
}

.job-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid #e9eef6;
    border-radius: 999px;
    background: #fbfcfe;
    color: var(--text-body);
    font-size: 11px;
    font-weight: 600;
}

.job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-body);
    font-size: 13px;
    font-weight: 600;
}

.job-deadline {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-dday {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 800;
}

.job-bookmark {
    position: absolute;
    right: 10px;
    bottom: 12px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #536276;
    border-radius: 6px;
}

.job-bookmark:hover {
    color: var(--primary);
    background: var(--primary-lt);
}

.job-bookmark.active,
.detail-action-btn.active {
    color: var(--primary);
    background: var(--primary-lt);
}

#mapContainer {
    background: #eef4fb;
}

.map-top-bar {
    top: 20px;
    right: 28px;
    left: auto;
    max-width: calc(100% - var(--panel-w) - 56px);
    gap: 12px;
}

.map-location-label {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text-strong);
    font-size: 14px;
    font-weight: 800;
    box-shadow: var(--card-shadow);
}

.map-top-actions {
    gap: 12px;
    align-items: center;
}

.btn-map-top {
    min-height: 42px;
    padding: 0 18px;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text-strong);
    font-size: 14px;
    font-weight: 800;
    box-shadow: var(--card-shadow);
}

.btn-map-top:hover {
    background: #f8fbff;
    color: var(--primary);
    border-color: rgba(21, 101, 216, .35);
}

.btn-map-top-accent,
.btn-map-top-accent:hover {
    flex: 0 0 auto;
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.radius-select {
    flex: 0 0 112px;
    width: 112px;
    min-height: 42px;
    height: 42px;
    padding-left: 16px !important;
    padding-right: 30px !important;
    border: 1px solid var(--line);
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-strong);
    font-size: 14px;
    font-weight: 800;
    box-shadow: var(--card-shadow);
}

.map-legend {
    position: absolute;
    left: calc(var(--panel-w) + 24px);
    bottom: 88px;
    width: 132px;
    padding: 16px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--soft-shadow);
    z-index: var(--z-btn-float);
}

.legend-section {
    display: grid;
    gap: 12px;
    color: var(--text-body);
    font-size: 12px;
    font-weight: 700;
}

.legend-section strong {
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 900;
}

.legend-section span {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.legend-divider {
    height: 1px;
    margin: 14px 0;
    background: var(--line);
}

.legend-dot,
.legend-scale {
    flex: 0 0 auto;
    display: inline-block;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .64);
}

.legend-dot {
    width: 13px;
    height: 13px;
}

.legend-public,
.legend-scale { background: var(--primary); }
.legend-private { background: var(--accent); }
.legend-mixed { background: var(--mixed); }
.scale-lg { width: 20px; height: 20px; opacity: .95; }
.scale-md { width: 17px; height: 17px; opacity: .78; }
.scale-sm { width: 14px; height: 14px; opacity: .58; }
.scale-xs { width: 11px; height: 11px; opacity: .42; }

.map-zoom-controls {
    right: 28px;
    bottom: 118px;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--soft-shadow);
}

.btn-zoom {
    width: 48px;
    height: 48px;
    color: var(--text-strong);
    font-size: 24px;
    font-weight: 400;
}

.btn-my-location {
    right: 28px;
    bottom: 52px;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text-strong);
    box-shadow: var(--soft-shadow);
}

.btn-my-location:hover {
    color: var(--primary);
    background: #f8fbff;
}

.job-marker {
    width: 46px;
    height: 46px;
    border: 4px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(21, 101, 216, .28);
    transform: none;
    font-size: 15px;
    font-weight: 900;
}

.job-marker-icon {
    width: auto;
    height: auto;
    min-width: 1.4em;
    transform: none;
    color: inherit;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

.job-marker.is-public {
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(21, 101, 216, .3);
}

.job-marker.is-private {
    background: var(--accent);
    box-shadow: 0 8px 18px rgba(23, 168, 134, .28);
}

.job-marker.is-mixed {
    background: var(--mixed);
    box-shadow: 0 8px 18px rgba(122, 92, 229, .3);
}

.job-marker.size-sm {
    width: 36px;
    height: 36px;
    border-width: 3px;
    font-size: 13px;
}

.job-marker.size-md {
    width: 46px;
    height: 46px;
}

.job-marker.size-lg {
    width: 54px;
    height: 54px;
    font-size: 16px;
}

.job-marker.size-xl {
    width: 62px;
    height: 62px;
    font-size: 18px;
}

.job-marker.selected {
    border-color: #fff;
    box-shadow: 0 12px 24px rgba(15, 35, 70, .28);
}

.marker-job-popover {
    position: absolute;
    z-index: calc(var(--z-modal) - 1);
    width: min(340px, calc(100% - 28px));
    max-height: 300px;
    transform: translate(-50%, calc(-100% - 12px));
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 35, 70, .22);
    overflow: hidden;
    pointer-events: auto;
}

.marker-job-popover.is-below {
    transform: translate(-50%, 12px);
}

.marker-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
    background: #f8fbff;
    color: var(--text-strong);
    font-size: 13px;
}

.marker-popover-close {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
}

.marker-popover-close:hover {
    background: #edf4ff;
    color: var(--primary);
}

.marker-popover-list {
    max-height: 248px;
    overflow-y: auto;
    padding: 6px;
    background: #fff;
}

.marker-popover-item {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid transparent;
    color: var(--text-strong);
    text-align: left;
    font-size: 12px;
    line-height: 1.25;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}

.marker-popover-kind {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 22px;
    border-radius: 999px;
    background: var(--primary-lt);
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
}

.marker-popover-kind.is-private {
    background: #e9fbf6;
    color: var(--accent);
}

.marker-popover-text {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.marker-popover-title,
.marker-popover-company {
    display: block;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marker-popover-title {
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 900;
    word-break: keep-all;
}

.marker-popover-company {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
}

.marker-popover-item:hover,
.marker-popover-item:focus-visible {
    background: var(--primary-lt);
    border-color: rgba(21, 101, 216, .18);
    color: var(--primary);
    transform: translateX(2px);
}

.marker-popover-item:hover .marker-popover-title,
.marker-popover-item:focus-visible .marker-popover-title {
    color: var(--primary);
}

.local-job-marker {
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    border-color: var(--line);
    box-shadow: var(--card-shadow);
}

.local-marker-dot { background: var(--primary); }
.local-job-marker.is-private .local-marker-dot { background: var(--accent); }
.local-job-marker.is-mixed .local-marker-dot { background: var(--mixed); }

.job-detail {
    left: auto;
    right: 54px;
    top: 258px;
    width: min(420px, calc(100vw - var(--panel-w) - 96px));
    height: auto;
    max-height: calc(100vh - 320px);
    min-height: 320px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    overflow: hidden;
    z-index: calc(var(--z-btn-float) + 60);
    animation: detailPop .18s ease;
}

@keyframes detailPop {
    from { opacity: 0; transform: translateY(8px); }
}

.detail-header {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
}

.detail-header > span { display: none; }

.detail-header .btn-close {
    width: 32px;
    height: 32px;
    color: var(--text-strong);
}

.detail-content {
    max-height: inherit;
    overflow-y: auto;
    padding: 22px 22px 22px;
}

.detail-kind {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    margin-bottom: 14px;
    border-radius: 6px;
    background: var(--primary-lt);
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.detail-kind.is-private {
    background: #e9fbf6;
    color: var(--accent);
}

.detail-company {
    margin: 0 36px 12px 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.detail-title {
    margin: 0 0 8px;
    color: var(--text-strong);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.45;
}

.detail-subtitle {
    margin: 0 0 16px;
    color: var(--text-strong);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.detail-divider {
    margin: 16px 0;
    background: var(--line);
}

.detail-info {
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
    margin-bottom: 18px;
}

.detail-info-item {
    gap: 5px;
    min-width: 0;
}

.detail-info-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.detail-info-value {
    color: var(--text-strong);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.4;
}

.detail-deadline {
    display: grid;
    gap: 5px;
    margin-bottom: 18px;
    color: var(--text-strong);
    font-size: 15px;
    font-weight: 800;
}

.detail-addr {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 13px;
}

.btn-go-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin: 10px 0 0;
    border-radius: 7px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 16px -22px 0;
    border-top: 1px solid var(--line);
}

.detail-action-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-body);
    font-size: 13px;
    font-weight: 800;
}

.detail-action-btn + .detail-action-btn {
    border-left: 1px solid var(--line);
}

.detail-action-btn:hover {
    color: var(--primary);
    background: #f8fbff;
}

.no-result {
    color: var(--text-muted);
}

@media (max-width: 1180px) {
    .search-header {
        padding: 0 18px;
        gap: 16px;
    }

    .header-logo {
        width: auto;
        min-width: 250px;
    }

    .search-wrap {
        flex-basis: 460px;
    }

    .map-top-bar {
        max-width: calc(100% - var(--panel-w) - 36px);
        right: 18px;
    }

    .btn-map-top {
        padding: 0 14px;
    }

    .job-detail {
        right: 28px;
        width: min(390px, calc(100vw - var(--panel-w) - 56px));
    }
}

@media (max-width: 768px) {
    :root {
        --panel-w: 0px;
        --header-h: 64px;
    }

    .search-header {
        height: var(--header-h);
        padding: 0 12px;
    }

    .header-logo {
        display: inline-flex;
        width: auto;
        min-width: 0;
    }

    .logo-mark {
        width: 28px;
        height: 28px;
    }

    .logo-text {
        max-width: 72px;
        font-size: 0;
        line-height: 1.2;
    }

    .logo-text::after {
        content: '일자리 맵';
        color: var(--text-strong);
        font-size: 15px;
        font-weight: 900;
    }

    .search-wrap {
        flex: 1 1 auto;
        height: 38px;
    }

    .search-box input {
        font-size: 13px;
    }

    .job-panel {
        left: 0;
        right: 0;
        width: 100%;
        height: 48vh;
        border-radius: 16px 16px 0 0;
    }

    .mobile-view-switch {
        position: absolute;
        top: 10px;
        left: 12px;
        right: 12px;
        z-index: calc(var(--z-btn-float) + 10);
        display: flex;
        gap: 4px;
        padding: 4px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: rgba(255,255,255,.94);
        box-shadow: var(--card-shadow);
    }

    .mobile-view-btn {
        flex: 1 1 0;
        min-width: 0;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border-radius: 7px;
        color: var(--text-body);
        font-size: 13px;
        font-weight: 900;
    }

    .mobile-view-btn svg {
        width: 15px;
        height: 15px;
        flex: 0 0 15px;
    }

    .mobile-view-btn.is-active {
        background: var(--primary);
        color: #fff;
        box-shadow: 0 6px 12px rgba(21, 101, 216, .18);
    }

    .main-layout.mobile-map-view .job-panel {
        display: none;
    }

    .main-layout.mobile-list-view #mapContainer,
    .main-layout.mobile-list-view .map-top-bar,
    .main-layout.mobile-list-view .map-zoom-controls,
    .main-layout.mobile-list-view .btn-my-location,
    .main-layout.mobile-list-view .map-legend {
        display: none;
    }

    .main-layout.mobile-list-view .job-panel {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        display: flex;
        flex: 1 1 auto;
        width: 100%;
        height: 100%;
        padding-top: 58px;
        border-top: 0;
        border-radius: 0;
        box-shadow: none;
        z-index: var(--z-panel);
    }

    #filterModal {
        top: var(--header-h);
        width: 100%;
        height: calc(100vh - var(--header-h));
    }

    .panel-search-section {
        padding: 18px 16px 14px;
    }

    .panel-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-header {
        padding: 12px 16px 8px;
    }

    .job-list {
        padding: 10px 16px;
    }

    .map-top-bar {
        top: 64px;
        left: 12px;
        right: 12px;
        max-width: none;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .map-location-label {
        min-height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .map-top-actions {
        gap: 8px;
    }

    .btn-map-top,
    .radius-select {
        min-height: 36px;
        height: 36px;
        padding: 0 11px;
        font-size: 12px;
    }

    .radius-select {
        flex-basis: 98px;
        width: 98px;
        padding-left: 13px !important;
        padding-right: 26px !important;
    }

    .map-legend {
        display: none;
    }

    .map-zoom-controls {
        right: 14px;
        bottom: 84px;
    }

    .btn-my-location {
        right: 14px;
        bottom: 24px;
    }

    .job-detail {
        left: 10px;
        right: 10px;
        bottom: 12px;
        top: auto;
        width: auto;
        max-height: calc(100vh - var(--header-h) - 36px);
        min-height: 280px;
        border-radius: 14px;
        z-index: calc(var(--z-modal) - 1);
    }

    .detail-content {
        padding: 20px 18px 20px;
    }

    .detail-actions {
        margin-left: -18px;
        margin-right: -18px;
    }
}

/* ══ 채널 탭 (패널 상단 공공/민간) ══ */
.source-type-tabs {
    display: flex;
    gap: 4px;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f5f8fc;
    padding: 3px;
}

.src-tab {
    flex: 1;
    min-width: 0;
    min-height: 34px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 800;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.src-tab:hover { color: var(--primary); }

.src-tab-active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(15, 35, 70, .08);
}

/* ══ 필터 모달 내 채널 탭 ══ */
.filter-src-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    padding: 4px;
    background: #eaf0f8;
    border: 1px solid #dce5f1;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.filter-src-tab {
    flex: 1;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--gray-700);
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}

.filter-src-tab:hover { color: var(--primary); background: rgba(255,255,255,.65); }

.filter-src-tab-active {
    color: var(--primary);
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 35, 70, .08);
}

/* ══ 필터 섹션 ══ */
.filter-section { display: block; }
.filter-section.hidden { display: none; }

@media (max-width: 900px) {
    #filterModal {
        width: min(520px, 100vw);
    }

    #filterModal .filter-section {
        grid-template-columns: 1fr;
    }

    #filterModal .filter-row:first-child,
    #filterModal .filter-row {
        grid-column: 1;
    }

    #filterModal .filter-val-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #filterModal {
        inset: var(--header-h) 0 0 0;
        width: 100vw;
        height: calc(100dvh - var(--header-h));
    }

    #filterModal .modal-sheet {
        width: 100vw;
        max-width: 100vw;
    }

    #filterModal .modal-header {
        min-height: 52px;
        padding: 0 16px;
    }

    #filterModal .modal-body-scroll {
        padding: 10px 12px 16px;
    }

    #filterModal .filter-src-tabs {
        margin-bottom: 10px;
    }

    #filterModal .filter-row {
        padding: 12px;
        margin-bottom: 10px;
    }

    #filterModal .filter-row:first-child .cb-label {
        min-height: 40px;
    }

    #filterModal .filter-footer {
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    #filterModal .filter-val-col,
    #filterModal .filter-col2,
    #filterModal .filter-col3 {
        grid-template-columns: 1fr;
    }

    #filterModal .filter-row:first-child .filter-val-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #filterModal .cb-label {
        min-height: 36px;
        font-size: 12px;
    }

    #filterModal .radio-label {
        min-height: 30px;
    }
}
