/* Visually hidden but readable by screen readers and search engines. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Shared design tokens — colors and system font stacks reused across components. */
:root {
    --whatsapp-green: #25D366;
    --whatsapp-green-dark: #128C7E;

    /* System monospace stack for financial figures, dates and IDs in booking dialogs.
       Picks each OS's native monospace UI font (SF Mono on Apple, Cascadia Mono on Windows
       11, Roboto Mono built into Android) so digits align without any web-font download. */
    --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Consolas, Menlo, monospace;
}

/* ---------------------------------------------------------------------------
   Body text — Figtree, self-hosted.

   This was a pure system stack (San Francisco / Segoe UI Variable / Roboto): free, but
   those are neutral OS faces and read as "system UI" rather than as a consumer travel
   brand. Figtree is the closest OFL-licensed approximation of Airbnb Cereal — geometric
   skeleton, round bowls, tall x-height, open apertures — that still holds up at the ~14px
   effective body size this app renders at on desktop (see the root-size note further down).

   Cost control, because a body web font is the one font that CAN wreck Web Vitals:
   - ONE variable file covers weights 300–800, so every weight the UI uses lives in the
     20 KB latin subset. latin-ext is a SEPARATE face behind unicode-range and is fetched
     only if a page actually contains those codepoints — normal EN/DE/ID text never does.
   - Self-hosted rather than fonts.googleapis.com: same origin as everything else (so it
     rides the existing CDN connection instead of opening two more), and no third-party
     host needed in style-src/font-src.
   - Preloaded in App.razor. That <link> href must stay byte-identical to the src below —
     any difference and the browser downloads the file twice.
   - font-display: swap + the metric-matched 'Figtree Fallback' below is what keeps CLS
     at 0: text paints immediately in a local face scaled to Figtree's exact box, so the
     swap changes glyph shapes without moving a single line.

   No italic face is shipped — the UI has effectively no italic body text, and the browser
   synthesises an oblique for the rare <em>. Add one only if real italic copy shows up.

   MudBlazor.min.css sets font-family: Roboto on .mud-typography classes; we override here
   because site.css loads after MudBlazor's CSS.
   --------------------------------------------------------------------------- */
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 300 800; /* variable — one file, every weight */
    font-display: swap;
    src: url('/fonts/figtree-v9-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('/fonts/figtree-v9-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Figtree Fallback — same construction as 'Anta Fallback' below, and the same load-bearing
   src list (see that comment: one unresolvable src kills the WHOLE @font-face, taking the
   overrides with it and reintroducing exactly the shift this prevents).

   Overrides computed against Arial's real average advance over representative EN/DE/ID UI
   strings, NOT against OS/2 xAvgCharWidth — that field averages every glyph in the font
   including the long tail of narrow ones, and misreports Arial badly enough to produce a
   ~20% size error. Figtree is marginally narrower than Arial, hence size-adjust just under
   100%. Recompute these if the Figtree version is ever bumped. */
@font-face {
    font-family: 'Figtree Fallback';
    src: local('Arial'),            /* Windows, macOS */
         local('Liberation Sans'),  /* Linux — metrically compatible with Arial */
         local('Arimo'),            /* ChromeOS, some Android — metrically compatible */
         local('Roboto'),           /* Android default */
         local('DejaVu Sans'),      /* older Linux */
         local('Helvetica');        /* legacy macOS */
    size-adjust: 98%;
    ascent-override: 97%;
    descent-override: 25%;
    line-gap-override: 0%;
}

body,
.mud-typography,
.mud-input-root,
.mud-button-root {
    font-family: 'Figtree', 'Figtree Fallback', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Anta — the "Livuma" wordmark only, so the latin subset is all of it. Self-hosted for the
   same reason as Figtree; this is what removed the last fonts.googleapis.com dependency. */
@font-face {
    font-family: 'Anta';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/anta-v1-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Anta Fallback — wraps a local grotesque with size-adjust/ascent-override so the wordmark
   placeholder matches Anta's box dimensions. When Anta swaps in, no layout shift.

   The src list is load-bearing, not belt-and-braces. A src whose every entry fails to resolve
   makes the WHOLE @font-face unusable, so 'Anta Fallback' silently drops out of the stack and
   the next family applies with NONE of these overrides — i.e. the shift this exists to prevent.
   Arial alone did that on most Android and many Linux devices, and never on the Windows/macOS
   machines it gets tested on. Ordered so the Arial-metric-compatible faces come first, keeping
   size-adjust accurate; the *-override values are absolute, so vertical metrics (the only axis
   that shifts block layout) stay identical whichever face wins. */
@font-face {
    font-family: 'Anta Fallback';
    src: local('Arial'),            /* Windows, macOS */
         local('Liberation Sans'),  /* Linux — metrically compatible with Arial */
         local('Arimo'),            /* ChromeOS, some Android — metrically compatible */
         local('Roboto'),           /* Android default */
         local('DejaVu Sans'),      /* older Linux */
         local('Helvetica');        /* legacy macOS */
    size-adjust: 107%;
    ascent-override: 88%;
    descent-override: 22%;
    line-gap-override: 0%;
}

/* GPU-accelerated marker rendering for smooth performance with 700+ markers */
.custom-marker {
    transition: transform 0.2s ease;
    width: 24px !important;
    height: 24px !important;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.custom-marker:hover {
    transform: scale(1.1) translateZ(0);
}

/* Optimize all mapbox markers for GPU rendering */
.mapboxgl-marker {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Hide all popup tips */
.mapboxgl-popup-tip {
    display: none !important;
}

/* Connectivity related styles */
.offline-mode::before {
    content: "You are offline";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f44336;
    color: white;
    text-align: center;
    padding: 4px;
    z-index: 2000;
    font-weight: bold;
}

/* Add extra padding when in offline mode to not hide content */
.offline-mode {
    padding-top: 28px;
}

/* Style specifically for input fields that will preserve data */
input[data-preserve], 
textarea[data-preserve], 
select[data-preserve] {
    border-left: 2px solid #1e88e5;
}

/* Ensure visibility of connection status on mobile */
@media (max-width: 600px) {
    .connection-status {
        padding: 12px 16px;
        font-size: 14px;
    }
}


/* Rich text description styling */
.description-content {
    max-width: 100%;
    overflow-x: auto;
}

.description-content img {
    max-width: 100%;
    height: auto;
}

.description-content ul, 
.description-content ol {
    padding-left: 1.5rem;
}

.description-content blockquote {
    border-left: 3px solid var(--mud-palette-primary);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--mud-palette-text-secondary);
}

.description-content pre {
    background-color: var(--mud-palette-background-grey);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

.description-content a {
    color: var(--mud-palette-primary);
    text-decoration: none;
}

.description-content a:hover {
    text-decoration: underline;
}

.description-content h1, 
.description-content h2, 
.description-content h3, 
.description-content h4, 
.description-content h5, 
.description-content h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Mobile-specific styles */
@media (max-width: 960px) {
    .d-none-mobile {
        display: none !important;
    }
    
    .d-none-mobile-inline-flex {
        display: none !important;
    }
    
    .pb-16-mobile {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 16px)) !important;
    }
    
    /* Removed custom drawer z-index override to use MudBlazor defaults */
    
    /* Add bottom margin to the last element in the main content to ensure it's visible */
    .mud-container > *:last-child {
        margin-bottom: 20px;
    }
    
    /* Ensure the main content has proper height and scrolling */
    .mud-main-content {
        min-height: calc(100vh - var(--mud-appbar-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
}

/* Removed responsive drawer positioning override */

/* Bottom navbar styles */
.mobile-navbar .mud-paper {
    border-radius: 0 !important;
    border-top: 1px solid var(--mud-palette-divider);
}

.mobile-navbar .mud-icon-button {
    border-radius: 8px;
    transition: transform 0.1s ease-in-out, background-color 0.2s ease;
}

.mobile-navbar .mud-icon-button:active {
    transform: scale(0.9);
}

/* Connection status */
@media (max-width: 600px) {
    .connection-status {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Ensure dialogs always appear above custom overlays */
.mud-dialog-container {
    z-index: 2100 !important;
}

.mud-overlay.mud-dialog-backdrop {
    z-index: 2099 !important;
}

/* Specific override for dialogs opened from within overlays */
.mud-dialog.chat-dialog .mud-dialog-container,
.mud-dialog.chat-dialog + .mud-overlay {
    z-index: 2150 !important;
}

/* Full-screen conversation on phones — EVERY chat dialog (ChatDialog / BookingChatDialog: /my-chats, the
   listing page's question, the booking dialogs' chat button). It slides in from the right like a messenger
   thread and closes with the same red disc as the booking dialogs (`.dialog-close-disc`) or the phone's back
   gesture, which closes only the chat (DialogBackNavigationService); desktop keeps the centred dialog. */
@media (max-width: 600px) {
    .mud-dialog.chat-dialog.chat-dialog--full {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh;
        max-height: 100dvh !important;
        margin: 0 !important;
        border: none;
        border-radius: 0 !important;
        animation: mobileSheetIn 240ms cubic-bezier(.2, .8, .2, 1);
    }

    .chat-dialog--full .chat-dialog-content {
        height: 100dvh;
        max-height: 100dvh;
    }

    .chat-dialog--full .chat-header-paper {
        border-radius: 0 !important;
        padding-top: env(safe-area-inset-top);
    }
}

/* ONE entrance for every full-screen sheet on a phone — chat dialogs, the booking dialogs below and the
   listing overlay (ListingOverlay.razor): it slides in from the right like a pushed page. Phones only;
   desktop keeps each surface's own centred entrance. */
@keyframes mobileSheetIn {
    from { transform: translateX(100%); }
    to { transform: none; }
}

/* ...and every sheet leaves the way it came in, phone or desktop: wwwroot/js/sheetExit.js plays the
   surface's own entrance BACKWARDS on an inert copy the moment Blazor removes the real one (CSS alone
   cannot animate a removal). The copy is a still picture: no taps, and none of its contents' animations
   replay; the script sets the reversed entrance inline (!important) on the sheet and its backdrop only. */
.sheet-exit-ghost,
.sheet-exit-ghost * {
    pointer-events: none !important;
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .mud-dialog.chat-dialog.chat-dialog--full,
    .rental-request-dialog.mud-dialog,
    .booking-request-dialog.mud-dialog,
    .active-booking-dialog.mud-dialog,
    .guest-booking-detail-dialog.mud-dialog,
    .social-post-dialog.mud-dialog,
    .listing-overlay-container {
        animation: none !important;
    }
}

/* Live status pill: tinted pill + pulsing dot — ONE look for the /feed "Live" marker and the dashboard
   listings' "Calendar" column. Green + pulse = live; --retrying = amber + pulse (a problem, still
   trying by itself); --paused = amber, still dot (stopped — needs the host); --idle = neutral outline
   (nothing connected, a call to act). A <button> variant resets its chrome. */
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border: 0;
    border-radius: 99px;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    background: color-mix(in srgb, var(--mud-palette-success) 12%, transparent);
    color: var(--mud-palette-success);
}

button.live-pill {
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

button.live-pill:hover {
    background: color-mix(in srgb, var(--mud-palette-success) 20%, transparent);
}

.live-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: currentColor;
    animation: livePillPulse 1.8s ease-out infinite;
}

.live-pill--paused,
.live-pill--retrying {
    background: color-mix(in srgb, var(--mud-palette-warning) 14%, transparent);
    color: var(--mud-palette-warning-darken);
}

button.live-pill--paused:hover,
button.live-pill--retrying:hover {
    background: color-mix(in srgb, var(--mud-palette-warning) 22%, transparent);
}

.live-pill--paused .live-pill-dot {
    animation: none;
}

.live-pill--idle {
    background: transparent;
    color: var(--mud-palette-text-secondary);
    box-shadow: inset 0 0 0 1px var(--mud-palette-lines-default);
    font-weight: 600;
}

button.live-pill--idle:hover {
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, transparent);
    color: var(--mud-palette-primary);
}

.live-pill--idle .mud-icon-root {
    font-size: 0.9rem;
    margin-left: -3px;
}

@keyframes livePillPulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); }
    70% { box-shadow: 0 0 0 7px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .live-pill-dot {
        animation: none;
    }
}

/* Notification count (Components/Shared/CountBadge) — ONE look for the app-bar avatar, the mobile navbar,
   the menu drawer and the dashboard tabs. */
.count-badge {
    --count-badge-ring: var(--mud-palette-surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--mud-palette-error);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    flex-shrink: 0;
    pointer-events: none;
}

/* Pinned to the top-right corner of an icon or avatar CENTRED in the positioned container: it reaches 7px
   into the glyph's corner from the right and from the top, so it covers a corner, never the middle.
   --count-badge-glyph = half the glyph's size (square glyphs); --count-badge-top overrides the vertical
   position where the glyph is not vertically centred (a tab with its label under the icon). */
.count-badge.count-badge--on-icon {
    /* A 2px ring in the colour behind it separates it from the icon it overlaps. */
    box-shadow: 0 0 0 2px var(--count-badge-ring);
    position: absolute;
    z-index: 1;
    top: var(--count-badge-top, calc(50% - var(--count-badge-glyph, 12px) - 11px));
    left: calc(50% + var(--count-badge-glyph, 12px) - 7px);
}

/* At the end of a menu row: never over the label. */
.count-badge.count-badge--end {
    margin-left: auto;
}

.mud-nav-link-text:has(> .count-badge--end) {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dialog above overlay class for dialogs opened within overlays */
.dialog-above-overlay.mud-dialog-container {
    z-index: 2150 !important;
}

.dialog-above-overlay.mud-overlay {
    z-index: 2149 !important;
}

/* Ensure other MudBlazor components stay below dialogs but above custom overlays */
.mud-popover-provider {
    z-index: 2050 !important;
}

/* ---------------------------------------------------------------------------
   Global desktop scaling.

   MudBlazor sizes everything in rem, so this one number scales the whole desktop UI — text,
   control heights, paddings, icons, gaps. That is the point: it is a density control, not a
   type-size control. Mobile is deliberately untouched (its own scale already works).

   History, so nobody re-litigates it: this was 87.5% (14px) for a long time, briefly removed
   altogether — 16px is visibly too loose across dense surfaces (admin tables, booking dialogs) —
   then walked back down. 14.5px is the settled value: a little more air than the old 14px, which
   Figtree's taller x-height pays for in legibility.

   To retune, change ONLY this one value — do not start compensating in individual components:
       87.5%    = 14px     previous long-standing value
       90.625%  = 14.5px   current
       93.75%   = 15px     tried, slightly too big
       100%     = 16px     browser default, too loose

   Fastest way to compare without a rebuild: devtools → <html> → override font-size live.
   --------------------------------------------------------------------------- */
@media (min-width: 992px) { /* lg breakpoint, similar to MudBlazor/Bootstrap */
    html {
        font-size: 90.625%; /* 16px × 0.90625 = 14.5px */
    }
}

/* Global Brand Styling — Anta font with the Anta Fallback above for zero-CLS swap. */
.brand-name,
.brand-name .mud-typography {
    font-family: 'Anta', 'Anta Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
}

/* Resort dashboard tweaks */
.mud-paper.pa-3, .mud-paper.pa-4 { border-radius: 10px; }
.mud-chart { height: 260px; }
.mud-container.pa-4 { max-width: 1440px; }

/* Global Rounded Corners Styling - Apply 12px border-radius throughout the application */
/* MudPaper components */
.mud-paper {
    border-radius: 12px !important;
}

/* MudCard components */
.mud-card {
    border-radius: 12px !important;
}

/* MudExpansionPanels */
.mud-expansion-panels {
    border-radius: 12px !important;
    overflow: hidden;
}

.mud-expand-panel {
    border-radius: 12px !important;
}

.mud-expand-panel:first-child {
    border-radius: 12px 12px 0 0 !important;
}

.mud-expand-panel:last-child {
    border-radius: 0 0 12px 12px !important;
}

.mud-expand-panel:only-child {
    border-radius: 12px !important;
}

/* MudDialog */
.mud-dialog {
    border-radius: 12px !important;
}

.mud-dialog-container .mud-dialog {
    border-radius: 12px !important;
}

/* The main booking dialogs go edge-to-edge on phones. MaxWidth.Small + FullWidth still leaves
   the MudBlazor shell at its content width (~260px on a 320px screen), which squeezed the
   reservation checkout's embedded Xendit card form and 3DS challenge iframe into a narrow,
   hard-to-read column (found on mobile 2026-09-03) and left every booking dialog reading as a
   cramped card inside a dimmed page. Height stays natural — centred when the dialog is short,
   scrolling to full height when it is tall.

   These selectors live HERE rather than in each component because the dialog shell carries no
   Blazor scope attribute, so a scoped `.razor.css` rule never reaches it. They must stay a
   single list: a booking dialog styled on its own drifts from the rest, and the whole point is
   that every one of these feels like the same sheet.

   The list is the dialogs a guest or host opens to READ or DECIDE on one booking. The chat
   dialogs (`.chat-dialog`) are deliberately absent — they set their own 85dvh sheet height with
   their own overflow handling, and a full-bleed override fights it. */
@media (max-width: 600px) {
    .rental-request-dialog.mud-dialog,
    .booking-request-dialog.mud-dialog,
    .active-booking-dialog.mud-dialog,
    .guest-booking-detail-dialog.mud-dialog,
    .social-post-dialog.mud-dialog {
        width: 100vw !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        /* Full-bleed sheet: enters like the chat sheet (mobileSheetIn), not MudBlazor's centre pop. */
        animation: mobileSheetIn 240ms cubic-bezier(.2, .8, .2, 1);
    }
}

/* The close button on those same dialogs. MudBlazor pins it with
   `.mud-dialog .mud-dialog-title .mud-button-close { top: 8px }` and leaves it `color: inherit`,
   which on these title bars came out faint and sitting high rather than level with the title.

   It also reserves room for the button with `padding-inline-end: 64px` on the title bar — and
   these dialogs each override that bar with a `padding: … !important` shorthand on mobile, which
   silently drops the reservation. That is what let the old status chip run under the button once
   the dialogs went full-bleed. The chip is gone now (status is stated inside the dialog, where
   there is room to say it properly), and the reservation is restated below so nothing else can
   drift into that corner.

   Every selector here is deliberately one step more specific than MudBlazor's own, which is
   three classes deep — a two-class selector loses and the button keeps its stock position. */
.rental-request-dialog.mud-dialog .mud-dialog-title,
.booking-request-dialog.mud-dialog .mud-dialog-title,
.active-booking-dialog.mud-dialog .mud-dialog-title,
.guest-booking-detail-dialog.mud-dialog .mud-dialog-title,
.social-post-dialog.mud-dialog .mud-dialog-title {
    position: relative;
    padding-inline-end: 60px !important;
}

/* Anchoring to the title bar rather than the dialog centres the button against the title at
   whatever padding that bar happens to have, which differs between desktop and mobile. The
   tinted disc is what makes it read as a control on a light header; it grows to a 44px target
   on phones, where this is a thumb press and the dialog now fills the screen behind it.

   The disc is tinted with the ERROR palette (2026-09-12). A neutral grey X on a full-bleed
   mobile sheet was the one control nobody found: the dialog covers the whole screen, so it is
   also the only way out. Red is the colour a user already reads as "this closes", and a tint
   rather than a solid fill keeps it from shouting louder than the dialog's own actions — the
   house rule is subtle tints, never heavy blocks of colour. The border gives the disc an edge
   on the tinted title bars, where a 10% wash alone can disappear. */
.rental-request-dialog.mud-dialog .mud-dialog-title .mud-button-close,
.booking-request-dialog.mud-dialog .mud-dialog-title .mud-button-close,
.active-booking-dialog.mud-dialog .mud-dialog-title .mud-button-close,
.guest-booking-detail-dialog.mud-dialog .mud-dialog-title .mud-button-close,
.social-post-dialog.mud-dialog .mud-dialog-title .mud-button-close {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}

/* The disc itself — shared by the booking dialogs above and every chat dialog's header
   (`.dialog-close-disc` on UnifiedChatPanel's close button), so a chat opened over a booking dialog
   closes with the same control. Its own selector is listed so it wins over MudIconButton's padding. */
.rental-request-dialog.mud-dialog .mud-dialog-title .mud-button-close,
.booking-request-dialog.mud-dialog .mud-dialog-title .mud-button-close,
.active-booking-dialog.mud-dialog .mud-dialog-title .mud-button-close,
.guest-booking-detail-dialog.mud-dialog .mud-dialog-title .mud-button-close,
.social-post-dialog.mud-dialog .mud-dialog-title .mud-button-close,
.mud-icon-button.dialog-close-disc {
    width: 36px;
    height: 36px;
    /* The border below must not grow the disc. Without this the button renders 2px larger than
       the size these rules reserve room for, which on the phone layout — where the bar is only
       as tall as its 8px padding plus one line of title — is enough to read as overlapping the
       header rather than sitting inside it. */
    box-sizing: border-box;
    padding: 0;
    color: var(--mud-palette-error);
    background-color: color-mix(in srgb, var(--mud-palette-error) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-error) 22%, transparent);
    border-radius: 999px;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .rental-request-dialog.mud-dialog .mud-dialog-title .mud-button-close:hover,
    .booking-request-dialog.mud-dialog .mud-dialog-title .mud-button-close:hover,
    .active-booking-dialog.mud-dialog .mud-dialog-title .mud-button-close:hover,
    .guest-booking-detail-dialog.mud-dialog .mud-dialog-title .mud-button-close:hover,
    .social-post-dialog.mud-dialog .mud-dialog-title .mud-button-close:hover,
    .mud-icon-button.dialog-close-disc:hover {
        background-color: color-mix(in srgb, var(--mud-palette-error) 20%, transparent);
        border-color: color-mix(in srgb, var(--mud-palette-error) 40%, transparent);
    }
}

@media (max-width: 600px) {
    .rental-request-dialog.mud-dialog .mud-dialog-title .mud-button-close,
    .booking-request-dialog.mud-dialog .mud-dialog-title .mud-button-close,
    .active-booking-dialog.mud-dialog .mud-dialog-title .mud-button-close,
    .guest-booking-detail-dialog.mud-dialog .mud-dialog-title .mud-button-close,
    .social-post-dialog.mud-dialog .mud-dialog-title .mud-button-close,
    .mud-icon-button.dialog-close-disc {
        width: 44px;
        height: 44px;
    }

    .rental-request-dialog.mud-dialog .mud-dialog-title .mud-button-close,
    .booking-request-dialog.mud-dialog .mud-dialog-title .mud-button-close,
    .active-booking-dialog.mud-dialog .mud-dialog-title .mud-button-close,
    .guest-booking-detail-dialog.mud-dialog .mud-dialog-title .mud-button-close,
    .social-post-dialog.mud-dialog .mud-dialog-title .mud-button-close {
        right: 8px;
    }

    .rental-request-dialog.mud-dialog .mud-dialog-title,
    .booking-request-dialog.mud-dialog .mud-dialog-title,
    .active-booking-dialog.mud-dialog .mud-dialog-title,
    .guest-booking-detail-dialog.mud-dialog .mud-dialog-title,
    .social-post-dialog.mud-dialog .mud-dialog-title {
        padding-inline-end: 64px !important;
        /* The bar must be able to hold the 44px target with room around it. Each of these dialogs
           sets its own `padding: 8px 12px !important` shorthand on phones, which leaves a bar
           barely taller than the button — so the disc read as sitting ON the header edge rather
           than inside it. A floor rather than a fixed height: a title that wraps still grows. */
        min-height: 52px;
    }
}

/* MudAlert */
.mud-alert {
    border-radius: 12px !important;
}

/* MudChip */
.mud-chip {
    border-radius: 12px !important;
}

/* MudButton - keep existing rounded corners but ensure consistency */
.mud-button {
    border-radius: 8px !important;
}

/* MudTextField, MudSelect, MudAutocomplete, etc. */
.mud-input-control {
    border-radius: 12px !important;
}

.mud-input-control .mud-input {
    border-radius: 12px !important;
}

/* MudTabs */
.mud-tabs {
    border-radius: 12px 12px 0 0 !important;
}

.mud-tab {
    border-radius: 12px 12px 0 0 !important;
}

/* MudMenu */
.mud-menu {
    border-radius: 12px !important;
}

/* MudPopover */
.mud-popover {
    border-radius: 12px !important;
}

/* MudSnackbar */
.mud-snackbar {
    border-radius: 12px !important;
}

/* MudDrawer */
.mud-drawer {
    border-radius: 0 12px 12px 0 !important;
}

.mud-drawer-anchor-right {
    border-radius: 12px 0 0 12px !important;
}

/* MudTooltip — capped width so a long explanation wraps instead of running off the screen (phones included).
   !important: MudBlazor's popover script writes an inline "max-width: none" on every tooltip. */
.mud-tooltip {
    border-radius: 8px !important;
    max-width: min(320px, calc(100vw - 32px)) !important;
    white-space: normal;
}

/* Exceptions - components that should NOT have rounded corners */
.mud-appbar {
    border-radius: 0 !important;
}

.mud-main-content {
    border-radius: 0 !important;
}

.mud-navmenu {
    border-radius: 0 !important;
}

/* Mobile navbar should remain square at bottom */
.mobile-navbar .mud-paper {
    border-radius: 0 !important;
}

/* Map containers - keep square for proper map rendering */
.map-container,
.mapboxgl-map,
.mapboxgl-canvas-container {
    border-radius: 0 !important;
}

/* But map popups should have rounded corners */
.mapboxgl-popup-content {
    border-radius: 12px !important;
}

/* Listing-details location popup (listing-map.js) — themed, compact, no close button */
.listing-map-popup .mapboxgl-popup-content {
    padding: 8px 12px;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    border: 1px solid var(--mud-palette-lines-default);
    font-family: inherit;
}

.listing-map-popup-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.listing-map-popup-desc {
    margin-top: 2px;
    font-size: 0.72rem;
    color: var(--mud-palette-text-secondary);
    line-height: 1.3;
}

/* ============================================
   LIGHTWEIGHT STYLING ENHANCEMENTS
   ============================================ */

/* Simple shadows - Single layer for performance */



/* Dialog shadow */
.mud-dialog {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Chip hover shadow */
.mud-chip:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Icon button hover shadow */
.mud-icon-button:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Enhanced expansion panels */
.mud-expand-panel {
    border: 1px solid transparent !important;
}

.mud-expand-panel:hover {
    border-color: var(--mud-palette-primary-lighten) !important;
}

.mud-expand-panel-header:hover {
    background-color: var(--mud-palette-background-grey) !important;
}

/* Enhanced tabs */
.mud-tab:hover {
    background-color: var(--mud-palette-background-grey) !important;
}

/* Menu styling */
.mud-menu {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.mud-menu-item {
    border-radius: 8px !important;
    margin: 2px 4px !important;
}

.mud-menu-item:hover {
    background-color: var(--mud-palette-primary-lighten) !important;
}

/* Simple divider */
.mud-divider {
    height: 1px !important;
}

/* ===== Shared Document / File Upload Zones ===== */
.doc-upload-zone {
    border: 1.5px dashed color-mix(in srgb, var(--mud-palette-primary) 35%, transparent);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    background: color-mix(in srgb, var(--mud-palette-primary) 3%, transparent);
}

.doc-upload-zone:hover {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 60%, transparent);
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, transparent);
}

.doc-upload-zone.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.doc-upload-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.doc-upload-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.doc-upload-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.doc-upload-icon .mud-icon-root {
    font-size: 1.25rem;
    color: var(--mud-palette-primary);
}

.doc-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: var(--mud-palette-primary);
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.15s;
}

.doc-upload-btn:hover {
    opacity: 0.85;
}

.doc-upload-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.doc-upload-hint {
    font-size: 0.7rem;
    color: var(--mud-palette-text-secondary);
}

/* "Take photo" + "Upload document" (DocumentUploadButtons). The camera button and the
   photo tip exist on touch devices only; there the file button steps back to outlined
   so the camera reads as the main action. */
.doc-upload-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.doc-upload-camera,
.doc-upload-photo-hint {
    display: none;
}

@media (pointer: coarse) {
    .doc-upload-camera {
        display: inline-flex;
    }

    .doc-upload-photo-hint {
        display: block;
    }

    .doc-upload-btn.doc-upload-choose {
        color: var(--mud-palette-primary);
        background: transparent;
        border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 50%, transparent);
    }
}

.doc-upload-file {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--mud-palette-success) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-success) 20%, transparent);
}

.doc-file-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--mud-palette-success) 15%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-file-icon .mud-icon-root {
    font-size: 1rem;
    color: var(--mud-palette-success);
}

.doc-file-name {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--mud-palette-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.doc-file-remove {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: color-mix(in srgb, var(--mud-palette-error) 10%, transparent);
    color: var(--mud-palette-error);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

.doc-file-remove:hover {
    background: color-mix(in srgb, var(--mud-palette-error) 20%, transparent);
}

/* Booked dates in calendar pickers — red strikethrough */
.mud-picker-calendar-day.picker-date-booked .mud-typography {
    text-decoration: line-through;
    text-decoration-color: var(--mud-palette-error);
    color: var(--mud-palette-error) !important;
    opacity: 0.7;
}

/* ==========================================================================
   ListingCard (Components/Pages/Listings/ListingCard.razor)
   Moved here 2026-08-05 from the component's inline <style> block: that block
   rendered once PER CARD INSTANCE (~14KB × 50 cards ≈ 700KB of duplicated CSS
   in the /homes prerender). ListingCard is a global component; keep this
   section in sync with its markup.
   ========================================================================== */

/* Strip the browser's default link styling from the card wrapper — the visual is owned
   by .listing-card. width:100% + height:100% are needed so the wrapper fills its parent
   grid cell (the grid item is a flex column; without explicit width a block child sizes
   to content and the card collapses to its natural width). */
/* Relative shell so the favorite button can sit as an absolute sibling OVER the card link
   (not inside it) — clicks on the heart then never reach the card's anchor. */
.listing-card-shell {
    position: relative;
    width: 100%;
    height: 100%;
}

.listing-card-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.listing-card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden !important; /* Contain everything within card */
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    border-radius: 16px !important;
    cursor: pointer;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 18px -10px rgba(0, 0, 0, 0.18);
}

/* Type-coded resting border: rentals = primary, sales = warning (matches the app-wide
   rent vs sale colour language used on chips, badges and amenity icons). */
.listing-card.rental {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 45%, transparent);
}

.listing-card.sale {
    border-color: color-mix(in srgb, var(--mud-palette-warning) 45%, transparent);
}

/* Hover effects only on devices that actually hover (avoids sticky hover on touch) */
@media (hover: hover) {
    .listing-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.14), 0 22px 38px -16px rgba(0, 0, 0, 0.24);
    }

    .listing-card.rental:hover {
        border-color: var(--mud-palette-primary);
    }

    .listing-card.sale:hover {
        border-color: var(--mud-palette-warning);
    }
}

/* Promoted cards maintain promotion effect on hover - override normal hover.
   (A former companion rule "::deep .mud-card.listing-card.promoted:hover" was dropped in
   the move: ::deep is not a valid CSS selector outside scoped-CSS compilation, so browsers
   always ignored it — the animation persists on hover anyway because it is applied to the
   base .listing-card.promoted rule below.) */
.listing-card.promoted:hover {
    border-color: var(--mud-palette-primary) !important;
    box-shadow: none !important; /* Animation handles shadow */
}

.listing-card .card-image-container {
    height: 188px;
    position: relative;
    flex-shrink: 0;
    overflow: hidden; /* Ensure the container doesn't overflow */
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    background: color-mix(in srgb, var(--mud-palette-text-primary) 6%, transparent);
}

/* Subtle bottom-up scrim so overlaid badges stay legible on any photo */
.listing-card .card-image-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.10) 24%, transparent 46%);
}

.listing-card .full-width-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
    .listing-card:hover .full-width-image {
        transform: scale(1.04);
    }
}

/* ── Host avatar (top-left) ── */
.listing-card .card-profile-picture {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    width: 38px;
    height: 38px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    overflow: visible;
}

.listing-card .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 50%;
}

.listing-card .verified-badge-overlay {
    position: absolute;
    bottom: -2px !important;
    right: -2px !important;
    left: auto !important;
    top: auto !important;
    background-color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.listing-card .verified-badge-overlay .mud-icon-root {
    font-size: 14px;
}

/* ── Favorite (top-right, frosted circle) ── */
.listing-card-shell .favorite-button-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 38px;
    height: 38px;
    box-sizing: border-box;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.listing-card-shell .favorite-button-container:hover {
    background: #fff;
    transform: scale(1.06);
}

/* ── Glass badge base (offer type, date, corner) ── */
.listing-card .card-offer-type-badge,
.listing-card .date-badge,
.listing-card .card-corner-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    color: #fff;
    white-space: nowrap;
    background: rgba(18, 18, 20, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px) saturate(130%);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
    transition: background-color 0.2s ease;
}

.listing-card .card-offer-type-badge .mud-icon-root,
.listing-card .card-corner-badge .mud-icon-root,
.listing-card .date-badge .mud-icon-root {
    font-size: 14px !important;
}

/* Bottom-left stack: offer type (+ date when fixed-period) */
.listing-card .img-badges-bl {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

/* Bottom-right corner badges (ownership for sales, "Book now" for ready rentals).
   The two never coexist on the same card — sale-only vs rental-only. */
.listing-card .card-corner-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
}

/* "Rent now": same dark glass as its siblings; the static green dot is the only colour point
   (same green as the listing page's live-viewers dot). No motion by design. */
.listing-card .card-book-now-badge {
    gap: 6px;
    padding-left: 8px;
}

.listing-card .card-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #34d399;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.18);
}

.listing-card .fw-medium {
    font-weight: 600;
}

.listing-card .pa-3 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
    padding: 12px 13px 13px !important;
}

.listing-card .amenities-container {
    margin-top: auto;
    padding-top: 6px;
}

/* Title */
.listing-card .listing-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--mud-palette-text-primary);
}

.listing-card .listing-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.listing-card .listing-title-row .listing-title {
    flex: 1;
    min-width: 0;
}

/* ── Star rating — quiet text treatment matching the details header:
   amber star icon carries the accent, the number stays in text colors ── */
.listing-card .card-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.82rem;
}

.listing-card .card-rating-value {
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.listing-card .card-rating-count {
    font-weight: 500;
    font-size: 0.78rem;
    color: var(--mud-palette-text-secondary);
}

/* ── "New" — rating spot for rentals without reviews yet; mirrors the rating's
   text treatment exactly (amber icon accent + quiet text, no pill) ── */
.listing-card .card-new-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
}

/* ── Price tags — soft tinted, techy ── */
.listing-card .price-display {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}

.listing-card .price-chip {
    height: 26px;
    padding: 0 9px 0 7px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    background: color-mix(in srgb, var(--mud-palette-primary) 9%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 16%, transparent);
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 1;
}

@media (hover: hover) {
    .listing-card .price-chip:hover {
        background: color-mix(in srgb, var(--mud-palette-primary) 15%, transparent);
    }
}

.listing-card .price-chip-sale {
    background: color-mix(in srgb, var(--mud-palette-warning) 10%, transparent);
    border-color: color-mix(in srgb, var(--mud-palette-warning) 18%, transparent);
}

.listing-card .price-chip-total {
    background: color-mix(in srgb, var(--mud-palette-tertiary) 12%, transparent);
    border-color: color-mix(in srgb, var(--mud-palette-tertiary) 28%, transparent);
}

.listing-card .price-chip-total .price-total-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mud-palette-tertiary);
    background: color-mix(in srgb, var(--mud-palette-tertiary) 16%, transparent);
    border-radius: 99px;
    padding: 1px 7px;
    flex-shrink: 0;
}

.listing-card .price-chip .price-icon-chip {
    display: flex;
    align-items: center;
    color: var(--mud-palette-primary);
}

.listing-card .price-chip .price-icon-chip-sale {
    color: var(--mud-palette-warning);
}

.listing-card .price-chip .price-icon-chip-sale .mud-icon-root {
    color: var(--mud-palette-warning) !important;
}

.listing-card .price-chip .price-amount {
    font-weight: 700;
    color: var(--mud-palette-primary);
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.listing-card .price-chip .price-amount-sale {
    color: var(--mud-palette-warning);
}

.listing-card .price-chip .price-amount-total {
    color: var(--mud-palette-tertiary);
}

.listing-card .price-chip .price-period {
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: lowercase;
    opacity: 0.7;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Responsive adjustments for small screens */
@media (max-width: 600px) {
    .listing-card .price-chip {
        padding: 0 7px 0 6px;
        gap: 4px;
    }

    .listing-card .price-chip .price-amount {
        font-size: 0.8rem;
    }

    .listing-card .price-chip .price-period {
        font-size: 0.64rem;
    }
}

@media (max-width: 480px) {
    .listing-card .price-chip .price-amount {
        font-size: 0.76rem;
    }
}

@keyframes promoPulse {
    0% {
        box-shadow: 0 0 4px 0 rgba(var(--mud-palette-primary-rgb), 0.15) !important;
    }
    50% {
        box-shadow: 0 0 8px 2px rgba(var(--mud-palette-primary-rgb), 0.35) !important;
    }
    100% {
        box-shadow: 0 0 4px 0 rgba(var(--mud-palette-primary-rgb), 0.15) !important;
    }
}

.listing-card.promoted {
    border: 2px solid var(--mud-palette-primary) !important;
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out !important;
    animation: promoPulse 4s ease-in-out infinite !important;
}

/* Amenities row - keep single line, hide overflow */
.listing-card .amenities-row {
    flex-wrap: nowrap;
    justify-content: space-evenly; /* distribute items evenly across row */
    gap: 0 12px; /* horizontal spacing only; vertical unnecessary because nowrap */
    width: 100%; /* take full width so spacing works correctly */
    align-items: center;
}

/* Each amenity should take up equal space so that, when only two are present, they
   sit in the middle of their respective halves of the card. */
.listing-card .amenity-item {
    flex: 1 1 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* vertically center icon + text */
    min-width: 0; /* prevent flex overflow */
    gap: 3px; /* spacing between icon and text */
}

/* Reduce icon and text size slightly for a more compact look */
.listing-card .amenity-item .mud-icon {
    font-size: 18px; /* default ~24px, make it a bit smaller */
    margin-right: 0; /* remove horizontal margin since we're vertical now */
    transition: color 0.2s ease;
}

.listing-card .amenity-item .mud-typography {
    font-size: 0.78rem; /* slightly smaller for vertical layout */
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/*--------------------------------------------------*/
/* ListingCard mobile perf: drop blur on glass elements */
/*--------------------------------------------------*/
@media (max-width: 768px) {
    .listing-card .card-offer-type-badge,
    .listing-card .card-corner-badge,
    .listing-card .date-badge,
    .listing-card-shell .favorite-button-container {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .listing-card .card-offer-type-badge,
    .listing-card .card-corner-badge,
    .listing-card .date-badge {
        background: rgba(18, 18, 20, 0.66);
    }

    .listing-card-shell .favorite-button-container {
        background: rgba(255, 255, 255, 0.92);
    }
}


/* ==========================================================================
   Listing price panel — "Rent now" (RentNowPanel) and a sale's "Price" panel
   (ListingPricePanel) share one frame and one rate-row look, so every price on
   a listing page reads the same. Global because ListingPricePanel renders
   without RentNowPanel on the page.
   ========================================================================== */
.rate-select-label,
.rent-now-option .rental-option-text > .mud-typography-body2 {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: normal;
}

/* "Rent now" banner — always visible with date range picker */
.search-date-banner {
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 80%, transparent);
    border-radius: 16px;
    padding: 20px;
    background: var(--mud-palette-surface);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 48px -20px rgba(0, 0, 0, 0.22);
}

.search-date-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.search-date-title {
    font-size: 1.15rem !important;
    font-weight: 750 !important;
    letter-spacing: -0.02em !important;
    color: var(--mud-palette-text-primary);
}

/* Rate rows — bookable selection cards (RentNowPanel) and read-only rows (ListingPriceRows) */
.rate-select-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.search-date-banner > .rate-select-options:last-child {
    margin-bottom: 0;
}

.rate-select-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1.5px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.rate-select-card:hover:not(.ineligible):not(.static) {
    border-color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 4%, transparent);
}

.rate-select-card.selected {
    border-color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, transparent);
}

.rate-select-card.ineligible,
.rate-select-card.suppressed {
    border-style: dashed;
    background: transparent;
}

.rate-select-card.ineligible {
    cursor: default;
}

.rate-select-card.ineligible .rate-select-icon,
.rate-select-card.ineligible .rate-select-label,
.rate-select-card.ineligible .rate-select-price,
.rate-select-card.suppressed .rate-select-icon,
.rate-select-card.suppressed .rate-select-label,
.rate-select-card.suppressed .rate-select-price {
    opacity: 0.45;
}

.rate-select-card.ineligible .rate-select-check,
.rate-select-card.suppressed .rate-select-check {
    visibility: hidden;
}

/* .suppressed (losing to a cheaper rate for these dates) stays clickable, so it keeps
   the default cursor:pointer and the :hover highlight above. */

/* Read-only rows (ListingPriceRows): a price, not a choice — no pointer, no hover */
.rate-select-card.static {
    cursor: default;
}

/* "≈ €1,234" — the price in the visitor's app-bar currency (ConvertedPrice) */
.rate-select-converted {
    font-size: 0.7rem;
    color: var(--mud-palette-text-secondary);
    margin-top: 1px;
    line-height: 1.2;
}

.rate-select-icon {
    color: var(--mud-palette-primary);
    flex-shrink: 0;
}

.rate-select-info {
    flex: 1;
    min-width: 0;
}

.rate-select-label {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rate-select-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 99px;
    background: color-mix(in srgb, var(--mud-palette-primary) 15%, transparent);
    color: var(--mud-palette-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.rate-select-minstay {
    font-size: 0.7rem;
    color: var(--mud-palette-text-secondary);
    margin-top: 2px;
    line-height: 1.2;
}

.rate-select-reason {
    font-size: 0.7rem;
    color: var(--mud-palette-warning);
    margin-top: 2px;
    line-height: 1.2;
}

.rate-select-price {
    margin-top: 2px;
    font-size: 0.76rem;
    line-height: 1.25;
}

.rate-select-price strong {
    font-weight: 700;
    color: var(--mud-palette-text-primary);
}

.rate-select-baserate {
    font-size: 0.65rem;
    color: var(--mud-palette-text-secondary);
    line-height: 1.2;
    margin-top: 2px;
}

.rate-select-price span {
    font-size: 0.76rem;
    color: var(--mud-palette-text-secondary);
}

.rate-select-check {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .search-date-banner {
        border-radius: 16px;
        padding: 16px;
    }
}


/* ==========================================================================
   Mobile sticky listing bar — the rental "Rent now" bar (ListingBookingCtaBar)
   and the sale bar (ListingSaleCtaBar): price on the left, one action right.
   ========================================================================== */
/* Standalone page: pinned to the viewport bottom (rendered OUTSIDE the transformed
   .listing-details-container, which would otherwise capture position:fixed).
   z-index below MudBlazor dialogs (1300), above page content. */
.lcta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1150;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--mud-palette-surface) 92%, transparent);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    /* Same primary tint the floating MobileNavbar uses for its border — this bar replaces
       that navbar on listing pages, so the two read as the same surface. */
    border-top: 2px solid color-mix(in srgb, var(--mud-palette-primary) 55%, transparent);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

/* Standalone page: the bar is the last child of MainLayout's MudContainer, so the mobile rule
   `.mud-container > *:last-child { margin-bottom: 20px }` reached it and lifted the fixed bar
   20px off the screen edge (page content showing underneath). Same specificity, later in the
   file → wins; the overlay variant sets its own margins below. */
.lcta:not(.lcta-overlay) {
    margin: 0;
}

:root[data-mud-theme="dark"] .lcta {
    border-top-color: color-mix(in srgb, var(--mud-palette-primary) 50%, transparent);
}

/* Listing overlay: the overlay content is a transformed scroll container, so fixed would
   stick to the wrapper instead of the viewport — sticky against the overlay's own
   scrollport does the right thing. The bar is the last thing in the overlay's content
   flow, so it stays pinned until the very end. Negative margins undo the wrapper's
   mobile padding (8px 16px sides, 16px + safe-area bottom — see ListingOverlay's
   .listing-details-wrapper) so the bar spans the full width AND closes the overlay's
   bottom edge; the bar's own safe-area padding keeps it clear of the home indicator. */
.lcta.lcta-overlay {
    position: sticky;
    left: auto;
    right: auto;
    margin: 12px -16px calc(-16px - env(safe-area-inset-bottom, 0px));
}

.lcta-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.lcta-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.lcta-price strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
}

.lcta-price span {
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

.lcta-sub {
    font-size: 0.72rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.lcta-sub.warning {
    color: var(--mud-palette-warning);
}

.lcta-btn {
    flex-shrink: 0;
    border-radius: 10px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
}

/* ── Tab toggle (shared) ──
   Segmented tabs used by the booking dialogs and the admin consoles (Host Account Management):
   equal-width buttons, icon over label, red count badge on the icon. Plain HTML buttons — no MudTabs. */
.dialog-tab-wrapper {
    padding: 0 0 0.75rem;
}

.dialog-tab-container {
    display: flex;
    background: var(--mud-palette-surface);
    border-radius: 10px;
    padding: 4px;
    gap: 3px;
    border: 1px solid var(--mud-palette-lines-default);
}

.dialog-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 6px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--mud-palette-text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
}

.dialog-tab-btn:hover {
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, transparent);
}

.dialog-tab-btn.active {
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
}

.dialog-tab-btn .mud-icon-root {
    font-size: 1rem;
}

.tab-icon-wrapper {
    position: relative;
    display: inline-flex;
}

.tab-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    background: var(--mud-palette-error);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

/* Admin console tabs (Components/Shared/SegmentedTabs): on a phone the bar scrolls sideways instead of
   overflowing the page — five tabs with labels like "Unbooked money" do not fit 360px. Scoped to the
   component's own class, so the booking dialogs' bars are untouched. */
@media (max-width: 600px) {
    .segmented-tabs .dialog-tab-container {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .segmented-tabs .dialog-tab-container::-webkit-scrollbar {
        display: none;
    }

    .segmented-tabs .dialog-tab-btn {
        flex: 1 0 auto;
        padding: 8px 10px;
    }

    /* Room for the badge, which sits above the icon and would be clipped by the scroll container. */
    .segmented-tabs .dialog-tab-btn .tab-icon-wrapper {
        margin-top: 4px;
    }
}

/* ── Admin console header (shared) ──
   Icon + title/subtitle + optional actions (Host Account Management, Booking Finance). On a phone the
   h4 title shrinks and the actions drop onto their own row instead of squeezing the title. */
.admin-console-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-console-title {
    flex: 1 1 0;
    min-width: 0;
}

.admin-console-actions {
    margin-left: auto;
}

@media (max-width: 600px) {
    .admin-console-header {
        gap: 8px 12px;
    }

    .admin-console-header > .mud-icon-root {
        font-size: 1.75rem;
    }

    .admin-console-title .mud-typography-h4 {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .admin-console-actions {
        flex-basis: 100%;
        margin-left: 0;
    }
}

/* ── Live feed card (Components/Shared/FeedCardView.razor) — /feed, /feed/{area}, the Home strip ── */
/* The card and its share button side by side in one positioned box (the button is not inside the link) */
.feed-card-shell {
    position: relative;
    min-width: 0;
}

.feed-share {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.feed-share:hover,
.feed-share:focus-visible {
    color: var(--mud-palette-primary);
    border-color: color-mix(in srgb, var(--mud-palette-primary) 45%, transparent);
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-surface));
    outline: none;
}

/* After a successful share/copy the icon becomes ✅ for two seconds (wwwroot/js/feedShare.js) */
.feed-share.is-done > *,
.feed-highlights-share.is-done > * {
    display: none;
}

.feed-share.is-done::after,
.feed-highlights-share.is-done::after {
    content: "✅";
    font-size: 0.95rem;
    line-height: 1;
}

/* Staff only (SuperAdmin + Management): the social-post button sits left of the share button,
   and the foot keeps room for both (Docs/FeedDesign.md § 10b) */
.feed-share--staff {
    right: 50px;
}

.feed-card-shell--staff .feed-card-foot {
    padding-right: 76px;
}

.feed-share.is-busy {
    opacity: 0.6;
    pointer-events: none;
}

/* Card */
.feed-card {
    --feed-accent: var(--mud-palette-primary);
    position: relative;
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.feed-card:hover,
.feed-card:focus-visible {
    border-color: color-mix(in srgb, var(--feed-accent) 45%, var(--mud-palette-lines-default));
    background: color-mix(in srgb, var(--feed-accent) 3%, var(--mud-palette-surface));
    outline: none;
}

.feed-card--new { --feed-accent: var(--mud-palette-primary); }
.feed-card--back { --feed-accent: var(--mud-palette-tertiary); }
.feed-card--price { --feed-accent: var(--mud-palette-success); }
.feed-card--availability { --feed-accent: var(--mud-palette-info); }
.feed-card--review { --feed-accent: var(--mud-palette-warning); }
.feed-card--inquiry { --feed-accent: color-mix(in srgb, var(--mud-palette-info) 55%, var(--mud-palette-error)); }

/* A card that arrived while the page was open slides in and glows once */
.feed-card--live {
    animation: feedEnter 420ms cubic-bezier(.2, .8, .2, 1);
}

.feed-card--live::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: color-mix(in srgb, var(--feed-accent) 14%, transparent);
    opacity: 0;
    animation: feedFlash 1800ms ease-out;
}

.feed-card-media {
    position: relative;
    flex-shrink: 0;
    width: 84px;
    height: 84px;
}

.feed-card-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    background: color-mix(in srgb, var(--mud-palette-text-primary) 6%, transparent);
}

.feed-card-img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}


.feed-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.feed-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.feed-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    height: 22px;
    padding: 0 9px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: color-mix(in srgb, var(--feed-accent) 12%, transparent);
    color: var(--feed-accent);
}

.feed-pill-strong {
    font-weight: 800;
}

.feed-card-time {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
    font-variant-numeric: tabular-nums;
}

.feed-card-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--mud-palette-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-card-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 6px;
    margin-top: 2px;
    font-size: 0.95rem;
    color: var(--mud-palette-text-secondary);
    min-width: 0;
}

.feed-detail-strong {
    color: var(--mud-palette-text-primary);
    font-weight: 600;
}

.feed-detail-muted {
    font-size: 0.8rem;
}

.feed-detail-quote {
    flex-basis: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
}

.feed-price-old {
    text-decoration: line-through;
    font-size: 0.8rem;
}

.feed-arrow {
    color: var(--feed-accent);
    font-weight: 700;
}

.feed-price-new {
    color: var(--mud-palette-text-primary);
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* One rate of a new home ("Rp 25,000,000 / month") — kept together when the line wraps */
.feed-rate {
    white-space: nowrap;
}

.feed-price-period {
    font-size: 0.78rem;
}

.feed-stars {
    color: var(--mud-palette-warning);
    letter-spacing: 0.05em;
}

.feed-card-foot {
    padding-right: 36px; /* room for the share button */
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-top: 2px;
    font-size: 0.78rem;
    color: var(--mud-palette-text-secondary);
}

.feed-card-dot {
    flex-shrink: 0;
}


.feed-person {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    flex-shrink: 1;
}

/* Profile picture — the ListingCard avatar (ring + corner shield) at feed size */
.feed-avatar {
    position: relative;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--mud-palette-surface);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
}

.feed-avatar-img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.feed-avatar .feed-avatar-shield {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mud-palette-surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.feed-person-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    color: var(--mud-palette-text-primary);
}


@media (min-width: 600px) {
    .feed-card {
        gap: 16px;
        padding: 14px 16px;
    }

    .feed-card-media {
        width: 112px;
        height: 112px;
    }

    .feed-card-detail {
        font-size: 1rem;
    }
}

@keyframes feedEnter {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@keyframes feedFlash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .feed-card--live,
    .feed-card--live::after {
        animation: none;
    }
}


/* ===== Inbox list (/my-chats and /favorites) ==========================================
   ONE look for the app's list pages: a bordered surface of compact rows (52px photo, title + time,
   meta line, preview line), skeleton rows and the tinted empty state. Page-specific extras (typing,
   ticks, presence, live flash) stay in the page. */
/* The layout already gives the page its side gutter; the inbox adds none of its own. */
.chat-inbox {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* List */
.chat-inbox-list {
    position: relative; /* the rows' offsetParent: chatInbox.js measures row moves inside the list */
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    overflow: hidden;
}

/* Row */
.chat-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    background: var(--mud-palette-surface);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
    outline: none;
}

.chat-row + .chat-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 76px;
    right: 0;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.chat-row:hover,
.chat-row:focus-visible {
    background: color-mix(in srgb, var(--mud-palette-primary) 4%, var(--mud-palette-surface));
}

.chat-row:active {
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface));
}

.chat-row--skeleton {
    cursor: default;
    align-items: center;
}

/* Avatar: listing photo with the other person's initial on it */
.chat-row-avatar {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
}

.chat-row-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: color-mix(in srgb, var(--mud-palette-text-primary) 6%, transparent);
}

/* Body */
.chat-row-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-row-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.chat-row-title {
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-row-time {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

.chat-row-preview {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
    animation: chatFadeIn 360ms ease-out;
}

.chat-row-preview-text {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-row-preview-empty {
    font-style: italic;
}

.chat-row-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
    overflow: hidden;
}

.chat-row-meta-icon {
    flex-shrink: 0;
    font-size: 14px !important;
    margin-right: -2px;
}

.chat-row-meta-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-row-meta-sep {
    color: var(--mud-palette-text-disabled);
}

/* Empty states */
.chat-inbox-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px;
    text-align: center;
}

.chat-inbox-empty--filter {
    padding: 40px 24px;
}

.chat-inbox-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, transparent);
    color: var(--mud-palette-primary);
}

.chat-inbox-empty-hint {
    color: var(--mud-palette-text-secondary);
    max-width: 340px;
    margin-top: 6px !important;
}

@keyframes chatFadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Admin tables: Actions column pinned to the right edge (ListingManager, UserManagement).
   Wide tables scroll inside their own container instead of being clipped by the page,
   and the Actions column stays reachable. Desktop only — below Breakpoint.Sm (600px)
   MudTable stacks rows into cards. Put .sticky-actions-table on the MudTable and
   .sticky-actions-col on the Actions MudTh + MudTd.
   ========================================================================== */
@media (min-width: 600px) {
    .sticky-actions-table .mud-table-container {
        overflow-x: auto;
    }

    .sticky-actions-table .sticky-actions-col {
        position: sticky;
        right: 0;
        z-index: 1;
        width: 1%;
        white-space: nowrap;
        background-color: var(--mud-palette-surface);
        box-shadow: -1px 0 0 var(--mud-palette-lines-default);
    }

    /* A sticky cell needs an opaque background; re-apply the row's striped/hover tint on top of it. */
    .sticky-actions-table.mud-table-striped .mud-table-body .mud-table-row:nth-of-type(odd) .sticky-actions-col {
        background-image: linear-gradient(var(--mud-palette-table-striped), var(--mud-palette-table-striped));
    }

    .sticky-actions-table.mud-table-hover .mud-table-body .mud-table-row:hover .sticky-actions-col {
        background-image: linear-gradient(var(--mud-palette-table-hover), var(--mud-palette-table-hover));
    }
}

/* Compact centred prompt dialog — PasskeyPromptDialog and PlatformUpdatedDialog
   (icon tile + title + subtitle + one primary button). */
.passkey-modal-content {
    padding: 0 !important;
    overflow: hidden !important;
}

.passkey-modal-actions {
    display: none !important;
}

.passkey-modal {
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.passkey-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--mud-palette-primary), var(--mud-palette-primary-darken));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 20px;
}

.passkey-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.passkey-subtitle {
    font-size: 0.9rem;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 24px;
}

.passkey-cta {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--mud-palette-primary);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.passkey-cta:hover {
    background: var(--mud-palette-primary-darken);
    transform: translateY(-1px);
}

.passkey-dismiss {
    background: none;
    border: none;
    color: var(--mud-palette-text-secondary);
    font-size: 0.85rem;
    padding: 12px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.passkey-dismiss:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .passkey-modal {
        padding: 28px 20px 20px;
    }
    
    .passkey-icon {
        width: 56px;
        height: 56px;
    }
    
    .passkey-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .passkey-title {
        font-size: 1.125rem;
    }
    
    .passkey-cta {
        height: 44px;
    }
}

/* Safety-notice dialogs: LegalDisclaimerDialog (chat safety notice) and ShareWhatsAppDialog.
   Moved from LegalDisclaimerDialog so both share one look (2026-11-11). */
.mud-dialog.safety-notice-dialog {
    width: calc(100% - 32px);
    max-width: 460px;
    max-height: calc(100dvh - 24px);
    margin: 12px;
    overflow: hidden;
    border-radius: 16px;
}

.safety-notice-dialog .mud-dialog-title {
    padding: 24px 24px 20px;
}

.safety-notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.safety-notice-header-icon,
.safety-notice-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
}

.safety-notice-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.safety-notice-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
}

.safety-notice-dialog .mud-dialog-content {
    padding: 0 24px 20px;
}

.safety-notice-list {
    display: grid;
    gap: 8px;
}

.safety-notice-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    color: var(--mud-palette-text-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 3%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 9%, var(--mud-palette-divider));
    border-radius: 10px;
}

.safety-notice-item .mud-typography {
    line-height: 1.45;
}

.safety-notice-item-icon {
    width: 26px;
    height: 26px;
    margin-top: 1px;
    border-radius: 8px;
}

.safety-benefits {
    grid-template-columns: 1fr 1fr;
}

.safety-rule {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 14px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--mud-palette-text-primary);
    background: color-mix(in srgb, var(--mud-palette-warning) 8%, transparent);
    border-radius: 10px;
}

.safety-rule-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.safety-rule-icon {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 1.05rem !important;
    color: var(--mud-palette-warning-darken);
}

@media (max-width: 600px) {
    .safety-benefits {
        grid-template-columns: 1fr;
    }
}

.safety-notice-item-icon.payment {
    color: var(--mud-palette-warning-darken);
    background: color-mix(in srgb, var(--mud-palette-warning) 9%, transparent);
    border-color: color-mix(in srgb, var(--mud-palette-warning) 16%, transparent);
}

.safety-notice-item-icon.report {
    color: var(--mud-palette-error);
    background: color-mix(in srgb, var(--mud-palette-error) 7%, transparent);
    border-color: color-mix(in srgb, var(--mud-palette-error) 13%, transparent);
}

.safety-notice-dialog .mud-dialog-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 0 24px 24px;
}

.safety-notice-dialog .mud-button-root {
    min-height: 44px;
    padding-inline: 14px;
    text-transform: none;
    font-weight: 600;
    border-radius: 8px;
}

@media (max-width: 420px) {
    .mud-dialog.safety-notice-dialog {
        width: calc(100vw - 20px);
        margin: 10px;
        border-radius: 14px;
    }

    .safety-notice-dialog .mud-dialog-title {
        padding: 20px 18px 16px;
    }

    .safety-notice-dialog .mud-dialog-content {
        padding: 0 18px 18px;
    }

    .safety-notice-dialog .mud-dialog-actions {
        padding: 0 18px 18px;
    }

}

/* ===== Chips (the /my-chats filters, the List | Board toggle, the board's phone column chips) ===== */
.chat-inbox-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.chat-inbox-chips::-webkit-scrollbar {
    display: none;
}

.chat-inbox-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 99px;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chat-inbox-chip.active {
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
    border-color: color-mix(in srgb, var(--mud-palette-primary) 40%, transparent);
    color: var(--mud-palette-primary);
    font-weight: 600;
}

/* ===== Kanban board (Components/Shared/KanbanBoard — /my-chats lead board, dashboard Bookings tab) ===== */
.kanban-tabs {
    display: none;
    gap: 6px;
    margin-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.kanban-tabs::-webkit-scrollbar {
    display: none;
}

.kanban-columns {
    --kanban-strip-width: 52px;
    display: grid;
    gap: 12px;
    align-items: start;
    padding-bottom: 8px;
}

.kanban-col {
    --kanban-tone: var(--mud-palette-primary);
    border-radius: 12px;
    background: color-mix(in srgb, var(--kanban-tone) 4%, transparent);
    min-height: 120px;
    min-width: 0;
}

.kanban-tone--attention { --kanban-tone: var(--mud-palette-error); }
.kanban-tone--info { --kanban-tone: var(--mud-palette-info); }
.kanban-tone--muted { --kanban-tone: var(--mud-palette-text-secondary); }

.kanban-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 12px 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--mud-palette-text-secondary);
}

.kanban-col-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kanban-col-title .mud-icon-root {
    font-size: 1.05rem;
    color: var(--kanban-tone);
}

.kanban-col-head-end {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

/* Fold / unfold a Collapsible column (desktop only) */
.kanban-col-fold,
.kanban-col-strip {
    border: none;
    background: none;
    font: inherit;
    color: var(--mud-palette-text-secondary);
    cursor: pointer;
}

.kanban-col-fold {
    display: inline-flex;
    padding: 2px;
    border-radius: 6px;
}

.kanban-col-fold:hover,
.kanban-col-strip:hover {
    color: var(--kanban-tone);
}

.kanban-col-strip {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.kanban-col-strip .mud-icon-root {
    color: var(--kanban-tone);
}

.kanban-col-strip-label {
    writing-mode: vertical-rl;
    white-space: nowrap;
}

@media (min-width: 900px) {
    .kanban-col.is-collapsed .kanban-col-strip {
        display: flex;
    }

    .kanban-col.is-collapsed .kanban-col-head,
    .kanban-col.is-collapsed .kanban-col-body {
        display: none;
    }
}

.kanban-count {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 99px;
    text-align: center;
    background: color-mix(in srgb, var(--kanban-tone, var(--mud-palette-primary)) 12%, transparent);
    color: var(--kanban-tone, var(--mud-palette-primary));
}

.kanban-col-body {
    display: grid;
    gap: 10px;
    padding: 0 10px 12px;
    min-width: 0;
}

.kanban-item {
    position: relative;
    min-width: 0;
}

.kanban-item[draggable="true"] {
    cursor: grab;
}

/* "Show all" at the end of a previewed column (Past / Closed) */
.kanban-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 8px 12px;
    border: 1px dashed color-mix(in srgb, var(--mud-palette-text-secondary) 20%, transparent);
    border-radius: 12px;
    background: transparent;
    color: var(--mud-palette-text-secondary);
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.kanban-more:hover {
    background: color-mix(in srgb, var(--mud-palette-text-secondary) 6%, transparent);
    border-color: color-mix(in srgb, var(--mud-palette-text-secondary) 30%, transparent);
}

.kanban-col-empty {
    padding: 16px 8px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
}

/* Phones and narrow screens: chips choose the column, one column at a time, full width */
@media (max-width: 899px) {
    .kanban-tabs {
        display: flex;
    }

    .kanban-columns {
        display: block;
    }

    .kanban-col {
        display: none;
        background: transparent;
    }

    .kanban-col.is-selected {
        display: block;
    }

    .kanban-col-head {
        display: none;
    }

    .kanban-col-body {
        padding: 0;
    }

    .kanban-col-fold {
        display: none;
    }

    .kanban-item[draggable="true"] {
        cursor: default;
    }
}

/* ===== Booking card (Components/Shared/HostBookingCard + GuestBookingCard — the dashboard Bookings board) =====
   The boards' card: the listing photo across the top with the status on it, then which home, the stay on one
   line, who (the feed's person markup) — and ONE footer line saying what is next. One frame, a thin grey border,
   no lift on hover. */
.booking-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    transition: border-color 0.15s ease;
}

.booking-card.clickable {
    cursor: pointer;
}

.booking-card.clickable:hover {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 45%, var(--mud-palette-lines-default));
}

/* Ended: a dashed frame, everything still readable (the dialog decides what can still be done) */
.booking-card.terminal {
    border-style: dashed;
}

.booking-card.terminal .bc-photo-img {
    opacity: 0.8;
}

.bc-photo {
    position: relative;
    height: 116px;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--mud-palette-text-primary) 6%, transparent);
}

.bc-photo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bc-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.bc-badge.pending,
.bc-badge.approved,
.bc-badge.pending-cancellation {
    background: var(--mud-palette-warning);
    color: var(--mud-palette-warning-text);
}

.bc-badge.viewing {
    background: var(--mud-palette-info);
    color: var(--mud-palette-info-text);
}

.bc-badge.ready,
.bc-badge.checked-in {
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
}

.bc-badge.declined,
.bc-badge.cancelled,
.bc-badge.overdue {
    background: var(--mud-palette-error);
    color: var(--mud-palette-error-text);
}

.bc-badge.expired {
    background: var(--mud-palette-dark);
    color: var(--mud-palette-dark-text);
}

.bc-badge.completed,
.bc-badge.ended {
    background: var(--mud-palette-success);
    color: var(--mud-palette-success-text);
}

.bc-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px 12px;
}

.bc-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The stay (BookingCardStay): kind + length, then the dates — label in grey, value in bold */
.bc-stay {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.bc-stay-kind,
.bc-date-item {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bc-stay .mud-icon-root {
    flex-shrink: 0;
    font-size: 0.9rem !important;
    color: var(--mud-palette-primary);
}

.bc-date-label {
    font-size: 0.7rem;
}

.bc-date-item strong {
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

/* A narrow card (every board column open on a smaller screen) keeps photo, kind and dates on one line each:
   only the "Move-in Date" words go, the arrow icons still say which date is which */
.booking-card {
    container-type: inline-size;
}

@container (max-width: 180px) {
    .bc-date-label {
        display: none;
    }
}

.bc-person {
    margin-top: 4px;
    font-size: 0.78rem;
}

/* After the guest's name on the host card: the party size — never shrinks, the name gives way */
.bc-person-extra {
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--mud-palette-text-secondary);
}

/* The footer: what is next, one line, centred — it breaks between its parts, never inside one */
.bc-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    column-gap: 0.35rem;
    row-gap: 0;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--mud-palette-lines-default);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
}

.bc-footer > span {
    white-space: nowrap;
}

.bc-footer .mud-icon-root {
    font-size: 0.9rem !important;
}

.bc-footer--action {
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.bc-footer--info .mud-icon-root {
    color: var(--mud-palette-info) !important;
}

.bc-footer--neutral .mud-icon-root {
    color: var(--mud-palette-text-secondary) !important;
}

.bc-footer--primary {
    color: var(--mud-palette-primary);
}

/* Only what is urgent carries a tint */
.bc-footer--warning {
    background: color-mix(in srgb, var(--mud-palette-warning) 6%, var(--mud-palette-surface));
    color: var(--mud-palette-text-primary);
}

.bc-footer--warning .mud-icon-root {
    color: var(--mud-palette-warning) !important;
}

.bc-footer--error {
    background: color-mix(in srgb, var(--mud-palette-error) 7%, var(--mud-palette-surface));
    color: var(--mud-palette-text-primary);
}

.bc-footer--error .mud-icon-root {
    color: var(--mud-palette-error) !important;
}

/* A request's money for the host */
.bc-footer--earning {
    color: var(--mud-palette-success);
    font-weight: 600;
}

.bc-footer-sep {
    color: var(--mud-palette-text-disabled);
}

/* The host's response countdown on an open request (HostBookingCard) */
.bc-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.bc-countdown-label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mud-palette-text-secondary);
}

.bc-countdown-value {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 700;
    color: inherit;
}

.bc-countdown-value .mud-icon-root {
    font-size: 0.9rem !important;
    color: inherit;
}

.bc-countdown-time {
    font-size: 0.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.bc-countdown--normal {
    color: var(--mud-palette-success);
}

.bc-countdown--urgent {
    background: color-mix(in srgb, var(--mud-palette-warning) 8%, var(--mud-palette-surface));
    color: var(--mud-palette-warning-darken);
}

.bc-countdown--critical {
    background: color-mix(in srgb, var(--mud-palette-error) 8%, var(--mud-palette-surface));
    color: var(--mud-palette-error);
}

/* Listing wizard: sectioned summary blocks (review-*) — shared by the Review step and the Legal step. */
.review-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-section {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    overflow: hidden;
}

.review-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background: color-mix(in srgb, var(--mud-palette-primary) 4%, transparent);
}

.review-section-header .mud-icon-root {
    font-size: 1.15rem;
    color: var(--mud-palette-primary);
}

.review-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.review-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 50%, transparent);
}

.review-field:last-child {
    border-bottom: none;
}

.review-field-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.review-field-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mud-palette-text-primary);
}

.review-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mud-palette-primary);
}

.review-price-unit {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--mud-palette-text-secondary);
    margin-left: 3px;
}

.review-price-group {
    background: color-mix(in srgb, var(--mud-palette-primary) 4%, transparent);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0.75rem;
}

.review-price-group-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.review-price-group-title.short-term {
    color: var(--mud-palette-primary);
}

.review-price-group-title.long-term {
    color: var(--mud-palette-success);
}

.review-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.review-badge.yes {
    background: color-mix(in srgb, var(--mud-palette-success) 10%, transparent);
    color: var(--mud-palette-success);
}

.review-badge.no {
    background: color-mix(in srgb, var(--mud-palette-error) 10%, transparent);
    color: var(--mud-palette-error);
}

.review-badge.pending {
    background: color-mix(in srgb, var(--mud-palette-warning) 10%, transparent);
    color: var(--mud-palette-warning);
}

.review-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0.625rem 1rem;
}

.review-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    background: color-mix(in srgb, var(--mud-palette-success) 8%, transparent);
    color: var(--mud-palette-success);
}

.review-chip .mud-icon-root {
    font-size: 0.85rem;
}

.review-description {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--mud-palette-text-primary);
    line-height: 1.6;
}

@media (min-width: 600px) {
    .review-grid {
        grid-template-columns: 1fr 1fr;
    }

    .review-field {
        border-bottom: none;
        border-right: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 50%, transparent);
    }

    .review-field:nth-child(even) {
        border-right: none;
    }

    /* Restore bottom borders between rows */
    .review-grid > .review-field:nth-last-child(n+3) {
        border-bottom: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 50%, transparent);
    }

    /* If odd last child, span full width */
    .review-field.full-width {
        grid-column: 1 / -1;
        border-right: none;
    }
}
