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

/* Full viewport layout */
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden; /* 스크롤 방지 */
}

/* Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #2d3748;
    background-color: #f7fafc;
}

/* Header */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    text-decoration: none;
}

.navigation {
    display: flex;
    gap: 1rem;
}

/* 드롭다운 메뉴 스타일 */
.dropdown-menu {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    width: 140px;
    justify-content: center;
}

.dropdown-btn:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
    color: #2d3748;
}

.dropdown-btn svg {
    width: 16px;
    height: 16px;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    width: 140px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    padding: 0.5rem 0;
    margin-top: 4px;
}

.dropdown-menu:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    color: #4a5568;
}

.dropdown-item:hover {
    background-color: #f7fafc;
    color: #2d3748;
}

.dropdown-item input[type="checkbox"],
.dropdown-item input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.dropdown-item span {
    font-weight: 500;
}

/* Main Container */
.main-container {
    display: flex;
    width: 100vw;
    height: calc(100vh - 64px);
    overflow: hidden; /* 메인 컨테이너 스크롤 방지 */
}

/* Search Panel */
.search-panel {
    width: 400px;
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s ease;
}


/* Residence Search Section */
.residence-search-section {
    padding: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 140px; /* org-basic-info와 높이 맞춤 */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* 안쪽 그림자 통일 */
}

.residence-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.distance-info {
    font-size: 1.125rem;
    font-weight: 500;
    color: #3182ce;
    background: #ebf8ff;
    padding: 4px 8px;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.distance-info.show {
    opacity: 1;
}

.residence-title:before {
    content: "🏠";
    font-size: 1.25rem;
}

.residence-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.residence-input-wrapper {
    display: flex;
    gap: 0;
    position: relative;
}

.residence-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #cbd5e0;
    border-radius: 6px 0 0 6px;
    font-size: 0.875rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.residence-input:focus {
    outline: none;
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}

.residence-input::placeholder {
    color: #a0aec0;
}

.residence-location-btn {
    width: 44px;
    height: 44px;
    background-color: #fc8181;
    color: white;
    border: none;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-left: 8px;
}

.residence-location-btn:hover {
    background-color: #f56565;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.residence-pin-btn {
    width: 44px;
    height: 44px;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.residence-pin-btn:hover {
    background-color: #2c5282;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.residence-pin-btn.active {
    background-color: #e53e3e;
    animation: pulse 1.5s infinite;
}

.residence-pin-btn.active:hover {
    background-color: #c53030;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.residence-search-btn {
    width: 44px;
    height: 44px;
    background-color: #38a169;
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.residence-search-btn:hover {
    background-color: #2f855a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.residence-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
}

.residence-status.active {
    background-color: #f0fff4;
    border-color: #38a169;
    color: #2f855a;
}

.status-text {
    flex: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-right: 0.5rem;
}

.residence-status.active .status-text {
    font-weight: 600;
}

.clear-residence-btn {
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
    color: #e53e3e;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.clear-residence-btn:hover {
    background-color: #fed7d7;
    border-color: #fc8181;
    color: #c53030;
}

/* Residence Modal */
.residence-modal-content {
    max-width: 400px;
}

.residence-success-info {
    text-align: center;
    padding: 1rem 0;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: #38a169;
    margin-bottom: 1rem;
}

.residence-address {
    background-color: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #2f855a;
    word-break: break-all;
}

/* Pin Mode Modal */
.pin-mode-modal-content {
    max-width: 450px;
}

.pin-mode-info {
    text-align: center;
    padding: 1rem 0;
}

.instruction-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.instruction-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3182ce;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.instruction-steps {
    text-align: left;
    background-color: #f7fafc;
    border-radius: 8px;
    padding: 1rem;
}

.step {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #4a5568;
    padding: 0.5rem;
    background-color: white;
    border-radius: 6px;
    border-left: 3px solid #3182ce;
}

.step:last-child {
    margin-bottom: 0;
}

/* Basic Search Section */
.basic-search-section {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8f9fa;
}

.search-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.search-bar-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.main-search-input {
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.main-search-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.main-search-input::placeholder {
    color: #a0aec0;
}

.search-buttons {
    display: flex;
    gap: 0.75rem;
}

.search-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.search-btn.primary {
    background-color: #3182ce;
    color: #ffffff;
}

.search-btn.primary:hover {
    background-color: #2c5aa0;
    transform: translateY(-1px);
}

.detail-search-btn {
    padding: 0.875rem 1.5rem;
    background-color: #ffffff;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    min-width: 100px; /* 최소 너비 고정 */
    text-align: center; /* 텍스트 중앙 정렬 */
}

.detail-search-btn:hover {
    border-color: #3182ce;
    color: #3182ce;
    background-color: #f7fafc;
}

.data-switch-btn {
    padding: 0.875rem 1rem;
    background-color: #38a169;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    white-space: nowrap;
}

.data-switch-btn:hover {
    background-color: #2f855a;
    transform: translateY(-1px);
}

.data-switch-btn:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

.data-switch-btn.loading {
    background-color: #ed8936;
    color: #ffffff;
}

/* Detailed Search Section */
.detailed-search-section {
    display: none;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    max-height: 40vh; /* 높이 제한을 줄여서 다른 섹션 침범 방지 */
    overflow-y: auto;
}

.detailed-search-section.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.detailed-search-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.detailed-search-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
}

.close-detail-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #718096;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-detail-btn:hover {
    background-color: #e2e8f0;
    color: #4a5568;
}

.detailed-form {
    padding: 1.5rem;
}

.filter-group {
    margin-bottom: 2rem;
}

.group-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2열 고정 */
    gap: 0.5rem; /* 간격 줄임 */
    max-height: 200px; /* 최대 높이 제한 */
    overflow-y: auto; /* 필요시 스크롤 */
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem; /* 패딩 줄임 */
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8125rem; /* 폰트 크기 약간 줄임 */
    color: #4a5568;
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
    overflow: hidden; /* 넘치는 텍스트 숨김 */
    text-overflow: ellipsis; /* ... 표시 */
}

.checkbox-grid label:hover {
    background-color: #f7fafc;
}

.checkbox-grid input[type="checkbox"] {
    width: 14px; /* 크기 줄임 */
    height: 14px; /* 크기 줄임 */
    accent-color: #3182ce;
    cursor: pointer;
    flex-shrink: 0; /* 축소 방지 */
}

.detailed-search-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.btn-reset,
.btn-apply {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-reset {
    background-color: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.btn-reset:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
}

.btn-apply {
    background-color: #3182ce;
    color: #ffffff;
}

.btn-apply:hover {
    background-color: #2c5aa0;
    transform: translateY(-1px);
}

/* Results Section */
.results-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.results-header {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
}

.result-count {
    background-color: #3182ce;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.job-list {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: #f8f9fa;
}

/* Job Items */
.job-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.job-item:hover {
    border-color: #3182ce;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.15);
    transform: translateY(-1px);
}

.job-item.highlighted {
    border-color: #f56565;
    background-color: #fef5e7;
}

.job-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.company-name {
    color: #3182ce;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.job-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #718096;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* Map Container */
.map-container {
    flex: 1;
    position: relative;
    background-color: #e2e8f0;
    transition: margin-left 0.3s ease-in-out;
}

/* 기관 패널이 열렸을 때 지도 여백 - 비활성화 (스크롤 방지) */
/* body.org-panel-open .map-container {
    margin-left: 400px;
} */

#map {
    width: 100%;
    height: 100%;
}

.map-controls {
    position: absolute;
    bottom: 2rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

.control-btn {
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 600;
    color: #4a5568;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.control-btn:hover {
    background-color: #3182ce;
    color: #ffffff;
    border-color: #3182ce;
}

/* 현재 위치 버튼 크기 조정 */
.current-location-btn {
    width: 56px; /* 줌 컨트롤과 정확히 같은 너비 (40px + 16px padding) */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Vertical Zoom Control */
.zoom-control-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    gap: 0.25rem;
}

.zoom-level-display {
    width: 40px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3182ce;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.2);
    margin-bottom: 0.25rem;
}

.zoom-level-number {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.zoom-btn {
    width: 36px;
    height: 32px;
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.2s ease;
    user-select: none;
}

.zoom-btn:hover {
    background-color: #3182ce;
    color: #ffffff;
    border-color: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.3);
}

.zoom-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(49, 130, 206, 0.4);
}

.zoom-slider-vertical {
    position: relative;
    width: 24px;
    height: 120px;
    margin: 0.25rem 0;
}

.slider-track-vertical {
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #e53e3e 0%, #dd6b20 25%, #d69e2e 45%, #805ad5 70%, #3182ce 85%, #38a169 100%);
    border-radius: 3px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-track-vertical:hover {
    width: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 8px rgba(49, 130, 206, 0.3);
}

.slider-fill-vertical {
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transition: height 0.3s ease;
    position: absolute;
    bottom: 0;
}

.slider-handle {
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    border: 3px solid #3182ce;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    cursor: grab;
    z-index: 10;
}

.slider-handle:hover {
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 4px 16px rgba(49, 130, 206, 0.5);
    border-width: 4px;
}

.slider-handle:active {
    cursor: grabbing;
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.6);
}

.zoom-tooltips-vertical {
    position: absolute;
    left: 32px;
    top: 0;
    height: 100%;
    width: 60px;
    pointer-events: none;
}

.zoom-tooltip-v {
    position: absolute;
    background-color: rgba(26, 32, 44, 0.9);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%);
}

.zoom-tooltip-v::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-right-color: rgba(26, 32, 44, 0.9);
}

.zoom-control-container:hover .zoom-tooltip-v {
    opacity: 0;
    /* 툴팁 완전히 숨김 */
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background-color: #ffffff;
    margin: 2rem auto;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: slideUp 0.2s ease;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #718096;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #e2e8f0;
    color: #4a5568;
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.company-info {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.company-info h4 {
    font-size: 1.125rem;
    color: #3182ce;
    margin-bottom: 0.5rem;
}

.job-details {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 600;
    color: #4a5568;
    min-width: 80px;
}

.job-description,
.job-requirements,
.job-benefits {
    margin-bottom: 1.5rem;
}

.job-description h5,
.job-requirements h5,
.job-benefits h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.job-requirements ul,
.job-benefits ul {
    list-style: none;
}

.job-requirements li,
.job-benefits li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1rem;
    color: #4a5568;
}

.job-requirements li:before,
.job-benefits li:before {
    content: "•";
    color: #3182ce;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.modal-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #3182ce;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2c5aa0;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #ffffff;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

.btn-secondary:hover {
    background-color: #f7fafc;
    border-color: #a0aec0;
}

/* Loading */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3182ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 2rem;
    color: #718096;
}

.no-results h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* Map Cluster Styles */
.cluster-icon,
.marker-cluster div,
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: #3182ce !important;
    border-radius: 8px !important;  /* 원형에서 둥근 사각형으로 변경 */
    text-align: center !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    border: 2px solid #ffffff !important;
}

/* 🎨 클러스터 색상별 스타일 - 최고 우선순위 */
.marker-cluster .cluster-icon.cluster-jobs,
.marker-cluster div.cluster-jobs,
.cluster-icon.cluster-jobs {
    background-color: #ff6b6b !important; /* 채용공고 있음 - 빨간색 */
}

.marker-cluster .cluster-icon.cluster-hq,
.marker-cluster div.cluster-hq,
.cluster-icon.cluster-hq {
    background-color: #4285f4 !important; /* 본사 포함 - 파란색 */
}

.marker-cluster .cluster-icon.cluster-branch,
.marker-cluster div.cluster-branch,
.cluster-icon.cluster-branch {
    background-color: #808080 !important; /* 지사만 - 회색 */
}

.cluster-small { width: 28px; height: 28px; font-size: 11px; }
.cluster-medium { width: 32px; height: 32px; font-size: 12px; }
.cluster-large { width: 36px; height: 36px; font-size: 13px; }

/* 거리 표시 팝업 스타일 */
.distance-popup .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

.distance-popup .leaflet-popup-content {
    margin: 0;
    min-width: 80px;
}

.distance-popup .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-top: none;
    border-left: none;
}

.job-marker {
    background-color: #3182ce;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.job-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.job-marker.selected {
    background-color: #f56565;
    animation: pulse 2s infinite;
}

/* Popup Styles */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 0;
    padding: 0;
}

.popup-content {
    padding: 1rem;
    min-width: 200px;
}

.popup-content h4 {
    margin: 0 0 0.5rem 0;
    color: #1a202c;
    font-size: 1rem;
    font-weight: 600;
}

.popup-content p {
    margin: 0.25rem 0;
    color: #4a5568;
    font-size: 0.875rem;
}

.popup-content .salary {
    color: #3182ce;
    font-weight: 600;
}

.popup-content .view-btn {
    background-color: #3182ce;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
}

.popup-content .view-btn:hover {
    background-color: #2c5aa0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 101, 101, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(245, 101, 101, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 101, 101, 0); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 지도 레이어 컨트롤 스타일링 */
.leaflet-control-layers {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0.75rem;
    min-width: 140px;
}

.leaflet-control-layers-toggle {
    background-image: none;
    background-color: #3182ce;
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.leaflet-control-layers-toggle:after {
    content: "🗺️";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
}

.leaflet-control-layers label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2d3748;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.leaflet-control-layers label:hover {
    color: #3182ce;
}

.leaflet-control-layers input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #3182ce;
    margin: 0;
}

.leaflet-control-layers-separator {
    height: 1px;
    background-color: #e2e8f0;
    margin: 0.5rem 0;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .search-panel {
        width: 100%;
        height: 40vh;
        order: 2;
        border-right: none;
        border-top: 1px solid #e2e8f0;
    }
    
    .map-container {
        height: 60vh;
        order: 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .navigation {
        gap: 1rem;
    }
    
    .modal-content {
        margin: 1rem auto;
        width: 95%;
    }
    
    /* 모바일에서 지도 컨트롤 위치 조정 */
    .map-controls {
        bottom: 1.5rem;
        right: 1rem;
        gap: 0.4rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* 모바일에서 현재 위치 버튼 크기 조정 */
    .current-location-btn {
        width: 48px; /* 모바일 줌 컨트롤과 맞춤 (36px + 12px padding) */
        height: 40px;
    }
    
    /* 모바일에서 세로 줌 컨트롤 조정 */
    .zoom-control-container {
        padding: 0.4rem;
        gap: 0.2rem;
    }
    
    .zoom-level-display {
        width: 36px;
        height: 24px;
        margin-bottom: 0.2rem;
    }
    
    .zoom-level-number {
        font-size: 0.75rem;
    }
    
    .zoom-btn {
        width: 32px;
        height: 28px;
        font-size: 1.1rem;
    }
    
    .zoom-slider-vertical {
        width: 20px;
        height: 100px;
        margin: 0.2rem 0;
    }
    
    .slider-handle {
        width: 20px;
        height: 20px;
        border-width: 3px;
        /* 모바일에서 터치하기 쉽게 더 크게 */
    }
    
    .slider-track-vertical {
        width: 8px;
        /* 모바일에서 터치하기 쉽게 더 넓게 */
    }
    
    .zoom-tooltip-v {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
        left: 28px;
    }
    
    /* 모바일에서 레이어 컨트롤 위치 조정 */
    .leaflet-control-layers {
        top: 0.5rem !important;
        right: 0.5rem !important;
        padding: 0.5rem;
        min-width: 120px;
    }
}

/* 기관 마커 스타일 */
.custom-org-marker {
    background: none;
    border: none;
}

.org-marker-with-jobs,
.org-marker-normal,
.org-marker-branch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.org-marker-with-jobs {
    background-color: #ff6b6b !important;
    animation: pulse-jobs 2s infinite;
}

.org-marker-normal {
    background-color: #4285f4 !important;
}

.org-marker-branch {
    background-color: #808080 !important;
}

.org-marker-with-jobs:hover,
.org-marker-normal:hover,
.org-marker-branch:hover {
    transform: scale(1.2);
    z-index: 1000;
}

.org-marker-with-jobs.selected,
.org-marker-normal.selected,
.org-marker-branch.selected {
    transform: scale(1.3);
    border-color: #ffd700;
    border-width: 3px;
    z-index: 1001;
}

@keyframes pulse-jobs {
    0% { 
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% { 
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% { 
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* ===== 줌 레벨별 라벨 마커 스타일 ===== */
.custom-org-label-marker {
    background: none !important;
    border: none !important;
}

.org-label-marker {
    position: relative;
    background: #4285f4;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 140px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

/* 아래쪽 삼각형 포인터 - 더 강력한 CSS 적용 */
.org-label-marker::after,
.custom-org-label-marker .org-label-marker::after,
div.org-label-marker::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 20px solid transparent !important;
    border-right: 20px solid transparent !important;
    border-top: 25px solid #4285f4 !important;
    z-index: 999 !important;
    display: block !important;
}

/* 채용공고가 있는 기관 라벨 */
.org-label-marker.has-jobs {
    background: #ff6b6b;
    color: white;
}

.org-label-marker.has-jobs::after,
.custom-org-label-marker .org-label-marker.has-jobs::after,
div.org-label-marker.has-jobs::after {
    border-top-color: #ff6b6b !important;
}

/* 직접 HTML로 추가된 포인터 */
.label-pointer {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 20px solid transparent !important;
    border-right: 20px solid transparent !important;
    border-top: 25px solid #4285f4 !important;
    z-index: 1000 !important;
}

.org-label-marker.has-jobs .label-pointer {
    border-top-color: #ff6b6b !important;
}

/* 호버 효과 */
.org-label-marker:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
}

.org-label-marker.has-jobs:hover {
    animation: pulse-label 1.5s infinite;
}

/* 선택된 라벨 마커 */
.org-label-marker.selected {
    transform: scale(1.1);
    border-color: #ffd700;
    border-width: 3px;
    z-index: 1001;
}

/* SVG 기반 라벨 마커 */
.custom-org-svg-marker {
    background: none !important;
    border: none !important;
}

.custom-org-svg-marker svg {
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-org-svg-marker:hover svg {
    transform: scale(1.05);
}

/* 라벨 마커 애니메이션 */
@keyframes pulse-label {
    0%, 100% { 
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }
    50% { 
        transform: scale(1.08);
        box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
    }
    70% { 
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% { 
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* 기관 팝업 스타일 */
.org-popup-content {
    padding: 15px;
}

.org-popup-content h4 {
    margin-bottom: 10px;
    color: #2d3748;
    font-size: 16px;
}

.org-popup-content p {
    margin-bottom: 5px;
    font-size: 14px;
    color: #4a5568;
}

.org-status.has-jobs {
    color: #ff6b6b;
}

.org-status.no-jobs {
    color: #4ecdc4;
}

/* 기관 정보 패널 */
.org-info-panel {
    position: fixed;
    top: 64px;
    left: 400px; /* search-panel 너비(400px) 옆에 위치 */
    width: 400px;
    height: calc(100vh - 64px);
    background: white;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: hidden;
    transform: translateX(-100%); /* 왼쪽으로 숨김 */
    transition: transform 0.3s ease-in-out;
}

.org-info-panel.show {
    transform: translateX(0);
}

/* 기존 org-panel-header 스타일 제거됨 */

.org-panel-content {
    height: 100%;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* 현대적 기관 헤더 - 미니멀 디자인 */
.org-basic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px 24px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    margin: 0;
    position: relative;
    min-height: 70px;
}

.org-basic-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.org-name {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.org-panel-close {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.org-panel-close:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
    transform: none;
}

/* 기관 기본 정보 */
.org-basic-info {
    padding: 0;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 140px; /* residence-search-section과 높이 맞춤 */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* 안쪽 그림자 통일 */
}

.org-basic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
}

.org-panel-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #4a5568;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
    flex-shrink: 0;
}

.org-panel-close:hover {
    color: #e53e3e;
    background-color: #fed7d7;
}

.org-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.org-details {
    padding: 0;
    background: #ffffff;
}

.org-detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 24px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    position: relative;
    min-height: 40px;
}

.org-detail-item:last-child {
    border-bottom: none;
}

.org-detail-item:hover {
    background: #f8fafc;
    transform: translateX(1px);
}

.detail-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    min-width: 70px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.detail-value {
    font-size: 16px;
    color: #334155;
    line-height: 1.4;
    flex: 1;
    font-weight: 500;
}

.detail-link {
    font-size: 15px;
    color: #0ea5e9;
    text-decoration: none;
    line-height: 1.6;
    flex: 1;
    font-weight: 500;
    position: relative;
}

.detail-link:hover {
    color: #0284c7;
}

.detail-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
    transition: width 0.3s ease;
}

.detail-link:hover:after {
    width: 100%;
}

/* 채용공고 섹션 */
.org-jobs-section {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    background: #fafbfc;
    border-top: 1px solid #e2e8f0;
}

.org-jobs-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.job-count {
    background: linear-gradient(45deg, #3182ce, #2563eb);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.3);
}

.org-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.org-job-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.org-job-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3182ce, #2563eb);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.org-job-item:hover {
    border-color: #3182ce;
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.15);
    transform: translateY(-2px);
}

.org-job-item:hover::before {
    transform: scaleX(1);
}

/* Job header with title and toggle */
.org-job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.org-job-header:hover {
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    padding: 8px;
    margin: -8px -8px 4px -8px;
}

.org-job-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.4;
    flex: 1;
    margin-right: 12px;
    transition: color 0.2s ease;
}

.org-job-header:hover .org-job-title {
    color: #2563eb;
}

.job-toggle-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.job-toggle-icon.expanded {
    transform: rotate(180deg);
}

.chevron-icon {
    width: 20px;
    height: 20px;
    color: #64748b;
    transition: color 0.2s ease;
}

.org-job-header:hover .chevron-icon {
    color: #2563eb;
}

.org-job-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.org-job-meta-item {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 6px;
}

.org-job-meta-icon {
    width: 16px;
    height: 16px;
    color: #3182ce;
    flex-shrink: 0;
}

/* Job details expansion */
.org-job-details {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.job-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.job-detail-item {
    font-size: 14px;
    color: #4b5563;
    padding: 8px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.job-detail-item:last-child {
    border-bottom: none;
}

.job-detail-item strong {
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.job-detail-value {
    color: #4b5563;
    margin: 0;
}

@media (min-width: 640px) {
    .job-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

/* Job Detail Buttons */
.job-detail-buttons {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.job-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    background: none;
}

.job-detail-btn.primary {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.job-detail-btn.primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.job-detail-btn.secondary {
    background-color: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.job-detail-btn.secondary:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .job-detail-buttons {
        flex-direction: row;
        gap: 12px;
    }

    .job-detail-btn {
        flex: 1;
    }
}

/* 잡알리오는 이제 팝업으로 처리 - 별도 패널 스타일 불필요 */

.no-jobs-message {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    background: white;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.no-jobs-message p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* 반응형 */
@media (max-width: 1200px) {
    .org-info-panel {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .org-info-panel {
        width: 100vw;
        left: 0;
        right: 0;
        transform: translateX(100%);
    }
    
    .org-info-panel.show {
        transform: translateX(0);
    }
}

/* ===== Pagination Styles ===== */
.pagination-container {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.pagination-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.page-info {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
    transform: translateY(-1px);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
    background: #e5e7eb;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    color: #9ca3af;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px;
    width: 200px; /* 5개 버튼의 고정 너비 (36px * 5 + 4px gap * 4) */
    justify-content: center;
}

.page-number {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.page-number:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
    transform: translateY(-1px);
}

.page-number.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    font-weight: 600;
}

.page-number.active:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: #9ca3af;
    font-weight: 500;
    font-size: 14px;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
}

.items-per-page-select {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.items-per-page-select:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.items-per-page-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Pagination Mobile Responsive */
@media (max-width: 768px) {
    .pagination-container {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .pagination-controls {
        gap: 6px;
    }
    
    .pagination-btn,
    .page-number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 13px;
    }
    
    .page-numbers {
        margin: 0 6px;
        gap: 3px;
    }
    
    .items-per-page-select {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .page-info {
        font-size: 13px;
    }
}

/* Province (시도) Boundary Styles */
.province-marker {
    background: none !important;
    border: none !important;
}

.province-marker-content {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: 3px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white;
    text-align: center;
    padding: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 90px;
}

.province-marker-content:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.province-count {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.province-name {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Province Popup Styles */
.province-popup {
    text-align: center;
    padding: 8px;
    min-width: 150px;
}

.province-popup h3 {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
}

.province-popup p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.province-popup strong {
    color: #3b82f6;
    font-weight: 600;
}

.province-popup button {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.province-popup button:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.province-popup button:active {
    transform: translateY(0);
}

/* Leaflet Tooltip Customization for Provinces */
.leaflet-tooltip.leaflet-tooltip-top:before,
.leaflet-tooltip.leaflet-tooltip-bottom:before,
.leaflet-tooltip.leaflet-tooltip-left:before,
.leaflet-tooltip.leaflet-tooltip-right:before {
    border-color: rgba(59, 130, 246, 0.9) transparent transparent transparent;
}

.leaflet-tooltip {
    background-color: rgba(59, 130, 246, 0.9) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 6px 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    text-align: center;
    line-height: 1.3;
}

/* Province boundary interaction feedback */
.leaflet-interactive:hover {
    cursor: pointer !important;
}

/* Enhanced cluster icons for detailed view */
.marker-cluster {
    transition: all 0.3s ease;
}

.marker-cluster:hover {
    transform: scale(1.05);
}

/* 기관 헤더 컨텐츠 */
.org-header-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.org-name {
    margin-bottom: 5px;
}

.org-establish-date {
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
    margin-top: 0;
}

/* 웹사이트 버튼들 */
.website-buttons {
    display: flex;
    gap: 8px;
}

.website-btn {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.website-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.website-btn.main-site {
    border-color: #3b82f6;
    color: #3b82f6;
}

.website-btn.main-site:hover {
    background: #eff6ff;
    border-color: #2563eb;
}

.website-btn.recruit-site {
    border-color: #059669;
    color: #059669;
}

.website-btn.recruit-site:hover {
    background: #ecfdf5;
    border-color: #047857;
}

/* 비활성 웹사이트 버튼 */
.website-btn:disabled,
.website-btn.disabled {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.website-btn:disabled:hover,
.website-btn.disabled:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
}

/* Contact Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.close:hover {
    color: white;
    transform: scale(1.1);
}

.modal-body {
    padding: 24px;
}

.modal-intro {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-info {
    space-y: 20px;
}

.email-section {
    margin-bottom: 24px;
}

.email-section strong {
    display: block;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.email-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    gap: 12px;
}

#emailAddress {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #1f2937;
    word-break: break-all;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.guidelines {
    margin-bottom: 20px;
}

.guidelines strong {
    display: block;
    color: #374151;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.guidelines ul {
    margin: 0;
    padding-left: 20px;
    color: #6b7280;
}

.guidelines li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
    background: #f9fafb;
    text-align: center;
}

.modal-footer p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .email-box {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .copy-btn {
        align-self: center;
        width: auto;
    }
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-style: italic;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

