.agency-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: Arial, sans-serif;
}

/* Sidebar Filter Style */
.agency-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.agency-filter-box {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.agency-filter-box h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.filter-group {
    margin-bottom: 12px;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    background-color: #f9f9f9;
}

/* Content & Grid Style */
.agency-content {
    flex-grow: 1;
}

.agency-count {
    font-size: 18px;
    margin-bottom: 20px;
}

.agency-count strong {
    color: #c00;
}

.agency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.agency-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.agency-card-inner {
    text-decoration: none;
    color: inherit;
    display: block;
}

.agency-thumb {
    height: 180px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.agency-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.agency-title {
    font-size: 15px;
    font-weight: bold;
    color: #b30000;
    padding: 12px;
    margin: 0;
    text-align: center;
}

/* Single Page Style */
.agency-single-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 15px;
}

.agency-single-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.map-responsive iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 8px;
}
#agency-results .box-bounce .box-text {
    max-width: 100%;
    margin: 0;
    padding: 20px 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .agency-container {
        flex-direction: column;
    }
    .agency-sidebar {
        width: 100%;
    }
    .agency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}