﻿
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

.agent-details-page {
    --navy: #071b2d;
    --navy-light: #0d2b42;
    --green: #0d5c4a;
    --green-light: #13745e;
    --green-soft: #e8f1ee;
    --white: #ffffff;
    --background: #f4f7f6;
    --text: #182630;
    --muted: #73818a;
    --border: #e1e9e6;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: "Vazirmatn", sans-serif;
}

.details-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.agent-profile-hero {
    padding: 55px 0 100px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.profile-card {
    padding: 30px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(7, 27, 45, .16);
}

.profile-main {
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-image {
    width: 125px;
    height: 125px;
    min-width: 125px;
    overflow: hidden;
    border-radius: 28px;
    background: var(--green-soft);
}

    .profile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: #fff;
    font-size: 48px;
    font-weight: 700;
}

.profile-info {
    flex: 1;
}

.profile-label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 11px;
    border-radius: 20px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 11px;
}

.profile-info h1 {
    margin: 0 0 13px;
    color: var(--navy);
    font-size: 30px;
    font-weight: 800;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

    .profile-meta span {
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--muted);
        font-size: 12px;
    }

    .profile-meta b {
        color: var(--green);
        font-size: 15px;
    }

.profile-bio {
    margin-top: 28px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

    .profile-bio h3 {
        margin: 0 0 10px;
        color: var(--navy);
        font-size: 16px;
    }

    .profile-bio p {
        margin: 0;
        color: #65747d;
        font-size: 13px;
        line-height: 2.2;
        white-space: pre-line;
    }

.stats-section {
    position: relative;
    z-index: 3;
    margin-top: -55px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.big-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(7, 27, 45, .07);
}

.stat-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 20px;
}

.big-stat strong {
    display: block;
    color: var(--navy);
    font-size: 21px;
}

.big-stat span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.agent-properties-section {
    margin-top: 32px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-eyebrow {
    display: block;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}

.section-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: 25px;
    font-weight: 900;
}

.property-count {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.property-card {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(7, 27, 45, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .property-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 35px rgba(7, 27, 45, 0.11);
    }

.property-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #edf2f0;
}

    .property-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.property-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #edf3f0, #dfe9e5);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.property-listing-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}

.sale-badge,
.rent-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 10px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.sale-badge {
    background: var(--navy);
}

.rent-badge {
    background: var(--green);
}

.property-content {
    padding: 20px;
}

.property-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

    .property-top h3 {
        margin: 0;
        color: var(--navy);
        font-size: 19px;
        font-weight: 900;
        line-height: 1.6;
    }

.property-city {
    flex-shrink: 0;
    padding: 5px 9px;
    border-radius: 8px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
}

.property-address {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 13px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.property-icon {
    flex-shrink: 0;
    color: var(--green);
    font-size: 17px;
    line-height: 1.5;
}

.property-description {
    display: -webkit-box;
    margin: 0 0 17px;
    overflow: hidden;
    color: #61707a;
    font-size: 13px;
    line-height: 1.9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.property-price-box {
    margin-top: 16px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8faf9;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

    .price-row + .price-row {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }

.price-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.price-row strong {
    color: var(--green);
    font-size: 15px;
    font-weight: 900;
    text-align: left;
}

.price-row small {
    font-size: 10px;
    font-weight: 700;
}

.property-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin-top: 16px;
    border-radius: 12px;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .property-details-btn:hover {
        background: var(--green);
        color: var(--white);
    }

    .property-details-btn span {
        font-size: 17px;
    }

.empty-properties {
    padding: 60px 20px;
    border: 1px dashed var(--border);
    border-radius: 20px;
    background: var(--white);
    text-align: center;
}

.empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    font-size: 25px;
}

.empty-properties h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 18px;
}

.empty-properties p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 1100px) {
    .properties-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

        .section-heading h2 {
            font-size: 21px;
        }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .property-image {
        aspect-ratio: 1 / 1;
    }

    .property-content {
        padding: 17px;
    }

    .property-top h3 {
        font-size: 17px;
    }
}

.no-properties {
    padding: 70px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
}

    .no-properties > div {
        width: 65px;
        height: 65px;
        margin: 0 auto 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--green-soft);
        color: var(--green);
        font-size: 28px;
    }

    .no-properties h3 {
        margin: 0 0 8px;
        color: var(--navy);
        font-size: 16px;
    }

    .no-properties p {
        margin: 0;
        color: var(--muted);
        font-size: 11px;
    }

.back-to-agents {
    padding: 10px 0 55px;
}

    .back-to-agents a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--green);
        font-size: 12px;
        text-decoration: none;
    }

        .back-to-agents a span {
            font-size: 17px;
        }

@media (max-width: 1000px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .details-container {
        width: calc(100% - 24px);
    }

    .agent-profile-hero {
        padding: 35px 0 80px;
    }

    .profile-card {
        padding: 20px;
    }

    .profile-main {
        align-items: flex-start;
    }

    .profile-image {
        width: 85px;
        height: 85px;
        min-width: 85px;
        border-radius: 19px;
    }

    .profile-placeholder {
        font-size: 34px;
    }

    .profile-info h1 {
        font-size: 22px;
    }

    .profile-meta {
        flex-direction: column;
        gap: 7px;
    }

    .stats-section {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .big-stat {
        padding: 13px;
        gap: 9px;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .big-stat strong {
        font-size: 17px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .details-container {
        width: calc(100% - 20px);
    }

    .profile-main {
        flex-direction: column;
    }

    .profile-image {
        width: 90px;
        height: 90px;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        gap: 10px;
    }

        .section-heading h2 {
            font-size: 20px;
        }

    .property-image {
        height: 210px;
    }
}

.agent-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--green-soft);
    color: var(--green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    direction: ltr;
}

    .agent-phone:hover {
        background: var(--green);
        color: var(--white);
    }

