/* ============================================
    Vendor Pages Styles
    - Consistent spacing like board pages
    - Applies to all vendor categories
============================================ */

/* Page Header - 게시판과 동일한 여백 */
.page-header {
    background: linear-gradient(135deg, #fef5f5 0%, #fff5f7 100%);
    padding: 60px 0 40px !important;
    margin-bottom: 0;
}

.page-header .page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 10px;
}

.page-header .page-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Category Navigation - 균일한 여백 */
.vendor-categories {
    background: #f8f9fa !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid #dee2e6;
}

.category-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.category-item:hover {
    background: #b8406a;
    color: white;
    border-color: #b8406a;
    transform: translateY(-2px);
}

.category-item.active {
    background: #b8406a;
    color: white;
    border-color: #b8406a;
}

.category-item i {
    font-size: 1.1rem;
}

/* Filter Section - 적절한 패딩 */
.vendor-filter {
    background: white;
    padding: 30px 0 !important;
    border-bottom: 1px solid #e9ecef;
}

.search-box .form-control {
    border: 2px solid #e9ecef;
    padding: 12px 20px;
    font-size: 1rem;
}

.search-box .form-control:focus {
    border-color: #b8406a;
    box-shadow: 0 0 0 0.2rem rgba(184, 64, 106, 0.15);
}

.search-box .btn-primary {
    background: #b8406a;
    border-color: #b8406a;
    padding: 12px 30px;
}

.search-box .btn-primary:hover {
    background: #a03658;
    border-color: #a03658;
}

.result-count {
    font-size: 0.95rem;
    color: #6c757d;
    margin-top: 10px;
}

.result-count .count {
    color: #b8406a;
    font-weight: 600;
}

.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 6px 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    background: #f8f9fa;
}

.filter-tag.active {
    background: #b8406a;
    color: white;
    border-color: #b8406a;
}

/* Vendor List Section - 게시판과 동일한 패딩 */
.vendor-list {
    padding: 50px 0 !important;
    background: #fafbfc;
}

/* Vendor Cards */
.vendor-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.vendor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.vendor-card a {
    text-decoration: none;
    color: inherit;
}

.vendor-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.vendor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vendor-card:hover .vendor-image img {
    transform: scale(1.05);
}

.vendor-badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

.vendor-info {
    padding: 20px;
}

.vendor-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vendor-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.vendor-location span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vendor-description {
    margin-bottom: 15px;
}

.vendor-description p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.vendor-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.vendor-rating .stars {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffc107;
}

.vendor-rating .review-count {
    color: #6c757d;
}

.vendor-contact .btn {
    width: 100%;
    padding: 8px;
    font-size: 0.9rem;
}

.vendor-contact .btn-outline-primary {
    border-color: #b8406a;
    color: #b8406a;
}

.vendor-contact .btn-outline-primary:hover {
    background: #b8406a;
    border-color: #b8406a;
    color: white;
}

/* No Results */
.no-results {
    padding: 60px 0;
}

.no-results h3 {
    color: #495057;
    margin-top: 20px;
}

/* Pagination */
.pagination {
    margin-top: 40px;
}

.pagination .page-link {
    color: #b8406a;
    border-color: #dee2e6;
    padding: 10px 15px;
}

.pagination .page-link:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background: #b8406a;
    border-color: #b8406a;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 30px !important;
    }
    
    .page-header .page-title {
        font-size: 1.5rem;
    }
    
    .vendor-categories {
        padding: 15px 0 !important;
    }
    
    .category-nav {
        gap: 8px;
    }
    
    .category-item {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
    
    .vendor-filter {
        padding: 20px 0 !important;
    }
    
    .vendor-list {
        padding: 30px 0 !important;
    }
    
    .vendor-card {
        margin-bottom: 20px;
    }
}

/* Apply to all vendor category pages */
.vendor-header,
.vendor-categories,
.vendor-filter,
.vendor-list {
    width: 100%;
}

/* Remove any extra side margins */
.container-fluid.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}