/* ============================================================
   TansiJobs — "Refined Clarity" Design System
   Modern, high-contrast, accessible in both light & dark modes
   ============================================================ */

/* =========================
   0. Global Foundations
   ========================= */
:root {
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 8px 25px rgba(0,0,0,0.10), 0 3px 8px rgba(0,0,0,0.06);
    --transition-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Apply DM Sans globally - readable, modern, slightly geometric */
.mud-typography,
.mud-input,
.mud-input-control,
.mud-select,
.mud-chip,
.mud-button,
.mud-nav-link,
.mud-list-item,
.mud-tab,
.mud-dialog,
body {
    font-family: 'DM Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Improve base text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* =========================
   1. Viewing Mode Variables
   ========================= */
.mud-theme-dark {
    --looking-bg-start: rgba(52, 211, 153, 0.15);
    --looking-bg-end: rgba(45, 212, 191, 0.10);
    --looking-border: rgba(255, 255, 255, 0.10);
    --looking-icon: #34d399;
    --card-bg: rgba(31, 34, 48, 0.95);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-hover-border: rgba(255, 255, 255, 0.12);
    --section-bg: rgba(24, 26, 36, 0.6);
    --text-heading: #F1F3F9;
    --text-body: #D0D4E4;
    --text-caption: #9BA2B8;
    --accent-glow: rgba(30, 136, 229, 0.15);
}

.mud-theme-light {
    --looking-bg-start: rgba(16, 185, 129, 0.08);
    --looking-bg-end: rgba(45, 212, 191, 0.04);
    --looking-border: rgba(0, 0, 0, 0.06);
    --looking-icon: #059669;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.06);
    --card-hover-border: rgba(0, 0, 0, 0.12);
    --section-bg: #f8f9fb;
    --text-heading: #111827;
    --text-body: #374151;
    --text-caption: #6b7280;
    --accent-glow: rgba(30, 136, 229, 0.08);
}

/* =========================
   1b. Candidacy Toggle Card
   ========================= */
.candidacy-toggle-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--looking-border);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition-smooth);
}

.candidacy-toggle-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background: radial-gradient(ellipse at 30% 50%, currentColor 0%, transparent 70%);
    pointer-events: none;
}

.mud-theme-dark .candidacy-toggle-card {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.14), rgba(45, 212, 191, 0.08));
    border-color: rgba(52, 211, 153, 0.18);
}

.mud-theme-light .candidacy-toggle-card {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #a7f3d0;
}

.candidacy-title {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.mud-theme-dark .candidacy-title { color: #ffffff; }
.mud-theme-light .candidacy-title { color: #064e3b; }

.candidacy-subtitle {
    margin-top: 4px;
}

.mud-theme-dark .candidacy-subtitle { color: rgba(255,255,255,0.80); }
.mud-theme-light .candidacy-subtitle { color: #065f46; }

.candidacy-icon {
    color: var(--looking-icon);
}

/* Status Cards */
.status-card {
    border-radius: var(--radius-md);
    min-height: 72px;
    position: relative;
    transition: box-shadow var(--transition-smooth);
}

.mud-theme-light .status-card {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-left: 4px solid #22c55e;
    box-shadow: inset 0 0 0 1px rgba(16,185,129,0.12), var(--shadow-card);
}

.mud-theme-light .status-icon { color: #16a34a; }

.mud-theme-dark .status-card {
    background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(16,185,129,0.08));
    border-left: 4px solid #34d399;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 4px 16px rgba(0,0,0,0.30);
}

.mud-theme-dark .status-icon { color: #34d399; }

/* =========================
   2. Logo
   ========================= */
.app-logo.mud-image {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #111827;
    transition: opacity var(--transition-fast);
}

.app-logo.mud-image:hover {
    opacity: 0.9;
}

.app-logo.mud-image img {
    display: block;
    height: 28px;
    width: auto;
}

.mud-theme-light .app-logo.mud-image {
    background-color: #111827;
}

.mud-theme-dark .app-logo.mud-image {
    background-color: transparent;
}

/* =========================
   3. Job Cards
   ========================= */
.job-card {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    transition: transform var(--transition-fast), box-shadow var(--transition-smooth), border-color var(--transition-fast);
}

.mud-theme-dark .job-card {
    background: linear-gradient(180deg, #262A40 0%, #22263A 100%);
}

.mud-theme-light .job-card {
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.job-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background-color: var(--mud-palette-primary);
    opacity: 0.6;
    border-radius: 2px;
    transition: opacity var(--transition-fast);
}

.job-card:hover {
    transform: translateY(-2px);
    border-color: var(--card-hover-border);
}

.mud-theme-dark .job-card:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.40);
}

.mud-theme-light .job-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.job-card:hover::before {
    opacity: 1;
}

/* =========================
   4. Clear Filters Button
   ========================= */
.clear-filters-btn {
    color: var(--mud-palette-primary);
    border-color: var(--mud-palette-primary);
    transition: background-color var(--transition-fast);
}

.clear-filters-btn:hover {
    background-color: var(--accent-glow);
}

.clear-filters-inline {
    align-self: center;
    margin-top: 4px;
}

/* =========================
   5. Developer Mode Banner
   ========================= */
.dev-mode-banner {
    background-color: rgba(30,136,229,0.06);
    border-color: rgba(30,136,229,0.4);
    color: var(--mud-palette-text-secondary);
    padding: 8px 16px;
}

.dev-mode-banner .mud-alert-icon {
    color: var(--mud-palette-primary);
}

/* =========================
   6. Navigation Menu
   ========================= */

/* Nav group headers — bolder, better spaced */
.mud-nav-group .mud-nav-link {
    font-weight: 600;
    letter-spacing: 0.01em;
    font-size: 0.875rem;
    min-height: 44px;
    border-radius: var(--radius-sm);
    margin: 2px 8px;
    padding-left: 12px;
    padding-right: 12px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

/* All nav links — bigger touch targets, softer rounding */
.mud-navmenu .mud-nav-link {
    min-height: 42px;
    border-radius: var(--radius-sm);
    margin: 1px 8px;
    padding-left: 14px;
    padding-right: 14px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    font-size: 0.875rem;
    font-weight: 450;
}

/* Hover state */
.mud-navmenu .mud-nav-link:hover {
    border-radius: var(--radius-sm);
}

.mud-theme-dark .mud-navmenu .mud-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.mud-theme-light .mud-navmenu .mud-nav-link:hover {
    background-color: rgba(30, 136, 229, 0.06);
}

/* Active state — strong visual indicator */
.mud-nav-link.active {
    position: relative;
    font-weight: 600;
}

.mud-theme-dark .mud-nav-link.active {
    background-color: rgba(30, 136, 229, 0.14) !important;
    color: #ffffff !important;
}

.mud-theme-dark .mud-nav-link.active .mud-nav-link-text,
.mud-theme-dark .mud-nav-link.active .mud-icon-root {
    color: #ffffff !important;
}

.mud-theme-light .mud-nav-link.active {
    background-color: rgba(30, 136, 229, 0.10) !important;
    color: #1565c0 !important;
}

.mud-theme-light .mud-nav-link.active .mud-nav-link-text,
.mud-theme-light .mud-nav-link.active .mud-icon-root {
    color: #1565c0 !important;
}

/* Active accent bar */
.mud-nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background-color: var(--mud-palette-primary);
}

/* Nav icons — slightly muted until active */
.mud-navmenu .mud-nav-link-icon {
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.mud-navmenu .mud-nav-link:hover .mud-nav-link-icon,
.mud-navmenu .mud-nav-link.active .mud-nav-link-icon {
    opacity: 1;
}

/* Nav group expand/collapse — smooth */
.mud-nav-group .mud-collapse-wrapper {
    transition: max-height var(--transition-smooth);
}

/* Nested nav items — indent */
.mud-nav-group .mud-nav-group .mud-nav-link {
    padding-left: 24px;
    font-size: 0.8125rem;
}

/* Drawer bottom fade-out hint for scrolling */
#nav-drawer .mud-drawer-content {
    scrollbar-width: thin;
}

.mud-theme-dark #nav-drawer .mud-drawer-content::-webkit-scrollbar {
    width: 4px;
}

.mud-theme-dark #nav-drawer .mud-drawer-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
}

/* Divider in nav */
.mud-navmenu .mud-divider {
    margin: 8px 16px;
    opacity: 0.5;
}

/* =========================
   7. Primary Button Polish
   ========================= */
.mud-button-filled-primary {
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: box-shadow var(--transition-fast), transform 80ms ease;
}

.mud-button-filled-primary:active {
    transform: scale(0.98);
}

/* =========================
   8. View Toggle
   ========================= */
.results-toolbar {
    padding: 0;
    margin: 0;
    line-height: 1;
}

.results-toggle {
    padding: 0;
}

.results-toggle .mud-button {
    padding: 2px 8px;
    min-height: 28px;
    line-height: 1.1;
}

.results-toggle .mud-icon-root {
    margin-right: 4px;
}

/* =========================
   9. Profile Page
   ========================= */

/* --- Profile Header --- */
.profile-header {
    position: relative;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.mud-theme-dark .profile-header {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.08) 0%, rgba(99, 102, 241, 0.06) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mud-theme-light .profile-header {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.04) 0%, rgba(99, 102, 241, 0.03) 100%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* --- Avatar --- */
.avatar-wrapper {
    position: relative;
    width: 80px;
    height: 96px;
    flex: 0 0 auto;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.mud-theme-dark .profile-avatar-img {
    border-color: rgba(255,255,255,0.10);
}

.mud-theme-light .profile-avatar-img {
    border-color: rgba(0,0,0,0.08);
}

.profile-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #1E88E5 0%, #1565c0 100%);
    color: white;
    font-weight: 600;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.04em;
}

/* MudAvatar override to match our profile style */
.profile-header .mud-avatar-large {
    width: 80px;
    height: 96px;
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    font-weight: 600;
}

/* Avatar edit button */
.avatar-edit-menu {
    position: absolute;
    bottom: -6px;
    right: -6px;
}

.avatar-edit-menu .mud-button-root {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0,0,0,0.20);
}

.avatar-edit-menu .mud-icon-root {
    font-size: 15px;
    color: #ffffff !important;
    fill: #ffffff !important;
}

.mud-theme-light .avatar-edit-menu .mud-button-root {
    background-color: rgba(0, 0, 0, 0.65);
}

.mud-theme-dark .avatar-edit-menu .mud-button-root {
    background-color: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(4px);
}

.avatar-edit-menu .mud-button-root:hover {
    background-color: var(--mud-palette-primary);
    box-shadow: 0 2px 12px rgba(30, 136, 229, 0.40);
}

/* --- Profile Name & Meta --- */
.profile-name {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--text-heading);
}

.profile-meta {
    color: var(--text-caption);
    font-size: 0.9rem;
    line-height: 1.5;
}

.profile-action {
    opacity: 0.9;
    transition: opacity var(--transition-fast), box-shadow var(--transition-fast);
    font-weight: 500;
}

.profile-action:hover {
    opacity: 1;
    box-shadow: 0 0 0 1px var(--mud-palette-primary);
}

/* --- Profile Tabs --- */
.profile-tabs {
    border-bottom: 2px solid var(--mud-palette-divider);
    margin-bottom: 0;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar {
    display: none;
}

.profile-tab {
    padding: 14px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    bottom: -2px;
    user-select: none;
}

.mud-theme-dark .profile-tab {
    color: var(--text-caption);
}

.mud-theme-light .profile-tab {
    color: #6b7280;
}

.profile-tab:hover {
    color: var(--mud-palette-primary);
}

.mud-theme-dark .profile-tab:hover {
    background-color: rgba(30, 136, 229, 0.06);
}

.mud-theme-light .profile-tab:hover {
    background-color: rgba(30, 136, 229, 0.04);
}

.profile-tab-active {
    color: var(--mud-palette-primary) !important;
    border-bottom-color: var(--mud-palette-primary);
    font-weight: 700;
}

.mud-theme-dark .profile-tab-active {
    background-color: rgba(30, 136, 229, 0.08);
}

.mud-theme-light .profile-tab-active {
    background-color: rgba(30, 136, 229, 0.04);
}

/* --- Info Sections --- */
.info-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--mud-palette-text-primary);
    letter-spacing: -0.01em;
}

.info-row {
    display: flex;
    margin-bottom: 14px;
    align-items: flex-start;
    line-height: 1.5;
}

.info-label {
    font-weight: 600;
    color: var(--text-caption);
    min-width: 150px;
    flex-shrink: 0;
    font-size: 0.875rem;
    padding-top: 1px;
}

.info-value {
    color: var(--mud-palette-text-primary);
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 450;
}

/* --- Employment Cards --- */
.employment-card {
    border-left: 4px solid var(--mud-palette-primary);
    transition: all var(--transition-smooth);
    border-radius: var(--radius-md);
}

.employment-card:hover {
    transform: translateY(-2px);
}

.mud-theme-dark .employment-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.mud-theme-light .employment-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.employment-card-current {
    border-left-color: var(--mud-palette-success);
}

.employment-card-past {
    border-left-color: var(--mud-palette-grey-default);
}

/* --- Requirement Cards --- */
.requirement-category-section {
    margin-bottom: 32px;
}

.requirement-card {
    border-radius: var(--radius-sm);
    border-left: 4px solid transparent;
    transition: all var(--transition-smooth);
    background-color: var(--mud-palette-surface);
}

.requirement-card:hover {
    transform: translateY(-2px);
}

.mud-theme-dark .requirement-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.30);
}

.mud-theme-light .requirement-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.fw-600 {
    font-weight: 600;
}

/* --- Profile Responsive --- */
@@media (max-width: 960px) {
    .profile-tab {
        padding: 12px 16px;
        font-size: 0.75rem;
    }

    .info-row {
        flex-direction: column;
        gap: 2px;
    }

    .info-label {
        min-width: auto;
        margin-bottom: 0;
    }

    .avatar-wrapper {
        width: 64px;
        height: 80px;
    }

    .profile-name {
        font-size: 1.25rem;
    }

    .profile-header .mud-avatar-large {
        width: 64px;
        height: 80px;
        font-size: 1.2rem;
    }
}

/* =========================
   10. Dialogs & Modals
   ========================= */

/* Dialog paper — refined surface */
.mud-dialog {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
}

.mud-theme-dark .mud-dialog {
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.50), 0 8px 20px rgba(0, 0, 0, 0.30);
}

.mud-theme-light .mud-dialog {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Dialog title bar */
.mud-dialog .mud-dialog-title {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--mud-palette-divider);
}

/* Dialog content */
.mud-dialog .mud-dialog-content {
    padding: 24px;
}

/* Dialog actions */
.mud-dialog .mud-dialog-actions {
    padding: 12px 24px 16px;
    border-top: 1px solid var(--mud-palette-divider);
}

/* Section navigation chips in edit dialog */
.mud-dialog .mud-chip {
    font-weight: 500;
    transition: all var(--transition-fast);
}

/* Dialog overlay backdrop */
.mud-overlay {
    transition: opacity var(--transition-smooth);
}

.mud-theme-dark .mud-overlay {
    background-color: rgba(0, 0, 0, 0.60) !important;
    backdrop-filter: blur(4px);
}

.mud-theme-light .mud-overlay {
    background-color: rgba(0, 0, 0, 0.30) !important;
    backdrop-filter: blur(2px);
}

/* =========================
   11. Cards & Papers — Global Polish
   ========================= */

/* Give all MudPaper elements smoother transitions */
.mud-paper {
    transition: box-shadow var(--transition-smooth), border-color var(--transition-fast);
}

/* Elevation 2 papers (profile cards) — consistent look */
.mud-paper.mud-elevation-2 {
    border-radius: var(--radius-md);
}

.mud-theme-dark .mud-paper.mud-elevation-2 {
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.mud-theme-light .mud-paper.mud-elevation-2 {
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-card);
}

/* Elevation 1 papers (selectors) */
.mud-paper.mud-elevation-1 {
    border-radius: var(--radius-md);
}

.mud-theme-light .mud-paper.mud-elevation-1 {
    box-shadow: var(--shadow-card);
}

/* =========================
   12. AppBar Enhancement
   ========================= */
.mud-appbar {
    backdrop-filter: blur(12px) saturate(180%);
}

.mud-theme-dark .mud-appbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mud-theme-light .mud-appbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* =========================
   13. DataGrid — Better Readability
   ========================= */
.mud-table .mud-table-cell {
    font-size: 0.875rem;
    padding: 10px 16px;
}

.mud-table .mud-table-head .mud-table-cell {
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.mud-theme-dark .mud-table-row:hover {
    background-color: rgba(30, 136, 229, 0.06) !important;
}

.mud-theme-light .mud-table-row:hover {
    background-color: rgba(30, 136, 229, 0.03) !important;
}

/* =========================
   14. Chips — More Polished
   ========================= */
.mud-chip {
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

/* =========================
   15. Snackbar — Better Visibility
   ========================= */
.mud-snackbar {
    border-radius: var(--radius-md) !important;
    font-weight: 500;
}

/* =========================
   16. Alerts — High Contrast
   ========================= */
.mud-alert {
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.mud-alert .mud-alert-message {
    font-weight: 450;
}

/* =========================
   17. Inputs — Cleaner Feel
   ========================= */
.mud-input-outlined .mud-input-outlined-border {
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast);
}

.mud-input-label {
    font-weight: 500;
    font-size: 0.875rem;
}

/* =========================
   18. GeoJSON Map Tooltips
   ========================= */
.geojson-feature-tooltip {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.geojson-feature-tooltip::before {
    display: none;
}

.leaflet-tooltip.geojson-feature-tooltip {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(123, 31, 162, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.geojson-feature-popup .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.geojson-feature-popup .leaflet-popup-content {
    margin: 12px 14px;
}

.geojson-feature-popup .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.98);
}

.geojson-tooltip-content {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    min-width: 140px;
    max-width: 280px;
}

.geojson-tooltip-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    gap: 12px;
}

.geojson-tooltip-row:last-child {
    border-bottom: none;
}

.geojson-tooltip-label {
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.geojson-tooltip-value {
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

/* Dark mode */
.mud-theme-dark .geojson-feature-tooltip,
.mud-theme-dark .leaflet-tooltip.geojson-feature-tooltip {
    background: rgba(38, 42, 64, 0.98);
    border-color: rgba(123, 31, 162, 0.3);
    color: #fff;
}

.mud-theme-dark .geojson-feature-popup .leaflet-popup-content-wrapper,
.mud-theme-dark .geojson-feature-popup .leaflet-popup-tip {
    background: rgba(38, 42, 64, 0.98);
    color: #fff;
}

.mud-theme-dark .geojson-tooltip-label {
    color: rgba(255, 255, 255, 0.6);
}

.mud-theme-dark .geojson-tooltip-row {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Inventory map marker */
.inventory-map-marker,
.search-center-marker {
    background: transparent;
    border: none;
}

/* =========================
   19. Statistics Cards Alignment
   ========================= */
.header-stats-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.header-title-section {
    flex: 0 0 auto;
    min-width: 200px;
}

.header-stats-section {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    flex: 1 1 0;
}

.header-stats-section > * {
    flex: 1 1 0;
    min-width: 0;
}

.stats-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
}

.stats-row > * {
    flex: 1 1 0;
    min-width: 0;
}

.header-stats-section .mud-card-content,
.stats-row .mud-card-content {
    text-align: left;
}

.header-stats-section .mud-card-content .mud-icon-root,
.stats-row .mud-card-content .mud-icon-root {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.header-stats-section .mud-card-content .mud-typography-caption,
.stats-row .mud-card-content .mud-typography-caption {
    display: inline-block;
    vertical-align: middle;
}

.header-stats-section .mud-card-content .mud-typography-h4,
.header-stats-section .mud-card-content .mud-typography-h5,
.header-stats-section .mud-card-content .mud-typography-h6,
.stats-row .mud-card-content .mud-typography-h4,
.stats-row .mud-card-content .mud-typography-h5,
.stats-row .mud-card-content .mud-typography-h6 {
    text-align: center;
    display: block;
    margin-top: 4px;
}

/* =========================
   20. Radzen Dropdown — Dark Mode Support
   ========================= */

/* Dark mode - Dropdown container */
.mud-theme-dark .rz-dropdown,
.mud-theme-dark .mud-field .rz-dropdown {
    background-color: transparent;
    color: var(--mud-palette-text-primary);
}

.mud-theme-dark .rz-dropdown .rz-inputtext,
.mud-theme-dark .rz-dropdown .rz-dropdown-label {
    background-color: transparent;
    color: var(--mud-palette-text-primary);
}

.mud-theme-dark .rz-dropdown .rz-placeholder {
    color: var(--mud-palette-text-secondary);
}

.mud-theme-dark .rz-dropdown .rz-dropdown-trigger {
    background-color: transparent;
    color: var(--mud-palette-text-secondary);
}

.mud-theme-dark .rz-dropdown .rz-dropdown-trigger .rzi {
    color: var(--mud-palette-text-secondary);
}

/* Dark mode - Dropdown panel/popup */
.mud-theme-dark .rz-dropdown-panel {
    background-color: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    color: var(--mud-palette-text-primary);
    border-radius: var(--radius-sm);
}

.mud-theme-dark .rz-dropdown-panel .rz-dropdown-item {
    color: var(--mud-palette-text-primary);
    background-color: transparent;
}

.mud-theme-dark .rz-dropdown-panel .rz-dropdown-item:hover {
    background-color: var(--mud-palette-action-default-hover);
}

.mud-theme-dark .rz-dropdown-panel .rz-dropdown-item.rz-state-highlight {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
}

/* Dark mode - Filter input */
.mud-theme-dark .rz-dropdown-panel .rz-dropdown-filter-container {
    background-color: var(--mud-palette-surface);
}

.mud-theme-dark .rz-dropdown-panel .rz-dropdown-filter {
    background-color: var(--mud-palette-background);
    border-color: var(--mud-palette-lines-default);
    color: var(--mud-palette-text-primary);
}

.mud-theme-dark .rz-dropdown-panel .rz-dropdown-filter::placeholder {
    color: var(--mud-palette-text-secondary);
}

/* Dark mode - Clear button */
.mud-theme-dark .rz-dropdown .rz-dropdown-clear-icon {
    color: var(--mud-palette-text-secondary);
}

/* Dark mode - Multiselect chips */
.mud-theme-dark .rz-multiselect-chip {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
}

/* Dark mode - Scrollbar in dropdown */
.mud-theme-dark .rz-dropdown-panel .rz-dropdown-items-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--mud-palette-lines-default);
}

.mud-theme-dark .rz-dropdown-panel .rz-dropdown-items-wrapper::-webkit-scrollbar-track {
    background-color: var(--mud-palette-background);
}

/* Make Radzen dropdown match MudBlazor outlined input height */
.rz-in-mud .rz-dropdown {
    width: 100%;
    height: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    background: transparent;
}

.rz-in-mud .rz-dropdown .rz-dropdown-label,
.rz-in-mud .rz-dropdown .rz-inputtext {
    height: 30px;
    line-height: 30px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.rz-in-mud .rz-dropdown .rz-dropdown-trigger {
    height: 30px;
    display: flex;
    align-items: center;
    background: transparent;
    border: 0;
    padding: 0 6px;
    min-width: 28px;
}

.rz-in-mud .rz-dropdown .rz-dropdown-clear-icon {
    top: 50%;
    transform: translateY(-50%);
}

.rz-in-mud .mud-input-control {
    padding: 0;
}

/* =========================
   21. Business Directory — Listing Page
   ========================= */

/* --- Directory Header Hero --- */
.business-directory-page .mud-paper:first-child,
[class*="business-directory"] > .mud-container > .mud-paper:first-of-type {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Header section — gradient banner */
.mud-container > .mud-paper.pa-6.mb-4 {
    position: relative;
}

.mud-theme-dark .mud-container > .mud-paper.pa-6.mb-4 {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.12) 0%, rgba(99, 102, 241, 0.08) 50%, rgba(30, 136, 229, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mud-theme-light .mud-container > .mud-paper.pa-6.mb-4 {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.06) 0%, rgba(99, 102, 241, 0.03) 50%, #f8f9fb 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Search & Filter Bar --- */
.mud-container > .mud-paper.pa-4.mb-4 {
    border-radius: var(--radius-md);
}

.mud-theme-dark .mud-container > .mud-paper.pa-4.mb-4 {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mud-theme-light .mud-container > .mud-paper.pa-4.mb-4 {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Business Listing Cards --- */
.hover-card {
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-smooth), border-color var(--transition-fast) !important;
    position: relative;
}

.hover-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mud-palette-primary), rgba(99, 102, 241, 0.6));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.hover-card:hover::after {
    opacity: 1;
}

.hover-card:hover {
    transform: translateY(-6px) !important;
}

.mud-theme-dark .hover-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, #262A40 0%, #22263A 100%);
}

.mud-theme-dark .hover-card:hover {
    border-color: rgba(66, 165, 245, 0.20);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(66, 165, 245, 0.10) !important;
}

.mud-theme-light .hover-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.mud-theme-light .hover-card:hover {
    border-color: rgba(21, 101, 192, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(21, 101, 192, 0.08) !important;
}

/* Card media / logo placeholder */
.hover-card .mud-card-media {
    transition: transform var(--transition-smooth);
}

.hover-card:hover .mud-card-media {
    transform: scale(1.03);
}

/* Placeholder when no logo */
.hover-card div[style*="height: 200px"][style*="background-color"] {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.08), rgba(99, 102, 241, 0.05)) !important;
    transition: background var(--transition-smooth);
}

.mud-theme-dark .hover-card div[style*="height: 200px"][style*="background-color"] {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.12), rgba(99, 102, 241, 0.06)) !important;
}

/* Card content spacing */
.hover-card .mud-card-content .mud-stack {
    gap: 8px;
}

/* Business name in cards */
.hover-card .mud-typography-h6 {
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Truncated description */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* Load more button */
.mud-container > .d-flex.justify-center.mt-4 .mud-button {
    border-radius: var(--radius-md);
    padding: 10px 32px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Empty state — no businesses found */
.mud-container > .mud-paper.pa-8.text-center {
    border-radius: var(--radius-lg);
    padding: 64px 32px !important;
}

.mud-theme-dark .mud-container > .mud-paper.pa-8.text-center {
    background: linear-gradient(180deg, rgba(30, 136, 229, 0.04), transparent);
    border: 2px dashed rgba(255, 255, 255, 0.08);
}

.mud-theme-light .mud-container > .mud-paper.pa-8.text-center {
    background: linear-gradient(180deg, rgba(30, 136, 229, 0.02), transparent);
    border: 2px dashed rgba(0, 0, 0, 0.08);
}

/* Popular tags section */
.mud-container > .mud-paper .mud-stack[class*="Row"] .mud-chip {
    transition: all var(--transition-fast);
    border-radius: 20px;
}

.mud-container > .mud-paper .mud-stack[class*="Row"] .mud-chip:hover {
    transform: translateY(-1px);
}

/* --- Skeleton loading — shimmer effect --- */
.mud-skeleton {
    border-radius: var(--radius-sm);
}

.mud-theme-dark .hover-card .mud-skeleton {
    background-color: rgba(255, 255, 255, 0.06);
}

/* =========================
   21b. Business Directory — Detail Page
   ========================= */

/* --- Sticky Header --- */
.business-detail-page .business-sticky-header {
    transition: all var(--transition-smooth);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.mud-theme-dark .business-detail-page .business-sticky-header {
    background: rgba(15, 17, 23, 0.88) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

.mud-theme-light .business-detail-page .business-sticky-header {
    background: rgba(255, 255, 255, 0.88) !important;
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.business-detail-page .business-sticky-header.collapsed .header-badges,
.business-detail-page .business-sticky-header.collapsed .header-full-actions {
    display: none !important;
}

/* Sticky header avatar */
.business-sticky-header .mud-avatar {
    border-width: 2px !important;
    transition: all var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Sticky header action buttons */
.business-sticky-header .mud-button {
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all var(--transition-fast);
}

.business-sticky-header .mud-button-filled:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.30);
}

/* Header badges */
.business-sticky-header .header-badges .mud-chip {
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 6px;
}

/* --- Hero Section --- */
.business-detail-page .mud-grid > .mud-item:first-child > .mud-paper {
    border-radius: var(--radius-md);
}

.business-detail-page .mud-grid > .mud-item:last-child > .mud-paper {
    border-radius: var(--radius-md);
}

.mud-theme-dark .business-detail-page .mud-grid > .mud-item > .mud-paper[class*="pa-5"] {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(26, 29, 43, 1) 0%, rgba(26, 29, 43, 0.95) 100%);
}

.mud-theme-light .business-detail-page .mud-grid > .mud-item > .mud-paper[class*="pa-5"] {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-card);
}

/* Hero headline */
.business-detail-page .mud-typography-h5[style*="font-weight: 600"] {
    letter-spacing: -0.01em;
    line-height: 1.35;
}

/* Hero description — better readability */
.business-detail-page .mud-typography-body1[style*="line-height: 1.7"] {
    font-size: 0.9375rem;
}

/* Key info chips in hero */
.business-detail-page .d-flex.flex-wrap.gap-2 .mud-chip {
    border-radius: 8px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.business-detail-page .d-flex.flex-wrap.gap-2 .mud-chip-outlined {
    backdrop-filter: blur(4px);
}

/* Availability chip special treatment */
.business-detail-page .mud-chip-filled-success {
    animation: subtlePulse 3s ease-in-out infinite;
}

@@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
    50% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15); }
}

/* --- Contact Card (right column) --- */
.business-detail-page .mud-paper[style*="height: 100%"] .mud-stack {
    gap: 12px;
}

/* Contact rows — subtle dividers */
.business-detail-page .mud-paper[style*="height: 100%"] .d-flex.align-center {
    padding: 4px 0;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.business-detail-page .mud-paper[style*="height: 100%"] .d-flex.align-center:hover {
    padding-left: 4px;
}

.mud-theme-dark .business-detail-page .mud-paper[style*="height: 100%"] .d-flex.align-center:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.mud-theme-light .business-detail-page .mud-paper[style*="height: 100%"] .d-flex.align-center:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Social media buttons */
.business-detail-page .mud-icon-button[target="_blank"] {
    transition: all var(--transition-fast);
    border-radius: 50%;
}

.business-detail-page .mud-icon-button[target="_blank"]:hover {
    transform: scale(1.15);
}

.mud-theme-dark .business-detail-page .mud-icon-button[target="_blank"]:hover {
    background-color: rgba(66, 165, 245, 0.12);
}

.mud-theme-light .business-detail-page .mud-icon-button[target="_blank"]:hover {
    background-color: rgba(21, 101, 192, 0.08);
}

/* --- Trust Strip --- */
.business-detail-page .d-flex.gap-3[style*="min-width: max-content"] .mud-paper {
    border-radius: var(--radius-md) !important;
    transition: all var(--transition-fast);
    min-width: 150px !important;
    padding: 16px !important;
    position: relative;
    overflow: hidden;
}

.business-detail-page .d-flex.gap-3[style*="min-width: max-content"] .mud-paper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--mud-palette-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.business-detail-page .d-flex.gap-3[style*="min-width: max-content"] .mud-paper:hover {
    transform: translateY(-2px);
}

.business-detail-page .d-flex.gap-3[style*="min-width: max-content"] .mud-paper:hover::before {
    opacity: 1;
}

.mud-theme-dark .business-detail-page .d-flex.gap-3[style*="min-width: max-content"] .mud-paper {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(26, 29, 43, 0.8);
}

.mud-theme-dark .business-detail-page .d-flex.gap-3[style*="min-width: max-content"] .mud-paper:hover {
    border-color: rgba(66, 165, 245, 0.20);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30);
}

.mud-theme-light .business-detail-page .d-flex.gap-3[style*="min-width: max-content"] .mud-paper {
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.mud-theme-light .business-detail-page .d-flex.gap-3[style*="min-width: max-content"] .mud-paper:hover {
    border-color: rgba(21, 101, 192, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Trust strip values */
.business-detail-page .d-flex.gap-3[style*="min-width: max-content"] .mud-typography-h6 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Trust strip captions */
.business-detail-page .d-flex.gap-3[style*="min-width: max-content"] .mud-typography-caption {
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.6875rem;
}

/* Trust strip icons */
.business-detail-page .d-flex.gap-3[style*="min-width: max-content"] .mud-icon-root {
    font-size: 1.75rem !important;
    margin-bottom: 4px;
}

/* --- Tabbed Content Area --- */
.business-detail-page .mud-tabs {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.mud-theme-dark .business-detail-page .mud-tabs {
    background: rgba(26, 29, 43, 1);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mud-theme-light .business-detail-page .mud-tabs {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Tab header */
.business-detail-page .mud-tabs .mud-tab {
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    min-height: 52px;
    transition: all var(--transition-fast);
}

.mud-theme-dark .business-detail-page .mud-tabs .mud-tab:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.mud-theme-light .business-detail-page .mud-tabs .mud-tab:hover {
    background-color: rgba(21, 101, 192, 0.04);
}

/* Tab badges */
.business-detail-page .mud-tabs .mud-badge .mud-badge-content {
    font-weight: 700;
    font-size: 0.625rem;
}

/* --- Overview Tab Cards --- */
.business-detail-page .mud-tab-panel .mud-paper[style*="border-radius: 12px"] {
    border-radius: var(--radius-md) !important;
    transition: all var(--transition-smooth);
}

.mud-theme-dark .business-detail-page .mud-tab-panel .mud-paper[style*="border-radius: 12px"] {
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.mud-theme-light .business-detail-page .mud-tab-panel .mud-paper[style*="border-radius: 12px"] {
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Section titles within tabs */
.business-detail-page .mud-tab-panel .mud-typography-h6[style*="font-weight: 600"] {
    letter-spacing: -0.01em;
    font-size: 1rem;
    position: relative;
    padding-left: 12px;
}

.business-detail-page .mud-tab-panel .mud-typography-h6[style*="font-weight: 600"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 2px;
    background: var(--mud-palette-primary);
}

/* Capabilities chips */
.business-detail-page .mud-tab-panel .mud-chip[style*="border-radius: 20px"] {
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 4px 16px;
    transition: all var(--transition-fast);
}

.business-detail-page .mud-tab-panel .mud-chip[style*="border-radius: 20px"]:hover {
    transform: translateY(-1px);
}

/* Business hours table */
.business-detail-page .mud-simple-table td {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.business-detail-page .mud-simple-table td:first-child {
    font-weight: 600;
    font-size: 0.875rem;
}

/* --- Project Cards --- */
.business-detail-page .mud-tab-panel .mud-card[style*="border-radius: 12px"] {
    border-radius: var(--radius-md) !important;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.business-detail-page .mud-tab-panel .mud-card[style*="border-radius: 12px"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--mud-palette-primary);
    opacity: 0.4;
    transition: opacity var(--transition-fast);
}

.business-detail-page .mud-tab-panel .mud-card[style*="border-radius: 12px"]:hover::before {
    opacity: 1;
}

.mud-theme-dark .business-detail-page .mud-tab-panel .mud-card[style*="border-radius: 12px"] {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mud-theme-dark .business-detail-page .mud-tab-panel .mud-card[style*="border-radius: 12px"]:hover {
    border-color: rgba(66, 165, 245, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30);
}

.mud-theme-light .business-detail-page .mud-tab-panel .mud-card[style*="border-radius: 12px"]:hover {
    box-shadow: var(--shadow-card-hover);
}

/* --- Certifications Table --- */
.business-detail-page .mud-simple-table[style*="border-radius: 12px"] {
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}

.mud-theme-dark .business-detail-page .mud-simple-table[style*="border-radius: 12px"] {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mud-theme-light .business-detail-page .mud-simple-table[style*="border-radius: 12px"] {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.business-detail-page .mud-simple-table thead th {
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 16px;
}

.mud-theme-dark .business-detail-page .mud-simple-table thead th {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mud-theme-light .business-detail-page .mud-simple-table thead th {
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.business-detail-page .mud-simple-table tbody td {
    padding: 12px 16px;
    font-size: 0.875rem;
}

/* --- Team / Personnel Cards --- */
.business-detail-page .mud-tab-panel .mud-paper[style*="border: 1px solid var(--mud-palette-divider)"][style*="border-radius: 12px"] {
    transition: all var(--transition-fast);
}

.business-detail-page .mud-tab-panel .mud-paper[style*="border: 1px solid var(--mud-palette-divider)"][style*="border-radius: 12px"]:hover {
    transform: translateY(-2px);
}

.mud-theme-dark .business-detail-page .mud-tab-panel .mud-paper[style*="border: 1px solid var(--mud-palette-divider)"][style*="border-radius: 12px"]:hover {
    border-color: rgba(66, 165, 245, 0.20);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.mud-theme-light .business-detail-page .mud-tab-panel .mud-paper[style*="border: 1px solid var(--mud-palette-divider)"][style*="border-radius: 12px"]:hover {
    border-color: rgba(21, 101, 192, 0.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* Personnel avatar */
.business-detail-page .mud-tab-panel .mud-avatar-medium {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* --- Reviews Section --- */

/* Rating summary card */
.business-detail-page div[style*="border-radius: 12px"][style*="padding: 20px"] {
    border-radius: var(--radius-md) !important;
    padding: 24px !important;
}

.mud-theme-dark .business-detail-page div[style*="border-radius: 12px"][style*="padding: 20px"] {
    background: rgba(30, 136, 229, 0.06) !important;
    border-color: rgba(66, 165, 245, 0.12) !important;
}

.mud-theme-light .business-detail-page div[style*="border-radius: 12px"][style*="padding: 20px"] {
    background: rgba(21, 101, 192, 0.03) !important;
    border-color: rgba(21, 101, 192, 0.08) !important;
}

/* Large rating number */
.business-detail-page .mud-typography-h2[style*="font-weight: 300"] {
    font-weight: 200 !important;
    font-size: 3rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

/* Rating breakdown bars */
.business-detail-page div[style*="flex-grow: 1"][style*="height: 8px"] {
    height: 10px !important;
    border-radius: 5px !important;
}

.business-detail-page div[style*="flex-grow: 1"][style*="height: 8px"] > div {
    border-radius: 5px !important;
}

/* Individual review cards */
.business-detail-page .mud-paper[style*="border: 1px solid var(--mud-palette-divider)"][style*="border-radius: 8px"] {
    border-radius: var(--radius-sm) !important;
    transition: all var(--transition-fast);
}

.mud-theme-dark .business-detail-page .mud-paper[style*="border: 1px solid var(--mud-palette-divider)"][style*="border-radius: 8px"]:hover {
    border-color: rgba(255, 255, 255, 0.10);
    background-color: rgba(255, 255, 255, 0.02);
}

.mud-theme-light .business-detail-page .mud-paper[style*="border: 1px solid var(--mud-palette-divider)"][style*="border-radius: 8px"]:hover {
    border-color: rgba(0, 0, 0, 0.10);
    background-color: rgba(0, 0, 0, 0.01);
}

/* Reviewer avatar */
.business-detail-page .mud-avatar-small[style*="background: linear-gradient"] {
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.20);
}

/* Review text */
.business-detail-page div[style*="margin-left: 44px"] .mud-typography-body2[style*="line-height: 1.6"] {
    font-size: 0.9rem;
    line-height: 1.7 !important;
}

/* No reviews empty state */
.business-detail-page div[style*="border: 2px dashed"] {
    border-radius: var(--radius-md) !important;
    padding: 48px 24px !important;
}

.mud-theme-dark .business-detail-page div[style*="border: 2px dashed"] {
    background: rgba(30, 136, 229, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.mud-theme-light .business-detail-page div[style*="border: 2px dashed"] {
    background: rgba(30, 136, 229, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* --- Sidebar Widgets --- */
.business-detail-page .d-none.d-md-block .mud-paper {
    border-radius: var(--radius-md) !important;
    transition: all var(--transition-smooth);
}

.mud-theme-dark .business-detail-page .d-none.d-md-block .mud-paper {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mud-theme-light .business-detail-page .d-none.d-md-block .mud-paper {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Profile completeness ring */
.business-detail-page .mud-progress-circular {
    filter: drop-shadow(0 0 8px rgba(30, 136, 229, 0.20));
}

/* Shortlist widget — warm accent */
.business-detail-page .d-none.d-md-block .mud-paper:first-child {
    position: relative;
}

/* Similar businesses cards */
.business-detail-page .d-none.d-md-block .mud-paper[style*="cursor: pointer"] {
    transition: all var(--transition-fast) !important;
}

.business-detail-page .d-none.d-md-block .mud-paper[style*="cursor: pointer"]:hover {
    transform: translateX(4px);
}

.mud-theme-dark .business-detail-page .d-none.d-md-block .mud-paper[style*="cursor: pointer"]:hover {
    border-color: rgba(66, 165, 245, 0.20) !important;
    background-color: rgba(66, 165, 245, 0.04);
}

.mud-theme-light .business-detail-page .d-none.d-md-block .mud-paper[style*="cursor: pointer"]:hover {
    border-color: rgba(21, 101, 192, 0.15) !important;
    background-color: rgba(21, 101, 192, 0.02);
}

/* --- Photo Gallery --- */
.photo-thumbnail {
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-smooth) !important;
}

.photo-thumbnail:hover {
    transform: translateY(-4px) scale(1.02) !important;
}

.mud-theme-dark .photo-thumbnail {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mud-theme-dark .photo-thumbnail:hover {
    border-color: rgba(66, 165, 245, 0.20);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.40) !important;
}

.mud-theme-light .photo-thumbnail:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10) !important;
}

.photo-thumbnail .mud-card-media {
    transition: transform var(--transition-smooth);
}

.photo-thumbnail:hover .mud-card-media {
    transform: scale(1.08);
}

/* --- Locations Section --- */
.business-detail-page .mud-paper[style*="border-radius: 12px"]:has(#locations-map) {
    overflow: hidden;
}

/* Location map container */
.business-detail-page div[id^="locations-map"] {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--mud-palette-divider);
}

/* Location list cards */
.business-detail-page .mud-paper[style*="border: 1px solid var(--mud-palette-divider)"][style*="border-radius: 8px"]:has(.mud-icon-root) {
    transition: all var(--transition-fast);
}

/* --- Mobile Action Bar --- */
.mobile-action-bar {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 10px 16px !important;
}

.mud-theme-dark .mobile-action-bar {
    background: rgba(15, 17, 23, 0.92) !important;
    border-top-color: rgba(255, 255, 255, 0.06) !important;
}

.mud-theme-light .mobile-action-bar {
    background: rgba(255, 255, 255, 0.92) !important;
    border-top-color: rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.mobile-action-bar .mud-button {
    border-radius: var(--radius-sm);
    font-weight: 600;
    min-height: 42px;
}

/* --- Shareable Link Section --- */
.business-detail-page .mud-paper.text-center[style*="border-radius: 12px"] {
    border-radius: var(--radius-md) !important;
}

.mud-theme-dark .business-detail-page .mud-paper.text-center[style*="border-radius: 12px"] {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.06), transparent);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mud-theme-light .business-detail-page .mud-paper.text-center[style*="border-radius: 12px"] {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.03), transparent);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Back to Directory Button --- */
.business-detail-page .mud-button[class*="mb-3"][style*=""] {
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.business-detail-page .mud-button[class*="mb-3"]:hover {
    transform: translateX(-2px);
}

/* --- Dialog Enhancements for Business Details --- */
.business-detail-page .mud-dialog {
    border-radius: var(--radius-lg) !important;
}

/* Photo modal */
.business-detail-page .mud-dialog .mud-image {
    border-radius: var(--radius-sm);
}

/* Photo navigation */
.business-detail-page .mud-dialog .mud-icon-button-outlined {
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.business-detail-page .mud-dialog .mud-icon-button-outlined:hover:not(:disabled) {
    transform: scale(1.10);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.25);
}

/* --- Responsive Adjustments --- */
@@media (max-width: 959.95px) {
    .business-detail-page {
        padding-bottom: 72px !important;
    }

    .business-sticky-header .mud-button-outlined[class*="d-none d-sm-flex"] {
        display: none !important;
    }

    /* Trust strip — full width cards on mobile */
    .business-detail-page .d-flex.gap-3[style*="min-width: max-content"] .mud-paper {
        min-width: 120px !important;
        padding: 12px !important;
    }

    .business-detail-page .d-flex.gap-3[style*="min-width: max-content"] .mud-icon-root {
        font-size: 1.5rem !important;
    }

    .business-detail-page .d-flex.gap-3[style*="min-width: max-content"] .mud-typography-h6 {
        font-size: 1.1rem;
    }
}

@@media (max-width: 599.95px) {
    /* Simplify hero on very small screens */
    .business-detail-page .mud-paper[class*="pa-5"] {
        padding: 16px !important;
    }

    /* Stack contact card below hero */
    .business-detail-page .mud-typography-h5[style*="font-weight: 600"] {
        font-size: 1.2rem;
    }

    /* Photo gallery — 2 columns on mobile */
    .business-detail-page .mud-grid > .mud-item[class*="xs-6"][class*="sm-4"] {
        flex-basis: 50%;
        max-width: 50%;
    }
}

/* =========================
   22. Rich Text Editor
   ========================= */
.rich-text-editor-wrapper {
    margin-bottom: 16px;
}

.rich-text-editor-wrapper .rz-html-editor {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
}

.rich-text-editor-wrapper .rz-html-editor:focus-within {
    border-color: var(--mud-palette-primary);
    border-width: 2px;
}

.rich-text-editor-wrapper .rz-html-editor-content {
    background-color: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    padding: 12px;
}

.rich-text-editor-wrapper .rz-html-editor-content ol {
    padding-left: 24px;
    margin: 8px 0;
}

.rich-text-editor-wrapper .rz-html-editor-content ul {
    padding-left: 24px;
    margin: 8px 0;
}

.rich-text-editor-wrapper .rz-html-editor-content li {
    margin: 4px 0;
}

.rich-text-editor-wrapper .rz-html-editor-toolbar {
    background-color: var(--mud-palette-background);
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding: 4px;
}

/* Dark mode */
.mud-theme-dark .rich-text-editor-wrapper .rz-html-editor {
    border-color: var(--mud-palette-lines-default);
}

.mud-theme-dark .rich-text-editor-wrapper .rz-html-editor-content {
    background-color: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
}

.mud-theme-dark .rich-text-editor-wrapper .rz-html-editor-toolbar {
    background-color: var(--mud-palette-background);
    border-bottom-color: var(--mud-palette-lines-default);
}

.mud-theme-dark .rich-text-editor-wrapper .rz-html-editor-toolbar .rz-button {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--mud-palette-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    margin: 2px;
    transition: all var(--transition-fast);
}

.mud-theme-dark .rich-text-editor-wrapper .rz-html-editor-toolbar .rz-button .rzi,
.mud-theme-dark .rich-text-editor-wrapper .rz-html-editor-toolbar .rz-button i {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
}

.mud-theme-dark .rich-text-editor-wrapper .rz-html-editor-toolbar .rz-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--mud-palette-primary);
}

.mud-theme-dark .rich-text-editor-wrapper .rz-html-editor-toolbar .rz-button:hover .rzi,
.mud-theme-dark .rich-text-editor-wrapper .rz-html-editor-toolbar .rz-button:hover i {
    color: var(--mud-palette-primary);
}

.mud-theme-dark .rich-text-editor-wrapper .rz-html-editor-toolbar .rz-button.rz-state-active {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.3);
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary);
}

.mud-theme-dark .rich-text-editor-wrapper .rz-html-editor-toolbar .rz-button.rz-state-active .rzi,
.mud-theme-dark .rich-text-editor-wrapper .rz-html-editor-toolbar .rz-button.rz-state-active i {
    color: var(--mud-palette-primary);
}

.mud-theme-dark .rich-text-editor-wrapper .rz-html-editor-toolbar .rz-button:disabled .rzi,
.mud-theme-dark .rich-text-editor-wrapper .rz-html-editor-toolbar .rz-button:disabled i {
    color: var(--mud-palette-text-disabled);
    opacity: 0.5;
}

.mud-theme-dark .rich-text-editor-wrapper .rz-html-editor-separator {
    background-color: rgba(255, 255, 255, 0.12);
    width: 1px;
    margin: 0 4px;
}

/* =========================
   23. Scrollbar — Subtle & Matching
   ========================= */
.mud-theme-dark ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.mud-theme-dark ::-webkit-scrollbar-track {
    background: transparent;
}

.mud-theme-dark ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.10);
    border-radius: 3px;
}

.mud-theme-dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* =========================
   24. Focus States — Accessibility
   ========================= */
*:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* Remove default focus ring when using mouse */
.mud-button:focus:not(:focus-visible),
.mud-nav-link:focus:not(:focus-visible),
.mud-chip:focus:not(:focus-visible) {
    outline: none;
}

/* =========================
   25. Skeleton Loading — Smoother
   ========================= */
.mud-skeleton {
    border-radius: var(--radius-sm);
}

/* =========================
   26. Empty States
   ========================= */
.empty-state-container {
    padding: 48px 24px;
    text-align: center;
}

.empty-state-container .mud-icon-root {
    opacity: 0.4;
    margin-bottom: 16px;
}

/* =========================
   27. Print Styles
   ========================= */
@@media print {
    .mud-appbar,
    .mud-drawer,
    .avatar-edit-menu,
    .profile-action {
        display: none !important;
    }

    .mud-main-content {
        padding: 0 !important;
    }

    .profile-header {
        background: none !important;
    }
}

/* =========================
   28. Drawer — Refined
   ========================= */
.mud-theme-dark .mud-drawer {
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.mud-theme-light .mud-drawer {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 1px 0 4px rgba(0, 0, 0, 0.04);
}

/* =========================
   29. Reduced Motion — Accessibility
   ========================= */
@@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================
   30. Form Sections — Visual Grouping
   ========================= */

/* Section headers in forms */
.mud-typography-h6 .mud-icon-root {
    vertical-align: text-bottom;
}

/* MudGrid in forms — consistent spacing */
.mud-grid.form-section-grid {
    margin-bottom: 24px;
}

/* Helper text — more readable */
.mud-input-helper-text {
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-top: 4px;
}

/* Validation message styling */
.validation-message {
    color: var(--mud-palette-error);
    font-size: 0.8125rem;
    margin-top: 4px;
    font-weight: 500;
}

/* =========================
   31. MudSelect & Autocomplete — Better Touch
   ========================= */
.mud-select .mud-input-slot,
.mud-autocomplete .mud-input-slot {
    min-height: 44px;
}

/* Popover menus — rounded, polished */
.mud-popover-open {
    border-radius: 12px !important;
    overflow: hidden;
}

.mud-theme-dark .mud-popover-open {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.50);
}

.mud-theme-light .mud-popover-open {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* List items in dropdowns — larger touch targets */
.mud-list-item {
    min-height: 40px;
    font-size: 0.9rem;
}

/* =========================
   32. Page Headers — Consistent
   ========================= */

/* Large page titles */
.mud-typography-h4 {
    letter-spacing: -0.02em;
}

/* Subtitle under page titles */
.mud-typography-h4 + .mud-typography-subtitle1 {
    margin-top: 4px;
}

/* =========================
   33. Badges & Status Indicators
   ========================= */
.mud-badge .mud-badge-content {
    font-weight: 600;
    font-size: 0.6875rem;
}

/* =========================
   34. Progress Indicators — Improved
   ========================= */
.mud-progress-circular {
    filter: drop-shadow(0 0 4px rgba(30, 136, 229, 0.25));
}

.mud-progress-linear {
    border-radius: 4px;
    overflow: hidden;
}

/* =========================
   35. Tooltip — Readable
   ========================= */
.mud-tooltip {
    font-size: 0.8125rem !important;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    max-width: 280px;
    line-height: 1.4;
}

/* =========================
   36. Light Mode — Specific Enhancements
   ========================= */

/* Cards in light mode — subtle shadow, not flat */
.mud-theme-light .mud-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.mud-theme-light .mud-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

/* Better contrast for secondary text in light mode */
.mud-theme-light .mud-typography-caption {
    color: #6b7280;
}

.mud-theme-light .mud-typography-subtitle1[class*="Color"] {
    font-weight: 500;
}

/* Selection highlight */
.mud-theme-light .mud-selected-item {
    background-color: rgba(21, 101, 192, 0.08) !important;
}

.mud-theme-dark .mud-selected-item {
    background-color: rgba(66, 165, 245, 0.12) !important;
}

/* =========================
   37. Switch/Toggle — More Visible
   ========================= */
.mud-switch {
    transform: scale(1.05);
}

/* =========================
   38. Breadcrumb-like Context Indicators
   ========================= */
.mud-breadcrumbs .mud-breadcrumb-item {
    font-size: 0.875rem;
    font-weight: 500;
}

/* =========================
   39. Alert Improvements — Readability
   ========================= */
.mud-alert-filled .mud-alert-message {
    font-weight: 500;
    font-size: 0.9rem;
}

.mud-alert-outlined {
    border-width: 1.5px;
}

/* Info alerts — better dark mode */
.mud-theme-dark .mud-alert-standard-info {
    background-color: rgba(91, 154, 255, 0.10);
    border: 1px solid rgba(91, 154, 255, 0.20);
}

.mud-theme-dark .mud-alert-standard-warning {
    background-color: rgba(255, 193, 77, 0.10);
    border: 1px solid rgba(255, 193, 77, 0.20);
}

.mud-theme-dark .mud-alert-standard-error {
    background-color: rgba(255, 83, 112, 0.10);
    border: 1px solid rgba(255, 83, 112, 0.20);
}

.mud-theme-dark .mud-alert-standard-success {
    background-color: rgba(74, 222, 128, 0.10);
    border: 1px solid rgba(74, 222, 128, 0.20);
}

/* =========================
   40. Job Board — Listing Page
   ========================= */

/* --- Page Header --- */
.job-listing-page .job-page-header {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.mud-theme-dark .job-listing-page .job-page-header {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.10) 0%, rgba(99, 102, 241, 0.06) 50%, rgba(30, 136, 229, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mud-theme-light .job-listing-page .job-page-header {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.05) 0%, rgba(99, 102, 241, 0.02) 50%, #f8f9fb 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.job-listing-page .job-page-header .mud-typography-h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* --- Search & Filter Bar --- */
.job-listing-page .job-search-bar {
    border-radius: var(--radius-md);
}

.mud-theme-dark .job-listing-page .job-search-bar {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mud-theme-light .job-listing-page .job-search-bar {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-card);
}

/* Post Job CTA button */
.job-listing-page .post-job-btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    min-height: 44px;
    transition: all var(--transition-fast);
}

.job-listing-page .post-job-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(30, 136, 229, 0.30);
}

/* --- View Toggle & Results Toolbar --- */
.job-listing-page .results-toolbar {
    padding: 4px 0;
}

.job-listing-page .results-toggle .mud-button {
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    transition: all var(--transition-fast);
}

.job-listing-page .sort-button {
    border-radius: var(--radius-sm) !important;
    font-weight: 500;
}

/* --- Job Tile Cards --- */
.job-listing-page .job-tile {
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-smooth), border-color var(--transition-fast) !important;
    position: relative;
    height: 100%;
}

.job-listing-page .job-tile::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mud-palette-primary), rgba(99, 102, 241, 0.6));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.job-listing-page .job-tile:hover::after {
    opacity: 1;
}

.job-listing-page .job-tile:hover {
    transform: translateY(-6px) !important;
}

.mud-theme-dark .job-listing-page .job-tile {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, #262A40 0%, #22263A 100%);
}

.mud-theme-dark .job-listing-page .job-tile:hover {
    border-color: rgba(66, 165, 245, 0.20);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(66, 165, 245, 0.10) !important;
}

.mud-theme-light .job-listing-page .job-tile {
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.mud-theme-light .job-listing-page .job-tile:hover {
    border-color: rgba(21, 101, 192, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(21, 101, 192, 0.08) !important;
}

/* Job card title */
.job-listing-page .job-tile .job-tile-title {
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Job card description truncation */
.job-listing-page .job-tile .job-tile-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* Job card meta footer */
.job-listing-page .job-tile .job-tile-meta {
    border-top: 1px solid var(--mud-palette-divider);
    padding-top: 12px;
    margin-top: 12px;
}

/* Job card salary highlight */
.job-listing-page .job-tile .job-salary {
    font-weight: 600;
    color: var(--mud-palette-primary);
}

/* View Details button in cards */
.job-listing-page .job-tile .mud-card-actions .mud-button {
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.job-listing-page .job-tile .mud-card-actions .mud-button:hover {
    transform: translateX(2px);
}

/* --- DataGrid View --- */
.job-listing-page .job-grid {
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}

.mud-theme-dark .job-listing-page .job-grid {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mud-theme-light .job-listing-page .job-grid {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-card);
}

.job-listing-page .job-grid .mud-table-head th {
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mud-theme-dark .job-listing-page .job-grid .mud-table-head th {
    background: rgba(255, 255, 255, 0.03);
}

.mud-theme-light .job-listing-page .job-grid .mud-table-head th {
    background: rgba(0, 0, 0, 0.02);
}

.job-listing-page .job-grid .mud-table-row:hover {
    transition: background-color var(--transition-fast);
}

.mud-theme-dark .job-listing-page .job-grid .mud-table-row:hover td {
    background-color: rgba(66, 165, 245, 0.04);
}

.mud-theme-light .job-listing-page .job-grid .mud-table-row:hover td {
    background-color: rgba(21, 101, 192, 0.03);
}

/* --- Empty State --- */
.job-listing-page .job-empty-state {
    border-radius: var(--radius-lg);
    padding: 64px 32px;
    text-align: center;
}

.mud-theme-dark .job-listing-page .job-empty-state {
    background: linear-gradient(180deg, rgba(30, 136, 229, 0.04), transparent);
    border: 2px dashed rgba(255, 255, 255, 0.08);
}

.mud-theme-light .job-listing-page .job-empty-state {
    background: linear-gradient(180deg, rgba(21, 101, 192, 0.02), transparent);
    border: 2px dashed rgba(0, 0, 0, 0.08);
}

/* --- Loading Skeleton Cards --- */
.job-listing-page .job-skeleton-card {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.mud-theme-dark .job-listing-page .job-skeleton-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mud-theme-light .job-listing-page .job-skeleton-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Login Info Banner --- */
.job-listing-page .login-banner {
    border-radius: var(--radius-md);
    border-left: 4px solid var(--mud-palette-info);
}

.mud-theme-dark .job-listing-page .login-banner {
    background: rgba(66, 165, 245, 0.06);
    border-color: rgba(66, 165, 245, 0.30);
}

/* --- Map View --- */
.job-listing-page .mud-paper:has(.leaflet-container) {
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* =========================
   40b. Job Board — Details Page
   ========================= */

/* --- Details Header --- */
.job-detail-page .job-detail-header {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.mud-theme-dark .job-detail-page .job-detail-header {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.08) 0%, rgba(99, 102, 241, 0.04) 50%, transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mud-theme-light .job-detail-page .job-detail-header {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.04) 0%, rgba(99, 102, 241, 0.02) 50%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-card);
}

.job-detail-page .job-detail-header .mud-typography-h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Back button */
.job-detail-page .back-btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.job-detail-page .back-btn:hover {
    transform: translateX(-3px);
}

/* --- Salary Card --- */
.job-detail-page .salary-card {
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.mud-theme-dark .job-detail-page .salary-card {
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.18) 0%, rgba(99, 102, 241, 0.10) 100%);
    border: 1px solid rgba(66, 165, 245, 0.20);
    color: var(--text-heading);
}

.mud-theme-light .job-detail-page .salary-card {
    background: linear-gradient(135deg, #1565C0 0%, #1E88E5 100%);
    border: none;
    color: #ffffff;
}

.job-detail-page .salary-card .salary-amount {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.job-detail-page .salary-card .salary-label {
    opacity: 0.85;
    font-weight: 500;
}

.job-detail-page .salary-card .salary-divider {
    opacity: 0.25;
}

.mud-theme-dark .job-detail-page .salary-card .salary-divider {
    background-color: rgba(255, 255, 255, 0.20);
}

.mud-theme-light .job-detail-page .salary-card .salary-divider {
    background-color: rgba(255, 255, 255, 0.30);
}

.job-detail-page .salary-card .salary-date {
    opacity: 0.8;
}

/* Apply / Action Buttons */
.job-detail-page .apply-btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    min-height: 48px;
    transition: all var(--transition-fast);
}

.job-detail-page .apply-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.30);
}

.job-detail-page .action-btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

/* --- Content Panels (Description, Requirements, etc.) --- */
.job-detail-page .content-panel {
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
}

.mud-theme-dark .job-detail-page .content-panel {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(26, 29, 43, 1) 0%, rgba(26, 29, 43, 0.95) 100%);
}

.mud-theme-light .job-detail-page .content-panel {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-card);
}

/* Section titles with accent bar */
.job-detail-page .section-title {
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 14px;
}

.job-detail-page .section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 2px;
    background: var(--mud-palette-primary);
}

/* Job description text */
.job-detail-page .job-description-text {
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* --- Requirement Cards --- */
.job-detail-page .requirement-card {
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.job-detail-page .requirement-card-required {
    border-left: 4px solid var(--mud-palette-error);
}

.job-detail-page .requirement-card-preferred {
    border-left: 4px solid var(--mud-palette-info);
}

.mud-theme-dark .job-detail-page .requirement-card {
    border-color: rgba(255, 255, 255, 0.06);
}

.mud-theme-dark .job-detail-page .requirement-card:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.mud-theme-light .job-detail-page .requirement-card:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

/* Match score ring */
.job-detail-page .mud-progress-circular {
    filter: drop-shadow(0 0 8px rgba(30, 136, 229, 0.20));
}

/* --- Sidebar Cards --- */
.job-detail-page .sidebar-card {
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
}

.mud-theme-dark .job-detail-page .sidebar-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(26, 29, 43, 1) 0%, rgba(26, 29, 43, 0.95) 100%);
}

.mud-theme-light .job-detail-page .sidebar-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-card);
}

/* Sidebar section title */
.job-detail-page .sidebar-card .section-title {
    font-size: 1rem;
}

/* Job summary list */
.job-detail-page .sidebar-card .mud-list-item {
    padding: 8px 4px;
}

/* --- Indigenous Communities Cards --- */
.job-detail-page .indigenous-community-card {
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.mud-theme-dark .job-detail-page .indigenous-community-card {
    background-color: rgba(66, 165, 245, 0.06);
    border: 1px solid rgba(66, 165, 245, 0.12);
}

.mud-theme-light .job-detail-page .indigenous-community-card {
    background-color: rgba(21, 101, 192, 0.04);
    border: 1px solid rgba(21, 101, 192, 0.10);
}

.job-detail-page .indigenous-community-card:hover {
    transform: translateX(2px);
}

.mud-theme-dark .job-detail-page .indigenous-community-card:hover {
    border-color: rgba(66, 165, 245, 0.25);
    background-color: rgba(66, 165, 245, 0.08);
}

.mud-theme-light .job-detail-page .indigenous-community-card:hover {
    border-color: rgba(21, 101, 192, 0.18);
    background-color: rgba(21, 101, 192, 0.06);
}

/* --- Share Job Section --- */
.job-detail-page .share-card {
    border-radius: var(--radius-md);
}

.mud-theme-dark .job-detail-page .share-card {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.06), transparent);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mud-theme-light .job-detail-page .share-card {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.03), transparent);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.job-detail-page .share-card .mud-icon-button {
    transition: all var(--transition-fast);
    border-radius: 50%;
}

.job-detail-page .share-card .mud-icon-button:hover {
    transform: scale(1.15);
}

.mud-theme-dark .job-detail-page .share-card .mud-icon-button:hover {
    background-color: rgba(66, 165, 245, 0.12);
}

.mud-theme-light .job-detail-page .share-card .mud-icon-button:hover {
    background-color: rgba(21, 101, 192, 0.08);
}

/* --- Apply Dialog --- */
.job-detail-page .apply-dialog-paper {
    border-radius: var(--radius-lg) !important;
    max-width: 600px;
    margin: auto;
    margin-top: 10vh;
}

.mud-theme-dark .job-detail-page .apply-dialog-paper {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1A1D2B;
}

/* --- Map Section --- */
.job-detail-page .content-panel:has(.leaflet-container) {
    overflow: hidden;
}

.job-detail-page .content-panel .leaflet-container {
    border-radius: var(--radius-sm);
}

/* --- Responsive --- */
@@media (max-width: 959.95px) {
    .job-detail-page .job-detail-header .mud-typography-h3 {
        font-size: 1.5rem;
    }

    .job-detail-page .salary-card {
        padding: 16px;
    }

    .job-detail-page .content-panel,
    .job-detail-page .sidebar-card {
        padding: 20px !important;
    }
}

@@media (max-width: 599.95px) {
    .job-detail-page .job-detail-header {
        padding: 20px !important;
    }

    .job-detail-page .job-detail-header .mud-typography-h3 {
        font-size: 1.25rem;
    }

    .job-listing-page .job-page-header {
        padding: 20px !important;
    }

    .job-listing-page .job-page-header .mud-typography-h4 {
        font-size: 1.3rem;
    }
}

/* ===== 22. Site Footer ===== */
.mud-main-content {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 64px);
}

.site-footer-spacer {
    flex: 1;
}

.site-footer {
    margin-top: 3rem;
    padding: 0 1rem;
    font-family: "DM Sans", sans-serif;
}

.site-footer-rule {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        currentColor 50%,
        transparent 100%
    );
    opacity: 0.1;
    margin-bottom: 1.25rem;
}

.site-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1.5rem;
    gap: 0.5rem;
}

.site-footer-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: inherit;
    text-decoration: none;
    opacity: 0.55;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.site-footer-link:hover {
    opacity: 1;
    background: currentColor;
    background: rgba(128, 128, 128, 0.08);
}

.site-footer-link:focus-visible {
    outline: 2px solid #1565C0;
    outline-offset: 2px;
    opacity: 1;
}

.site-footer-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.site-footer-copy {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    opacity: 0.35;
    white-space: nowrap;
}

