/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-owde6xqbzz] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-owde6xqbzz] {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content[b-owde6xqbzz] {
    flex: 1;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

/* ===== Listee-style top navigation header ===== */
.site-header[b-owde6xqbzz] {
    background-color: var(--brand);
    background-image: none;
    position: sticky;
    top: 0;
    z-index: 1002;
    color: #fff;
}

.site-nav[b-owde6xqbzz] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: 4rem;
    padding: 0.5rem 1.5rem;
    margin: 0 auto;
    max-width: 1320px;
}

.site-brand[b-owde6xqbzz] {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0.25rem 0;
    margin-right: 0.5rem;
}

    .site-brand img[b-owde6xqbzz] {
        max-height: 2.75rem;
        max-width: 100%;
        object-fit: contain;
    }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle-checkbox[b-owde6xqbzz] {
    display: none;
}

.nav-toggle[b-owde6xqbzz] {
    display: none;
    flex: 0 0 auto;
    margin-left: auto;
    width: 2.75rem;
    height: 2.25rem;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.375rem;
    flex-direction: column;
    justify-content: space-between;
}

    .nav-toggle span[b-owde6xqbzz] {
        display: block;
        height: 2px;
        width: 100%;
        background: #fff;
        border-radius: 1px;
    }

/* Menu wrapper holds the primary links and the right-aligned actions */
.site-menu[b-owde6xqbzz] {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-nav-links[b-owde6xqbzz],
.site-nav-actions[b-owde6xqbzz] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

    .site-nav-links > li[b-owde6xqbzz],
    .site-nav-actions > li[b-owde6xqbzz] {
        position: relative;
    }

/* Top-level link styling */
.site-header[b-owde6xqbzz]  .site-nav-links > li > a,
.site-header[b-owde6xqbzz]  .site-nav-actions > li > a.nav-action-link,
.site-header[b-owde6xqbzz]  .dropdown-caret {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
}

.site-header[b-owde6xqbzz]  .site-nav-links > li > a:hover,
.site-header[b-owde6xqbzz]  .site-nav-actions > li > a.nav-action-link:hover,
.site-header[b-owde6xqbzz]  .dropdown-caret:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

/* Add Listing call-to-action: an on-brand white pill that pops on the coral header */
.site-header[b-owde6xqbzz]  .add-listing-btn {
    white-space: nowrap;
    color: var(--brand-dark) !important;
    background: #fff;
    border-color: #fff;
    font-weight: 600;
}

.site-header[b-owde6xqbzz]  .add-listing-btn:hover {
    color: var(--brand-darker) !important;
    background: var(--brand-tint);
    border-color: var(--brand-tint);
}

/* ===== Browse Ads mega menu ===== */
.megamenu[b-owde6xqbzz] {
    position: absolute;
    left: 0;
    top: 100%;
    width: max-content;
    max-width: 720px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.5rem;
    box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.18);
    padding: 1rem;
    margin-top: 0.25rem;
    z-index: 1060;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.megamenu-grid[b-owde6xqbzz] {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 0.35rem;
}

.site-header[b-owde6xqbzz]  .megamenu-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    color: #212529 !important;
    text-decoration: none;
    background: transparent;
}

.site-header[b-owde6xqbzz]  .megamenu-item:hover {
    background: var(--brand-tint);
    color: var(--brand-darker) !important;
}

.megamenu-icon[b-owde6xqbzz] {
    flex: 0 0 auto;
    font-size: 1.35rem;
    line-height: 1.4;
    color: var(--brand);
}

.megamenu-text[b-owde6xqbzz] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.megamenu-name[b-owde6xqbzz] {
    font-weight: 600;
    color: #f26a4b;
}

.megamenu-desc[b-owde6xqbzz] {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: normal;
}

/* ===== Site Settings & Search Ads submenus ===== */
.settings-submenu[b-owde6xqbzz],
.search-submenu[b-owde6xqbzz] {
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.5rem;
    box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.18);
    margin-top: 0.25rem;
    z-index: 1060;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.settings-submenu[b-owde6xqbzz] {
    min-width: 260px;
    padding: 0.5rem;
}

.search-submenu[b-owde6xqbzz] {
    width: min(620px, calc(100vw - 2rem));
    padding: 0.85rem;
}

.settings-item[b-owde6xqbzz] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.6rem;
}

.settings-label[b-owde6xqbzz] {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #212529;
    white-space: nowrap;
}

.settings-divider[b-owde6xqbzz] {
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0.25rem 0;
}

/* Open mega menu / submenus on hover (desktop) and via focus-within (keyboard).
   Uses visibility/opacity instead of display to keep content in the render tree
   at all times, preventing Google Translate from re-translating on each hover. */
@media (hover: hover) and (pointer: fine) {
    .has-megamenu:hover .megamenu[b-owde6xqbzz],
    .site-settings:hover .settings-submenu[b-owde6xqbzz],
    .search-ads:hover .search-submenu[b-owde6xqbzz] {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    /* Transparent hover bridge: the panels sit 0.25rem below the trigger, so a
       bare gap would drop the :hover state and close the menu before the cursor
       reaches it. This fills that gap so the menu stays open while moving down
       into it. */
    .has-megamenu[b-owde6xqbzz]::after,
    .site-settings[b-owde6xqbzz]::after,
    .search-ads[b-owde6xqbzz]::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 0.5rem;
    }
}

.has-megamenu:focus-within .megamenu[b-owde6xqbzz],
.site-settings:focus-within .settings-submenu[b-owde6xqbzz],
.search-ads:focus-within .search-submenu[b-owde6xqbzz] {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Hide-on-select: once a submenu item is chosen, site.js adds .menu-collapsed
   to the open <li> to dismiss the panel even though the cursor may still be
   hovering it. It is cleared on mouseleave so the next hover re-opens it. */
.has-megamenu.menu-collapsed .megamenu[b-owde6xqbzz],
.site-settings.menu-collapsed .settings-submenu[b-owde6xqbzz],
.search-ads.menu-collapsed .search-submenu[b-owde6xqbzz] {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Language selector inside the Site Settings submenu */
[b-owde6xqbzz] .language-selector {
    color: var(--brand-dark);
    font-weight: 500;
}

[b-owde6xqbzz] .language-select {
    background: #fff;
    color: #212529;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.375rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}

[b-owde6xqbzz] .language-select:hover {
    border-color: var(--brand);
}

[b-owde6xqbzz] .language-select option {
    color: #212529;
    background: #fff;
}

/* Location indicator inside the Site Settings submenu */
.site-header[b-owde6xqbzz]  .location-indicator {
    color: var(--brand-dark);
    font-weight: 500;
    background: none;
    border: none;
    padding: 0;
}

.site-header[b-owde6xqbzz]  .location-indicator:hover {
    color: var(--brand-darker);
}

/* CSS-only dropdown for My Account */
[b-owde6xqbzz] .account-dropdown {
    position: relative;
    display: inline-block;
}

[b-owde6xqbzz] .account-dropdown-toggle {
    cursor: pointer;
    color: #fff !important;
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: none;
}

[b-owde6xqbzz] .account-dropdown-toggle:hover {
    color: #fff !important;
}

/* Pulsing unread indicator next to "My Account" */
[b-owde6xqbzz] .account-unread-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 4px;
    vertical-align: middle;
    background-color: #dc3545;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(220, 53, 69, 0.7);
    animation: account-unread-pulse-b-owde6xqbzz 1.5s infinite;
}

@keyframes account-unread-pulse-b-owde6xqbzz {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Light mode dropdown (default) */
[b-owde6xqbzz] .account-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 200px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    z-index: 1050;
}

[b-owde6xqbzz] .account-dropdown-menu.show {
    display: block;
}

/* Open on hover (desktop only) — keep a hover bridge so the menu stays open
   while moving the cursor from the toggle down into the menu. Restricted to
   devices with a true hover-capable pointer; on touchscreens a tap leaves a
   lingering :hover state that would re-open the menu right after the JS closes
   it, so the menu must rely solely on the .show class there. */
@media (hover: hover) and (pointer: fine) {
    [b-owde6xqbzz] .account-dropdown:hover .account-dropdown-menu {
        display: block;
    }

    [b-owde6xqbzz] .account-dropdown::after {
        content: "";
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        height: 0.5rem;
    }
}

/* Override top-row inherited styles for dropdown items */
[b-owde6xqbzz] .account-dropdown-menu a.account-dropdown-item,
[b-owde6xqbzz] .account-dropdown-menu button.account-dropdown-item {
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
    margin-left: 0 !important;
    color: #212529 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 400 !important;
    white-space: nowrap;
    box-sizing: border-box;
}

[b-owde6xqbzz] .account-dropdown-menu a.account-dropdown-item:hover,
[b-owde6xqbzz] .account-dropdown-menu button.account-dropdown-item:hover {
    background-color: #e9ecef !important;
    color: #000 !important;
    text-decoration: none !important;
}

[b-owde6xqbzz] .account-dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

/* User info header at the top of the dropdown */
[b-owde6xqbzz] .account-dropdown-header {
    padding: 0.5rem 1rem;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[b-owde6xqbzz] .account-dropdown-header .fw-bold {
    color: #212529;
}

/* Chat link rendered via MessageNotification inside the dropdown */
[b-owde6xqbzz] .account-dropdown-menu li.account-dropdown-item a {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    margin: 0;
    color: #212529 !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 400 !important;
    white-space: nowrap;
    box-sizing: border-box;
}

[b-owde6xqbzz] .account-dropdown-menu li.account-dropdown-item a:hover {
    background-color: #e9ecef !important;
    color: #000 !important;
    text-decoration: none !important;
}

/* Dark mode dropdown */
:global([data-theme="dark"])[b-owde6xqbzz]  .account-dropdown-menu {
    background: #2b2b2b !important;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
}

:global([data-theme="dark"])[b-owde6xqbzz]  .account-dropdown-menu a.account-dropdown-item,
:global([data-theme="dark"])[b-owde6xqbzz]  .account-dropdown-menu button.account-dropdown-item {
    color: #e0e0e0 !important;
}

:global([data-theme="dark"])[b-owde6xqbzz]  .account-dropdown-menu a.account-dropdown-item:hover,
:global([data-theme="dark"])[b-owde6xqbzz]  .account-dropdown-menu button.account-dropdown-item:hover {
    background-color: #3a3a3a !important;
    color: #ffffff !important;
}

:global([data-theme="dark"])[b-owde6xqbzz]  .account-dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.15);
}

:global([data-theme="dark"])[b-owde6xqbzz]  .account-dropdown-header,
:global([data-theme="dark"])[b-owde6xqbzz]  .account-dropdown-header .fw-bold {
    color: #e0e0e0;
}

:global([data-theme="dark"])[b-owde6xqbzz]  .account-dropdown-menu li.account-dropdown-item a {
    color: #e0e0e0 !important;
}

:global([data-theme="dark"])[b-owde6xqbzz]  .account-dropdown-menu li.account-dropdown-item a:hover {
    background-color: #3a3a3a !important;
    color: #ffffff !important;
}

/* ===== Dark theme: header bar + dropdown panels ===== */
:global([data-theme="dark"]) .site-header[b-owde6xqbzz] {
    background-color: #4d1a0e;
    background-image: none;
}

:global([data-theme="dark"]) .megamenu[b-owde6xqbzz],
:global([data-theme="dark"]) .settings-submenu[b-owde6xqbzz],
:global([data-theme="dark"]) .search-submenu[b-owde6xqbzz] {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.6);
}

:global([data-theme="dark"]) .site-header[b-owde6xqbzz]  .megamenu-item {
    color: #e0e0e0 !important;
}

:global([data-theme="dark"]) .site-header[b-owde6xqbzz]  .megamenu-item:hover {
    background: var(--brand-darker);
    color: #fff !important;
}

:global([data-theme="dark"]) .megamenu-desc[b-owde6xqbzz] {
    color: #aaa;
}

:global([data-theme="dark"]) .settings-label[b-owde6xqbzz] {
    color: #e0e0e0;
}

:global([data-theme="dark"]) .settings-divider[b-owde6xqbzz] {
    border-top-color: #333;
}

:global([data-theme="dark"])[b-owde6xqbzz]  .language-select {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
}

:global([data-theme="dark"])[b-owde6xqbzz]  .language-select option {
    color: #e0e0e0;
    background: #2a2a2a;
}

:global([data-theme="dark"])[b-owde6xqbzz]  .language-selector {
    color: var(--brand-on-dark);
}

:global([data-theme="dark"]) .megamenu-icon[b-owde6xqbzz] {
    color: var(--brand-on-dark);
}

:global([data-theme="dark"]) .site-header[b-owde6xqbzz]  .location-indicator {
    color: var(--brand-on-dark);
}

:global([data-theme="dark"]) .site-header[b-owde6xqbzz]  .location-indicator:hover {
    color: #fff;
}

/* ===== Responsive ===== */
/* Center the mega menu under wide viewports so it doesn't overflow the right edge */
@media (min-width: 992px) {
    .megamenu-grid[b-owde6xqbzz] {
        grid-template-columns: repeat(3, minmax(200px, 1fr));
    }
}

/* Tablet/desktop: keep the menu inline */
@media (min-width: 992px) {
    .site-nav[b-owde6xqbzz] {
        flex-wrap: nowrap;
    }
}

/* Mobile: collapse the menu behind the hamburger toggle */
@media (max-width: 991.98px) {
    .nav-toggle[b-owde6xqbzz] {
        display: flex;
    }

    .site-menu[b-owde6xqbzz] {
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        display: none;
        gap: 0.25rem;
        padding: 0.5rem 0;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .nav-toggle-checkbox:checked ~ .site-menu[b-owde6xqbzz] {
        display: flex;
    }

    .site-nav-links[b-owde6xqbzz],
    .site-nav-actions[b-owde6xqbzz] {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.15rem;
    }

    .site-header[b-owde6xqbzz]  .site-nav-links > li > a,
    .site-header[b-owde6xqbzz]  .site-nav-actions > li > a.nav-action-link,
    .site-header[b-owde6xqbzz]  .dropdown-caret,
    .site-header[b-owde6xqbzz]  .account-dropdown-toggle {
        width: 100%;
        padding: 0.6rem 0.75rem;
    }

    /* On touch devices, expand the panels in-flow instead of as floating overlays.
       Use display:none/block (not visibility) because panels are position:static
       here and would otherwise reserve space even when hidden. */
    .megamenu[b-owde6xqbzz],
    .settings-submenu[b-owde6xqbzz],
    .search-submenu[b-owde6xqbzz],
    [b-owde6xqbzz] .account-dropdown-menu {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 0.375rem;
        padding: 0.5rem;
        overflow-x: hidden;
        /* Reset desktop visibility approach; use display for mobile in-flow layout */
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        display: none;
    }

    /* Darker text for submenu / megamenu items on mobile for readability */
    .site-header[b-owde6xqbzz]  .megamenu-item {
        color: #212529 !important;
    }

    .site-header[b-owde6xqbzz]  .megamenu-item:hover {
        color: var(--brand-darker) !important;
    }

    .megamenu-name[b-owde6xqbzz] {
        color: #f26a4b;
    }

    .megamenu-desc[b-owde6xqbzz] {
        color: #495057;
    }

    .settings-label[b-owde6xqbzz] {
        color: #212529;
    }

    /* Make location indicator text darker for readability on mobile (light & dark mode) */
    .site-header[b-owde6xqbzz]  .location-indicator,
    :global([data-theme="dark"]) .site-header[b-owde6xqbzz]  .location-indicator {
        color: #212529 !important;
        border-color: rgba(0, 0, 0, 0.3) !important;
    }

    .site-header[b-owde6xqbzz]  .location-indicator:hover,
    :global([data-theme="dark"]) .site-header[b-owde6xqbzz]  .location-indicator:hover {
        color: #000 !important;
    }

    /* Show submenus when toggled via JS tap on mobile */
    .has-megamenu.submenu-open .megamenu[b-owde6xqbzz],
    .site-settings.submenu-open .settings-submenu[b-owde6xqbzz],
    .search-ads.submenu-open .search-submenu[b-owde6xqbzz] {
        display: block;
    }

    /* Show account dropdown menu via submenu-open class on mobile */
    [b-owde6xqbzz] .account-dropdown.submenu-open .account-dropdown-menu {
        display: block;
    }

    /* Fix "My Account" alignment on mobile — stretch full width like other items */
    [b-owde6xqbzz] .account-dropdown {
        display: block;
        width: 100%;
    }

    [b-owde6xqbzz] .account-dropdown-toggle {
        display: flex !important;
        align-items: center;
        width: 100%;
        text-align: left;
    }

    /* Prevent nav actions from being pushed out of alignment */
    .site-nav-actions > li[b-owde6xqbzz] {
        width: 100%;
        max-width: 100%;
    }

    .site-header[b-owde6xqbzz]  .add-listing-btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    .megamenu-grid[b-owde6xqbzz] {
        grid-template-columns: 1fr;
    }
}

/* Mobile search bar: visible only on small screens (mobile) and outside account pages */
.mobile-search-bar[b-owde6xqbzz] {
    display: none;
    background: var(--brand);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1002;
}

/* Show mobile search bar on mobile devices (max-width: 991.98px) */
@media (max-width: 991.98px) {
    .site-header[b-owde6xqbzz] {
        position: static;
    }

    .mobile-search-bar[b-owde6xqbzz] {
        display: block;
    }

    /* Adjust the search bar styling when in mobile search bar context */
    .mobile-search-bar[b-owde6xqbzz]  .search-row {
        padding: 0;
        background: transparent;
        border-bottom: none;
        position: static;
        top: auto;
        z-index: auto;
    }

    .mobile-search-bar[b-owde6xqbzz]  .search-row-embedded {
        padding: 0;
        background: transparent;
        border-bottom: none;
        position: static;
        top: auto;
        z-index: auto;
    }

    /*.mobile-search-bar ::deep .search-location-note {
        display: none;
    }*/
}

:global([data-theme="dark"]) .mobile-search-bar[b-owde6xqbzz] {
    background: #4d1a0e;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

#blazor-error-ui[b-owde6xqbzz] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-owde6xqbzz] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* The Search Ad row is rendered by the SearchBar component, so its layout
   styles live in SearchBar.razor.css. */
/* /Components/Pages/Chat/Chat.razor.rz.scp.css */
/* Selected conversation row: ensure all text stays readable on the primary
   background, overriding Bootstrap's .text-muted and the global dark-mode
   text-color rules. */
[b-borxqbhjfd] .bg-primary.text-white,
[b-borxqbhjfd] .bg-primary.text-white strong,
[b-borxqbhjfd] .bg-primary.text-white small,
[b-borxqbhjfd] .bg-primary.text-white .text-muted {
    color: #ffffff !important;
}

/* Keep the context badge legible on the selected (primary) row. */
[b-borxqbhjfd] .bg-primary.text-white .badge.bg-light {
    background-color: #ffffff !important;
    color: #212529 !important;
}
/* /Components/Pages/SearchResults.razor.rz.scp.css */
.search-summary[b-g808h31r54] {
    margin: 1rem 0 1.25rem;
    font-size: 1.05rem;
}

/* Tabs stay pinned to the top while content scrolls vertically */
.category-tabs-bar[b-g808h31r54] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bs-body-bg, #fff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0;
}

.category-tabs[b-g808h31r54] {
    display: flex;
    flex: 1 1 auto;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    gap: 0.25rem;
}

    .category-tabs[b-g808h31r54]::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Edge */
        height: 0;
        width: 0;
    }

.category-tab[b-g808h31r54] {
    white-space: nowrap;
    border: none;
    background: transparent;
    color: #495057;
    font-weight: 600;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

    .category-tab:hover[b-g808h31r54] {
        color: var(--bs-primary, #0d6efd);
    }

    .category-tab.active[b-g808h31r54] {
        color: var(--bs-primary, #0d6efd);
        border-bottom-color: var(--bs-primary, #0d6efd);
    }

.tab-count[b-g808h31r54] {
    display: inline-block;
    min-width: 1.4rem;
    margin-left: 0.35rem;
    padding: 0 0.4rem;
    font-size: 0.75rem;
    line-height: 1.3rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
}

/* Prev/next arrows for navigating categories on small screens */
.tab-arrow[b-g808h31r54] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: background 0.15s ease, opacity 0.15s ease;
}

    .tab-arrow:hover:not(:disabled)[b-g808h31r54] {
        background: #0b5ed7;
    }

    .tab-arrow:disabled[b-g808h31r54] {
        opacity: 0.35;
        cursor: default;
    }

.ad-result-list[b-g808h31r54] {
    margin-top: 1rem;
}

.ad-result[b-g808h31r54] {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ad-result-date[b-g808h31r54] {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0d6efd;
}

.ad-result-title[b-g808h31r54] {
    margin: 0.25rem 0;
}

    .ad-result-title a[b-g808h31r54] {
        text-decoration: none;
    }

.ad-result-meta[b-g808h31r54] {
    font-size: 0.9rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 0.35rem;
}

.ad-result-desc[b-g808h31r54] {
    margin: 0;
    color: var(--bs-body-color, #333);
}

.view-more[b-g808h31r54] {
    margin-left: 0.35rem;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 600;
}

/* Hide arrows on large screens — full tab strip is visible */
@media (min-width: 768px) {
    .tab-arrow[b-g808h31r54] {
        display: none;
    }
}

/* Dark-mode readable colors for the search results */
:global([data-theme="dark"]) .search-summary[b-g808h31r54] {
    color: #e0e0e0;
}

:global([data-theme="dark"]) .category-tabs-bar[b-g808h31r54] {
    background: #1e1e1e;
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

:global([data-theme="dark"]) .category-tab[b-g808h31r54] {
    color: #ced4da;
}

    :global([data-theme="dark"]) .category-tab:hover[b-g808h31r54] {
        color: #8ab4f8;
    }

    :global([data-theme="dark"]) .category-tab.active[b-g808h31r54] {
        color: #8ab4f8;
        border-bottom-color: #8ab4f8;
    }

:global([data-theme="dark"]) .tab-count[b-g808h31r54] {
    background: rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
}

:global([data-theme="dark"]) .tab-arrow[b-g808h31r54] {
    background: #8ab4f8;
    color: #0b1f3a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

    :global([data-theme="dark"]) .tab-arrow:hover:not(:disabled)[b-g808h31r54] {
        background: #a9c8fb;
    }

:global([data-theme="dark"]) .ad-result[b-g808h31r54] {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

:global([data-theme="dark"]) .ad-result-date[b-g808h31r54] {
    color: #6ea8fe;
}

:global([data-theme="dark"]) .ad-result-meta[b-g808h31r54] {
    color: #adb5bd;
}

:global([data-theme="dark"]) .ad-result-desc[b-g808h31r54] {
    color: #e0e0e0;
}
/* /Components/Shared/LocationIndicator.razor.rz.scp.css */
/* Clickable location button styled to match the navbar links */
.location-indicator[b-snr4et7xlb] {
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(138, 180, 248, 0.4);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    color: #8ab4f8;
    font-weight: 500;
    line-height: 1.2;
    max-width: 16rem;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.location-indicator:hover[b-snr4et7xlb],
.location-indicator:focus[b-snr4et7xlb] {
    color: #fff;
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
    outline: none;
}

/* Truncate long "City, State, Country" strings gracefully */
.location-indicator-text[b-snr4et7xlb] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 12rem;
    color: #212529;
}

.location-indicator .bi-geo-alt-fill[b-snr4et7xlb] {
    color: #ea4335; /* map-pin red for quick recognition */
}

.location-indicator:hover .bi-geo-alt-fill[b-snr4et7xlb] {
    color: #ff6f60;
}

@media (max-width: 575.98px) {
    .location-indicator-text[b-snr4et7xlb] {
        max-width: 7rem;
    }
}
}
/* /Components/Shared/SearchBar.razor.rz.scp.css */
/* Search Ad row beneath the top navbar.
   Sticks directly below the sticky navbar (min-height 3.5rem) so it stays
   fully visible while scrolling instead of sliding underneath it. */
.search-row[b-7gkll2ga65] {
    padding: 0.75rem 1.5rem;
    background: var(--bs-body-bg, #f8f9fa);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 3.5rem;
    z-index: 900;
}

/* Embedded variant: rendered inside the header "Search Ads" dropdown rather
   than as a sticky bar beneath the navbar. Drop the sticky positioning, border
   and outer padding so it fills the dropdown panel cleanly. */
.search-row-embedded[b-7gkll2ga65] {
    padding: 0;
    background: transparent;
    border-bottom: none;
    position: static;
    top: auto;
    z-index: auto;
}

    .search-row-embedded .search-bar[b-7gkll2ga65] {
        max-width: none;
        margin: 0;
    }

/* Short note under the embedded search telling users the results are scoped to
   their selected location. */
.search-location-note[b-7gkll2ga65] {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: #6c757d;
    line-height: 1.3;
}

@media (max-width: 991.98px) {
    .search-location-note[b-7gkll2ga65] {
        color: #ffffff;
    }
}

    .search-location-note .search-location-name[b-7gkll2ga65] {
        font-weight: 600;
        color: var(--brand-dark);
    }

    .search-location-note .search-location-indicator[b-7gkll2ga65] {
        border: none;
        padding: 0;
        margin-left: 0.25rem;
        color: inherit;
        background: transparent;
        max-width: none;
    }

    .search-location-note .search-location-indicator:hover[b-7gkll2ga65],
    .search-location-note .search-location-indicator:focus[b-7gkll2ga65] {
        color: inherit;
        background: transparent;
        border: none;
    }

    .search-location-note .search-location-text[b-7gkll2ga65] {
        color: var(--brand-dark);
        font-weight: 600;
        max-width: none;
    }

@media (max-width: 991.98px) {
    .search-location-note .search-location-text[b-7gkll2ga65] {
        color: #ffe5dc;
    }
}

.search-bar[b-7gkll2ga65] {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0.35rem 0.45rem 0.35rem 1rem;
    gap: 0.5rem;
}

.search-warning[b-7gkll2ga65] {
    max-width: 1100px;
    margin: 0.4rem auto 0;
    color: #b02a37;
    background: #fff3cd;
    border: 1px solid #ffe69c;
    border-radius: 0.5rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.search-input-group[b-7gkll2ga65] {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.search-icon[b-7gkll2ga65] {
    color: #9aa0a6;
    font-size: 1.1rem;
    margin-right: 0.6rem;
}

.search-input[b-7gkll2ga65] {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #202124;
    padding: 0.5rem 0;
}

    .search-input[b-7gkll2ga65]::placeholder {
        color: #9aa0a6;
    }

.search-clear[b-7gkll2ga65] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    margin-left: 0.4rem;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #5f6368;
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

    .search-clear:hover[b-7gkll2ga65] {
        background: rgba(0, 0, 0, 0.12);
        color: #202124;
    }

.search-divider[b-7gkll2ga65] {
    width: 1px;
    align-self: stretch;
    background: rgba(0, 0, 0, 0.1);
    margin: 0.25rem 0.25rem;
}

.search-category[b-7gkll2ga65] {
    border: none;
    outline: none;
    background: transparent;
    font-weight: 700;
    color: var(--brand-dark);
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    max-width: 180px;
}

.search-btn[b-7gkll2ga65] {
    border: none;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    border-radius: 0.6rem;
    padding: 0.6rem 1.6rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

    .search-btn:hover[b-7gkll2ga65] {
        background: var(--brand-dark);
    }

@media (max-width: 575.98px) {
    .search-bar[b-7gkll2ga65] {
        flex-wrap: wrap;
        border-radius: 0.6rem;
    }

    .search-input-group[b-7gkll2ga65] {
        flex-basis: 100%;
        order: 1;
    }

    .search-divider[b-7gkll2ga65] {
        display: none;
    }

    .search-category[b-7gkll2ga65] {
        order: 2;
        flex: 1 1 auto;
        max-width: none;
    }

    .search-btn[b-7gkll2ga65] {
        order: 3;
        flex: 0 0 auto;
    }
}

/* Dark mode: keep the location note legible on the dark dropdown panel. */
:global([data-theme="dark"]) .search-location-note[b-7gkll2ga65] {
    color: #c7ccd1;
}

    :global([data-theme="dark"]) .search-location-note .search-location-name[b-7gkll2ga65] {
        color: var(--brand-on-dark);
    }

    :global([data-theme="dark"]) .search-location-note .search-location-text[b-7gkll2ga65] {
        color: var(--brand-on-dark);
    }
