/* ===========================
   Ownovo CSS Utilities
   Centralized reusable styles for the application.

   Design system v2 - editorial green brand (see Other/WebsiteDesign).

   IMPORTANT: Brand colors here MUST stay in sync with ThemeService.cs.
   When updating brand colors, update BOTH files.
   Dark-mode overrides below are driven by `data-theme="dark"` on <html>.
   =========================== */

/* ===========================
   Ownovo Design Tokens - brand primitives
   =========================== */
:root {
    /* --- Brand greens --- */
    --ovo-green-900: #1E3F36;
    --ovo-green-700: #2F5D50;   /* Primary */
    --ovo-green-500: #4A8574;
    --ovo-green-100: #E4ECE8;
    --ovo-green-50:  #F2F6F4;

    /* --- Neutrals --- */
    --ovo-ink:       #1A1A1A;
    --ovo-ink-soft:  #3A3A38;
    --ovo-muted:     #6B7163;
    --ovo-line:      #D8D5CC;
    --ovo-surface:   #FAFAF7;   /* Paper */
    --ovo-white:     #FFFFFF;

    /* --- Semantic --- */
    --ovo-accent:     var(--ovo-green-700);
    --ovo-accent-ink: var(--ovo-green-900);
    --ovo-bg:         var(--ovo-surface);
    --ovo-bg-elev:    var(--ovo-white);
    --ovo-text:       var(--ovo-ink);
    --ovo-text-muted: var(--ovo-muted);
    --ovo-border:     var(--ovo-line);

    /* --- Type --- */
    --ovo-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --ovo-font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ovo-font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

    /* --- Radius --- */
    --ovo-radius-sm: 4px;
    --ovo-radius:    8px;
    --ovo-radius-lg: 16px;

    /* --- Spacing scale (4px base) --- */
    --ovo-space-1: 4px;
    --ovo-space-2: 8px;
    --ovo-space-3: 12px;
    --ovo-space-4: 16px;
    --ovo-space-5: 24px;
    --ovo-space-6: 32px;
    --ovo-space-8: 48px;
    --ovo-space-10: 64px;

    /* --- Elevation --- */
    --ovo-shadow-sm: 0 1px 2px rgba(30, 63, 54, 0.06);
    --ovo-shadow:    0 4px 12px rgba(30, 63, 54, 0.08);
    --ovo-shadow-lg: 0 12px 32px rgba(30, 63, 54, 0.12);
}

/* ===========================
   App-scoped aliases (stable names used across the codebase)
   These map legacy --color-* names to the Ownovo tokens so existing
   classes don't need mass rename. Mirrors ThemeService.CurrentTheme.
   =========================== */
:root {
    /* Brand */
    --color-primary:       var(--ovo-green-700);
    --color-primary-hover: var(--ovo-green-900);
    --color-secondary:     var(--ovo-ink-soft);
    --color-tertiary:      var(--ovo-green-500);

    /* Semantic - kept in muted editorial register */
    --color-info:    #4A6B7A;
    --color-success: #4C8C6A;
    --color-warning: #D48A2A;
    --color-error:   #B04444;

    /* Surfaces */
    --color-background:        var(--ovo-surface);
    --color-background-light:  var(--ovo-green-50);
    --color-background-medium: var(--ovo-green-100);
    --color-surface:           var(--ovo-white);
    --color-surface-muted:     var(--ovo-green-50);
    --color-white:             var(--ovo-white);
    --color-black:             var(--ovo-ink);

    /* Text */
    --color-text-primary:   var(--ovo-ink);
    --color-text-secondary: var(--ovo-muted);
    --color-text-disabled:  #BDBDBD;
    --color-text-muted:     var(--ovo-muted);

    /* Icons - editorial palette on green brand */
    --color-icon-default: #5A6B61;   /* Slate Ink - informational */
    --color-icon-muted:   #8A938B;   /* Soft Slate - secondary/disabled */
    --color-icon-primary: var(--ovo-green-700);
    --color-icon-success: #4C8C6A;
    --color-icon-warning: #D48A2A;
    --color-icon-alert:   #B04444;

    /* Action */
    --color-action-default:  var(--ovo-muted);
    --color-action-disabled: #BDBDBD;

    /* Borders */
    --color-divider:        var(--ovo-line);
    --color-border-light:   var(--ovo-line);
    --color-border-medium:  #C9C6BC;
    --color-border-subtle:  rgba(26, 26, 26, 0.08);

    /* Dark accent (for footers, etc.) */
    --color-dark: var(--ovo-green-900);

    /* Shadows */
    --shadow-sm:          var(--ovo-shadow-sm);
    --shadow-md:          var(--ovo-shadow);
    --shadow-lg:          var(--ovo-shadow-lg);
    --shadow-card-hover:  var(--ovo-shadow);
    --shadow-button:      0 2px 8px rgba(30, 63, 54, 0.16);
    --shadow-button-hover:0 6px 16px rgba(30, 63, 54, 0.22);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 999px;

    /* Transitions */
    --transition-fast:   0.2s ease;
    --transition-medium: 0.3s ease;

    /* Z-Index Layers */
    --z-sticky:  50;
    --z-header:  100;
    --z-overlay: 200;
    --z-modal:   1000;
}

/* ===========================
   Dark theme - activated via <html data-theme="dark">
   Mirrors MudBlazor PaletteDark in ThemeService.cs.
   =========================== */
[data-theme="dark"] {
    /* Ownovo primitives shift */
    --ovo-accent:     #6FAE9B;
    --ovo-bg:         #14201B;
    --ovo-bg-elev:    #1C2A24;
    --ovo-text:       #F2F0E9;
    --ovo-text-muted: #A8ADA0;
    --ovo-border:     #2E3C36;

    /* Alias remap */
    --color-primary:       #6FAE9B;
    --color-primary-hover: #8BC4B3;
    --color-secondary:     #A8ADA0;
    --color-tertiary:      var(--ovo-green-500);

    --color-info:    #7DA3B0;
    --color-success: #7AB898;
    --color-warning: #E0A358;
    --color-error:   #D47070;

    --color-background:        #14201B;
    --color-background-light:  #1C2A24;
    --color-background-medium: #243229;
    --color-surface:           #1C2A24;
    --color-surface-muted:     #243229;
    --color-white:             #1C2A24;   /* component "white" surfaces */
    --color-black:             #F2F0E9;

    --color-text-primary:   #F2F0E9;
    --color-text-secondary: #A8ADA0;
    --color-text-disabled:  #5D6660;
    --color-text-muted:     #A8ADA0;

    --color-icon-default: #A8ADA0;
    --color-icon-muted:   #6F7871;
    --color-icon-primary: #6FAE9B;
    --color-icon-success: #7AB898;
    --color-icon-warning: #E0A358;
    --color-icon-alert:   #D47070;

    --color-divider:       #2E3C36;
    --color-border-light:  #2E3C36;
    --color-border-medium: #3A4942;
    --color-border-subtle: rgba(242, 240, 233, 0.08);

    --color-dark: #0E1915;

    --shadow-sm:         0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md:         0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-lg:         0 12px 36px rgba(0, 0, 0, 0.55);
    --shadow-card-hover: 0 6px 20px rgba(0, 0, 0, 0.50);
    --shadow-button:     0 2px 10px rgba(0, 0, 0, 0.45);
    --shadow-button-hover: 0 6px 18px rgba(0, 0, 0, 0.55);
}

/* ===========================
   Global body typography
   =========================== */
html,
body {
    background-color: var(--ovo-bg);
    color: var(--ovo-text);
}

body {
    font-family: var(--ovo-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .ovo-display {
    font-family: var(--ovo-font-display);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.ovo-eyebrow {
    font-family: var(--ovo-font-body);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--ovo-accent);
}

/* ===========================
   Reusable Card Styles
   =========================== */

/* Property Card Hover Effect - Used across PropertyResultCard and other cards */
.property-card-hover {
    transition: all var(--transition-fast);
    cursor: pointer;
}

.property-card-hover:hover {
    box-shadow: var(--shadow-card-hover) !important;
    transform: translateY(-2px);
}

.property-card-hover:hover .property-image {
    transform: scale(1.05);
}

.property-image {
    transition: transform var(--transition-medium);
}

/* Card Border Styling */
.card-border-light {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
}

/* Info Item Cards - Used in PropertyDetailModal and other detail views */
.info-item-card {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.info-item-card:hover {
    background-color: var(--color-background-medium);
    border-color: var(--color-border-medium);
    box-shadow: var(--shadow-sm);
}

/* ===========================
   Custom Scrollbar Styling
   =========================== */

/* Default Scrollbar - Applied to scrollable containers */
.custom-scrollbar::-webkit-scrollbar,
.property-search-results::-webkit-scrollbar,
.property-search-results-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track,
.property-search-results::-webkit-scrollbar-track,
.property-search-results-content::-webkit-scrollbar-track {
    background: var(--color-surface-muted);
}

.custom-scrollbar::-webkit-scrollbar-thumb,
.property-search-results::-webkit-scrollbar-thumb,
.property-search-results-content::-webkit-scrollbar-thumb {
    background: var(--color-border-medium);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover,
.property-search-results::-webkit-scrollbar-thumb:hover,
.property-search-results-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-icon-muted);
}

/* ===========================
   MudBlazor Component Overrides
   =========================== */

/* MudDialog - Full Screen Modal Override (1169px max width) */
::deep .property-detail-modal {
    border-radius: 0 !important;
    max-height: 100vh !important;
    height: 100vh !important;
    margin: 0 auto !important;
    max-width: 1169px !important;
}

::deep .property-detail-modal .mud-dialog-content {
    padding: 0 !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* MudDialog - Centered Dialog Container Override */
.mud-dialog-content {
    max-width: 1169px !important;
    width: 100% !important;
    margin: 0px auto !important;
    max-height: 94vh !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
}

.mud-dialog-container.mud-dialog-center {
    align-items: normal !important;
}

.mud-dialog {
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0px !important;
}

/* MudPaper - Global Footer Styling (overridden by .footer-dark below) */
.mud-main-content .mud-paper.mt-auto {
    box-shadow: none !important;
}

/* ===========================
   Footer Utilities
   =========================== */

/* Footer within search results or scrollable containers */
.footer-inline {
    margin-top: 40px;
    margin-bottom: 0;
    background: transparent;
    position: relative;
    contain: layout style paint;
}

.footer-inline .mud-paper {
    box-shadow: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.footer-inline .mud-paper *[style*="position: fixed"],
.footer-inline .mud-paper *[style*="position: absolute"] {
    position: relative !important;
}

/* Hide MainLayout footer on property search page */
body:has(.property-search-container) .mud-main-content > .mud-paper.mt-auto {
    display: none !important;
}

/* ===========================
   Loading & State Utilities
   =========================== */

/* Modal Loading State */
.modal-loading,
.modal-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem;
    text-align: center;
}

.modal-error {
    color: var(--color-error);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--color-surface-muted);
    border: 1px dashed var(--color-border-subtle);
    border-radius: var(--radius-md);
}

.empty-state-icon {
    font-size: 64px;
    color: var(--color-icon-muted);
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 16px;
    color: var(--color-text-secondary);
}

/* ===========================
   Button Utilities
   =========================== */

/* Primary CTA Button */
.cta-button-primary {
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    box-shadow: var(--shadow-button) !important;
}

.cta-button-primary:hover {
    box-shadow: var(--shadow-button-hover) !important;
    transform: translateY(-1px);
}

/* Secondary CTA Button */
.cta-button-secondary {
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    transition: all var(--transition-fast) !important;
}

.cta-button-secondary:hover {
    background-color: var(--color-background-light) !important;
}

/* Rounded Button (e.g., Save Search) */
.button-rounded {
    border-radius: 20px;
    text-transform: none;
    font-weight: 500;
}

/* ===========================
   Image & Media Utilities
   =========================== */

/* Image with fallback placeholder */
.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0.5rem;
    color: var(--color-icon-muted);
    background-color: var(--color-surface-muted);
}

/* Thumbnail placeholder */
.thumbnail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: var(--color-surface-muted);
    border: 1px dashed var(--color-border-medium);
}

/* Image overlay effects */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 0.25rem;
}

/* ===========================
   Layout Utilities
   =========================== */

/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
}

/* Flex utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* ===========================
   Typography Utilities
   =========================== */

/* Text truncation */
.text-truncate-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===========================
   Badge & Chip Utilities
   =========================== */

/* Filter badge */
.filter-badge {
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-xl);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
}

/* Feature chip styling */
.feature-chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

/* ===========================
   Responsive Utilities
   =========================== */

/* Hide on mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ===========================
   Management Dashboard Styles
   =========================== */

/* Summary Cards */
.summary-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Icon Color Classes - See STYLES.md for usage guidelines */
.icon-muted {
    color: var(--color-icon-muted) !important;
}

.icon-slate,
.icon-default {
    color: var(--color-icon-default) !important;
}

.icon-primary {
    color: var(--color-icon-primary) !important;
}

.icon-success {
    color: var(--color-icon-success) !important;
}

.icon-warning {
    color: var(--color-icon-warning) !important;
}

.icon-alert {
    color: var(--color-icon-alert) !important;
}

.text-muted {
    color: var(--color-text-secondary) !important;
}

/* Alert Bar */
.alert-bar {
    background-color: var(--color-surface-muted);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
}

.alert-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.alert-item--critical {
    color: var(--color-error);
}

/* Property results grid (home featured + search results)
   Responsive auto-fill grid: as many 300px-min columns as fit, single column below 1024px. */
.property-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .property-results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .property-results-grid {
        gap: 16px;
    }
}

/* PropertyResultCard image-overlay action buttons - glassy, consistent, and
   sized so the Share/Favorite/More trio never collides with the left-side badges. */
.property-card-action-btn,
.property-card-action-menu > .mud-menu-activator .mud-icon-button,
.property-card-action-menu .mud-icon-button {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
    border-radius: 50%;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.property-card-action-btn:hover,
.property-card-action-menu .mud-icon-button:hover {
    background: #ffffff !important;
    transform: translateY(-1px);
}

.property-card-action-btn .mud-icon-root,
.property-card-action-menu .mud-icon-button .mud-icon-root {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

/* Scope-specific: inside the narrow /search results pane, hide the overflow menu
   so Share + Favorite alone never collide with the Estate / New badges. */
.property-search-results-content .property-card-action-menu {
    display: none !important;
}

/* PropertyResultCard - single-row specs (bedrooms / bathrooms / area).
   nowrap per item, bullet separators, uniform icon color - professional and skimmable. */
.property-card-specs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
    font-size: 13px;
    flex-wrap: nowrap;
    overflow: hidden;
    line-height: 1.2;
}

.property-card-specs .property-card-spec {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.property-card-specs .property-card-spec + .property-card-spec::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-border-subtle, #d0d4d2);
    margin-right: 10px;
    margin-left: -10px;
}

.property-card-specs .property-card-spec-icon {
    width: 16px !important;
    height: 16px !important;
    font-size: 16px !important;
}

.property-card-specs .property-card-spec strong {
    font-weight: 600;
    color: var(--color-text-primary);
}

.property-card-specs .property-card-spec-label {
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* PropertyResultCard - SA feature badges (fibre / pool / solar).
   Icon-only by default to save horizontal space; the whole row expands to show
   labels when the user clicks any chip. Tooltips surface the label on hover. */
.property-card-features {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
    cursor: pointer;
}

.property-card-feature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 28px;
    min-width: 28px;
    padding: 0 4px;
    border-radius: 14px;
    background: var(--color-surface-muted, #f3f5f4);
    border: 1px solid var(--color-border-subtle, #e3e6e4);
    font-size: 11px;
    color: var(--color-text-secondary);
    transition: padding 0.15s ease, background-color 0.15s ease;
}

.property-card-feature .property-card-feature-label {
    display: none;
    font-weight: 500;
    white-space: nowrap;
}

.property-card-feature.is-expanded {
    padding: 0 10px 0 6px;
}

.property-card-feature.is-expanded .property-card-feature-label {
    display: inline;
}

.property-card-feature:hover {
    background: var(--color-surface, #fff);
    border-color: var(--color-border-light, #c9d2ce);
}

.property-card-feature .mud-icon-root {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* Property Management Cards */
.property-card {
    transition: box-shadow 0.2s;
    border: 1px solid var(--color-border-subtle);
}

.property-card:hover {
    box-shadow: var(--shadow-card-hover) !important;
}

/* Stats Row */
.stats-row {
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stat-icon {
    color: var(--color-icon-muted) !important;
    opacity: 0.8;
}

/* Warning Badges */
.warning-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--color-surface-muted);
    color: var(--color-text-secondary);
}

.warning-badge--alert {
    background-color: rgba(176, 68, 68, 0.12);
    color: var(--color-error);
}

/* Toolbar */
.toolbar-paper {
    background-color: var(--color-surface-muted);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
}

/* Price Display */
.price-text {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Property Table */
.property-table {
    border: 1px solid var(--color-border-subtle);
}

/* Text Utilities */
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.font-weight-medium {
    font-weight: 500;
}

/* ===========================
   Card Hover Effects
   =========================== */

/* Generic hover card effect - used on Dashboard, etc. */
.hover-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* ===========================
   Social Login Buttons
   =========================== */

.social-button {
    text-transform: none;
    font-weight: 500;
    border-color: var(--color-border-light);
}

.social-button:hover {
    border-color: var(--color-primary);
    background-color: var(--color-surface-muted);
}

/* ===========================
   Google Search Box
   =========================== */

.google-search-white-bg .mud-input,
.google-search-white-bg .mud-input-slot,
.google-search-white-bg .mud-input-root,
.google-search-white-bg.mud-input-outlined,
.google-search-white-bg.mud-input-filled {
    background-color: #fff !important;
    border-radius: var(--radius-sm) !important;
}

.google-search-white-bg .mud-input-outlined .mud-input-slot,
.google-search-white-bg.mud-input-control {
    border-radius: var(--radius-sm) !important;
}

.google-search-white-bg .mud-input-outlined {
    border: 1px solid var(--color-border-light) !important;
}

.google-search-white-bg:hover .mud-input-outlined {
    border-color: var(--color-primary) !important;
}

/* ===========================
   Home search dropdown - Ownovo-first, Google below
   =========================== */

.search-suggestion {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 4px 0;
}

.search-suggestion__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.search-suggestion .ownovo-pill {
    flex: 0 0 auto;
    align-self: center;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    background: var(--ovo-green-700);
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Divider between the last Ownovo row and the first Google row. */
.search-suggestion.is-ownovo + .search-suggestion.is-google {
    border-top: 1px solid var(--color-border-light);
    padding-top: 10px;
    margin-top: 6px;
}

/* ===========================
   Photo Upload Component
   =========================== */

.drop-zone-active {
    background-color: var(--mud-palette-primary-lighten) !important;
}

.photo-preview-card {
    height: 100%;
}

/* ===========================
   Listing Wizard - Package cards
   =========================== */

.package-card {
    border: 2px solid transparent;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.package-card:hover {
    transform: translateY(-2px);
}

.package-card-selected {
    border-color: var(--ovo-green-700, #2F5D50);
}

.photo-manager-card {
    height: 100%;
}

/* ===========================
   Email Verification Banner
   =========================== */

.email-verification-banner {
    position: sticky;
    top: 0;
    z-index: 1300;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ===========================
   Loading Overlay
   =========================== */

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.2s ease;
}

/* ===========================
   Dashboard Styles
   =========================== */

/* Avatar neutral styling */
.avatar-neutral {
    background-color: var(--color-surface-muted) !important;
    color: var(--color-text-secondary) !important;
}

/* Role chip styling */
.role-chip {
    border-color: var(--color-border-light) !important;
    color: var(--color-text-secondary) !important;
}

/* Notification items */
.notification-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: var(--color-surface-muted);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
}

.notification-item .mud-icon-root {
    color: var(--color-icon-muted);
}

/* Height utility */
.h-100 {
    height: 100%;
}

/* ===========================
   Footer (Dark Theme Section)
   =========================== */

.footer-dark {
    background-color: var(--ovo-green-900) !important;
    color: rgba(250, 250, 247, 0.82) !important;
    border-top: 1px solid rgba(250, 250, 247, 0.06) !important;
}

.footer-dark .mud-typography {
    color: rgba(250, 250, 247, 0.74) !important;
}

.footer-dark .mud-typography.footer-heading {
    color: #F2F0E9 !important;
    font-family: var(--ovo-font-display);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.footer-dark .mud-link {
    color: rgba(250, 250, 247, 0.74) !important;
    transition: color var(--transition-fast);
}

.footer-dark .mud-link:hover {
    color: #E4ECE8 !important;
}

.footer-dark .footer-copyright {
    color: rgba(250, 250, 247, 0.52) !important;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.footer-dark .mud-icon-button {
    color: rgba(250, 250, 247, 0.74) !important;
}

.footer-dark .mud-icon-button:hover {
    color: #E4ECE8 !important;
    background-color: rgba(250, 250, 247, 0.06) !important;
}

.footer-dark .mud-icon.icon-slate {
    color: rgba(250, 250, 247, 0.65) !important;
}

.footer-dark .mud-divider {
    background-color: rgba(250, 250, 247, 0.10) !important;
}

/* ===========================
   Page transition - fade in
   Applied to the main content container so route changes don't "pop" in.
   Respects prefers-reduced-motion.
   =========================== */
@keyframes ownovo-fade-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-fade-in {
    animation: ownovo-fade-in var(--transition-medium) ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .page-fade-in {
        animation: none;
    }
}

/* ===========================
   Province tile hover - lifts the Explore-by-province tiles on hover.
   =========================== */
.province-tile:hover {
    box-shadow: var(--shadow-card-hover) !important;
    transform: translateY(-2px);
}

/* ===========================
   EmptyState - keeps the placeholder breathing room and centred.
   =========================== */
.empty-state-container {
    background-color: transparent;
    border: 1px dashed var(--color-divider);
    border-radius: var(--radius-lg);
}

/* ===========================
   Property detail page - hero gallery layout.
   Primary image on the left, optional thumbnail strip on the right.
   On <md it stacks.
   =========================== */
.property-detail-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    height: 460px;
    overflow: hidden;
    position: relative; /* anchors .property-detail-gallery-preloads */
}

/* Off-screen preload sandbox - lets the broken-image handler probe images
   in the "+more" pool without affecting layout. opacity:0 (not display:none
   or visibility:hidden) guarantees browsers actually fetch them. */
.property-detail-gallery-preloads {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.property-detail-preload {
    width: 1px;
    height: 1px;
    object-fit: cover;
}

.property-detail-gallery-primary {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background-color: var(--color-surface-muted, #f4f6f8);
    min-height: 0;
    height: 100%;
}

.property-detail-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-detail-hero-fallback {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.property-detail-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    min-height: 0;
    min-width: 0;
}

.property-detail-thumb {
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    object-fit: cover;
    border-radius: var(--radius-lg);
    cursor: pointer;
    opacity: 0.95;
    transition: opacity 0.15s ease;
    border: none;
    display: block;
}

.property-detail-thumb:hover {
    opacity: 1;
}

.property-detail-thumb-more {
    flex: 0 0 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface-muted, #f4f6f8);
    color: var(--color-text-secondary);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.property-detail-map-placeholder {
    height: 260px;
    background-color: var(--color-surface-muted, #f4f6f8);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@media (max-width: 960px) {
    .property-detail-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }
    .property-detail-gallery-primary {
        height: 280px;
    }
    .property-detail-gallery-thumbs {
        flex-direction: row;
        height: 72px;
    }
    .property-detail-thumb {
        height: 100%;
    }
    .property-detail-thumb-more {
        height: 100%;
        font-size: 0.8rem;
    }
}

/* -------------------------------------------------------------
   Compare Properties page
   ------------------------------------------------------------- */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.compare-column {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    background: var(--color-surface, #fff);
}

.compare-column-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-background-light, #f5f5f5);
}

.compare-column-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-medium);
}

.compare-column-image:hover img {
    transform: scale(1.04);
}

.compare-column-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-remove-btn {
    position: absolute !important;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.compare-remove-btn:hover {
    background: #fff !important;
}

.compare-column-body {
    padding: 1rem 1.125rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.compare-price {
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.compare-title {
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    margin-bottom: 0.25rem;
}

.compare-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    border-bottom: 1px dashed var(--color-border-light);
}

.compare-row:last-of-type {
    border-bottom: none;
}

.compare-row-label {
    color: var(--color-text-secondary, #5f6b7a);
    flex-shrink: 0;
}

.compare-row-value {
    color: var(--color-text-primary, #222);
    font-weight: 500;
    text-align: right;
}

.compare-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.75rem;
    margin-top: 0.5rem;
}

.compare-feature {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.2;
}

.compare-feature-off {
    color: var(--color-text-disabled, #9ba4ae);
    text-decoration: line-through;
}

.compare-add-slot {
    border: 1.5px dashed var(--color-border-medium, #d4d9df);
    background: transparent;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-floating-cta {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg, 12px);
}

/* ===========================
   Agent / Agency Directory Cards
   =========================== */
.directory-card {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid var(--color-border-light);
}

.directory-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary);
}

/* Dashboard settings cards */
.settings-card {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid var(--color-border-light);
}

.settings-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary);
}

/* Saved property cards */
.saved-property-card {
    transition: box-shadow var(--transition-fast);
    border: 1px solid var(--color-border-light);
}

.saved-property-card:hover {
    box-shadow: var(--shadow-card-hover);
}

/* Dashboard stat cards (clickable drill-down) */
.stat-card {
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-hover);
}



/* Notification bell menu */
.notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    margin-top: 6px;
    flex-shrink: 0;
}

/* Notifications page row */
.notification-row {
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.notification-row:hover {
    background: var(--color-surface-muted);
}

.notification-row.unread {
    border-left: 3px solid var(--color-primary);
}

/* ===========================
   Ownovo brand - header / app-bar polish
   =========================== */
.ovo-appbar {
    backdrop-filter: saturate(160%) blur(8px);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--color-border-subtle);
}

.ovo-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

/* Nav link - understated editorial register */
.ovo-nav-link.mud-button-root {
    color: var(--color-text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    text-transform: none;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
}

.ovo-nav-link.mud-button-root:hover {
    background-color: var(--color-surface-muted);
    color: var(--color-primary);
}

/* Pill CTA button used in header / hero */
.ovo-cta {
    border-radius: 999px !important;
    text-transform: none !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
    padding: 8px 20px !important;
}

/* Theme toggle button */
.ovo-theme-toggle {
    color: var(--color-text-secondary) !important;
}

.ovo-theme-toggle:hover {
    color: var(--color-primary) !important;
    background-color: var(--color-surface-muted) !important;
}

/* Mobile nav drawer - force viewport-anchored positioning so it doesn't
   inherit the MudLayout's full-page height (Blazor renders drawer as
   position:absolute inside .mud-layout, which makes it 8000+ px tall). */
.mud-drawer.mud-drawer-temporary.mud-drawer-pos-left {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    z-index: 1301 !important;
}

.mud-drawer-overlay,
.mud-overlay-drawer {
    z-index: 1300 !important;
}

.mud-drawer .mud-drawer-content {
    height: 100% !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Direct flex children of drawer-content default to flex:1 0 auto in MudBlazor,
   which stretches the MudDivider/MudNavMenu. Constrain them to content size. */
.mud-drawer .mud-drawer-content > .mud-divider {
    flex: 0 0 auto !important;
    height: 1px !important;
    min-height: 1px !important;
}

.mud-drawer .mud-drawer-content > .mud-navmenu {
    flex: 0 0 auto !important;
}

.mud-drawer .mud-nav-menu {
    padding: 8px 0;
}

.mud-drawer .mud-nav-link {
    color: var(--color-text-primary);
    font-weight: 500;
}

.mud-drawer .mud-nav-group .mud-nav-link {
    padding-left: 24px;
}

/* Dark-theme body selector compatibility with blazor-error-ui */
[data-theme="dark"] #blazor-error-ui {
    background-color: #243229;
    color: #F2F0E9;
}

/* Hero overlay - editorial green scrim works on all bg photos */
.ovo-hero-scrim::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30, 63, 54, 0.45) 0%, rgba(30, 63, 54, 0.72) 100%);
    z-index: 1;
}

/* Homepage hero - brand-token background replacing legacy template bg */
#hero-area {
    background-image:
        linear-gradient(180deg, rgba(30, 63, 54, 0.55) 0%, rgba(30, 63, 54, 0.75) 100%),
        url('../images/home-page/HomePageBanner1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh !important;
    min-height: 100dvh !important;
}

#hero-area .hero-main,
#hero-area .welcome-text {
    position: relative;
    z-index: 2;
}

/* Hero search box - fluid on small screens, capped on desktop */
#hero-area .hero-search-stack {
    width: 100%;
    max-width: 560px;
}

#hero-area .hero-search-box {
    width: 100% !important;
    max-width: 500px !important;
}

/* Desktop (≥1200px): hero search noticeably wider without touching mobile sizing */
@media (min-width: 1200px) {
    #hero-area .hero-search-stack {
        max-width: 840px;
    }

    #hero-area .hero-search-box {
        max-width: 780px !important;
    }

    #hero-area .hero-search-box .mud-input-slot {
        font-size: 1.1rem;
        padding-block: 0.75rem;
    }

    #hero-area .hero-search-box .mud-input-adornment .mud-icon-button {
        width: 52px;
        height: 52px;
    }

    #hero-area .hero-search-box .mud-input-adornment .mud-icon-button .mud-icon-root {
        font-size: 1.6rem;
    }
}

/* Extra-large screens (≥1600px): use more of the available hero width */
@media (min-width: 1600px) {
    #hero-area .hero-search-stack {
        max-width: 1020px;
    }

    #hero-area .hero-search-box {
        max-width: 960px !important;
    }
}

@media (max-width: 768px) {
    #hero-area {
        background-attachment: scroll !important;
        background-position: 50% 40% !important;
        min-height: 560px !important;
    }

    #hero-area .hero-main {
        padding-inline: 16px !important;
    }

    #hero-area .hero-search-stack {
        padding-inline: 8px;
        max-width: 100%;
        box-sizing: border-box;
    }

    #hero-area .hero-search-box {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    #hero-area {
        min-height: 480px !important;
    }
}

/* Province quick-access chips in hero */
#hero-area .hero-province-chips {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

#hero-area .hero-province-label {
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

#hero-area .hero-province-chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

#hero-area .hero-province-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    backdrop-filter: blur(2px);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

#hero-area .hero-province-chip:hover,
#hero-area .hero-province-chip:focus-visible {
    background: var(--ovo-white, #fff);
    color: var(--ovo-green-700, #2F5D50);
    border-color: var(--ovo-white, #fff);
    transform: translateY(-1px);
    text-decoration: none;
    outline: none;
}

@media (max-width: 480px) {
    #hero-area .hero-province-chip {
        padding: 5px 12px;
        font-size: 0.8125rem;
    }
}

/* ===========================
   Blazor reconnect modal - centered, branded
   =========================== */
#components-reconnect-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 63, 54, 0.55);
    padding: 16px;
    box-sizing: border-box;
}

#components-reconnect-modal > * {
    max-width: 360px;
    width: 100%;
    background: var(--color-surface, #fff);
    color: var(--color-text-primary, #1a1a1a);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.45;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

#components-reconnect-modal a,
#components-reconnect-modal button {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--ovo-green-700, #2F5D50);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

#components-reconnect-modal a:hover,
#components-reconnect-modal button:hover {
    background: var(--ovo-green-900, #1E3F36);
}

/* ===========================
   POPIA cookie consent banner
   =========================== */
.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1400;
    display: flex;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
}

.cookie-consent-banner .cookie-consent-card {
    pointer-events: auto;
    max-width: 720px;
    width: 100%;
    border: 1px solid var(--ovo-line);
    border-radius: 12px;
    background: var(--ovo-white);
}

[data-theme="dark"] .cookie-consent-banner .cookie-consent-card {
    background: var(--ovo-ink-soft, #1f2623);
    border-color: rgba(255,255,255,0.08);
}

@media (max-width: 600px) {
    .cookie-consent-banner {
        padding: 8px;
    }
}

/* ===========================
   Pre-launch "coming soon" gate (/coming-soon)
   Full-screen standalone page - no header, no footer, no nav.
   =========================== */
.coming-soon {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ovo-space-5);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(74, 133, 116, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(30, 63, 54, 0.22), transparent 60%),
        linear-gradient(180deg, var(--ovo-green-900) 0%, #13302A 100%);
    color: var(--ovo-white);
    font-family: var(--ovo-font-body);
}

.coming-soon__card {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ovo-radius-lg);
    padding: var(--ovo-space-8) var(--ovo-space-6);
    box-shadow: var(--ovo-shadow-lg);
    text-align: center;
    backdrop-filter: blur(4px);
}

.coming-soon__logo {
    width: 120px;
    height: auto;
    margin: 0 auto var(--ovo-space-5);
    display: block;
    filter: brightness(0) invert(1);
}

.coming-soon__headline {
    font-family: var(--ovo-font-display);
    font-weight: 500;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.2;
    margin: 0 0 var(--ovo-space-3);
    color: var(--ovo-white);
    letter-spacing: -0.01em;
}

.coming-soon__lede {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 auto var(--ovo-space-6);
    max-width: 40ch;
}

.coming-soon__action {
    display: inline-block;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: var(--ovo-white);
    font-family: var(--ovo-font-body);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    padding: 10px 22px;
    border-radius: var(--ovo-radius);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.coming-soon__action:hover,
.coming-soon__action:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
    outline: none;
}

.coming-soon__form {
    margin-top: var(--ovo-space-4);
    text-align: left;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.coming-soon__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--ovo-space-2);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.coming-soon__input {
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
    font-family: var(--ovo-font-body);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--ovo-radius);
    color: var(--ovo-white);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.coming-soon__input:focus-visible {
    outline: none;
    border-color: var(--ovo-green-500);
    background: rgba(0, 0, 0, 0.35);
}

.coming-soon__submit {
    width: 100%;
    appearance: none;
    border: 0;
    background: var(--ovo-green-500);
    color: var(--ovo-green-900);
    font-family: var(--ovo-font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 11px 20px;
    margin-top: var(--ovo-space-4);
    border-radius: var(--ovo-radius);
    cursor: pointer;
    transition: background 0.15s ease;
}

.coming-soon__submit:hover,
.coming-soon__submit:focus-visible {
    background: #5E9A88;
    outline: none;
}

.coming-soon__error {
    color: #FFC9C2;
    font-size: 0.85rem;
    margin: var(--ovo-space-3) 0 0;
}

.coming-soon__footer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: var(--ovo-space-8) 0 0;
    letter-spacing: 0.04em;
}

@media (max-width: 480px) {
    .coming-soon__card {
        padding: var(--ovo-space-6) var(--ovo-space-4);
    }
    .coming-soon__logo {
        width: 96px;
    }
}

/* ------------------------------------------------------------------------- */
/* Off-Grid Readiness panel (PropertyDetailView)                             */
/* ------------------------------------------------------------------------- */
.off-grid-panel {
    border-radius: 14px;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-background-light) 140%);
}

.off-grid-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.off-grid-ring {
    position: relative;
    width: 92px;
    height: 92px;
    flex-shrink: 0;
}

.off-grid-ring svg {
    display: block;
    transition: transform 0.3s ease;
}

.off-grid-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.off-grid-ring-score {
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.off-grid-ring-total {
    font-size: 10px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-top: 3px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.off-grid-header-text {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.off-grid-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.off-grid-title.mud-typography {
    font-family: var(--font-display, 'Fraunces', serif);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0;
}

.off-grid-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.off-grid-tier-chip,
.off-grid-verify-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.off-grid-tier-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.off-grid-verify-chip .mud-icon-root {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.off-grid-verify-chip--high {
    background: rgba(47, 93, 80, 0.08);
    color: var(--ovo-green-700);
    border: 1px solid rgba(47, 93, 80, 0.22);
}

.off-grid-verify-chip--medium {
    background: rgba(32, 102, 148, 0.08);
    color: #1F6694;
    border: 1px solid rgba(32, 102, 148, 0.22);
}

.off-grid-verify-chip--muted {
    background: var(--color-surface-muted);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.10));
}

.off-grid-explainer {
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* Tier spectrum scale */
.off-grid-scale {
    margin-top: 22px;
}

.off-grid-scale-track {
    position: relative;
    display: flex;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: visible;
    background: var(--color-background-medium);
}

.off-grid-scale-seg {
    height: 100%;
    display: block;
}

.off-grid-scale-seg:first-child {
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
}

.off-grid-scale-seg:last-child {
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
}

.off-grid-scale-seg--dep {
    background: rgba(154, 165, 160, 0.35);
}

.off-grid-scale-seg--par {
    background: rgba(232, 164, 74, 0.35);
}

.off-grid-scale-seg--ready {
    background: rgba(47, 93, 80, 0.35);
}

.off-grid-scale-marker {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid var(--color-surface);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.off-grid-scale-labels {
    display: flex;
    width: 100%;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}

.off-grid-scale-labels span {
    text-align: center;
}

.off-grid-scale-labels span:first-child {
    text-align: left;
}

.off-grid-scale-labels span:last-child {
    text-align: right;
}

/* Expansion */
.off-grid-expansion {
    margin-top: 18px;
    background: transparent !important;
}

.off-grid-expansion .mud-expansion-panel {
    background: var(--color-background-light) !important;
    border-radius: 10px !important;
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.06)) !important;
    box-shadow: none !important;
}

.off-grid-expansion .mud-expansion-panel::before {
    display: none;
}

.off-grid-expansion-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 14px;
}

.off-grid-expansion-title .mud-icon-root {
    color: var(--ovo-green-700);
}

.off-grid-expansion-lede {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.off-grid-breakdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
}

@media (max-width: 599px) {
    .off-grid-breakdown {
        grid-template-columns: 1fr;
    }
}

.off-grid-factor {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.off-grid-factor-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-primary);
}

.off-grid-factor-icon {
    color: var(--ovo-green-700);
    width: 16px !important;
    height: 16px !important;
    font-size: 16px !important;
}

.off-grid-factor-label {
    flex: 1;
    font-weight: 500;
}

.off-grid-factor-weight {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: 12px;
}

.off-grid-factor-bar {
    height: 6px;
    width: 100%;
    background: var(--color-background-medium);
    border-radius: 999px;
    overflow: hidden;
}

.off-grid-factor-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--ovo-green-500) 0%, var(--ovo-green-700) 100%);
    border-radius: 999px;
}

@media (max-width: 599px) {
    .off-grid-header {
        gap: 14px;
    }
    .off-grid-ring {
        width: 76px;
        height: 76px;
    }
    .off-grid-ring svg {
        width: 76px;
        height: 76px;
    }
    .off-grid-ring-score {
        font-size: 22px;
    }
    .off-grid-title.mud-typography {
        font-size: 1.25rem;
    }
}

/* ------------------------------------------------------------------------- */
/* Off-Grid banner (AddListing Features step - hero card)                    */
/* ------------------------------------------------------------------------- */
.ai-generate-callout {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(47, 93, 80, 0.05) 0%, rgba(47, 93, 80, 0.02) 100%);
    border: 1px dashed rgba(47, 93, 80, 0.35);
}

.ai-generate-callout__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ovo-green-700, #2F5D50);
    color: #fff;
}

.ai-generate-callout__icon .mud-icon-root {
    color: #fff;
}

.ai-generate-callout__text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ai-generate-callout__text strong {
    color: var(--color-text-primary);
    font-size: 0.95rem;
    line-height: 1.3;
}

.ai-generate-callout__text span {
    color: var(--color-text-secondary);
    font-size: 0.825rem;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .ai-generate-callout {
        flex-wrap: wrap;
    }
    .ai-generate-callout__text {
        flex-basis: 100%;
    }
}

.off-grid-banner {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding: 22px 24px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 0% 0%, rgba(47, 93, 80, 0.14) 0%, rgba(47, 93, 80, 0) 55%),
        radial-gradient(circle at 100% 100%, rgba(232, 164, 74, 0.14) 0%, rgba(232, 164, 74, 0) 55%),
        linear-gradient(180deg, var(--color-surface) 0%, var(--color-background-light) 100%);
    border: 1px solid rgba(47, 93, 80, 0.18);
    overflow: hidden;
}

.off-grid-banner::before {
    content: "";
    position: absolute;
    inset: 0 0 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--ovo-green-700) 0%, var(--ovo-green-500) 100%);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.off-grid-banner--complete {
    border-color: rgba(47, 93, 80, 0.35);
    background:
        radial-gradient(circle at 0% 0%, rgba(47, 93, 80, 0.18) 0%, rgba(47, 93, 80, 0) 55%),
        linear-gradient(180deg, rgba(47, 93, 80, 0.04) 0%, var(--color-background-light) 100%);
}

.off-grid-banner-art {
    position: relative;
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.off-grid-banner-art .mud-icon-root {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    font-size: 36px;
    color: var(--ovo-green-700);
}

.off-grid-banner-art-ring,
.off-grid-banner-art-ring--outer {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.off-grid-banner-art-ring {
    inset: 14px;
    background: rgba(47, 93, 80, 0.12);
    z-index: 1;
}

.off-grid-banner-art-ring--outer {
    inset: 0;
    border: 1px dashed rgba(47, 93, 80, 0.35);
    z-index: 0;
}

.off-grid-banner-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.off-grid-banner-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ovo-green-700);
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(47, 93, 80, 0.10);
}

.off-grid-banner-eyebrow .mud-icon-root {
    width: 12px;
    height: 12px;
    font-size: 12px;
    color: var(--ovo-green-700);
}

.off-grid-banner-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
}

.off-grid-banner-optional {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
}

.off-grid-banner-badge {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--ovo-green-900);
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(47, 93, 80, 0.12);
    border: 1px solid rgba(47, 93, 80, 0.25);
}

.off-grid-banner-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 70ch;
}

.off-grid-banner-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
}

.off-grid-banner-hint {
    font-size: 12px;
    color: var(--color-text-secondary);
    font-style: italic;
}

@media (max-width: 599px) {
    .off-grid-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 18px 18px 22px;
        gap: 16px;
    }
    .off-grid-banner-art {
        width: 64px;
        height: 64px;
    }
    .off-grid-banner-art .mud-icon-root {
        width: 28px;
        height: 28px;
        font-size: 28px;
    }
    .off-grid-banner-title {
        font-size: 1.25rem;
    }
}

/* ------------------------------------------------------------------------- */
/* Off-Grid reminder dialog                                                  */
/* ------------------------------------------------------------------------- */
.off-grid-reminder-dialog .mud-dialog {
    border-radius: 16px;
    overflow: hidden;
}

.off-grid-reminder {
    position: relative;
    padding: 8px 4px 4px;
    text-align: center;
}

.off-grid-reminder-art {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(47, 93, 80, 0.16) 0%, rgba(47, 93, 80, 0.04) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(47, 93, 80, 0.35);
}

.off-grid-reminder-art .mud-icon-root {
    width: 32px;
    height: 32px;
    font-size: 32px;
    color: var(--ovo-green-700);
}

.off-grid-reminder-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ovo-green-700);
    margin-bottom: 6px;
}

.off-grid-reminder-title {
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
    margin-bottom: 10px;
}

.off-grid-reminder-body {
    margin: 0 auto 16px;
    max-width: 46ch;
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

.off-grid-reminder-perks {
    list-style: none;
    padding: 12px 16px;
    margin: 0;
    border-radius: 12px;
    background: var(--color-background-light);
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.06));
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.off-grid-reminder-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-primary);
}

.off-grid-reminder-perks .mud-icon-root {
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: var(--ovo-green-700);
    flex-shrink: 0;
}

/* ───────────────────────────────────────────────────────────
   Feedback widget - floating launcher + dialog attachments
   Shown in top-right corner when Feedback.Enabled is on.
   ─────────────────────────────────────────────────────────── */
.ovo-feedback-launcher {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 1300;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.ovo-feedback-launcher .ovo-feedback-fab {
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(30, 63, 54, 0.25);
    border-radius: 50%;
    width: 44px;
    height: 44px;
}

.ovo-feedback-launcher .ovo-feedback-fab:hover {
    box-shadow: 0 6px 16px rgba(30, 63, 54, 0.35);
}

.ovo-feedback-launcher .ovo-feedback-fab-secondary {
    pointer-events: auto;
    background: var(--color-surface, #fff) !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    box-shadow: 0 2px 8px rgba(30, 63, 54, 0.18);
}

.ovo-feedback-launcher .ovo-feedback-fab-secondary:hover {
    box-shadow: 0 4px 12px rgba(30, 63, 54, 0.28);
}

.ovo-feedback-comment-system {
    background: var(--color-surface-subtle, #f6f9f7) !important;
    border: 1px dashed var(--color-border, #e0e0e0);
}

@media (max-width: 600px) {
    .ovo-feedback-launcher {
        top: auto;
        bottom: 16px;
        right: 16px;
    }
}

.ovo-feedback-thumb {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface-alt, #f5f5f5);
    border: 1px solid var(--color-border, #e0e0e0);
}

.ovo-feedback-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ovo-feedback-thumb-remove {
    position: absolute !important;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.55) !important;
    color: #fff !important;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
}

.ovo-feedback-thumb-remove:hover {
    background: rgba(0, 0, 0, 0.75) !important;
}

.ovo-feedback-thumb-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2px 6px;
    font-size: 11px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    text-align: right;
}

.ovo-feedback-admin-thumb {
    display: block;
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border, #e0e0e0);
}

.ovo-feedback-admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ovo-feedback-dupes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    max-height: 180px;
    overflow-y: auto;
}

.ovo-feedback-dupe {
    padding: 0.5rem 0.625rem;
    border-radius: 6px;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
}

.ovo-feedback-dupe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.125rem;
}

.ovo-feedback-dupe-msg {
    font-size: 0.85rem;
    color: var(--color-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* =================================================================
   Add Listing — Features step: icon+label toggle pills
   ================================================================= */

.feat-section {
    margin-bottom: 28px;
}

.feat-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.feat-section-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ovo-green-50);
    color: var(--ovo-green-700);
}

.feat-section-icon .mud-icon-root {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: var(--ovo-green-700);
}

.feat-section-title {
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.2;
}

.feat-section-sub {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-text-secondary);
}

.feat-pill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.feat-inline-select {
    margin-top: 14px;
    max-width: 360px;
}

.feat-inline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.rooms-panels .mud-expansion-panel {
    border-radius: 8px;
}

.feat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-text-primary);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.feat-pill:hover {
    border-color: var(--ovo-green-500);
    background: var(--ovo-green-50);
}

.feat-pill:focus-visible {
    outline: none;
    border-color: var(--ovo-green-700);
    box-shadow: 0 0 0 3px rgba(47, 93, 80, 0.2);
}

.feat-pill .mud-icon-root {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: var(--color-text-secondary);
    transition: color .15s ease;
}

.feat-pill--on {
    border-color: var(--ovo-green-700);
    background: var(--ovo-green-700);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(47, 93, 80, 0.18);
}

.feat-pill--on .mud-icon-root {
    color: #FFFFFF;
}

.feat-pill--on:hover {
    background: var(--ovo-green-900);
    border-color: var(--ovo-green-900);
}

.feat-compliance {
    position: relative;
    padding: 18px 20px;
    margin-bottom: 28px;
    border-radius: 12px;
    border: 1px solid var(--color-border-light);
    background: var(--color-surface-muted);
}

.feat-compliance-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.feat-compliance-head > .mud-icon-root {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    font-size: 22px;
    color: var(--ovo-green-700);
    margin-top: 2px;
}

.feat-compliance-title {
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.2;
}

.feat-compliance-sub {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    max-width: 70ch;
}

@media (max-width: 599px) {
    .feat-section { margin-bottom: 22px; }
    .feat-section-head { margin-bottom: 10px; gap: 10px; }
    .feat-section-icon { width: 32px; height: 32px; }
    .feat-section-icon .mud-icon-root { width: 18px; height: 18px; font-size: 18px; }
    .feat-section-title { font-size: 1rem; }
    .feat-section-sub { font-size: 12px; }

    .feat-pill-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }

    .feat-pill {
        padding: 9px 12px;
        font-size: 0.8125rem;
        min-height: 42px;
    }

    .feat-compliance { padding: 16px; }
}

/* ---- Add Listing · Basics step subgroups + dominant price ---- */
.ovo-form-subgroup {
    padding: 8px 0 4px;
}

.ovo-form-subgroup + .ovo-form-subgroup {
    margin-top: 8px;
    border-top: 1px solid var(--color-border-subtle);
    padding-top: 20px;
}

.ovo-form-subgroup-label {
    display: block;
    margin: 0 0 6px;
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--color-text-primary);
}

.ovo-form-subgroup-hint {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.ovo-price-field .mud-input-slot input {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
}

.ovo-price-field .mud-input-adornment-start {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ovo-green-700);
}

.ovo-price-field .mud-input-label {
    font-weight: 600;
}

.ovo-inline-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--color-text-secondary);
}

.ovo-inline-hint--warn {
    color: var(--color-warning);
}

.ovo-listing-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ovo-listing-header-text {
    min-width: 0;
    flex: 1;
}

.ovo-draft-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--ovo-green-50, rgba(47, 93, 80, 0.06));
    border: 1px solid var(--color-border-subtle);
    font-size: 12px;
    line-height: 1;
    color: var(--color-text-secondary);
    white-space: nowrap;
    flex: 0 0 auto;
    margin-top: 6px;
}

.ovo-draft-status-icon {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    color: var(--ovo-green-700);
}

.ovo-draft-status-label {
    font-weight: 500;
}

.ovo-draft-status-time {
    color: var(--color-text-primary);
    font-variant-numeric: tabular-nums;
}

.ovo-draft-status-action.mud-button-text {
    min-width: 0;
    padding: 2px 6px;
    height: auto;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    line-height: 1;
}

@media (max-width: 600px) {
    .ovo-listing-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ovo-draft-status {
        margin-top: 0;
    }
}

@media (max-width: 599px) {
    .ovo-price-field .mud-input-slot input { font-size: 1.25rem; }
    .ovo-price-field .mud-input-adornment-start { font-size: 1.0625rem; }
}

/* ---- Add Listing: sticky stepper header + bottom navigation ---- */
/* Keep the step indicator pinned under the app bar while the step content scrolls. */
.ovo-listing-stepper .mud-stepper-nav {
    position: sticky;
    top: var(--mud-appbar-height, 64px);
    z-index: 11;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-subtle);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

@media (max-width: 599px) {
    .ovo-listing-stepper .mud-stepper-nav {
        top: var(--mud-appbar-height, 56px);
    }
}

.listing-nav {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 8px 16px;
    margin-top: 16px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border-subtle);
    box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.06);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.listing-nav-left,
.listing-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.listing-nav-exit.mud-button-root {
    height: 36px;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-text-secondary);
    padding: 0 10px;
}

.listing-nav-exit.mud-button-root:hover {
    color: var(--color-text-primary);
    background: var(--color-surface-muted);
}

.listing-nav-back.mud-button-root {
    min-width: 96px;
    height: 36px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-text-secondary);
    border-color: var(--color-border-light);
}

.listing-nav-back.mud-button-root:hover {
    color: var(--color-text-primary);
    background: var(--color-surface-muted);
    border-color: var(--color-border-medium);
}

.listing-nav-next.mud-button-root,
.listing-nav-publish.mud-button-root {
    min-width: 140px;
    height: 36px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: 0;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(47, 93, 80, 0.2);
}

.listing-nav-next.mud-button-root:hover,
.listing-nav-publish.mud-button-root:hover {
    box-shadow: 0 4px 14px rgba(47, 93, 80, 0.32);
}

@media (max-width: 599px) {
    .listing-nav {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 10px;
        margin-top: 12px;
    }
    .listing-nav-left {
        order: 2;
        flex: 1 1 100%;
        justify-content: flex-start;
    }
    .listing-nav-right {
        order: 1;
        flex: 1 1 100%;
        justify-content: space-between;
        gap: 8px;
    }
    .listing-nav-exit.mud-button-root {
        padding: 0 8px;
        font-size: 0.8125rem;
    }
    .listing-nav-back.mud-button-root {
        min-width: 0;
        flex: 0 0 auto;
        padding: 0 12px;
    }
    .listing-nav-next.mud-button-root,
    .listing-nav-publish.mud-button-root {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0 12px;
    }
}

/* ---- Add Listing: emphasise the active step in the header ---- */
.ovo-listing-stepper .mud-stepper-nav .mud-step .mud-step-label-icon {
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.ovo-listing-stepper .mud-stepper-nav .mud-step.active .mud-step-label-icon {
    background-color: var(--ovo-green-700, #2F5D50);
    color: #fff;
    transform: scale(1.18);
    box-shadow: 0 0 0 4px rgba(47, 93, 80, 0.18),
                0 4px 12px rgba(47, 93, 80, 0.28);
}

.ovo-listing-stepper .mud-stepper-nav .mud-step.active .mud-step-label-content-title {
    color: var(--ovo-green-800, #24463C);
    font-weight: 700;
}

.ovo-listing-stepper .mud-stepper-nav .mud-step:not(.active):not(.completed) .mud-step-label-icon {
    opacity: 0.7;
}

/* ---- Admin · Application Settings ---- */
.app-settings-panel {
    overflow: hidden;
    border-radius: 10px;
}

/* Ensure the panel area takes the remaining width next to the vertical tab rail
   and that panel children stack vertically (MudBlazor's panels-slider is a flex-row
   by default, which would otherwise lay our setting rows out side-by-side). */
.app-settings-tabs .mud-tabs-panels {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.app-settings-tabs .mud-tabs-panels-slider-wrapper,
.app-settings-tabs .mud-tabs-panels-slider {
    display: block !important;
    width: 100% !important;
    min-width: 0;
}

.app-settings-tabs .mud-tab-panel,
.app-settings-tabs .mud-tabs-panel,
.app-settings-tabpanel {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    flex: 0 0 auto;
}

/* Vertical tab rail — keep the category list scannable and give each label room. */
.app-settings-tabs .mud-tabs-tabbar {
    flex: 0 0 220px;
    min-width: 220px;
    max-width: 220px;
    background: var(--color-surface-muted);
    border-right: 1px solid var(--color-border-subtle);
}

.app-settings-tabs .mud-tab {
    justify-content: flex-start;
    text-align: left;
    padding: 0 16px;
    min-height: 44px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-text-secondary);
    border-left: 3px solid transparent;
}

.app-settings-tabs .mud-tab.mud-tab-active {
    color: var(--color-text-primary);
    background: var(--color-surface);
    border-left-color: var(--ovo-green-700, #2F5D50);
    font-weight: 600;
}

.app-settings-tabs .mud-tab:hover {
    background: rgba(47, 93, 80, 0.04);
}

.app-settings-tabs .mud-tab .mud-icon-root {
    margin-right: 10px;
    font-size: 1.125rem;
}

/* Panel header: category title + match summary */
.app-settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-border-subtle);
}

/* Sub-section heading inside a crowded category (e.g. Off-Grid > Weight/Tier/Range) */
.app-settings-subhead {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 10px;
}

.app-settings-subhead-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.app-settings-subhead-rule {
    flex: 1 1 auto;
    height: 1px;
    background: var(--color-border-subtle);
}

/* Each setting row: meta (text) | editor | save button */
.app-settings-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) auto;
    align-items: start;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--color-border-subtle);
}

.app-settings-row:last-child {
    border-bottom: none;
}

.app-settings-meta {
    min-width: 0;
}

.app-settings-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2px;
}

.app-settings-display {
    font-weight: 600;
    color: var(--color-text-primary);
}

.app-settings-typechip.mud-chip {
    height: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: lowercase;
}

.app-settings-key {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    word-break: break-all;
}

.app-settings-desc {
    margin-top: 4px;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.45;
}

.app-settings-updated {
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    opacity: 0.8;
}

.app-settings-editor {
    min-width: 0;
    display: flex;
    align-items: center;
}

.app-settings-editor .mud-input-control,
.app-settings-editor .mud-picker {
    width: 100%;
}

.app-settings-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 2px;
}

/* Tablet: stack editor under meta, keep save button right-aligned below */
@media (max-width: 960px) {
    .app-settings-tabs .mud-tabs-tabbar {
        min-width: 180px;
    }
    .app-settings-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "meta meta"
            "editor actions";
        gap: 12px;
    }
    .app-settings-meta  { grid-area: meta; }
    .app-settings-editor { grid-area: editor; }
    .app-settings-actions { grid-area: actions; }
}

/* Phone: flatten to single column, drop the vertical rail down to a scrollable strip */
@media (max-width: 599px) {
    .app-settings-tabs {
        flex-direction: column;
    }
    .app-settings-tabs .mud-tabs-tabbar {
        min-width: 0;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--color-border-subtle);
    }
    .app-settings-tabs .mud-tab {
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    .app-settings-tabs .mud-tab.mud-tab-active {
        border-bottom-color: var(--ovo-green-700, #2F5D50);
        border-left-color: transparent;
    }
    .app-settings-row {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "meta"
            "editor"
            "actions";
    }
    .app-settings-actions {
        justify-content: flex-start;
    }
}
