/* board-branch.css - 지부소개 스킨 전용 스타일 */

/* 상세보기 스타일 */
.branch-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.branch-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.branch-region {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.branch-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
}

.branch-positions {
    margin-bottom: 2rem;
}

.branch-image {background: #e0c9e6;height: 160px !important;}

.position-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.position-photo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.position-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.position-photo .no-image {
    color: #999;
    font-size: 3rem;
}

.position-info {
    flex: 1;
}

.position-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.position-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-row {
    display: flex;
    gap: 1rem;
}

.detail-label {
    font-weight: 600;
    color: #666;
    min-width: 80px;
}

.detail-value {
    color: #333;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.branch-address-section,
.branch-map-section,
.branch-members-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.address-content {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

.map-container {
    margin-top: 1rem;
}

.map-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* 회원명단 테이블 - 모바일 가로스크롤 */
.members-table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
    -webkit-overflow-scrolling: touch; /* iOS 스와이프 지원 */
}

.members-table {
    width: 100%;
    min-width: 600px; /* 모바일에서 최소 너비 보장 */
    border-collapse: collapse;
    font-size: 0.95rem;
}

.members-table thead {
    background: #f8f9fa;
}

.members-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap; /* 헤더 텍스트 줄바꿈 방지 */
}

.members-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    white-space: nowrap; /* 셀 내용 줄바꿈 방지 */
}

.members-table tbody tr:hover {
    background: #f8f9fa;
}

.text-center {
    text-align: center;
}

.post-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.post-action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-outline-primary {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-outline-primary:hover {
    background: #3498db;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .branch-view {
        padding: 1rem;
    }
    
    .position-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .position-photo {
        width: 150px;
        height: 150px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .members-table {
        font-size: 0.85rem;
    }
    
    .members-table th,
    .members-table td {
        padding: 0.5rem;
    }
    
    /* 모바일에서 가로스크롤 강제 */
    .members-table-wrapper {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .members-table-wrapper::-webkit-scrollbar {
        height: 8px;
    }
    
    .members-table-wrapper::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .members-table-wrapper::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
    
    .members-table-wrapper::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

