/* ==========================================================================
   ESTATEOS VENDOR / DEVELOPER DETAILS PAGE STYLESHEET
   Modern Luxury Real Estate Broker & Developer Profile Hub
   ========================================================================== */

:root {
    --estate-primary: #2563eb;
    --estate-primary-hover: #1d4ed8;
    --estate-primary-light: #eff6ff;
    --estate-dark: #0f172a;
    --estate-slate: #1e293b;
    --estate-muted: #64748b;
    --estate-light: #f8fafc;
    --estate-green: #10b981;
    --estate-purple: #9333ea;
    --estate-border: #e2e8f0;
    --estate-border-light: #f1f5f9;
    --estate-card-bg: #ffffff;
    --estate-radius-lg: 24px;
    --estate-radius-md: 16px;
    --estate-radius-sm: 10px;
}

.estate-vendor-details-wrapper {
    background: #f8fafc;
    min-height: 100vh;
    padding-top: 30px;
    padding-bottom: 90px;
}

/* --------------------------------------------------------------------------
   1. Action Bar & Breadcrumbs
   -------------------------------------------------------------------------- */
.estate-vendor-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.estate-breadcrumb-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--estate-dark);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.estate-breadcrumb-back:hover {
    color: var(--estate-primary);
}

.estate-breadcrumb-back .back-arrow-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--estate-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.estate-breadcrumb-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--estate-muted);
}

/* --------------------------------------------------------------------------
   2. Vendor Hero Profile Card
   -------------------------------------------------------------------------- */
.estate-vendor-hero-card {
    background: #ffffff;
    border: 1px solid var(--estate-border);
    border-radius: var(--estate-radius-lg);
    padding: 36px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    margin-bottom: 36px;
}

.estate-vendor-hero-content {
    display: flex;
    align-items: center;
    gap: 32px;
} 

.estate-vendor-avatar-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
}

.estate-vendor-avatar {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.estate-vendor-verified-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--estate-primary);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.estate-vendor-info-box {
    flex-grow: 1;
}

.estate-vendor-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.estate-badge-pill {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.estate-badge-pill.primary {
    background: #eff6ff;
    color: var(--estate-primary);
    border: 1px solid #bfdbfe;
}

.estate-badge-pill.dark {
    background: #0f172a;
    color: #ffffff;
}

.estate-vendor-name {
    font-size: 30px;
    font-weight: 800;
    color: var(--estate-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 8px;
}

.estate-vendor-meta-list {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--estate-muted);
    margin-bottom: 20px;
}

.estate-vendor-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.estate-vendor-meta-item i {
    color: var(--estate-primary);
}

/* Direct Action Buttons */
.estate-vendor-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.estate-btn-pill-action {
    height: 42px;
    padding: 0 20px;
    border-radius: 24px;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
}

.estate-btn-pill-action.primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.estate-btn-pill-action.primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.estate-btn-pill-action.outline {
    background: #ffffff;
    border: 1.5px solid var(--estate-border);
    color: var(--estate-dark) !important;
}

.estate-btn-pill-action.outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   3. Key Portfolio Metrics Strip
   -------------------------------------------------------------------------- */
.estate-vendor-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--estate-border-light);
}

.estate-metric-card {
    background: #f8fafc;
    border: 1px solid var(--estate-border-light);
    border-radius: var(--estate-radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.estate-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.estate-metric-icon.blue {
    background: #eff6ff;
    color: var(--estate-primary);
}

.estate-metric-icon.purple {
    background: #faf5ff;
    color: var(--estate-purple);
}

.estate-metric-icon.green {
    background: #ecfdf5;
    color: var(--estate-green);
}

.estate-metric-icon.orange {
    background: #fff7ed;
    color: #ea580c;
}

.estate-metric-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    font-size: 20px;
    font-weight: 800;
    color: var(--estate-dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.estate-metric-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--estate-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   4. Portfolio Navigation Tabs
   -------------------------------------------------------------------------- */
.estate-portfolio-nav-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.estate-portfolio-nav-wrap::-webkit-scrollbar {
    display: none;
}

.estate-portfolio-tab-btn {
    background: #ffffff;
    border: 1.5px solid var(--estate-border);
    color: var(--estate-muted);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    outline: none;
}

.estate-portfolio-tab-btn:hover {
    color: var(--estate-dark);
    border-color: #cbd5e1;
}

.estate-portfolio-tab-btn.active {
    background: var(--estate-dark);
    color: #ffffff;
    border-color: var(--estate-dark);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.estate-portfolio-tab-btn .tab-count-badge {
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}

.estate-portfolio-tab-btn.active .tab-count-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Category Filter Sub-Tabs */
.estate-category-filter-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.estate-cat-pill-btn {
    background: #f1f5f9;
    border: 1px solid transparent;
    color: var(--estate-muted);
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.estate-cat-pill-btn:hover {
    color: var(--estate-dark);
    background: #e2e8f0;
}

.estate-cat-pill-btn.active {
    background: var(--estate-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* --------------------------------------------------------------------------
   5. Projects & Agents Luxury Cards
   -------------------------------------------------------------------------- */
.estate-vendor-projects-grid,
.estate-vendor-agents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Project Card */
.estate-vendor-project-card {
    background: #ffffff;
    border: 1px solid var(--estate-border);
    border-radius: var(--estate-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.estate-vendor-project-card:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: 0 16px 32px -10px rgba(37, 99, 235, 0.12);
}

.estate-vendor-project-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.estate-vendor-project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.estate-vendor-project-card:hover .estate-vendor-project-img {
    transform: scale(1.04);
}

/* Agent Card */
.estate-vendor-agent-card {
    background: #ffffff;
    border: 1px solid var(--estate-border);
    border-radius: var(--estate-radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    transition: all 0.3s ease;
}

.estate-vendor-agent-card:hover {
    transform: translateY(-3px);
    border-color: #93c5fd;
    box-shadow: 0 12px 28px -10px rgba(37, 99, 235, 0.12);
}

.estate-vendor-agent-avatar {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    object-fit: cover;
    flex-shrink: 0;
}

.estate-vendor-agent-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--estate-dark);
    margin-bottom: 2px;
}

.estate-vendor-agent-role {
    font-size: 12.5px;
    color: var(--estate-muted);
    margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   6. About Narrative Section
   -------------------------------------------------------------------------- */
.estate-vendor-about-card {
    background: #ffffff;
    border: 1px solid var(--estate-border);
    border-radius: var(--estate-radius-md);
    padding: 32px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.estate-vendor-about-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--estate-dark);
    margin-bottom: 14px;
}

.estate-vendor-about-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   7. Sticky Sidebar Contact Card
   -------------------------------------------------------------------------- */
.estate-vendor-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--estate-border);
    border-radius: var(--estate-radius-lg);
    padding: 28px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    position: sticky;
    top: 90px;
}

.estate-vendor-sidebar-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--estate-dark);
    margin-bottom: 6px;
}

.estate-vendor-sidebar-subtitle {
    font-size: 13px;
    color: var(--estate-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.estate-vendor-input-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--estate-dark);
    margin-bottom: 6px;
    display: block;
}

.estate-vendor-input-control {
    width: 100%;
    height: 44px;
    padding: 8px 14px;
    background: #f8fafc;
    border: 1.5px solid var(--estate-border);
    border-radius: var(--estate-radius-sm);
    font-size: 13.5px;
    color: var(--estate-dark);
    transition: all 0.2s ease;
    outline: none;
    margin-bottom: 14px;
}

textarea.estate-vendor-input-control {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

.estate-vendor-input-control:focus {
    background: #ffffff;
    border-color: var(--estate-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.estate-vendor-btn-submit {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: var(--estate-radius-sm);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.25s ease;
    cursor: pointer;
}

.estate-vendor-btn-submit:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   8. Mobile First Responsive Overrides
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .estate-vendor-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .estate-vendor-avatar-wrap {
        margin: 0 auto;
    }

    .estate-vendor-badges-row {
        justify-content: center;
    }

    .estate-vendor-meta-list {
        justify-content: center;
        gap: 12px;
    }

    .estate-vendor-hero-actions {
        justify-content: center;
    }

    .estate-vendor-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .estate-vendor-projects-grid,
    .estate-vendor-agents-grid {
        grid-template-columns: 1fr;
    }

    .estate-vendor-sidebar-card {
        margin-top: 36px;
        position: static;
    }
}

@media (max-width: 575.98px) {
    .estate-vendor-details-wrapper {
        padding-top: 16px;
        padding-bottom: 60px;
    }

    .estate-vendor-hero-card {
        padding: 24px 16px;
    }

    .estate-vendor-name {
        font-size: 22px;
    }

    .estate-vendor-metrics-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .estate-portfolio-tab-btn {
        padding: 8px 16px;
        font-size: 12.5px;
    }

    .estate-vendor-agent-card {
        padding: 16px;
    }
}

/* --------------------------------------------------------------------------
   9. Unified Property Card Styling
   -------------------------------------------------------------------------- */
.estate-card-item {
    background: #ffffff;
    border: 1px solid var(--estate-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.estate-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12);
    border-color: #93c5fd;
}

.estate-card-media-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.estate-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.estate-card-item:hover .estate-card-thumb {
    transform: scale(1.08);
}

.estate-card-content-wrap {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
}

.estate-card-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--estate-dark);
    letter-spacing: -0.02em;
    line-height: 1;
}

.estate-card-price .price-period {
    font-size: 12px;
    font-weight: 500;
    color: var(--estate-muted);
}

.estate-card-verified-status {
    color: var(--estate-green);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.estate-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--estate-dark);
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.estate-card-title a {
    color: var(--estate-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.estate-card-title a:hover {
    color: var(--estate-primary);
}

.estate-card-location {
    font-size: 12.5px;
    color: var(--estate-muted);
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.estate-card-specs {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
}

.estate-card-specs .spec-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
