:root {
    --primary-color: #2563eb;
    --primary-color-light: #3b82f6;
    --primary-color-dark: #1e40af;
    --growth-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
}

.lh-applyhome-page {
    min-height: 100vh;
    padding-top: 70px;
    padding-bottom: 100px;
    background: var(--gray-50);
}

.lh-content {
    min-height: calc(100vh - 200px);
    padding-bottom: 60px;
}

/* 히어로 섹션 */
.hero-section {
    padding: 60px 20px;
    text-align: center;
    background: transparent;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.gradient-text {
    background: var(--growth-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* PC 검색 인터페이스 */
.pc-search-interface {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-sidebar {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.search-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
}

.header-with-back {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-switch {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.calendar-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    justify-content: center;
}

.calendar-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.back-btn:hover {
    background: var(--gray-50);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.header-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 4px 0;
}

.header-text p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

.search-form-container {
    padding: 24px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.date-range-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-separator {
    color: var(--gray-400);
    font-weight: 500;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 8px;
    line-height: 1.4;
}

.mobile-form-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 8px;
    line-height: 1.4;
}

.optional-badge {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
    margin-left: 4px;
}

.search-btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--growth-gradient);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-top: 8px;
}

.search-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.info-section {
    padding: 20px 24px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.info-card {
    display: flex;
    gap: 12px;
}

.info-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 8px 0;
}

.info-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-content li {
    font-size: 0.8125rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 4px;
    padding-left: 16px;
    position: relative;
}

.info-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* 검색 결과 영역 */
.search-results-area {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 24px;
    min-height: 400px;
}

.initial-state,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--gray-500);
}

.initial-state i,
.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.initial-state h3,
.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.initial-state p,
.empty-state p {
    font-size: 1rem;
    color: var(--gray-500);
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

.results-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.results-count {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-500);
}

.results-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 4px 0 0 0;
    font-weight: 400;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.result-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
}

.result-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.result-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.result-badge {
    padding: 4px 12px;
    background: var(--growth-gradient);
    color: var(--white);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-row {
    display: flex;
    gap: 12px;
    font-size: 0.9375rem;
}

.result-label {
    font-weight: 600;
    color: var(--gray-600);
    min-width: 100px;
    flex-shrink: 0;
}

.result-value {
    color: var(--gray-900);
    flex: 1;
    word-break: break-word;
}

.result-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-detail:hover {
    background: var(--primary-color-dark);
    transform: translateY(-1px);
}

/* 모바일 검색 인터페이스 */
.mobile-search-interface {
    display: none;
}

.mobile-search-trigger {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--growth-gradient);
    color: var(--white);
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.mobile-search-trigger:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.mobile-search-overlay.active {
    display: block;
}

.mobile-search-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-search-interface.active .mobile-search-content {
    transform: translateY(0);
}

.mobile-search-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}

.drag-handle {
    width: 40px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin: 0 auto 12px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.mobile-search-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: 8px;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-form-container {
    padding: 20px;
}

.mobile-search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9375rem;
}

.mobile-search-btn {
    width: 100%;
    padding: 14px;
    background: var(--growth-gradient);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.mobile-search-results {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 10002;
    flex-direction: column;
}

.mobile-results-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-back-button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: 8px;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-results-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.mobile-results-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .pc-search-interface {
        display: none;
    }

    .mobile-search-interface {
        display: block;
    }

    .mobile-search-trigger {
        display: flex;
    }

    .hero-section {
        padding: 40px 15px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-title,
    .hero-description {
        color: var(--gray-900) !important;
    }

    .hero-badge {
        background: rgba(255, 255, 255, 0.95) !important;
        color: var(--gray-900) !important;
        border: 1px solid var(--gray-300) !important;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* 모바일 로딩/에러 스타일 */
.mobile-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.mobile-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.mobile-error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.mobile-error-container i {
    font-size: 3rem;
    color: var(--error);
    margin-bottom: 16px;
}

.mobile-error-text {
    font-size: 1rem;
    color: var(--gray-700);
    margin: 0;
}

/* 상세정보 링크 스타일 */
.detail-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.detail-link:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

.detail-link i {
    font-size: 0.75rem;
}

/* 상세정보 모달 스타일 */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.detail-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.detail-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.detail-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.detail-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: 8px;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.detail-modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.detail-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-section {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 20px;
}

.detail-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
}

.detail-value {
    font-size: 0.9375rem;
    color: var(--gray-900);
    word-break: break-word;
}

.detail-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

.detail-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: center;
}

.model-table-container {
    overflow-x: auto;
    margin-top: 12px;
}

.model-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.model-table thead {
    background: var(--gray-50);
}

.model-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-900);
    border-bottom: 2px solid var(--gray-200);
}

.model-table td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.model-table tbody tr:hover {
    background: var(--gray-50);
}

.loading-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.error-state i {
    font-size: 3rem;
    color: var(--error);
    margin-bottom: 16px;
}

.error-state p {
    font-size: 1rem;
    color: var(--gray-700);
    margin: 0;
}

/* 모바일 모달 스타일 */
@media (max-width: 768px) {
    .detail-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .model-table-container {
        overflow-x: scroll;
    }

    .model-table {
        font-size: 0.8125rem;
    }

    .model-table th,
    .model-table td {
        padding: 8px;
    }
}

