/* Premium Realtors Page Styling */

.realtors-page {
    padding: 60px 0 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
    min-height: 80vh;
}

.realtors-header {
    text-align: center;
    margin-bottom: 50px;
}

.realtors-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.realtors-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.realtors-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layout */
.realtors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Premium Card */
.realtor-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.realtor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s;
}

.realtor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(0, 47, 95, 0.12);
    border-color: rgba(197, 160, 89, 0.4);
}

.realtor-card:hover::before {
    opacity: 1;
}

/* Rank Badge */
.realtor-rank-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 2;
}

/* Rank Highlights (Podium) */
.realtor-rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
    color: #fff;
    border: 2px solid #fff;
}

.realtor-rank-2 {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    color: #0f172a;
    border: 2px solid #fff;
}

.realtor-rank-3 {
    background: linear-gradient(135deg, #ed8936 0%, #c05621 100%);
    color: #fff;
    border: 2px solid #fff;
}

.realtor-rank-other {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Avatar */
.realtor-avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 10px auto 20px auto;
}

.realtor-card-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.realtor-card:hover .realtor-card-avatar {
    transform: scale(1.05);
}

/* Body Info */
.realtor-info-body {
    margin-bottom: 25px;
    flex-grow: 1;
}

.realtor-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.realtor-card-company {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Performance Stats Widget */
.realtor-stats-widget {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 6px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.realtor-stat-box {
    text-align: center;
}

.realtor-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
}

.realtor-stat-label {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 2px;
}

/* Card Button */
.realtor-card-btn {
    display: block;
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 47, 95, 0.15);
}

.realtor-card-btn:hover {
    background: var(--accent-color);
    color: #0f172a;
    box-shadow: 0 6px 15px rgba(197, 160, 89, 0.25);
    transform: translateY(-1px);
}

.realtor-card:hover .realtor-card-btn {
    background: var(--accent-color);
    color: #0f172a;
    box-shadow: 0 6px 15px rgba(197, 160, 89, 0.25);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .realtors-page {
        padding: 40px 0 60px 0;
    }
    .realtors-header h1 {
        font-size: 2rem;
    }
    .realtors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
