/**
 * OFast Pipeline — Public Agent Profile Page Styles
 *
 * Implements the clean, high-end 'Hoomeee' real estate UI:
 * - Soft off-white canvas with pure white elevated cards
 * - Big rounded property cover with 'Available' green pill
 * - Property specs overlay starts AFTER the overlapping squircle avatar
 * - Squircle avatar with thick white border overlapping the cover
 * - Agent name, OWNER tag, WhatsApp & Call buttons directly under the avatar
 * - 'Description' title, bio text, and authentic Client Account Social Media section beside avatar
 * - Clean marketplace property listings grid
 */

:root {
    --hoomeee-bg: #ffffff;
    --hoomeee-card: #ffffff;
    --hoomeee-text-main: #0f172a;
    --hoomeee-text-muted: #1e293b;
    --hoomeee-text-light: #475569;
    --hoomeee-green: #00875a;
    --hoomeee-green-light: rgba(0, 135, 90, 0.1);
    --hoomeee-border: #e2e8f0;
    --hoomeee-radius-card: 24px;
    --hoomeee-radius-inner: 20px;
    --hoomeee-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
}

body.ofp-agent-page-body {
    background-color: #ffffff;
    color: var(--hoomeee-text-main);
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Container ───────────────────────────────────────────────────────────── */
.ofp-agent-page-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Top Bar (Minimal Breadcrumb / User Tag) ─────────────────────────────── */
.ofp-agent-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.ofp-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ofp-topbar-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--hoomeee-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hoomeee-text-main);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ofp-topbar-back-btn:hover {
    background: #f8fafc;
    transform: translateX(-2px);
}

.ofp-topbar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--hoomeee-text-main);
    margin: 0;
    letter-spacing: -0.3px;
}

.ofp-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ofp-topbar-user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 6px 14px 6px 8px;
    border-radius: 30px;
    border: 1px solid var(--hoomeee-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.ofp-topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.ofp-topbar-user-info {
    display: flex;
    flex-direction: column;
}

.ofp-topbar-user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--hoomeee-text-main);
    line-height: 1.2;
}

.ofp-topbar-user-role {
    font-size: 11px;
    color: var(--hoomeee-green);
    font-weight: 600;
}

/* ── Main Showcase Card ──────────────────────────────────────────────────── */
.ofp-agent-showcase-card {
    background: var(--hoomeee-card);
    border-radius: var(--hoomeee-radius-card);
    box-shadow: var(--hoomeee-shadow);
    padding: 0 0 28px 0;
    margin-bottom: 28px;
    overflow: visible;
}

/* ── Featured Cover Banner (Full-Width Edge-to-Edge) ─────────────────────────── */
.ofp-cover-banner {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    box-shadow: inset 0 -130px 85px -20px rgba(0, 0, 0, 0.72);
    margin: 0;
}

.ofp-cover-banner-inner {
    max-width: 1240px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 24px 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

@media (max-width: 860px) {
    .ofp-cover-banner {
        height: 320px;
    }
    .ofp-cover-banner-inner {
        padding: 18px 16px;
    }
}

.ofp-cover-badge-available {
    align-self: flex-end;
    background: var(--hoomeee-green);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.35);
}

/* Bottom Image Overlay starts AFTER the 140px avatar so it is not obscured */
.ofp-cover-overlay-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    flex-wrap: wrap;
    gap: 16px;
}

.ofp-cover-meta-info {
    color: #ffffff;
    margin-left: 190px; /* Shifts text completely after the overlapping profile image */
    transition: margin-left 0.2s ease;
}

.ofp-cover-property-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.3px;
}

.ofp-cover-specs {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    flex-wrap: wrap;
}

.ofp-spec-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ofp-cover-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ofp-pagination-pill {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 860px) {
    .ofp-cover-meta-info {
        margin-left: 0;
        margin-bottom: 20px;
    }
}

/* ── Agent Content Split Row ─────────────────────────────────────────────── */
.ofp-agent-content-split {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    padding: 0 28px 12px;
}

@media (max-width: 860px) {
    .ofp-agent-content-split {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px 12px;
    }
}

/* ── Left Column: Overlapping Squircle Avatar & CTAs ─────────────────────── */
.ofp-agent-left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Squircle Avatar / Logo overlapping banner (Maintaining original 140px size, object-fit contain so logos are never cut off) */
.ofp-squircle-avatar-wrap {
    width: 140px;
    height: 140px;
    border-radius: 24px;
    background: #ffffff;
    border: 5px solid #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-top: -65px;
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ofp-avatar-verified-tick {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.ofp-squircle-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    display: block;
    background: #ffffff;
}

.ofp-agent-person-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--hoomeee-text-main);
    margin: 14px 0 14px;
    line-height: 1.25;
}

.ofp-agent-owner-badge {
    font-size: 12px;
    font-weight: 800;
    color: var(--hoomeee-green);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* ── WhatsApp & Call CTAs directly under the profile image ───────────────── */
.ofp-avatar-contact-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 14px;
}

.ofp-btn-avatar-cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ofp-btn-call {
    background: #111827;
    color: #ffffff;
}

.ofp-btn-call:hover {
    background: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.2);
}

.ofp-btn-whatsapp {
    background: #25D366;
    color: #ffffff;
}

.ofp-btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* Address & Info Details */
.ofp-agent-address-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 12px 0;
    border-top: 1px solid var(--hoomeee-border);
    margin-bottom: 12px;
}

.ofp-address-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--hoomeee-text-muted);
    word-break: break-all;
}

.ofp-address-row svg {
    color: var(--hoomeee-green);
    flex-shrink: 0;
}

/* ── Right Column: Description & Social Media from Client Account ────────── */
.ofp-agent-right-col {
    padding-top: 24px;
}

.ofp-desc-heading {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a !important;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.ofp-desc-heading span:not(.ofp-heading-bar) {
    color: #0f172a !important;
}

.ofp-desc-text {
    font-size: 16px !important;
    line-height: 1.85 !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    margin-bottom: 24px;
    letter-spacing: -0.011em;
    text-align: justify;
    text-justify: inter-word;
}

.ofp-desc-text p {
    margin: 0 0 14px !important;
    color: #0f172a !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    line-height: 1.85 !important;
    text-align: justify;
    text-justify: inter-word;
}

.ofp-desc-text p:last-child {
    margin-bottom: 0 !important;
}

/* ── Social Media Section (Replaces 3 Highlight Badges) ──────────────────── */
.ofp-social-media-section {
    padding-top: 20px;
    border-top: 1px solid var(--hoomeee-border);
}

.ofp-social-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--hoomeee-text-main);
    margin: 0 0 14px;
}

.ofp-social-icons-list {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ofp-social-bubble {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ofp-social-bubble:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.ofp-social-bubble.yt:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: #ffffff;
}

.ofp-social-bubble.ig:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
    color: #ffffff;
}

.ofp-social-bubble.tt:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.ofp-social-bubble.wa:hover {
    background: #25d366;
    border-color: #25d366;
    color: #ffffff;
}

.ofp-social-bubble.web:hover {
    background: var(--hoomeee-green);
    border-color: var(--hoomeee-green);
    color: #ffffff;
}

/* ── Minimal Clean Footer ────────────────────────────────────────────────── */
.ofp-clean-footer {
    margin-top: auto;
    padding: 60px 0 24px;
    text-align: center;
    font-size: 13px;
    color: var(--hoomeee-text-muted);
    border-top: 1px solid var(--hoomeee-border);
}

.ofp-clean-footer p {
    margin: 0;
    line-height: 1.6;
}

/* ── Clean Neutral White Canvas & Cards ──────────────────────────────────── */
body.ofp-agent-page-body {
    background-color: #ffffff !important;
    color: #0f172a;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ofp-agent-showcase-card {
    background: #ffffff !important;
    border-radius: var(--hoomeee-radius-card);
    box-shadow: var(--hoomeee-shadow);
    padding: 0 0 28px 0 !important;
    margin-bottom: 28px;
    border: 1px solid var(--hoomeee-border);
    overflow: visible !important;
}

.ofp-properties-section-card {
    background: #ffffff !important;
    border: 1px solid var(--hoomeee-border);
}


/* ── Dark Mode Overrides for Agent Profile ───────────────────────────────── */
html.dark body.ofp-agent-page-body {
    background-color: #020617 !important;
    color: #f1f5f9 !important;
}

html.dark .ofp-agent-showcase-card {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
    padding: 0 0 28px 0 !important;
    overflow: visible !important;
}

html.dark .ofp-properties-section-card {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

html.dark .ofp-squircle-avatar-wrap {
    background-color: #ffffff !important;
    border: 5px solid #1e293b !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
}

html.dark .ofp-squircle-avatar-img {
    background-color: #ffffff !important;
}

html.dark .ofp-avatar-verified-tick {
    border-color: #ffffff !important;
}

html.dark .ofp-agent-person-name {
    color: #ffffff !important;
}

html.dark .ofp-address-row {
    color: #94a3b8 !important;
}

html.dark .ofp-agent-address-info {
    border-color: #1e293b !important;
}

html.dark .ofp-desc-text,
html.dark .ofp-desc-text p {
    color: #ffffff !important;
}

html.dark .ofp-desc-heading span:not(.ofp-heading-bar) {
    color: #ffffff !important;
}

html.dark .ofp-social-card-title {
    color: #ffffff !important;
}

html.dark .ofp-social-media-section {
    border-top-color: #1e293b !important;
}

html.dark .ofp-social-bubble {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html.dark .ofp-social-bubble:hover {
    transform: translateY(-3px);
    color: #ffffff !important;
}

html.dark .ofp-social-bubble.yt:hover {
    background: #ff0000 !important;
    border-color: #ff0000 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.45) !important;
}

html.dark .ofp-social-bubble.ig:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(214, 36, 159, 0.45) !important;
}

html.dark .ofp-social-bubble.tt:hover {
    background: #000000 !important;
    border-color: #00f2fe !important;
    color: #ffffff !important;
    box-shadow: -2px -2px 10px rgba(0, 242, 254, 0.6), 2px 2px 10px rgba(254, 44, 85, 0.6) !important;
}

html.dark .ofp-social-bubble.wa:hover {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45) !important;
}

html.dark .ofp-social-bubble.web:hover {
    background: #00875a !important;
    border-color: #00875a !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 135, 90, 0.45) !important;
}

html.dark .ofp-social-bubble:hover svg {
    color: #ffffff !important;
}

html.dark .ofp-properties-section-card .bg-white {
    background-color: #0b1120 !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

html.dark .ofp-properties-section-card a.text-slate-900,
html.dark .ofp-properties-section-card h3.text-slate-900,
html.dark .ofp-properties-section-card span.text-slate-900 {
    color: #ffffff !important;
}

html.dark .ofp-properties-section-card .border-slate-100 {
    border-color: #1e293b !important;
}

html.dark .ofp-properties-section-card .text-slate-600,
html.dark .ofp-properties-section-card .text-slate-500 {
    color: #94a3b8 !important;
}

/* ── Dark Mode Footer Support ────────────────────────────────────────────── */
html.dark footer {
    background-color: #020617 !important;
    border-color: #1e293b !important;
    color: #94a3b8 !important;
}

html.dark footer .border-b,
html.dark footer .border-t {
    border-color: #1e293b !important;
}

html.dark footer h3,
html.dark footer h4,
html.dark footer span.text-slate-900 {
    color: #f8fafc !important;
}

html.dark footer p,
html.dark footer ul,
html.dark footer span:not(.text-slate-900):not(.text-emerald-600):not(.text-emerald-400) {
    color: #94a3b8 !important;
}

html.dark footer a {
    color: #94a3b8 !important;
}

html.dark footer a:hover {
    color: #ffffff !important;
}

html.dark footer input[type="email"] {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}

html.dark footer input[type="email"]::placeholder {
    color: #64748b !important;
}

html.dark .ofp-clean-footer {
    border-color: #1e293b !important;
    color: #94a3b8 !important;
}
