/* ══════════════════════════════════════════════════════════
   Provectus Realty — Modern Real Estate Theme
   Clean, professional design inspired by Zillow & Redfin
   ══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    /* Primary — Deep twilight blue */
    --pr-primary: #1a365d;
    --pr-primary-light: #2a4a7f;

    /* Secondary — Warm sunset orange (CTAs) */
    --pr-secondary: #dd6b20;
    --pr-secondary-dark: #c05621;
    --pr-secondary-light: #ed8936;

    /* Accent — Deep blue (brand consistency) */
    --pr-accent: #1a365d;
    --pr-accent-light: #2a4a7f;
    --pr-accent-glow: rgba(26, 54, 93, 0.08);

    /* Surfaces */
    --pr-bg: #ffffff;
    --pr-surface: #ffffff;
    --pr-surface-warm: #f7fafc;

    /* Text */
    --pr-text: #1a202c;
    --pr-text-muted: #718096;
    --pr-text-light: #a0aec0;

    /* Borders */
    --pr-border: #e2e8f0;
    --pr-border-light: #edf2f7;

    /* Shadows */
    --pr-shadow-xs: 0 1px 2px rgba(26, 54, 93, 0.04);
    --pr-shadow-sm: 0 1px 4px rgba(26, 54, 93, 0.06);
    --pr-shadow-md: 0 4px 16px rgba(26, 54, 93, 0.08);
    --pr-shadow-lg: 0 8px 32px rgba(26, 54, 93, 0.10);
    --pr-shadow-xl: 0 16px 48px rgba(26, 54, 93, 0.14);

    /* Radius */
    --pr-radius-sm: 6px;
    --pr-radius: 10px;
    --pr-radius-lg: 16px;
    --pr-radius-xl: 24px;

    /* Transitions */
    --pr-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Base ─── */
html, body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--pr-bg);
    color: var(--pr-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pr-text);
}

a {
    color: var(--pr-secondary);
    transition: color 0.2s var(--pr-ease);
}

a:hover {
    color: var(--pr-secondary-dark);
}

/* ─── Buttons ─── */
.btn-primary {
    color: #fff;
    background: var(--pr-secondary);
    border: none;
    font-weight: 600;
    border-radius: var(--pr-radius-sm);
    transition: all 0.25s var(--pr-ease);
    font-size: 0.88rem;
    box-shadow: var(--pr-shadow-sm);
    letter-spacing: 0.2px;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--pr-secondary-dark);
    box-shadow: var(--pr-shadow-md);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    color: var(--pr-secondary);
    border: 1.5px solid var(--pr-secondary);
    background: transparent;
    font-weight: 600;
    border-radius: var(--pr-radius-sm);
    transition: all 0.25s var(--pr-ease);
    font-size: 0.88rem;
}

.btn-outline-primary:hover {
    background: var(--pr-secondary);
    color: white;
    box-shadow: var(--pr-shadow-md);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.15rem var(--pr-accent-glow);
    border-color: var(--pr-accent-light);
}

/* ─── Form Controls ─── */
.form-control {
    border: 1.5px solid var(--pr-border);
    border-radius: var(--pr-radius-sm);
    font-size: 0.9rem;
    padding: 0.6rem 0.85rem;
    transition: all 0.2s var(--pr-ease);
    background: var(--pr-surface);
    color: var(--pr-text);
}

.form-control:hover {
    border-color: var(--pr-text-muted);
}

.form-control:focus {
    border-color: var(--pr-secondary);
    box-shadow: 0 0 0 3px rgba(181, 112, 79, 0.08);
}

.form-control::placeholder {
    color: var(--pr-text-light);
}

/* ─── Content ─── */
.content {
    padding-top: 0;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--pr-secondary);
}

.invalid {
    outline: 1px solid #C0392B;
}

.validation-message {
    color: #C0392B;
    font-size: 0.82rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ─── Demo Disclaimer Bar ─── */
.demo-disclaimer-bar {
    background: #fffbeb;
    color: #92400e;
    border-bottom: 1px solid #fde68a;
    padding: 6px 16px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    z-index: 1050;
}

.ca-logo-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.ca-logo-link:hover {
    opacity: 0.8;
}

.ca-logo {
    height: 20px;
    width: auto;
}

.disclaimer-text {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

/* ══════════════════════════════════════════════════════════
   CARDS — Premium property card system
   ══════════════════════════════════════════════════════════ */

.card,
.listing-card {
    background: var(--pr-surface);
    border: 1px solid var(--pr-border-light);
    border-radius: var(--pr-radius-lg);
    box-shadow: var(--pr-shadow-xs);
    transition: all 0.35s var(--pr-ease);
    overflow: hidden;
}

.card:hover,
.listing-card:hover {
    box-shadow: var(--pr-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--pr-border);
}

/* ─── Listing Grid ─── */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
    padding: 0.5rem 0;
}

@media (max-width: 480px) {
    .listing-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ─── Listing Card Parts ─── */
.listing-card .listing-image {
    height: 220px;
    background: #edf2f7;
    position: relative;
    overflow: hidden;
}

.listing-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-card .listing-price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pr-text);
    letter-spacing: -0.5px;
}

.listing-card .listing-address {
    font-weight: 600;
    color: var(--pr-text);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.listing-card .listing-details {
    font-size: 0.84rem;
    color: var(--pr-text-muted);
    letter-spacing: 0.1px;
}

.listing-card .listing-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--pr-secondary);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

.listing-card .listing-status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* ─── Property Detail Chips ─── */
.property-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.property-chip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.84rem;
    color: var(--pr-text-muted);
}

.property-chip strong {
    color: var(--pr-text);
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   HERO BANNER — Full-width photo hero
   ══════════════════════════════════════════════════════════ */

.hero-banner {
    position: relative;
    height: 520px;
    background: url('https://images.unsplash.com/photo-1444723121867-7a241cacace9?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    background-color: #1a365d;
    margin: -2rem -2rem 0 -2rem;
    display: flex;
    align-items: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(26, 54, 93, 0.88) 0%,
        rgba(26, 54, 93, 0.55) 55%,
        rgba(26, 54, 93, 0.15) 100%
    );
    z-index: 0;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    padding: 3rem 4rem;
    max-width: 680px;
    color: white;
}

.hero-banner h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -0.5px;
}

.hero-banner p {
    font-size: 1.1rem;
    opacity: 0.92;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--pr-secondary);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--pr-radius-sm);
    text-decoration: none;
    transition: all 0.25s var(--pr-ease);
    box-shadow: 0 4px 16px rgba(221, 107, 32, 0.35);
}

.btn-hero-primary:hover {
    background: var(--pr-secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(221, 107, 32, 0.45);
    color: white;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--pr-radius-sm);
    text-decoration: none;
    transition: all 0.25s var(--pr-ease);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
    color: white;
}

/* ─── Image Showcase Grid ─── */

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem;
    margin: 2.5rem 0;
}

.showcase-item {
    position: relative;
    border-radius: var(--pr-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.showcase-item.showcase-large {
    grid-row: span 2;
    aspect-ratio: auto;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--pr-ease);
}

.showcase-item:hover img {
    transform: scale(1.05);
}

.showcase-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1rem 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .hero-banner {
        height: 400px;
        margin: -1.25rem -1.25rem 0 -1.25rem;
    }

    .hero-overlay {
        padding: 2rem 1.5rem;
    }

    .hero-banner h1 {
        font-size: 1.85rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr 1fr;
    }

    .showcase-item.showcase-large {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 350px;
        margin: -1rem -0.75rem 0 -0.75rem;
    }

    .hero-banner h1 {
        font-size: 1.5rem;
    }

    .hero-banner p {
        font-size: 0.95rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-item.showcase-large {
        grid-column: span 1;
    }
}

/* ══════════════════════════════════════════════════════════
   STATS ROW — Elegant metric cards
   ══════════════════════════════════════════════════════════ */

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--pr-surface);
    border: 1px solid var(--pr-border-light);
    border-radius: var(--pr-radius);
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: var(--pr-shadow-xs);
    transition: all 0.25s var(--pr-ease);
}

.stat-card:hover {
    box-shadow: var(--pr-shadow-md);
    transform: translateY(-2px);
}

.stat-card .stat-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--pr-secondary);
    letter-spacing: -0.5px;
}

.stat-card .stat-label {
    font-size: 0.76rem;
    color: var(--pr-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ══════════════════════════════════════════════════════════
   SECTION HEADERS — Elegant section titles
   ══════════════════════════════════════════════════════════ */

.section-header {
    margin-bottom: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.section-header h3,
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--pr-text);
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-header h3::after,
.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--pr-secondary);
    border-radius: 1px;
}

.section-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pr-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.section-link:hover {
    color: var(--pr-secondary-dark);
}

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════════════════════════ */

.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
}

.login-page h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--pr-text);
    margin-bottom: 0.25rem;
}

.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    width: 100%;
    max-width: 900px;
    margin-top: 1.5rem;
}

.persona-card {
    background: var(--pr-surface);
    border: 2px solid var(--pr-border-light);
    border-radius: var(--pr-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.25s var(--pr-ease);
    text-align: center;
}

.persona-card:hover {
    border-color: var(--pr-secondary-light);
    box-shadow: var(--pr-shadow-md);
    transform: translateY(-3px);
}

.persona-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.persona-card h5 {
    font-family: 'Inter', sans-serif;
    margin: 0;
    font-weight: 600;
}

.persona-card .persona-role {
    font-size: 0.75rem;
    color: var(--pr-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-top: 0.15rem;
}

.persona-card p {
    font-size: 0.82rem;
    color: var(--pr-text-muted);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* ─── Navbar Demo Tag ─── */
.navbar-demo-tag {
    background: var(--pr-accent);
    color: var(--pr-primary);
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════════════
   SEARCH BAR — Elevated property search
   ══════════════════════════════════════════════════════════ */

.search-bar {
    background: var(--pr-surface);
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--pr-shadow-sm);
    margin-bottom: 2rem;
}

.search-bar .row {
    align-items: end;
}

.search-bar .form-control {
    border-radius: var(--pr-radius-sm);
}

.search-bar .btn-primary {
    border-radius: var(--pr-radius-sm);
    padding: 0.6rem 1.5rem;
}

/* ══════════════════════════════════════════════════════════
   DETAIL PAGE — Property showcase
   ══════════════════════════════════════════════════════════ */

.detail-hero-image {
    height: 350px;
    background: #edf2f7;
    border-radius: var(--pr-radius-lg) var(--pr-radius-lg) 0 0;
    position: relative;
    overflow: hidden;
}

.detail-hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--pr-border-light);
}

.detail-info-item {
    text-align: center;
}

.detail-info-item strong {
    display: block;
    font-size: 1.15rem;
    color: var(--pr-text);
}

.detail-info-item small {
    color: var(--pr-text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   ARTICLES / RESOURCES
   ══════════════════════════════════════════════════════════ */

.article-card {
    background: var(--pr-surface);
    border: 1px solid var(--pr-border-light);
    border-radius: var(--pr-radius);
    padding: 1.75rem;
    transition: all 0.25s var(--pr-ease);
    box-shadow: var(--pr-shadow-xs);
}

.article-card:hover {
    box-shadow: var(--pr-shadow-md);
    transform: translateY(-2px);
    border-color: var(--pr-border);
}

.article-card h5 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--pr-text);
    font-weight: 600;
}

.article-card .article-meta {
    font-size: 0.78rem;
    color: var(--pr-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════════════════ */

.text-accent {
    color: var(--pr-accent) !important;
}

.text-secondary-brand {
    color: var(--pr-secondary) !important;
}

.bg-warm {
    background-color: var(--pr-surface-warm) !important;
}

.divider {
    border: none;
    height: 1px;
    background: var(--pr-border-light);
    margin: 2rem 0;
}

/* Pill tag */
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: var(--pr-surface-warm);
    color: var(--pr-text-muted);
    border: 1px solid var(--pr-border-light);
}

.tag-pill.tag-featured {
    background: var(--pr-accent-glow);
    color: #8B6914;
    border-color: rgba(201, 160, 80, 0.25);
}

.tag-pill.tag-active {
    background: rgba(181, 112, 79, 0.08);
    color: var(--pr-secondary);
    border-color: rgba(181, 112, 79, 0.15);
}

/* ══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE REFINEMENTS
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .persona-grid {
        grid-template-columns: 1fr;
    }

    .search-bar {
        padding: 1rem;
        border-radius: var(--pr-radius);
    }

    .detail-hero-image {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .listing-grid {
        gap: 1rem;
    }
}

/* ─── Smooth scroll & selection ─── */
html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--pr-accent-glow);
    color: var(--pr-text);
}

