/* MudBlazor is imported into a cascade layer so our own (unlayered) rules can override it
   without !important. Unlayered styles always outrank layered ones, regardless of specificity. */
@import url("../_content/MudBlazor/MudBlazor.min.css") layer(mud);

/* glassmorphism-tahoe.css */

/*
 * Glassmorphism Theme for MudBlazor – Inspired by macOS "Tahoe" aesthetic
 * Applies consistent spacing, rounded shapes, translucent surfaces, and soft shadows.
 * The MudBlazor palette, typography and elevations are defined in Common/RadarTheme.cs; this file
 * only owns the design tokens that Mud does not provide (--font-*, --glass-*) and key class tweaks.
 */

/* === Self-hosted Fonts (Inter — OFL) === */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2-variations');
  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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2-variations');
  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;
}

/* === Typography & Surface Tokens (design system only) ===
   The MudBlazor palette, typography families and elevation live in Common/RadarTheme.cs:
   MudThemeProvider emits them at runtime as --mud-palette-* / --mud-typography-* / --mud-elevation-*,
   so redefining them here would be dead (and misleading) code. */
:root {
  /* Primary UI font stack — Inter is self-hosted above */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 1rem;       /* 16px */
  --font-size-xs: 0.875rem;     /* 14px */
  --font-size-sm: 0.8125rem;    /* 13px */
  --font-size-md: 0.9375rem;    /* 15px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.5rem;       /* 24px */
  --font-size-2xl: 2rem;        /* 32px */
  --font-size-3xl: 2.75rem;     /* 44px — display headings */

  /* Layout offsets: keep full-height (map) pages in sync with the fixed app bar + main padding. */
  --appbar-height: 64px;
  --content-top-offset: 80px;

  /* === Surface tokens (institutional / D1: flat surfaces, no blur by default) === */
  --canvas: #f5f7fb;                                  /* Page canvas */
  --surface-solid: #ffffff;                           /* Opaque surface for panels, popovers and dialogs */
  --glass-border: rgba(15, 61, 145, 0.16);            /* Blue-tinted edge definition */

  /* Opt-in glass (applied only via the .glass class, never by default) */
  --glass-bg: rgba(255, 255, 255, 0.66);
  --glass-backdrop-blur: blur(8px);
  --glass-shadow: 0 8px 32px rgba(9, 22, 46, 0.18);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(15, 61, 145, 0.16);
  --glass-surface:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.32) 14%, rgba(255, 255, 255, 0.02) 42%),
    linear-gradient(160deg, #ffffff 0%, #eef3fc 46%, #dce8f8 100%);
}

/* === Body Background === */
body {
  min-height: 100vh;
  background: var(--canvas);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Typography: Heading Scale === */
h1, .mud-typography-h1 { font-size: var(--font-size-3xl); font-weight: 700; letter-spacing: -0.02em; }
h2, .mud-typography-h2 { font-size: var(--font-size-2xl); font-weight: 700; letter-spacing: -0.01em; }
h3, .mud-typography-h3 { font-size: var(--font-size-xl); font-weight: 600; letter-spacing: -0.01em; }
h4, .mud-typography-h4 { font-size: var(--font-size-lg); font-weight: 600; }
h5, .mud-typography-h5 { font-size: var(--font-size-base); font-weight: 600; }
h6, .mud-typography-h6 { font-size: var(--font-size-xs); font-weight: 600; }

/* Uppercase micro-label — used for eyebrows, section labels and chip labels.
   Replaces the old global h6 uppercase hack so only these stay in caps. */
.eyebrow {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Aligned numerals for prices, counts and KPIs */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Text alignment utility (Bootstrap is not loaded, so .text-center must be defined here) */
.text-center {
  text-align: center;
}

/* Screen-reader-only text (state conveyed visually by icon/color also available as text) */
.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;
}

/* === Accessibility === */

/* Respect OS reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}

/* Visible focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--mud-palette-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* MudBlazor inputs have their own focus indicator (colored border);
   suppress the global ring so it doesn't create a double line that covers the label. */
.mud-input-slot:focus-visible {
  outline: none;
}

/* === Page Transitions === */
.page-transition-wrapper {
  animation: page-fade-in 0.3s ease-in-out;
}

/* Opacity-only: no transform, so the composited blur layers are not re-rastered per frame. */
@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* === Surfaces ===
   Institutional (D1): flat, opaque surfaces by default. The blur treatment is opt-in via .glass. */
.mud-paper,
.mud-card,
.mud-dialog,
.mud-menu,
.mud-picker,
.mud-alert,
.mud-table-container,
.mud-tabs-toolbar {
  background: var(--surface-solid);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--mud-elevation-1);
}

/* The app bar is full-width: no radius, just a bottom divider. */
.mud-appbar {
  background: var(--surface-solid);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: none;
  padding: 0 24px;
  height: 64px;
}

/* Opt-in glass for accent surfaces that want the full translucent treatment. */
.glass {
  background: var(--glass-surface);
  -webkit-backdrop-filter: var(--glass-backdrop-blur);
  backdrop-filter: var(--glass-backdrop-blur);
  box-shadow: var(--glass-edge), var(--mud-elevation-2);
}

/* Filled alerts keep their semantic severity background so the alert text
   (contrast color chosen by MudBlazor) stays readable over it.
   The full background shorthand resets the glass gradient painted above. */
.mud-alert-filled-success {
  background: var(--mud-palette-success);
}
.mud-alert-filled-error {
  background: var(--mud-palette-error);
}
.mud-alert-filled-info {
  background: var(--mud-palette-info);
}
.mud-alert-filled-warning {
  background: var(--mud-palette-warning);
}

/* Only clip cards within cards to prevent double-blur visual glitch */
.mud-card .mud-card-body,
.mud-dialog .mud-dialog-content {
  overflow: auto;
}

/* Nested cards use a flat fill: no second blur layer, no over-darkening. */
.mud-card > .mud-card {
  background: var(--surface-solid);
}

/* === Buttons === */
.mud-button-filled,
.mud-button-outlined,
.mud-icon-button {
  border-radius: 14px;
}
/* Button colors come from the Mud theme (per Color variant); only the radius is overridden. */

/* === Inputs & Form Controls === */
.mud-input-control-input-container,
.mud-select-input,
.mud-autocomplete-input {
  border-radius: 14px;
}
.mud-input-control-input-container input,
.mud-input-control-input-container textarea {
  background: transparent;
  color: var(--mud-palette-text-primary);
}
.mud-input-helper-text,
.mud-input-label {
  color: var(--mud-palette-text-secondary);
}

/* === Navigation & App Bar === */
/* Compensate for fixed AppBar + match its horizontal padding */
.mud-main-content {
  padding-top: var(--content-top-offset);
  padding-left: 24px;
  padding-right: 24px;
}

.mud-nav-link {
  border-radius: 12px;
  margin: 0 4px;
}

/* === Tables & Data Grids === */
.mud-table-cell {
  padding: 12px 16px;
}
.mud-table-head th {
  font-weight: 600;
}

/* === Consistent Spacing === */
.mud-grid,
.mud-container {
  gap: 16px;
}
.mud-button,
.mud-input,
.mud-card-actions {
  margin: 4px 0;
}

/* === Scrollbars (WebKit) === */
*::-webkit-scrollbar {
  width: 8px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(140, 140, 160, 0.35);
  border-radius: 4px;
}

/* === Skeleton Loader (hides once Blazor renders) === */
#app:not(:empty) > .skeleton-loader {
  display: none;
}

/* === Component Overrides (global for MudBlazor specificity) ===
   CSS isolation cannot scope classes applied to MudBlazor component roots
   (Class=/CssClasses= land on the child component's root element, which
   never receives the parent's scope attribute). These rules must live here. */

/* ---- MainLayout: appbar ---- */
.mud-appbar.main-appbar {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* MudAppBar is a column flex container and align-items centers the toolbar horizontally,
   while .mud-toolbar is flex: 0 1 auto (shrink-to-fit). A toolbar wider than the bar then
   overflows on BOTH sides and the left cluster becomes unreachable. Full width makes the
   MudSpacers work and keeps any overflow on the right only. */
.mud-appbar.main-appbar > .mud-toolbar {
    width: 100%;
    min-width: 0;
}

.appbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
    color: var(--mud-palette-text-primary);
    text-decoration: none;
}

.appbar-brand:hover {
    color: var(--mud-palette-primary);
}

.appbar-brand-logo {
    width: 28px;
    height: 28px;
    color: var(--mud-palette-primary);
    flex-shrink: 0;
}

.mud-typography.appbar-brand-text {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Mobile drawer header brand */
.mud-drawer-header {
    gap: 8px;
}

.drawer-brand-logo {
    width: 28px;
    height: 28px;
    color: var(--mud-palette-primary);
    flex-shrink: 0;
}

/* Drawer — opaque surface */
.mud-drawer {
    background: var(--surface-solid);
    border-right: 1px solid var(--glass-border);
    box-shadow: var(--mud-elevation-2);
}

/* Language selector — give it room so language names aren't clipped in the popover */
.mud-toolbar .mud-select,
.mud-toolbar .mud-select .mud-input-control {
    min-width: 136px;
}

.appbar-version {
    opacity: 0.6;
    margin-left: 8px;
    font-size: 0.75rem;
}

/* Mobile nav toggle: hidden on desktop */
.mud-icon-button.mobile-nav-toggle {
    display: none;
}

/* Nav items */
/* The landmark must not introduce a layout box, so it participates as a transparent wrapper. */
.mud-appbar .appbar-nav {
    display: contents;
}

.mud-icon-button.nav-item {
    transition: opacity 0.2s;
}

.mud-icon-button.nav-item:hover {
    opacity: 0.8;
}

.mud-icon-button.nav-item-active {
    opacity: 1;
}

/* Desktop search cluster. `display` MUST live here and not in MainLayout.razor.css: a scoped
   rule compiles to .appbar-search-tools[b-xxx] (0,2,0) and would outrank the mobile
   `display: none` below, leaving the whole cluster visible on phones. */
.appbar-search-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--mud-palette-divider);
}

.appbar-summary {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(15, 61, 145, 0.08);
    border: 1px solid rgba(15, 61, 145, 0.2);
    font-size: var(--font-size-sm);
    font-weight: 600;
    white-space: nowrap;
}

[data-theme="dark"] .appbar-summary {
    background: rgba(110, 168, 255, 0.1);
    border: 1px solid rgba(110, 168, 255, 0.25);
}

.appbar-summary > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.appbar-summary span:first-child {
    color: var(--mud-palette-text-secondary);
}

.appbar-summary span:last-child {
    color: var(--mud-palette-primary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.mud-navmenu .mud-nav-link.active {
    font-weight: 600;
    background-color: var(--mud-palette-primary-hover);
}

/* Mobile overflow menu (kebab): hidden on desktop */
.mobile-more-menu {
    display: none;
}

/* Search tools panel rendered inside the mobile kebab menu (only on /search) */
.mobile-search-tools-panel {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
}

@media (max-width: 599.98px) {
    :root {
        --appbar-height: 56px;
        --content-top-offset: 72px;
    }

    .mud-appbar {
        height: 56px;
        padding: 0 12px;
    }

    .mud-main-content {
        padding-top: var(--content-top-offset);
        padding-left: 12px;
        padding-right: 12px;
    }

    .mud-icon-button.mobile-nav-toggle {
        display: inline-flex;
    }

    .mud-icon-button.nav-item {
        display: none;
    }

    .mud-typography.appbar-brand-text {
        font-size: 1rem;
        white-space: nowrap;
    }

    .appbar-brand {
        margin-right: 0;
    }

    /* Desktop-only appbar clusters are replaced by the kebab menu (the marker counter keeps its
       own slot on every breakpoint) */
    .appbar-search-tools,
    .appbar-language,
    .theme-toggle-btn,
    .appbar-user-menu {
        display: none;
    }

    .mobile-more-menu {
        display: inline-flex;
    }

    /* The counter shares the app bar with brand and kebab: compact it so it fits on phones */
    .appbar-summary {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
}

/* Narrowest phones: the marker counter must stay on screen, so drop the brand text (the logo
   still identifies the brand and the drawer shows the full name). */
@media (max-width: 400px) {
    .mud-typography.appbar-brand-text {
        display: none;
    }
}

/* ---- Index page ---- */
.mud-container.index-page {
    padding-top: 32px;
    padding-bottom: 32px;
}

.mud-paper.hero-section {
    position: relative;
    overflow: hidden;
    padding: 64px 32px 56px;
    margin-bottom: 24px;
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(15, 61, 145, 0.06), transparent 55%),
        var(--surface-solid);
    border: 1px solid var(--glass-border);
}

[data-theme="dark"] .mud-paper.hero-section {
    background:
        radial-gradient(circle at 15% 20%, rgba(110, 168, 255, 0.08), transparent 55%),
        var(--surface-solid);
}

.mud-typography.hero-subtitle-text {
    color: var(--mud-palette-text-secondary);
    margin-bottom: 0;
    max-width: 600px;
}

.mud-button-root.mud-button-filled.hero-cta-button {
    padding: 12px 36px;
    font-size: var(--font-size-md);
    border-radius: 12px;
}

.mud-button-root.mud-button-outlined.hero-cta-secondary {
    padding: 12px 36px;
    font-size: var(--font-size-md);
    border-radius: 12px;
}

.mud-paper.kpi-section {
    padding: 24px;
    border: 1px solid var(--glass-border);
}

.mud-typography.kpi-section-title {
    margin-bottom: 16px;
    font-weight: 600;
    text-align: center;
}

.index-auctions-summary {
    width: 100%;
}

.mud-paper.public-map-section {
    /* The map tiles are opaque: a blur behind them is pure waste. */
    background: var(--surface-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.mud-typography.auth-prompt-title {
    margin-bottom: 12px;
    font-weight: 600;
}

.mud-typography.auth-prompt-message {
    margin-bottom: 24px;
    color: var(--mud-palette-text-secondary);
}

.auth-prompt-btn {
    min-width: 140px;
}

/* ---- AuctionsSummary: cards ---- */
.mud-typography.summary-section-title {
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 4px;
    color: var(--mud-palette-text-secondary);
}

.mud-skeleton.summary-skeleton-title {
    margin-top: 8px;
    margin-bottom: 4px;
}

.mud-paper.summary-card {
    text-align: center;
    padding: 16px 12px;
    transition: box-shadow 0.2s ease;
    background: var(--surface-solid);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.mud-paper.summary-card:hover {
    box-shadow: var(--mud-elevation-3);
}

.mud-typography.summary-value {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
    color: var(--mud-palette-text-primary);
}

.mud-typography.summary-label {
    font-size: var(--font-size-sm);
    color: var(--mud-palette-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* Colored left border per auction state */
.mud-paper.summary-state-Open {
    border-left: 4px solid var(--mud-palette-success);
}
.mud-paper.summary-state-NextOpening {
    border-left: 4px solid var(--mud-palette-warning);
}
.mud-paper.summary-state-Suspended {
    border-left: 4px solid var(--mud-palette-error);
}
.mud-paper.summary-state-Closed {
    border-left: 4px solid var(--mud-palette-text-disabled);
}
.mud-paper.summary-state-Active {
    border-left: 4px solid var(--mud-palette-info);
}
.mud-paper.summary-state-BidPeriodEnded {
    border-left: 4px solid var(--mud-palette-warning);
}
.mud-paper.summary-state-Cancelled {
    border-left: 4px solid var(--mud-palette-error);
}
.mud-paper.summary-state-Finished {
    border-left: 4px solid var(--mud-palette-text-disabled);
}

/* Colored left border per asset type */
.mud-paper.summary-type-RealEstate {
    border-left: 4px solid var(--mud-palette-tertiary);
    background: rgba(14, 116, 144, 0.06);
}
.mud-paper.summary-type-Vehicle {
    border-left: 4px solid var(--mud-palette-secondary);
    background: rgba(61, 90, 128, 0.06);
}
.mud-paper.summary-type-Other {
    border-left: 4px solid var(--mud-palette-text-disabled);
}

[data-theme="dark"] .mud-paper.summary-type-RealEstate {
    background: rgba(56, 189, 248, 0.1);
}
[data-theme="dark"] .mud-paper.summary-type-Vehicle {
    background: rgba(125, 155, 191, 0.08);
}


/* === Auction detail: location viewer (Street View) === */
.location-viewer {
  position: relative;
  margin-top: 8px;
}

.location-viewer .location-streetview {
  height: 264px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.location-viewer .location-streetview:fullscreen {
  width: 100%;
  height: 100%;
}

.location-viewer .location-attribution {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.55);
  font-size: 11px;
}

.cadastre-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.cadastre-info strong {
  color: var(--mud-palette-text-primary);
}

.cadastre-info a {
  color: var(--mud-palette-primary);
  font-weight: 600;
  text-decoration: none;
}

.cadastre-info a:hover {
  text-decoration: underline;
}

.cadastre-info-loading {
  font-size: 13px;
  color: var(--mud-palette-text-secondary);
}

.cadastre-info .cadastre-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.cadastre-info .cadastre-detail-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--mud-palette-primary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.cadastre-info .cadastre-detail-btn:hover {
  text-decoration: underline;
}

.cadastre-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cadastre-info-table th,
.cadastre-info-table td {
  text-align: left;
  padding: 4px 8px;
  border-bottom: 1px solid var(--mud-palette-lines-default);
}

.cadastre-info-table th {
  color: var(--mud-palette-text-secondary);
  font-weight: 500;
}

.cadastral-reference-link {
  text-transform: none;
  letter-spacing: 0;
}

/* ========================================================================
   DARK MODE
   ======================================================================== */
[data-theme="dark"] {
  /* Institutional dark canvas and opaque surfaces. */
  --canvas: #0b1220;
  --surface-solid: #121A2B;
  --glass-bg: rgba(16, 26, 46, 0.72);
  --glass-border: rgba(110, 168, 255, 0.22);
  --glass-backdrop-blur: blur(8px);
  --glass-shadow: 0 8px 32px rgba(2, 6, 18, 0.65);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  --glass-surface:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 15%),
    linear-gradient(165deg, #2A4066 0%, #15233F 50%, #0A1426 100%);
}

/* Dark mode nested cards — slightly more opaque */
[data-theme="dark"] .mud-card > .mud-card {
  background: linear-gradient(180deg, rgba(46, 62, 102, 0.55) 0%, rgba(18, 28, 52, 0.5) 100%);
}

/* === MapLibre auctions map: fills its (sized) parent container === */
.auctions-map {
  width: 100%;
  height: 100%;
}

/* Zoom level shown inside the magnifier in the top-left corner of the auctions map. */
.auctions-map-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #333;
  user-select: none;
}

.auctions-map-zoom__icon {
  display: block;
}

.auctions-map-zoom__value {
  font-family: inherit;
}

/* Cluster picker: lists the properties grouped in a cluster that cannot be split
   further by zooming (same coordinates), so the user can pick one directly. */
.auction-cluster-popup {
  min-width: 220px;
  max-width: 320px;
  min-height: 48px;
  font: 400 13px/1.4 Roboto, Arial, sans-serif;
  color: #1f2933;
}

.auction-cluster-popup__title {
  margin-bottom: 6px;
  font-weight: 700;
}

.auction-cluster-popup__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 240px;
  overflow-y: auto;
}

.auction-cluster-popup__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.auction-cluster-popup__item:hover,
.auction-cluster-popup__item:focus-visible {
  background: rgba(0, 0, 0, .08);
  outline: none;
}

.auction-cluster-popup__badge {
  flex: 0 0 auto;
  font-weight: 700;
}

.auction-cluster-popup__label {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auction-cluster-popup__value {
  flex: 0 0 auto;
  margin-left: 8px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #52606d;
  white-space: nowrap;
}

/* Drawing mode: a pencil cursor over the canvas and the pins. The canvas is created by
   MapLibre, so a component-scoped rule would never reach it. The rule needs
   because MapLibre rewrites the canvas cursor on drag/hover, and the pins carry an inline
   cursor. The pencil tip (Material "edit" icon) sits at 3,21 in the 24x24 viewBox. */
.auctions-map--drawing,
.auctions-map--drawing .maplibregl-canvas-container,
.auctions-map--drawing .maplibregl-canvas-container * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25z' fill='%23FFC107' stroke='%23111111' stroke-width='1' stroke-linejoin='round'/%3E%3Cpath d='M20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z' fill='%23FFD54F' stroke='%23111111' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") 3 21, crosshair;
}

/* === Search results table dialog (cadastral searches with multiple auctions & toolbar results) === */
.search-results-dialog-content {
  min-height: 380px;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
}

.search-results-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.search-results-table {
  flex: 1 1 auto;
  min-height: 280px;
}

.search-results-table th,
.search-results-table td {
  white-space: nowrap;
}

.search-results-description-cell {
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


