.campus-filter-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.cf-filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.cf-reset-btn {
    padding: 10px 20px;
    background: #666;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.cf-reset-btn:hover {
    background: #333;
}

.campus-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.campus-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.campus-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.campus-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.campus-details {
    padding: 20px;
}

.campus-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.campus-taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
}

.campus-taxonomies span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #555;
}

.campus-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-top: 12px;
}

.cf-loading {
    text-align: center;
    padding: 50px;
    font-size: 16px;
    color: #666;
}

.cf-loading:after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.cf-no-results, .cf-error {
    text-align: center;
    padding: 50px;
    font-size: 16px;
    color: #999;
    background: #f9f9f9;
    border-radius: 8px;
}

.cf-error {
    color: #d32f2f;
    background: #ffebee;
}

.campus-province, .campus-department {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #555;
}

/* Keep existing styles and add these if not present */
.campus-city {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #e3f2fd;
    border-radius: 4px;
    color: #1976d2;
}

.campus-province {
    background: #e8f5e9;
    color: #388e3c;
}

.campus-department {
    background: #fff3e0;
    color: #f57c00;
}

/* Additional styles for custom fields */
.campus-branch-info {
    margin: 10px 0;
    padding: 8px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
}

.campus-branch-code,
.campus-branch-name {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    color: #555;
}

.campus-address {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.campus-phone {
    margin: 10px 0;
    font-size: 14px;
}

.campus-phone a {
    color: #1976d2;
    text-decoration: none;
}

.campus-phone a:hover {
    text-decoration: underline;
}

/* Import instruction styles */
.card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.cf-instruction {
    text-align: center;
    padding: 50px;
    font-size: 16px;
    color: #999;
    background: #f9f9f9;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .campus-results-grid {
        grid-template-columns: 1fr;
    }
}