/*
 * Single employee / agent profile — matches header-v2 + archive-employee palette
 */

.employee-single-wrap {
    --employee-bg: #f7f7f7;
    --employee-card-bg: #ffffff;
    --employee-text: #1c1c1c;
    --employee-muted: rgba(28, 28, 28, 0.65);
    --employee-accent: #EF4444;
    --employee-accent-hover: #FF6B6B;
    --employee-border: rgba(28, 28, 28, 0.08);
    --employee-dark: #1c1c1c;
    --employee-max-width: 1400px;

    background: var(--employee-bg);
    color: var(--employee-text);
    padding: 32px 0 80px;
}

.employee-single-inner {
    max-width: var(--employee-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.employee-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--employee-muted);
    transition: color 0.2s ease;
}

.employee-back-button:hover {
    color: var(--employee-accent);
}

.employee-back-button__arrow {
    font-size: 16px;
    line-height: 1;
}

.employee-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    background: var(--employee-card-bg);
    border: 1px solid var(--employee-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 40px;
}

.employee-hero__photo {
    aspect-ratio: 4 / 5;
    background: #e8e8e8;
    overflow: hidden;
}

.employee-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.employee-hero__image--placeholder {
    background: linear-gradient(135deg, #d4d4d4 0%, #ececec 50%, #d4d4d4 100%);
}

.employee-hero__content {
    padding: 8px 24px 32px;
    display: flex;
    flex-direction: column;
}

.employee-hero__role {
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--employee-accent);
    margin: 0 0 10px;
}

.employee-hero__name {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 10px;
    color: var(--employee-text);
}

.employee-hero__designations,
.employee-hero__office {
    font-family: Inter, Montserrat, system-ui, sans-serif;
    font-size: 15px;
    color: var(--employee-muted);
    margin: 0 0 6px;
}

.employee-hero__contact {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.employee-hero__contact li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.employee-hero__label {
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--employee-muted);
}

.employee-hero__contact a,
.employee-hero__contact span:not(.employee-hero__label) {
    font-family: Inter, Montserrat, system-ui, sans-serif;
    font-size: 16px;
    color: var(--employee-text);
    text-decoration: none;
    word-break: break-word;
}

.employee-hero__contact a:hover {
    color: var(--employee-accent);
}

.employee-hero__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.employee-hero__social-link {
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--employee-text);
    border: 1px solid var(--employee-border);
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.employee-hero__social-link:hover {
    background: var(--employee-accent);
    border-color: var(--employee-accent);
    color: #fff;
}

.employee-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    align-self: flex-start;
    padding: 14px 22px;
    background: var(--employee-dark);
    color: #fff;
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.employee-hero__cta:hover {
    background: var(--employee-accent);
    color: #fff;
}

.employee-section-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--employee-text);
}

.employee-bio {
    background: var(--employee-card-bg);
    border: 1px solid var(--employee-border);
    border-radius: 4px;
    padding: 32px 28px;
    margin-bottom: 40px;
}

.employee-bio__content {
    font-family: Inter, Montserrat, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--employee-muted);
}

.employee-bio__content p:first-child {
    margin-top: 0;
}

.employee-bio__content p:last-child {
    margin-bottom: 0;
}

.employee-listings {
    margin-bottom: 24px;
}

.employee-listings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.employee-listing-card {
    background: var(--employee-card-bg);
    border: 1px solid var(--employee-border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.employee-listing-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.employee-listing-card__image-link {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8e8e8;
}

.employee-listing-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.employee-listing-card:hover .employee-listing-card__image {
    transform: scale(1.03);
}

.employee-listing-card__image--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4d4d4 0%, #ececec 50%, #d4d4d4 100%);
}

.employee-listing-card__content {
    padding: 18px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.employee-listing-card__status {
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--employee-accent);
}

.employee-listing-card__title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.employee-listing-card__title a {
    color: var(--employee-text);
    text-decoration: none;
}

.employee-listing-card__title a:hover {
    color: var(--employee-accent);
}

.employee-listing-card__price {
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--employee-text);
}

.employee-listing-card__address,
.employee-listing-card__type {
    font-family: Inter, Montserrat, system-ui, sans-serif;
    font-size: 14px;
    color: var(--employee-muted);
}

.employee-listings-empty {
    font-family: Inter, Montserrat, system-ui, sans-serif;
    font-size: 16px;
    color: var(--employee-muted);
    background: var(--employee-card-bg);
    border: 1px solid var(--employee-border);
    border-radius: 4px;
    padding: 28px;
    margin: 0;
}

@media (min-width: 768px) {
    .employee-hero {
        grid-template-columns: minmax(280px, 380px) 1fr;
        align-items: stretch;
    }

    .employee-hero__content {
        padding: 36px 40px 40px 8px;
        justify-content: center;
    }

    .employee-hero__photo {
        aspect-ratio: auto;
        min-height: 420px;
    }

    .employee-listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .employee-single-wrap {
        padding: 48px 0 96px;
    }

    .employee-listings-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}
