/* Agent Profile Page Styles */

.full-row {
    padding: 80px 0;
}

/* Agent Profile Card */
.agent-profile-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Profile Image */
.agent-profile-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
}

.agent-profile-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Agent Header (Name & Badge) */
.agent-profile-header {
    padding: 25px 25px 20px;
    text-align: center;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.agent-profile-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.agent-badge {
    display: inline-block;
    background: rgba(23, 199, 136, 0.1);
    color: #17c788;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact List */
.agent-contact-list {
    padding: 25px;
    background: #ffffff;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item:first-child {
    padding-top: 0;
}

.contact-item i {
    font-size: 1.1rem;
    color: #17c788;
    margin-right: 15px;
    margin-top: 3px;
    min-width: 18px;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-info .label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    font-weight: 600;
}

.contact-info .value {
    font-size: 0.95rem;
    color: #333;
    word-break: break-word;
}

/* Agent Bio */
.agent-bio {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.agent-bio h4 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.agent-bio p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Properties Section */
.agent-properties h4 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.property-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-status {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #17c788;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
    text-transform: uppercase;
}

.property-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-details h5 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.property-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.property-location i {
    color: #17c788;
    margin-right: 5px;
}

.property-price {
    color: #17c788;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: auto;
}

.property-details .btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .full-row {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .agent-profile-header {
        padding: 20px;
    }
    
    .agent-profile-header h3 {
        font-size: 1.3rem;
    }
    
    .agent-contact-list {
        padding: 20px;
    }
    
    .property-image {
        height: 200px;
    }
    
    .full-row {
        padding: 40px 0;
    }
}


/* Agent Directory/Index Page Styles */

.agent-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.agent-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.agent-image {
    overflow: hidden;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: relative;
}

.agent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.agent-card:hover .agent-image img {
    transform: scale(1.05);
}

.agent-info {
    padding: 25px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-size: 1.4rem;
    color: #333333;
    margin-bottom: 8px;
    font-weight: 600;
}

.agent-title {
    display: inline-block;
    color: #17c788;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding: 6px 16px;
    background: rgba(23, 199, 136, 0.1);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-license,
.agent-email,
.agent-phone,
.agent-specialization,
.agent-experience {
    color: #666666;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-align: left;
}

.agent-license i,
.agent-email i,
.agent-phone i,
.agent-specialization i,
.agent-experience i {
    color: #17c788;
    margin-right: 8px;
    width: 16px;
    display: inline-block;
}

.agent-info .btn-primary {
    margin-top: auto;
    padding: 10px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    border-radius: 4px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination-wrapper .pagination {
    gap: 8px;
}

.pagination-wrapper .page-link {
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #17c788;
    border: 1px solid #e9ecef;
}

.pagination-wrapper .page-link:hover {
    background: #17c788;
    border-color: #17c788;
    color: #ffffff;
    transform: translateY(-2px);
}

.pagination-wrapper .page-item.active .page-link {
    background: #17c788;
    border-color: #17c788;
    color: #ffffff;
}

@media (max-width: 576px) {
    .agent-card {
        margin-bottom: 2rem;
    }
    
    .agent-image {
        height: 280px;
    }
    
    .agent-info {
        padding: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .agent-card {
        margin-bottom: 2rem;
    }
    
    .agent-image {
        height: 300px;
    }
}
