.agents-page {
    padding-bottom: 80px;
    background-color: transparent;
}

.agents-page .page-header {
    background-color: #fff;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    margin-bottom: 40px;
}

.agents-page .page-header h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
}

.agents-page .page-header .highlight {
    color: #1d70b8;
}

.agents-page .container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

/* City Filter Bar */
.city-filter-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.city-filter-bar span {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.city-filter-bar span i {
    color: #1d70b8;
}

#agent-city-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.city-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.city-btn:hover {
    border-color: #1d70b8;
    color: #1d70b8;
}

.city-btn.active {
    background: #1d70b8;
    color: #fff;
    border-color: #1d70b8;
}

/* Agents Grid */
.agents-directory-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    font-size: 20px;
    color: #1d70b8;
}

/* Agent Card Styles */
.dir-agent-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    animation: fadeInSlide 0.5s ease forwards;
    position: relative;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.dir-agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.dir-agent-profile {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px auto;
}

.dir-agent-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f0f7fc;
}

.verified-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    border: 2px solid #fff;
}

.dir-agent-details h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #222;
}

.firm-name {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #777;
}

.agent-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
}

.agent-stats .rating i {
    color: #fbbc04;
}

.agent-stats .exp i {
    color: #333;
}

.agent-loc {
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
}

.agent-loc i {
    color: #1d70b8;
}

.dir-agent-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.call-btn {
    background: #f0f7fc;
    color: #1d70b8;
    border: 1px solid #cce1f0;
}

.call-btn:hover {
    background: #1d70b8;
    color: #fff;
}

.message-btn {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.message-btn:hover {
    background: #2e7d32;
    color: #fff;
}

/* Responsive */
@media (max-width: 1300px) {
    .agents-directory-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
    .agents-directory-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .agents-directory-grid { grid-template-columns: repeat(2, 1fr); }
    .city-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 480px) {
    .agents-directory-grid { grid-template-columns: 1fr; }
}
