.agent-profile {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.profile-card,
.objects-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.profile-card {
    position: relative;
    display: grid;
    gap: 14px;
    overflow: hidden;
    padding: 18px;
}

.profile-card::before {
    content: "";
    height: 4px;
    margin: -18px -18px 2px;
    background: linear-gradient(90deg, var(--site-bg-deep), var(--brand-cyan), var(--accent));
}

.profile-photo {
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--accent-dark);
    font-size: 72px;
    font-weight: 700;
}

.profile-card h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.08;
}

.profile-stat {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.profile-stat span {
    padding: 10px;
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    border: 1px solid rgba(216, 213, 204, 0.7);
    color: var(--muted);
    font-size: 13px;
}

.profile-stat strong {
    display: block;
    color: var(--ink);
    font-size: 22px;
}

.objects-panel {
    padding: 16px;
}

.objects-panel h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.property-list {
    display: grid;
    gap: 12px;
}

.property-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color 170ms ease, box-shadow 170ms ease;
}

.property-row:hover {
    border-color: var(--line-accent);
    box-shadow: var(--shadow-md);
}

.property-row__media {
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: var(--surface-tint);
    border-radius: var(--radius-md);
}

.property-row__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-row__body {
    display: grid;
    gap: 6px;
    align-content: start;
}

.property-row__price {
    font-size: 20px;
    font-weight: 700;
}

.property-row__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
}

.property-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.property-facts span {
    padding: 5px 8px;
    background: var(--surface-soft);
    border-radius: var(--radius-md);
}

.empty-state {
    padding: 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
    color: var(--muted);
    text-align: center;
}

@media (max-width: 900px) {
    .agent-profile {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .property-row {
        grid-template-columns: 1fr;
    }
}

/* Softer agent profile typography for Onest. */
.agent-profile h1,
.property-row__price {
    font-weight: 700;
}

.agent-profile__meta,
.property-row__title,
.property-facts span {
    font-weight: 600;
}
