.store-locator {
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Search Bar Container */
.search-bar-container {
    background-color: #005775; /* Primary color */
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar-container label {
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 500;
}

.search-bar-container select,
.search-bar-container input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 0.9rem;
    color: #555;
    background-color: white;
    outline: none;
}

.search-bar-container select {
    min-width: 160px;
    cursor: pointer;
}

.search-group {
    position: relative;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.search-group input {
    width: 100%;
    padding-right: 30px;
}

.search-icon {
    position: absolute;
    right: 8px;
    color: #aaa;
    pointer-events: none;
    display: flex;
    align-items: center;
    border-left: 1px solid #ccc;
    padding-left: 8px;
}

/* Results Container */
.results-container {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 2px;
}

.results-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.store-card {
    border: 1px solid #eaeaea;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.store-name {
    margin-bottom: 20px;
    width: 100%;
}

.store-name a {
    color: #005775;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    font-style: italic;
    border-bottom: 1px solid #000000;
    padding-bottom: 3px;
    display: inline-block;
    text-transform: uppercase;
}

.store-name a:hover {
    color: #00435a;
    border-bottom-color: #00435a;
}

.store-details {
    color: #555;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
    text-transform: uppercase;
}

.store-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    line-height: 1.4;
    text-align: center;
}

.store-detail-row span {
    text-align: center;
}

.detail-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #f24e2c; /* Classic pop of color for the icons */
    margin-top: 2px;
}

.store-phone {
    font-weight: 600;
    color: #444;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-btn {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: #eee;
}

.page-btn.active {
    background: #005775;
    color: white;
    border-color: #005775;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading, .no-results, .error-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
}

.error-message {
    color: #005775;
}

/* National Suppliers */
.national-suppliers-container {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 2px;
}

.national-suppliers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

.national-suppliers-header h3 {
    margin: 0;
    color: #005775;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.hide-suppliers-toggle {
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.national-suppliers-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.hidden-suppliers .national-suppliers-grid {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
}

.supplier-logo-card {
    border: 1px solid #eaeaea;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    background: transparent;
    height: 120px;
}

.supplier-logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 1000px) {
    .results-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .national-suppliers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 800px) {
    .search-bar-container {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group {
        flex-wrap: wrap;
    }
    .search-bar-container select {
        flex: 1;
    }
    .national-suppliers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .results-list {
        grid-template-columns: 1fr;
    }
    .national-suppliers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
