/* Base Reset & Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f8;
    color: #333;
    line-height: 1.5;
    padding: 2rem 1rem;
}

.directory-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Listing Card Container */
.listing-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border-top: 4px solid #004b87; /* Professional corporate blue accent */
}

/* Header */
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.company-name {
    font-size: 1.75rem;
    color: #111;
}

.category-badge {
    background-color: #e2e8f0;
    color: #2d3748;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Grid Layout for Info Sections */
.listing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .listing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.info-group h3, .brands-section h3 {
    font-size: 1.1rem;
    color: #004b87;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 0.25rem;
}

.info-group p {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.sales-box {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #004b87;
}

.contact-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a202c;
}

/* Brands Section */
.brands-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eaeaea;
}

.brand-badges {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.brand-badge {
    background-color: #004b87;
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.brand-badge:hover {
    background-color: #00335b;
}

/* Tags Footer */
.categories-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed #eaeaea;
    display: flex;
    gap: 0.5rem;
}

.tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.sales-section-wrapper {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eaeaea;
}

.sales-reps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.territory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 0.35rem;
}

.territory-tag {
    font-weight: 700;
    color: #004b87;
    font-size: 0.95rem;
}

.coverage-text {
    font-size: 0.8rem;
    color: #64748b;
}

.no-rep-assigned {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}