/* v7/company/index.css - 업소록 목록 페이지 스타일 */

.v7-company-list-page {
    padding: 0;
}

/* 헤더 */
.company-list-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 2px solid #7f1d1d;
    margin-bottom: 16px;
}

.company-list-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #7f1d1d;
    margin: 0;
    white-space: nowrap;
}

.company-list-meta {
    font-size: 0.8em;
    color: #888;
    white-space: nowrap;
}

.company-edit-btn {
    margin-left: auto;
    padding: 6px 14px;
    background: #7f1d1d;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.company-edit-btn:hover {
    background: #dc2626;
    color: #fff;
}

/* 카테고리 필터 */
.company-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    padding: 10px 0;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.78em;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-chip:hover {
    border-color: #7f1d1d;
    color: #7f1d1d;
    background: rgba(127, 29, 29, 0.05);
}

.category-chip-active {
    background: #7f1d1d;
    color: #fff;
    border-color: #7f1d1d;
}

.category-chip-active:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

/* 업소 목록 그리드 */
.company-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* 업소 카드 */
.company-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.company-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #7f1d1d;
}

.company-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f3f4f6;
}

.company-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: #ccc;
    background: #f9fafb;
}

.company-card-body {
    padding: 12px;
}

.company-card-name {
    font-size: 0.95em;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-card-title {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-card-meta {
    display: flex;
    gap: 10px;
    font-size: 0.75em;
    color: #888;
}

.company-card-category i,
.company-card-location i {
    margin-right: 2px;
}

/* 에러/빈 상태 */
.company-list-error {
    padding: 2rem;
    text-align: center;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 8px;
}

.company-list-empty {
    padding: 3rem;
    text-align: center;
    color: #999;
}

.company-list-empty p {
    margin-top: 12px;
}

/* 페이지네이션 (post/list.css와 동일 패턴) */
.company-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 24px;
    padding: 16px 0;
}

.company-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    font-size: 0.85em;
    transition: all 0.2s;
}

.company-pagination .page-link:hover {
    border-color: #7f1d1d;
    color: #7f1d1d;
}

.company-pagination .page-current {
    background: #7f1d1d;
    color: #fff;
    border-color: #7f1d1d;
}

/* 반응형 */
@media (max-width: 991px) {
    .company-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .company-card-image {
        height: 130px;
    }

    .company-list-header {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .company-list-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .company-card-image {
        height: 110px;
    }

    .company-card-body {
        padding: 8px;
    }

    .company-card-name {
        font-size: 0.85em;
    }

    .company-card-meta {
        flex-direction: column;
        gap: 2px;
    }
}
