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

body {
    font-family: 'Noto Sans KR', 'Roboto', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* Navigation Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
    background-color: white;
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    height: 85px;
}

.nav-logo .logo-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo .logo-link:hover {
    transform: translateY(-1px);
}

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

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #d4af8c, #c19a6b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 175, 140, 0.3);
    transition: all 0.3s ease;
}

.logo-icon i {
    color: white;
    font-size: 1.4rem;
}

.logo-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 140, 0.4);
}

/* Brand text styles - styles.css 기본 스타일 사용 */

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'Noto Sans KR', 'Roboto', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
    padding: 10px 18px;
    border-radius: 25px;
    letter-spacing: -0.3px;
}

.nav-link:hover {
    color: #d4af8c;
    background: rgba(212, 175, 140, 0.1);
    border-color: rgba(212, 175, 140, 0.3);
}

.nav-link.active {
    color: white !important;
    background: #d4af8c !important;
    border-color: #d4af8c !important;
}


/* =================================================== */
/* 🎯 모든 네비게이션 메뉴 완전 통일 - 최고 우선순위 */
/* =================================================== */
html body .navbar .nav-link,
html body .nav-item .nav-link,
html body .nav-menu .nav-link,
html body .navbar .nav-link.estimate-nav,
html body .navbar .nav-link.consultation-nav,
html body .nav-item .nav-link.estimate-nav,
html body .nav-item .nav-link.consultation-nav {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    transform: none !important;
    filter: none !important;
    color: #333333 !important;
}

/* 🏠 홈페이지에서 네비게이션 텍스트 강제 흰색 적용 - 최고 우선순위 */
html body.page-home .navbar .nav-link,
html body.page-home .nav-item .nav-link,
html body.page-home .nav-menu .nav-link,
html body.page-home .navbar .nav-link.estimate-nav,
html body.page-home .navbar .nav-link.consultation-nav,
html body.page-home .nav-item .nav-link.estimate-nav,
html body.page-home .nav-item .nav-link.consultation-nav {
    color: white !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    font-weight: 400 !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    font-family: 'Noto Sans KR', 'Roboto', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif !important;
}

html body .navbar .nav-link:hover,
html body .nav-item .nav-link:hover {
    color: #666666 !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Remove after effects */
.nav-link::after {
    display: none !important;
}

    padding: 12px 24px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.consultation-nav:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4) !important;
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Main Content */
.workplace-main {
    margin-top: 85px;
    padding: 60px 0 40px 0;
    min-height: calc(100vh - 85px);
}

.workplace-header {
    text-align: center;
    margin-bottom: 15px; /* 40px에서 15px로 여백 줄임 */
    padding: 0 20px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 0; /* 부제목 아래 여백 제거 */
}

/* Filter and Search Section */
.filter-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px;
    margin: 0 20px 30px 20px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px;
    text-align: center !important;
    width: calc(100% - 40px);
}

/* Filter Tabs */
.filter-tabs {
    display: flex !important;
    gap: 10px;
    justify-content: center !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.filter-tab {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Noto Sans KR', 'Roboto', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}

.filter-tab:hover {
    border-color: #d4af8c;
    color: #d4af8c;
    background: rgba(212, 175, 140, 0.05);
}

.filter-tab.active {
    background: #d4af8c;
    border-color: #d4af8c;
    color: white;
}

.search-container {
    width: 100%;
    max-width: 400px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 45px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.search-input:focus {
    outline: none;
    border-color: #d4af8c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 140, 0.1);
}

.clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.clear-search:hover {
    background: #f5f5f5;
    color: #666;
}

/* Filter content animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.filter-subtitle {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
}

.location-grid,
.pyeong-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.status-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Popular Sections */
.popular-section {
    margin-bottom: 20px;
}

.popular-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Workplace Grid and Cards */
.workplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 40px;
    padding: 30px 0;
    min-height: 500px;
}

.workplace-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.workplace-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(212, 175, 140, 0.2);
}

.workplace-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.workplace-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.workplace-card:hover .workplace-image img {
    transform: scale(1.08);
}

/* Progress overlay styles removed - using only title area progress */

.workplace-content {
    padding: 30px;
}

.workplace-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.workplace-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    flex: 1;
}

.workplace-progress {
    background: linear-gradient(135deg, #d4af8c, #c19a6b);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(212, 175, 140, 0.3);
}

.workplace-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    min-height: 22px;
}

.detail-label {
    font-size: 11px;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.3;
    min-width: 45px;
    flex-shrink: 0;
}

.detail-label::before,
.detail-label::after {
    display: none !important;
    content: none !important;
}

.detail-value {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.status-planning {
    background: rgba(25, 118, 210, 0.9);
    color: white;
}

.status-construction {
    background: rgba(245, 124, 0, 0.9);
    color: white;
}

.status-finishing {
    background: rgba(123, 31, 162, 0.9);
    color: white;
}

.status-completed {
    background: rgba(56, 142, 60, 0.9);
    color: white;
}

/* Results Section */
.results-section {
    margin-top: 30px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.results-count {
    font-size: 16px;
    color: #666;
}

.sort-dropdown {
    padding: 10px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.sort-dropdown:focus {
    outline: none;
    border-color: #d4af8c;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results p {
    font-size: 16px;
    margin-bottom: 20px;
}

.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #e74c3c;
}

.error-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

.popular-tag,
.location-tag,
.pyeong-tag,
.status-tag {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.popular-tag:hover,
.location-tag:hover,
.pyeong-tag:hover,
.status-tag:hover {
    border-color: #d4af8c;
    color: #d4af8c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 140, 0.15);
}

.popular-tag.active,
.location-tag.active,
.pyeong-tag.active,
.status-tag.active {
    background: #d4af8c;
    border-color: #d4af8c;
    color: #fff;
}

/* Search Highlight Animation */
.workplace-card.search-highlight {
    animation: searchPulse 0.6s ease;
}

@keyframes searchPulse {
    0% { transform: scale(1); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
    50% { transform: scale(1.02); box-shadow: 0 8px 16px rgba(212, 175, 140, 0.2); }
    100% { transform: scale(1); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
}
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.popular-tag:hover {
    background: #d4af8c;
    color: #fff;
    border-color: #d4af8c;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

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

.popular-header .filter-subtitle {
    margin-bottom: 0;
}

.popular-header .header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
    background-color: rgba(255, 0, 0, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
}

.popular-header .header-controls .results-count {
    font-size: 14px;
    color: #333;
}

.popular-header .header-controls .results-count strong {
    color: #d4af8c;
}

.popular-header .header-controls .sort-select-header {
    font-size: 14px;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    padding: 4px 8px;
    min-width: 80px;
}

.results-count {
    font-size: 16px;
    color: #333;
}

.results-count strong {
    color: #d4af8c;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #333;
}

/* Workplace Grid - ohouse.kr 스타일 */
.workplace-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin: 30px 0 50px 0;
    width: 100%;
    padding: 0 20px;
}

/* 반응형 그리드 */
@media (max-width: 1024px) {
    .workplace-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 768px) {
    .workplace-main {
        padding: 40px 0 30px 0;
    }
    
    /* 페이지 헤더 텍스트 줄바꿈 최적화 */
    .page-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        word-break: keep-all !important;
        text-align: center;
    }
    
    .page-subtitle {
        font-size: 14px !important;
        line-height: 1.5 !important;
        word-break: keep-all !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        text-align: center;
        padding: 0 20px;
        margin-bottom: 20px !important;
        white-space: normal !important;
        display: block !important;
    }
    
    /* 헤더 섹션 전체에 줄바꿈 설정 적용 */
    .workplace-header {
        padding: 20px 15px !important;
        text-align: center !important;
    }
    
    .workplace-header * {
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }
    
    .workplace-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin: 20px 0 40px 0;
        padding: 0 10px;
    }
    
    .workplace-details {
        gap: 12px 20px;
        margin-top: 12px;
    }
    
    .detail-item {
        grid-template-columns: 55px 1fr;
        gap: 8px;
        min-height: 32px;
        padding: 9px 0;
    }
    
    .detail-label {
        font-size: 12px;
    }
    
    .detail-value {
        font-size: 14px;
    }
    
    .card-content {
        padding: 16px 14px;
    }
}

/* 카드 스타일 - 화이트 배경 + 미니멀 + 그림자 없음 */
.workplace-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.workplace-card:hover {
    transform: translateY(-2px);
    border-color: #d4af8c;
    box-shadow: 0 4px 12px rgba(212, 175, 140, 0.15);
}

.workplace-card.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 카드 이미지 */
.card-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #f8f8f8;
    width: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.workplace-card:hover .card-image img {
    transform: scale(1.05);
}

.progress-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(212, 175, 140, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.completed { background: rgba(76, 175, 80, 0.9); }
.status-badge.in-progress { background: rgba(255, 152, 0, 0.9); }
.status-badge.planning { background: rgba(96, 125, 139, 0.9); }

/* 카드 콘텐츠 - 미니멀한 정보 배치 */
.card-content {
    padding: 20px 16px;
    background: #fff;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.card-type {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.card-manager {
    font-size: 12px;
    color: #999;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #f5f5f5;
}

.card-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    background: #f0f8ff;
    color: #4a90e2;
}

.card-status.planning { 
    background: #f0f8ff; 
    color: #4a90e2; 
}

.card-status.in-progress { 
    background: #fff4e6; 
    color: #ff9500; 
}

.card-status.completed { 
    background: #f0f9f0; 
    color: #4caf50; 
}

.card-progress {
    font-size: 11px;
    color: #d4af8c;
    font-weight: 500;
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-state i {
    font-size: 32px;
    margin-bottom: 15px;
    color: #d4af8c;
}

.loading-state p {
    font-size: 16px;
}

/* Search Highlight Animation */
.search-highlight {
    animation: searchPulse 0.6s ease-in-out;
}

@keyframes searchPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 0 4px 20px rgba(212, 175, 140, 0.3); }
    100% { transform: scale(1); }
}

/* Workplace Price Display Styles */
.workplace-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.workplace-price {
    color: #000 !important;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(212, 175, 140, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 140, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.workplace-title {
    color: #333 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.3;
    flex: 1;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #d4af8c;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    font-size: 14px;
    color: #999;
}

/* Filter Tags Styling */
.location-tag, .pyeong-tag, .status-tag {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin: 4px;
    display: inline-block;
}

.location-tag:hover, .pyeong-tag:hover, .status-tag:hover {
    background: #e9ecef;
    border-color: #d4af8c;
}

.location-tag.active, .pyeong-tag.active, .status-tag.active {
    background: #d4af8c;
    border-color: #d4af8c;
    color: white;
}

/* Workplace Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    padding: 20px;
    opacity: 1;
    animation: fadeIn 0.3s ease-in-out;
}

.workplace-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #666;
}

.modal-body {
    padding: 30px;
}

/* Image Gallery Styles */
.workplace-modal-images {
    margin-bottom: 30px;
}

.image-gallery {
    display: grid;
    gap: 15px;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: #333;
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.thumbnail {
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

.thumbnail.active {
    border-color: #d4af8c;
    box-shadow: 0 0 0 1px #d4af8c;
}

.thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workplace-modal-info {
    margin-top: 20px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 30px;
}

.info-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    color: #666;
    font-size: 16px;
    flex: 0 0 80px;
    white-space: nowrap;
}

.info-value {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    color: #1a1a1a;
    font-size: 16px;
    text-align: right;
    flex: 1;
}

.progress-badge {
    background: linear-gradient(135deg, #d4af8c, #c19a6b);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(212, 175, 140, 0.3);
}

.project-description {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.project-description p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 30px;
    border-top: 1px solid #eee;
    background: #fafafa;
    border-radius: 0 0 16px 16px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #d4af8c;
    color: white;
}

.btn-primary:hover {
    background: #c19a6b;
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* Image Modal Styles */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    cursor: pointer;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.image-modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.image-modal-close:hover {
    background: white;
}

/* Fade in animation for modal */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-primary {
    background: #d4af8c;
    color: white;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .workplace-main {
        padding: 20px 0;
    }

    .page-title {
        font-size: 24px;
    }

    .search-filter-section {
        padding: 16px;
        margin-bottom: 20px;
        flex-direction: column;
        gap: 2px;
    }

    .popular-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .popular-header .filter-subtitle {
        font-size: 20px;
        margin-bottom: 0;
    }

    .popular-header .header-controls {
        gap: 8px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .popular-header .header-controls .sort-select-header {
        font-size: 12px;
        padding: 2px 6px;
        min-width: 70px;
    }

    .search-container {
        margin-left: 0;
        order: 2;
        width: 100%;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .filter-tabs {
        order: 1;
        flex: none;
    }
    
    .workplace-modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .workplace-modal-image {
        height: 200px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }

    .search-input {
        padding: 12px 40px 12px 35px;
        font-size: 14px;
        height: 44px;
        box-sizing: border-box;
    }

    .search-icon {
        left: 12px;
        font-size: 14px;
    }

    .filter-tabs {
        flex-direction: column;
        gap: 16px;
        padding: 12px;
        background: #fafafa;
    }

    .filter-tab {
        max-width: none;
        width: 100%;
        min-width: 280px;
        padding: 14px 20px;
        height: 50px;
        min-height: 50px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        font-weight: 500;
        margin-bottom: 2px;
        border: 1px solid #e0e0e0;
    }

    .location-grid,
    .pyeong-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
    }

    .popular-tag,
    .location-tag,
    .pyeong-tag,
    .status-tag {
        padding: 10px 14px;
        font-size: 13px;
    }

    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    }

    .workplace-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .popular-tags {
        justify-content: center;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .workplace-header {
        margin-bottom: 10px; /* 모바일에서도 여백 줄임 */
    }

    .popular-section {
        margin-bottom: 25px;
    }

    .filter-subtitle {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 16px;
        color: #333;
    }

    .popular-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .popular-header .header-controls {
        gap: 8px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .popular-header .header-controls .sort-select-header {
        font-size: 11px;
        padding: 2px 4px;
        min-width: 60px;
    }

    .popular-tag {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .card-content {
        padding: 12px;
    }

    .card-title {
        font-size: 0.9rem;
    }
    
    .workplace-details {
        gap: 3px;
        margin-top: 8px;
    }
    
    .detail-item {
        gap: 6px;
        min-height: 18px;
        padding: 2px 0;
    }
    
    .detail-label {
        font-size: 0.7rem;
    }
    
    .detail-value {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: keep-all;
    }
    
    .workplace-title {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        word-break: keep-all !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
}

/* Ultra small devices (iPhone SE and smaller) */
@media (max-width: 375px) {
    .popular-tag {
        font-size: 0.75rem;
        padding: 5px 8px;
    }

    .card-content {
        padding: 10px;
    }

    .card-title {
        font-size: 0.8rem;
    }
    
    .detail-label {
        font-size: 0.65rem;
    }
    
    .detail-value {
        font-size: 0.75rem;
    }
    
    .workplace-title {
        font-size: 0.8rem !important;
        line-height: 1.25 !important;
    }
}

/* Modal Status Badge Styles */
.modal-body .status-badge {
    display: inline-block !important;
    padding: 6px 14px;
    border-radius: 12px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.3px;
    position: static !important;
    background: rgba(255, 193, 7, 0.15) !important;
    color: #856404 !important;
}

.status-value {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Progress Bar Container */
.modal-body .progress-container {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    width: 100% !important;
}

.progress-bar {
    flex: 1 !important;
    height: 8px !important;
    background: #f0f0f0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af8c, #c19a6b);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Progress Text Styles */
.progress-text {
    font-family: 'Noto Sans KR', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
    min-width: 50px !important;
    text-align: right !important;
    margin-left: 0 !important;
    color: #1a1a1a !important;
    display: block !important;
    visibility: visible !important;
}

.modal-body .status-planning {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

.modal-body .status-construction {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
}

.modal-body .status-finishing {
    background: rgba(0, 123, 255, 0.15);
    color: #0056b3;
}

.modal-body .status-completed {
    background: rgba(40, 167, 69, 0.15);
    color: #155724;
}





/* Global override for all border-left decorations */
.detail-item,
.meta-item,
.breakdown-item,
.info-item,
.project-description,
.estimate-result {
    border-left: transparent !important;
}/* Cache busting */
/* Force refresh Tue Aug 12 04:44:48 AM UTC 2025 */
/* Force center alignment for filter tabs - Cache buster 1755584261 */
