/**
 * User Profile Styles
 * 
 * @package TM_Catalog
 * @author Templines
 * @link https://templines.com
 */

.tm-user-profile-page {
    padding:  0;
}


.tm-user-profile-page > .row{
    margin-right: 0;
    margin-left: 0;
}

.tm-user-profile-header {
    margin-bottom: 50px;
    padding-top: 240px;
    background: #eee;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
}

.tm-user-profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    display: none;
}

.tm-user-profile-header[style*="background-image"]::before {
    display: block;
}

.tm-user-profile-header .tm-agent-card {
    background: #fff;
    border-radius:0px;
    padding: 40px 30px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.tm-user-profile-header .tm-agent-card.has-trusted-badge {
    padding-top: 40px;
}

.tm-user-profile-header .tm-trusted-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e8f5e9;
    border-radius: 20px;
    padding: 8px 15px;
    z-index: 10;
}

.tm-user-profile-header .tm-trusted-badge-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tm-user-profile-header .tm-trusted-badge-text {
    color: #1e8e3e;
    font-size: 13px;
    font-weight: 600;
}

.tm-user-profile-header .tm-agent-left-column {
    display: block;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    margin-top: -100px;
}

.tm-user-profile-header .tm-agent-avatar {
    text-align: center;
    margin-bottom: 15px;
}

.tm-user-profile-header .tm-agent-avatar img {
    border-radius: 50%;
    width: 220px;
    height: 220px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tm-user-profile-header .tm-agent-info {
    text-align: center;
    margin-bottom: 0;
}

.tm-user-profile-header .tm-agent-name {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 700;
    color: #181a20;
    line-height: 1.6;
}

.tm-user-profile-header .tm-agent-since {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.tm-user-profile-header .tm-agent-middle-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

.tm-user-profile-header .tm-user-bio {
    margin-bottom: 0;
    padding: 0;
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

.tm-user-profile-header .tm-agent-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

.tm-user-profile-header .tm-agent-contacts {
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

.tm-user-profile-header .tm-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    font-size: 14px;
}

.tm-user-profile-header .tm-contact-icon {
    width: 20px;
    height: 20px;
    text-align: center;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tm-user-profile-header .tm-contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tm-user-profile-header .tm-contact-item a,
.tm-user-profile-header .tm-contact-item span {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.tm-user-profile-header .tm-contact-item a:hover {
    color: #0073aa;
}

.tm-user-profile-header .tm-agent-social,
.tm-user-profile-header .tm-agent-messengers {
    margin-bottom: 0;
}

.tm-agent-social{
    margin: 50px 0;
    margin-bottom: 40px !important;
}

.tm-user-profile-header .tm-social-title,
.tm-user-profile-header .tm-messengers-title {
    display: none;
}

.tm-user-profile-header .tm-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tm-user-profile-header .tm-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.tm-user-profile-header .tm-social-link span:first-child {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-user-profile-header .tm-social-link span:first-child svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tm-user-profile-header .tm-social-link span:last-child {
    display: none;
}

.tm-user-profile-header .tm-social-link:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Messenger Links */
.tm-user-profile-header .tm-messenger-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.tm-user-profile-header .tm-messenger-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    flex: 1;
    min-width: 200px;
}

.tm-user-profile-header .tm-messenger-link:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tm-user-profile-header .tm-messenger-link .tm-messenger-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.tm-user-profile-header .tm-messenger-link .tm-messenger-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tm-user-profile-header .tm-messenger-link .tm-messenger-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tm-user-profile-header .tm-messenger-link .tm-messenger-text {
    color: #2a3946;
    font-size: 14px;
    font-weight: 500;
    display: block;
}

.tm-user-profile-header .tm-messenger-link .tm-messenger-icon-additional {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.tm-user-profile-header .tm-messenger-link:hover .tm-messenger-icon-additional {
    opacity: 1;
}

.tm-user-profile-header .tm-messenger-link .tm-messenger-icon-additional svg {
    width: 100%;
    height: 100%;
    display: block;
}



.tm-user-profile-header .tm-agent-start-chat:focus {
    outline: none;
}

.tm-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
    text-align: center;
}

.tm-no-properties {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
}

.tm-pagination {
    margin-top: 40px;
}

.tm-pagination ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tm-pagination li {
    margin: 0;
}

.tm-pagination a,
.tm-pagination span {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tm-pagination a:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.tm-pagination .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.container-tm-user-properties{
    background-color: #FFF5ED87;
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .tm-user-profile-header .tm-agent-card {
        padding: 30px 20px 25px;
    }
    
    .tm-user-profile-header .tm-agent-avatar img {
        width: 120px;
        height: 120px;
    }
    
    .tm-user-profile-header .tm-agent-name {
        font-size: 26px;
    }
    
    .tm-user-profile-header .tm-agent-contacts {
        flex-direction: column;
        gap: 12px;
    }
    
    .tm-user-profile-header .tm-messenger-links {
        flex-direction: column;
    }
    
    .tm-user-profile-header .tm-messenger-link {
        width: 100%;
        min-width: auto;
    }
}
