/* Agent View Page Styles */

/* Agent Profile Card Styling */
.agent-profile-wrap .our-agent.theme-card {
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    position: relative;
    overflow: visible;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #f9f9f9 100%);
}

.agent-profile-wrap .our-agent.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ba8e3c 0%, #d4a853 50%, #ba8e3c 100%);
    border-radius: 8px 8px 0 0;
}

/* Agency Badge - Top Right */
.agent-profile-wrap .agency-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agent-profile-wrap .agency-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.agent-profile-wrap .agency-badge a {
    display: block;
    line-height: 0;
}

.agent-profile-wrap .agency-badge img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.agent-profile-wrap .agency-badge a:hover img {
    opacity: 0.85;
}

/* Mobile responsiveness for agency badge */
@media (max-width: 767px) {
    .agent-profile-wrap .agency-badge {
        position: static;
        margin-bottom: 20px;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
}

.agent-profile-wrap .our-agent-details h3 {
    margin-bottom: 8px;
    color: #2c3e50;
    position: relative;
    padding-left: 15px;
}

.agent-profile-wrap .our-agent-details h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(180deg, #ba8e3c 0%, #d4a853 100%);
    border-radius: 2px;
}

.agent-profile-wrap .our-agent-details h6 {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.agent-profile-wrap .our-agent-details ul {
    margin-bottom: 20px;
}

.agent-profile-wrap .our-agent-details ul li {
    transition: transform 0.2s ease;
}

.agent-profile-wrap .our-agent-details ul li:hover {
    transform: translateX(5px);
}

.agent-profile-wrap .our-agent-details .icons-square {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.agent-profile-wrap .our-agent-details ul li:hover .icons-square {
    background: linear-gradient(135deg, #ba8e3c 0%, #d4a853 100%);
    border-color: #ba8e3c;
}

.agent-profile-wrap .our-agent-details ul li:hover .icons-square svg {
    stroke: #ffffff;
}

.agent-profile-wrap .about-agent-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #ba8e3c;
}

.agent-profile-wrap .about-agent-section h5 {
    color: #2c3e50;
    font-weight: 600;
}

.agent-profile-wrap .agent-contact-button {
    position: relative;
}

.agent-profile-wrap .agent-contact-button .btn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(186, 142, 60, 0.2);
}

.agent-profile-wrap .agent-contact-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(186, 142, 60, 0.3);
}

.agent-profile-wrap .agent-contact-button .btn i {
    transition: transform 0.3s ease;
}

.agent-profile-wrap .agent-contact-button .btn:hover i {
    transform: scale(1.1);
}

/* Fix property image spacing - remove padding-top from property-grid */
.agent-property .property-grid .property-image {
    padding-top: 0 !important;
}

.agent-property .property-grid .property-image a {
    position: relative;
    display: block;
}

.agent-property .property-grid .property-image img.bg-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.agent-property .property-grid > [class*="col-"] {
    display: flex;
}

.agent-property .property-box {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.agent-property .property-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.agent-property .property-details .property-btn {
    margin-top: auto;
}
