:root {
    --aqar-page-bg: #f5f6f7;
    --aqar-surface: #ffffff;
    --aqar-surface-soft: #f5f7f8;
    --aqar-surface-muted: #edf0f2;
    --aqar-text: #202b2f;
    --aqar-text-muted: #68747a;
    --aqar-border: rgba(32, 43, 47, 0.10);
    --aqar-shadow: rgba(15, 23, 42, 0.06);
}

.aqar-broker-suggestions {
    position: fixed;
    z-index: 11050;
    display: none;
    max-height: 16.25rem;
    overflow-x: hidden;
    overflow-y: auto;
    padding: .22rem;
    border: 1px solid var(--aqar-border);
    border-radius: .65rem;
    background: var(--aqar-surface);
    box-shadow: 0 .65rem 1.6rem rgba(15, 23, 42, .12);
    direction: rtl;
    text-align: right;
}

.aqar-broker-suggestions.is-open {
    display: grid;
    gap: .08rem;
}

.aqar-broker-suggestion {
    width: 100%;
    min-height: 2.25rem;
    padding: .38rem .65rem;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: var(--aqar-text);
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
}

.aqar-broker-suggestion:hover,
.aqar-broker-suggestion:focus-visible,
.aqar-broker-suggestion.is-active {
    outline: none;
    background: var(--aqar-surface-muted);
    color: var(--brand-gold);
}

html[data-bs-theme="dark"] .aqar-broker-suggestions {
    box-shadow: 0 .8rem 1.8rem rgba(0, 0, 0, .32);
}

.aqar-mobile-bottom-nav {
    display: none;
}

@media (max-width: 991.98px) {
    html {
        background-color: #fff;
        color-scheme: light;
    }

    body.aqar-has-mobile-bottom-nav {
        padding-bottom: calc(58px + env(safe-area-inset-bottom));
    }

    .aqar-main-navbar {
        min-height: 68px;
        padding-top: .25rem !important;
        padding-bottom: .25rem !important;
    }

    .aqar-main-navbar > .container {
        min-height: 46px;
    }

    .aqar-brand-logo img {
        height: 52px;
        max-width: 205px;
    }

    .aqar-main-navbar .navbar-toggler,
    .aqar-main-navbar .action-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .aqar-mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1038;
        display: block;
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid rgba(15, 23, 42, .08);
        background-color: #fff;
        box-shadow: 0 -1px 0 rgba(15, 23, 42, .035);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .aqar-mobile-bottom-nav__list {
        width: 100%;
        max-width: 620px;
        height: 54px;
        margin: 0 auto;
        padding: 0 .2rem;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        direction: rtl;
    }

    .aqar-mobile-bottom-nav__item {
        appearance: none;
        -webkit-appearance: none;
        min-width: 0;
        height: 50px;
        padding: .04rem .08rem .18rem;
        border: 0;
        border-radius: .75rem;
        background: transparent;
        color: var(--aqar-text-muted);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: .02rem;
        font-family: inherit;
        font-size: .62rem;
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: 0;
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
        transition: color 160ms ease;
    }

    .aqar-mobile-bottom-nav__item:hover,
    .aqar-mobile-bottom-nav__item:focus-visible,
    .aqar-mobile-bottom-nav__item.is-active {
        color: var(--brand-gold);
        background: transparent;
        outline: none;
    }

    .aqar-mobile-bottom-nav__icon {
        width: 30px;
        height: 27px;
        border-radius: .65rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: inherit;
        font-size: 1rem;
        line-height: 1;
        transition: color 160ms ease, transform 160ms ease;
    }

    .aqar-mobile-bottom-nav__item.is-active:not(.aqar-mobile-bottom-nav__item--primary) .aqar-mobile-bottom-nav__icon {
        color: var(--brand-gold);
    }

    .aqar-mobile-bottom-nav__item--primary {
        position: relative;
        overflow: visible;
        color: var(--aqar-text-muted);
    }

    .aqar-mobile-bottom-nav__item--primary:hover,
    .aqar-mobile-bottom-nav__item--primary:focus-visible,
    .aqar-mobile-bottom-nav__item--primary.is-active {
        background: transparent;
        color: var(--brand-gold);
    }

    .aqar-mobile-bottom-nav__item--primary .aqar-mobile-bottom-nav__icon {
        width: 36px;
        height: 36px;
        margin: 0 auto;
        align-self: center;
        flex: 0 0 36px;
        border: 2px solid #fff;
        border-radius: 50%;
        background: var(--brand-gold);
        color: #fff;
        box-shadow: none;
        font-size: .95rem;
        transform: translateY(-1px);
    }

    .aqar-mobile-bottom-nav__item--primary .aqar-mobile-bottom-nav__label {
        display: block;
        width: 100%;
        margin-top: -.08rem;
        text-align: center;
    }

    html[data-bs-theme="dark"] {
        background-color: #181d20;
        color-scheme: dark;
    }

    html[data-bs-theme="dark"] .aqar-mobile-bottom-nav {
        border-top-color: rgba(255, 255, 255, .08);
        background-color: #181d20;
        box-shadow: 0 -1px 0 rgba(0, 0, 0, .18);
    }

    html[data-bs-theme="dark"] .aqar-mobile-bottom-nav__item--primary .aqar-mobile-bottom-nav__icon {
        border-color: #181d20;
        color: #111111 !important;
    }
}

@media (max-width: 374.98px) {
    body.aqar-has-mobile-bottom-nav {
        padding-bottom: calc(56px + env(safe-area-inset-bottom));
    }

    .aqar-mobile-bottom-nav__list {
        height: 52px;
        padding-inline: .06rem;
    }

    .aqar-mobile-bottom-nav__item {
        height: 48px;
        padding-inline: 0;
        font-size: .59rem;
    }

    .aqar-mobile-bottom-nav__item--primary .aqar-mobile-bottom-nav__icon {
        width: 34px;
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aqar-mobile-bottom-nav__item,
    .aqar-mobile-bottom-nav__icon {
        transition: none !important;
    }
}

html[data-bs-theme="dark"] {
    color-scheme: dark;
    --aqar-page-bg: #101416;
    --aqar-surface: #181d20;
    --aqar-surface-soft: #20262a;
    --aqar-surface-muted: #272e32;
    --aqar-text: #f2f4f5;
    --aqar-text-muted: #aeb7bc;
    --aqar-border: rgba(255, 255, 255, 0.10);
    --aqar-shadow: rgba(0, 0, 0, 0.26);
    --brand-gold: #efaa10;
    --brand-gray: #aeb7bc;
    --brand-gold-light: rgba(239, 170, 16, 0.16);
    --bs-body-color: #f2f4f5;
    --bs-body-color-rgb: 242, 244, 245;
    --bs-body-bg: #101416;
    --bs-body-bg-rgb: 16, 20, 22;
    --bs-secondary-color: #aeb7bc;
    --bs-secondary-bg: #20262a;
    --bs-tertiary-bg: #272e32;
    --bs-border-color: rgba(255, 255, 255, 0.10);
    --bs-emphasis-color: #ffffff;
}

body,
.aqar-main-navbar,
.aqar-footer,
.card,
.dropdown-menu,
.offcanvas,
.modal-content,
.form-control,
.form-select,
.input-group-text,
.ts-control,
.ts-dropdown {
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.aqar-theme-menu {
    min-width: 220px;
    padding: 8px;
}

.aqar-theme-toggle::after {
    display: none;
}

.aqar-theme-option {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--aqar-text);
    text-align: right;
    font-size: 0.86rem;
    font-weight: 700;
}

.aqar-theme-option:hover,
.aqar-theme-option:focus-visible {
    background: var(--aqar-surface-soft);
    color: var(--brand-gold);
    outline: none;
}

.details-actions-menu .dropdown-item > i {
    color: var(--aqar-text-muted) !important;
}

.aqar-theme-option .aqar-theme-check {
    visibility: hidden;
    color: var(--brand-gold);
}

.aqar-theme-option.is-active .aqar-theme-check {
    visibility: visible;
}

.aqar-mobile-theme {
    padding: 18px 16px 8px;
    border-top: 1px solid var(--aqar-border);
}

.aqar-mobile-theme-label {
    margin-bottom: 10px;
    color: var(--aqar-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.aqar-mobile-theme-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 4px;
    border: 1px solid var(--aqar-border);
    border-radius: 8px;
    background: var(--aqar-surface-soft);
}

.aqar-mobile-theme-options .aqar-theme-option {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-height: 58px;
    padding: 6px 4px;
    text-align: center;
    font-size: 0.7rem;
}

.aqar-mobile-theme-options .aqar-theme-option.is-active {
    background: var(--aqar-surface);
    color: var(--brand-gold);
    box-shadow: 0 3px 12px var(--aqar-shadow);
}

.aqar-mobile-theme-options .aqar-theme-check {
    display: none;
}

html[data-bs-theme="dark"] body,
html[data-bs-theme="dark"] main,
html[data-bs-theme="dark"] .bg-light,
html[data-bs-theme="dark"] .aqar-static-page,
html[data-bs-theme="dark"] #page-loader,
html[data-bs-theme="dark"] .aqar-brand-loader {
    background-color: var(--aqar-page-bg) !important;
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .aqar-main-navbar,
html[data-bs-theme="dark"] .aqar-footer,
html[data-bs-theme="dark"] .bg-white,
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .dropdown-menu,
html[data-bs-theme="dark"] .offcanvas,
html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .list-group-item,
html[data-bs-theme="dark"] .accordion-item,
html[data-bs-theme="dark"] .accordion-button,
html[data-bs-theme="dark"] .aqar-static-hero,
html[data-bs-theme="dark"] .aqar-static-card {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .aqar-site-header.is-scrolled .aqar-main-navbar {
    background-color: rgba(24, 29, 32, 0.88) !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25) !important;
}

@media (max-width: 991.98px) {
    html[data-bs-theme="dark"] .aqar-site-header,
    html[data-bs-theme="dark"] .aqar-main-navbar,
    html[data-bs-theme="dark"] .aqar-site-header.is-scrolled .aqar-main-navbar {
        background: #181d20 !important;
        background-image: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
}

html[data-bs-theme="dark"] .sticky-chips,
html[data-bs-theme="dark"] .category-scroll-container,
html[data-bs-theme="dark"] .table,
html[data-bs-theme="dark"] .table > :not(caption) > * > *,
html[data-bs-theme="dark"] .pagination .page-link {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .text-dark,
html[data-bs-theme="dark"] h1,
html[data-bs-theme="dark"] h2,
html[data-bs-theme="dark"] h3,
html[data-bs-theme="dark"] h4,
html[data-bs-theme="dark"] h5,
html[data-bs-theme="dark"] h6,
html[data-bs-theme="dark"] label,
html[data-bs-theme="dark"] .form-label,
html[data-bs-theme="dark"] .navbar-nav .nav-link,
html[data-bs-theme="dark"] .dropdown-item,
html[data-bs-theme="dark"] .aqar-footer-title,
html[data-bs-theme="dark"] .aqar-footer-link,
html[data-bs-theme="dark"] .aqar-footer-visit,
html[data-bs-theme="dark"] .aqar-footer-visit strong,
html[data-bs-theme="dark"] .aqar-static-title,
html[data-bs-theme="dark"] .aqar-static-card h2,
html[data-bs-theme="dark"] .aqar-static-card h3,
html[data-bs-theme="dark"] .aqar-contact-link {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .text-secondary,
html[data-bs-theme="dark"] .text-muted,
html[data-bs-theme="dark"] .aqar-footer-text,
html[data-bs-theme="dark"] .aqar-footer-hours-text,
html[data-bs-theme="dark"] .aqar-footer-branch,
html[data-bs-theme="dark"] .aqar-static-lead,
html[data-bs-theme="dark"] .aqar-static-card p,
html[data-bs-theme="dark"] .aqar-static-card li {
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .border,
html[data-bs-theme="dark"] .border-top,
html[data-bs-theme="dark"] .border-bottom,
html[data-bs-theme="dark"] .border-start,
html[data-bs-theme="dark"] .border-end,
html[data-bs-theme="dark"] hr,
html[data-bs-theme="dark"] .dropdown-divider {
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .custom-file-input,
html[data-bs-theme="dark"] .custom-checkbox-group,
html[data-bs-theme="dark"] textarea,
html[data-bs-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]),
html[data-bs-theme="dark"] select,
html[data-bs-theme="dark"] .input-group-text,
html[data-bs-theme="dark"] .custom-input-group,
html[data-bs-theme="dark"] .ts-control,
html[data-bs-theme="dark"] .ts-dropdown,
html[data-bs-theme="dark"] .ts-dropdown .option {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .form-control::placeholder,
html[data-bs-theme="dark"] textarea::placeholder,
html[data-bs-theme="dark"] input::placeholder {
    color: #879197 !important;
    opacity: 1;
}

html[data-bs-theme="dark"] .dropdown-item:hover,
html[data-bs-theme="dark"] .dropdown-item:focus,
html[data-bs-theme="dark"] .ts-dropdown .option.active,
html[data-bs-theme="dark"] .ts-dropdown .option:hover {
    background-color: var(--aqar-surface-muted) !important;
    color: var(--brand-gold) !important;
}

html[data-bs-theme="dark"] .aqar-logout-item {
    color: #ff6b78 !important;
    background-color: transparent !important;
}

html[data-bs-theme="dark"] .aqar-logout-item:hover,
html[data-bs-theme="dark"] .aqar-logout-item:focus {
    color: #ff8791 !important;
    background-color: rgba(255, 107, 120, .12) !important;
}

html[data-bs-theme="dark"] .btn-outline-secondary,
html[data-bs-theme="dark"] #btnGlobalSearchPopup,
html[data-bs-theme="dark"] #aqarThemeToggle,
html[data-bs-theme="dark"] .action-btn,
html[data-bs-theme="dark"] .action-btn.btn-primary,
html[data-bs-theme="dark"] .aqar-social-btn,
html[data-bs-theme="dark"] .details-soft-contact-btn,
html[data-bs-theme="dark"] .details-soft-action-btn {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] #btnGlobalSearchPopup:hover,
html[data-bs-theme="dark"] #btnGlobalSearchPopup:focus-visible,
html[data-bs-theme="dark"] #aqarThemeToggle:hover,
html[data-bs-theme="dark"] #aqarThemeToggle:focus-visible {
    background-color: rgba(239, 170, 16, 0.12) !important;
    color: var(--brand-gold) !important;
    border-color: rgba(239, 170, 16, 0.48) !important;
}

html[data-bs-theme="dark"] .aqar-main-navbar .action-btn,
html[data-bs-theme="dark"] .aqar-main-navbar .action-btn.btn-primary,
html[data-bs-theme="dark"] .aqar-main-navbar #btnGlobalSearchPopup,
html[data-bs-theme="dark"] .aqar-main-navbar #aqarThemeToggle {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .aqar-main-navbar .action-btn:hover,
html[data-bs-theme="dark"] .aqar-main-navbar .action-btn:focus-visible,
html[data-bs-theme="dark"] .aqar-main-navbar .action-btn.btn-primary:hover,
html[data-bs-theme="dark"] .aqar-main-navbar .action-btn.btn-primary:focus-visible,
html[data-bs-theme="dark"] .aqar-main-navbar #btnGlobalSearchPopup:hover,
html[data-bs-theme="dark"] .aqar-main-navbar #btnGlobalSearchPopup:focus-visible,
html[data-bs-theme="dark"] .aqar-main-navbar #aqarThemeToggle:hover,
html[data-bs-theme="dark"] .aqar-main-navbar #aqarThemeToggle:focus-visible {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--brand-gold) !important;
    border-color: rgba(239, 170, 16, 0.42) !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-bs-theme="dark"] .aqar-main-navbar .aqar-account-trigger {
    background-color: transparent !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .aqar-main-navbar .aqar-account-trigger:hover,
html[data-bs-theme="dark"] .aqar-main-navbar .aqar-account-trigger:focus-visible,
html[data-bs-theme="dark"] .aqar-main-navbar .aqar-account-trigger.show {
    background-color: transparent !important;
    border-color: var(--aqar-border) !important;
}

.flat-toggle-btn,
.flat-toggle-btn:hover,
.flat-toggle-btn:focus,
.flat-toggle-btn:active {
    transform: none !important;
}

html[data-bs-theme="dark"] .btn-category-chip:not(.active) {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .btn-category-chip:not(.active):hover,
html[data-bs-theme="dark"] .btn-category-chip:not(.active):focus-visible {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--brand-gold) !important;
    border-color: rgba(239, 170, 16, 0.42) !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-bs-theme="dark"] .btn-category-chip.active,
html[data-bs-theme="dark"] .pagination .active > .page-link,
html[data-bs-theme="dark"] .page-link.active {
    background-color: var(--brand-gold) !important;
    color: #111416 !important;
    border-color: var(--brand-gold) !important;
}

html[data-bs-theme="dark"] .home-hero-chips .btn-category-chip.active,
html[data-bs-theme="dark"] .home-hero-chips .btn-category-chip.active:hover,
html[data-bs-theme="dark"] .home-hero-chips .btn-category-chip.active:focus {
    background-color: var(--brand-gold) !important;
    color: #ffffff !important;
    border-color: var(--brand-gold) !important;
}

html[data-bs-theme="dark"] div:where(.swal2-container) div:where(.swal2-popup) {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
    border-color: rgba(239, 170, 16, 0.24) !important;
}

html[data-bs-theme="dark"] .swal2-popup .custom-input-group,
html[data-bs-theme="dark"] .swal2-popup .ts-wrapper .ts-control,
html[data-bs-theme="dark"] .swal2-popup .ts-wrapper.single .ts-control {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .swal2-popup .ts-control .item,
html[data-bs-theme="dark"] .swal2-popup .ts-control > .item,
html[data-bs-theme="dark"] .swal2-popup .ts-control input,
html[data-bs-theme="dark"] .swal2-popup select,
html[data-bs-theme="dark"] .swal2-popup option:checked {
    color: var(--aqar-text) !important;
    opacity: 1 !important;
}

html[data-bs-theme="dark"] .swal2-popup .ts-dropdown,
html[data-bs-theme="dark"] .archive-reason-dropdown {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .swal2-popup .ts-dropdown .option,
html[data-bs-theme="dark"] .archive-reason-dropdown .option {
    background-color: transparent !important;
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .swal2-popup .ts-dropdown .option.active,
html[data-bs-theme="dark"] .swal2-popup .ts-dropdown .option.selected,
html[data-bs-theme="dark"] .archive-reason-dropdown .option.active,
html[data-bs-theme="dark"] .archive-reason-dropdown .option.selected {
    background-color: rgba(239, 170, 16, .16) !important;
    color: #f2bd46 !important;
}

html[data-bs-theme="dark"] div.swal2-html-container,
html[data-bs-theme="dark"] .aqar-auth-note {
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .aqar-auth-label {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .aqar-auth-field,
html[data-bs-theme="dark"] input.swal2-input,
html[data-bs-theme="dark"] .aqar-swal-input-wrap,
html[data-bs-theme="dark"] .aqar-swal-input {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .swal2-popup:has(.aqar-auth-shell) {
    border-color: var(--aqar-border) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38) !important;
}

html[data-bs-theme="dark"] .aqar-auth-field {
    background-color: #20262a !important;
    border-color: rgba(255, 255, 255, 0.13) !important;
}

html[data-bs-theme="dark"] .aqar-auth-field:focus-within {
    border-color: var(--brand-gold) !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 170, 16, 0.14) !important;
}

html[data-bs-theme="dark"] .aqar-auth-field input {
    color: var(--aqar-text) !important;
    caret-color: var(--brand-gold);
}

html[data-bs-theme="dark"] .aqar-auth-phone-prefix {
    background-color: rgba(255, 255, 255, 0.025) !important;
    color: #c8d0d4 !important;
    border-right-color: rgba(255, 255, 255, 0.11) !important;
}

html[data-bs-theme="dark"] .aqar-auth-code-box {
    background-color: #272e32 !important;
    border-color: rgba(255, 255, 255, 0.20) !important;
    color: var(--aqar-text) !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .aqar-auth-code-box.is-filled {
    background-color: #20262a !important;
    border-color: rgba(239, 170, 16, 0.48) !important;
}

html[data-bs-theme="dark"] .aqar-auth-code:focus-within .aqar-auth-code-box.is-active {
    border-color: var(--brand-gold) !important;
    box-shadow: 0 0 0 0.18rem rgba(239, 170, 16, 0.12) !important;
}

html[data-bs-theme="dark"] .aqar-auth-code-input {
    background-color: transparent !important;
    color: transparent !important;
    caret-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .aqar-auth-resend {
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] #aqarAuthBackEmail {
    color: #c8d0d4 !important;
}

html[data-bs-theme="dark"] #aqarAuthBackEmail:hover,
html[data-bs-theme="dark"] #aqarAuthBackEmail:focus-visible {
    color: var(--brand-gold) !important;
}

html[data-bs-theme="dark"] .aqar-auth-shell .btn-primary {
    background-color: var(--brand-gold) !important;
    border-color: var(--brand-gold) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .aqar-auth-shell .btn-primary:hover:not(:disabled),
html[data-bs-theme="dark"] .aqar-auth-shell .btn-primary:focus-visible:not(:disabled) {
    background-color: #f5b522 !important;
    border-color: #f5b522 !important;
    color: #ffffff !important;
}

html[data-bs-theme="dark"] .details-modern-page {
    --details-ink: #f2f4f5;
    --details-sub: #aeb7bc;
    --details-hint: #879197;
    --details-paper: #101416;
    --details-card: #181d20;
    --details-line: rgba(255, 255, 255, 0.09);
    --details-line-strong: rgba(255, 255, 255, 0.16);
    --details-gold: #efaa10;
    --details-gold-deep: #efb62f;
    --details-gold-tint: rgba(239, 170, 16, 0.15);
    background-color: var(--aqar-page-bg) !important;
}

html[data-bs-theme="dark"] .details-modern-page .property-quickfact,
html[data-bs-theme="dark"] .details-modern-page .property-description-feature,
html[data-bs-theme="dark"] .details-modern-page .owner-phone-panel {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .request-page {
    --request-ink: #f2f4f5;
    --request-line: rgba(255, 255, 255, 0.10);
    color: var(--aqar-text);
}

html[data-bs-theme="dark"] .request-page .heading-icon,
html[data-bs-theme="dark"] .request-page .request-form-card,
html[data-bs-theme="dark"] .request-page .neighborhood-option,
html[data-bs-theme="dark"] .request-page .request-scope-tabs a,
html[data-bs-theme="dark"] .request-page .request-filter-box,
html[data-bs-theme="dark"] .request-page .request-card,
html[data-bs-theme="dark"] .request-page .request-empty,
html[data-bs-theme="dark"] .request-page .request-land-card,
html[data-bs-theme="dark"] .request-page .request-intro-hero {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .request-page .neighborhood-picker,
html[data-bs-theme="dark"] .request-page .request-tags span,
html[data-bs-theme="dark"] .request-page .request-scope-tabs b,
html[data-bs-theme="dark"] .request-page .request-land-image,
html[data-bs-theme="dark"] .request-page .custom-input-group,
html[data-bs-theme="dark"] .request-page .ts-control,
html[data-bs-theme="dark"] .request-page .ts-dropdown,
html[data-bs-theme="dark"] .request-page .ts-dropdown .option,
html[data-bs-theme="dark"] .request-page .request-intro-step,
html[data-bs-theme="dark"] .request-page .request-intro-step-icon {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .request-page .ts-dropdown .option:hover,
html[data-bs-theme="dark"] .request-page .ts-dropdown .option.active,
html[data-bs-theme="dark"] .request-page .ts-dropdown .option.selected.active {
    background-color: var(--aqar-surface-muted) !important;
    color: var(--brand-gold) !important;
    -webkit-text-fill-color: var(--brand-gold) !important;
}

html[data-bs-theme="dark"] .request-page .request-type-note,
html[data-bs-theme="dark"] .request-page .request-internal-note,
html[data-bs-theme="dark"] .request-page .neighborhood-option:has(input:checked),
html[data-bs-theme="dark"] .request-page .request-intro-summary,
html[data-bs-theme="dark"] .request-page .request-intro-email {
    background-color: rgba(239, 170, 16, 0.12) !important;
    border-color: rgba(239, 170, 16, 0.46) !important;
}

html[data-bs-theme="dark"] .request-page .request-page-heading p,
html[data-bs-theme="dark"] .request-page .matches-heading p,
html[data-bs-theme="dark"] .request-page .matches-back,
html[data-bs-theme="dark"] .request-page .request-type-note span,
html[data-bs-theme="dark"] .request-page .request-owner,
html[data-bs-theme="dark"] .request-page .request-details,
html[data-bs-theme="dark"] .request-page .request-empty p,
html[data-bs-theme="dark"] .request-page .request-land-meta,
html[data-bs-theme="dark"] .request-page .request-land-image > span small,
html[data-bs-theme="dark"] .request-page .request-optional,
html[data-bs-theme="dark"] .request-page .form-text,
html[data-bs-theme="dark"] .request-page .neighborhood-option small,
html[data-bs-theme="dark"] .request-page .request-intro-heading p,
html[data-bs-theme="dark"] .request-page .request-intro-content p,
html[data-bs-theme="dark"] .request-page .request-intro-summary,
html[data-bs-theme="dark"] .request-page .request-intro-step p,
html[data-bs-theme="dark"] .request-page .request-intro-email,
html[data-bs-theme="dark"] .aqar-swal-label {
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .request-page .request-form-card .form-label,
html[data-bs-theme="dark"] .request-page .request-filter-field .form-label,
html[data-bs-theme="dark"] .request-page .request-type-note strong,
html[data-bs-theme="dark"] .request-page .request-page-heading h1,
html[data-bs-theme="dark"] .request-page .matches-heading h1,
html[data-bs-theme="dark"] .request-page .request-land-content h2,
html[data-bs-theme="dark"] .request-page .request-number,
html[data-bs-theme="dark"] .request-page .request-budget,
html[data-bs-theme="dark"] .request-page .request-intro-heading h1,
html[data-bs-theme="dark"] .request-page .request-intro-content h1,
html[data-bs-theme="dark"] .request-page .request-intro-step strong {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .request-page .request-scope-tabs a:hover,
html[data-bs-theme="dark"] .request-page .request-scope-tabs a:focus-visible {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .request-page .request-scope-tabs a.active {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
    border-color: var(--brand-gold) !important;
    box-shadow: inset 0 -3px var(--brand-gold) !important;
}

html[data-bs-theme="dark"] .request-page .request-scope.general {
    color: #75d7a8 !important;
    background-color: rgba(48, 180, 118, 0.14) !important;
}

html[data-bs-theme="dark"] .request-page .request-scope.private {
    color: #f2bd46 !important;
    background-color: rgba(239, 170, 16, 0.14) !important;
}

html[data-bs-theme="dark"] .request-page .request-internal-note {
    color: #e5c979 !important;
}

html[data-bs-theme="dark"] .request-page .matches-heading,
html[data-bs-theme="dark"] .request-page .request-form-actions,
html[data-bs-theme="dark"] .request-page .request-land-footer,
html[data-bs-theme="dark"] .request-page .request-intro-heading {
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .request-page .request-matches-btn {
    color: var(--aqar-text) !important;
    background-color: var(--aqar-surface-soft) !important;
    border-color: var(--aqar-border) !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .request-page .request-matches-btn:hover,
html[data-bs-theme="dark"] .request-page .request-matches-btn:focus-visible {
    color: var(--aqar-text) !important;
    background-color: rgba(239, 170, 16, .1) !important;
    border-color: rgba(239, 170, 16, .42) !important;
}

html[data-bs-theme="dark"] .request-page .request-matches-btn span {
    color: #efbd4f !important;
    background-color: rgba(239, 170, 16, .12) !important;
    border-color: rgba(239, 170, 16, .28) !important;
}

html[data-bs-theme="dark"] .request-page .request-matches-btn .request-new-count,
html[data-bs-theme="dark"] .request-page .request-land-new {
    color: #15181a !important;
    background-color: #efaa10 !important;
    border-color: #efaa10 !important;
}

html[data-bs-theme="dark"] .request-page .request-land-card.is-new {
    border-color: rgba(239, 170, 16, .55) !important;
}

html[data-bs-theme="dark"] .request-page .btn-outline-dark,
html[data-bs-theme="dark"] .request-page .btn-outline-secondary,
html[data-bs-theme="dark"] .request-page .btn-outline-danger {
    background-color: var(--aqar-surface-soft) !important;
    border-color: var(--aqar-border) !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .request-page .btn-outline-dark,
html[data-bs-theme="dark"] .request-page .btn-outline-secondary {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .request-page .btn-outline-danger {
    color: #ff7c87 !important;
}

html[data-bs-theme="dark"] .request-page .btn-outline-dark:hover,
html[data-bs-theme="dark"] .request-page .btn-outline-dark:focus-visible,
html[data-bs-theme="dark"] .request-page .btn-outline-secondary:hover,
html[data-bs-theme="dark"] .request-page .btn-outline-secondary:focus-visible {
    background-color: rgba(239, 170, 16, 0.12) !important;
    color: var(--brand-gold) !important;
    border-color: rgba(239, 170, 16, 0.48) !important;
}

html[data-bs-theme="dark"] .request-page .btn-outline-danger:hover,
html[data-bs-theme="dark"] .request-page .btn-outline-danger:focus-visible {
    background-color: rgba(220, 53, 69, 0.14) !important;
    color: #ff929b !important;
    border-color: rgba(255, 124, 135, 0.5) !important;
}

html[data-bs-theme="dark"] .request-page .field-validation-error,
html[data-bs-theme="dark"] .request-page .validation-summary-errors {
    color: #ff8e98 !important;
}

html[data-bs-theme="dark"] .skeleton-box {
    background-color: #2b3338;
}

html[data-bs-theme="dark"] .skeleton-box::after {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.11) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 1.35s infinite linear;
}

html[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: #101416;
}

html[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #485158;
}

/* Full dark-theme coverage for shared Bootstrap and project surfaces. */
html[data-bs-theme="dark"] {
    --brand-ink: var(--aqar-text);
    --muted: var(--aqar-text-muted);
    --muted-2: #879197;
    --border: var(--aqar-border);
    --border-2: var(--aqar-border);
    --bg-soft: var(--aqar-surface-soft);
    --hover-soft: var(--aqar-surface-muted);
    --about-line: var(--aqar-border);
    --contact-line: var(--aqar-border);
    --branches-line: var(--aqar-border);
}

html[data-bs-theme="dark"] .bg-body,
html[data-bs-theme="dark"] .bg-body-secondary,
html[data-bs-theme="dark"] .bg-body-tertiary,
html[data-bs-theme="dark"] .bg-secondary-subtle,
html[data-bs-theme="dark"] .bg-light-subtle,
html[data-bs-theme="dark"] .alert-light,
html[data-bs-theme="dark"] .btn-light,
html[data-bs-theme="dark"] .card-header,
html[data-bs-theme="dark"] .card-footer,
html[data-bs-theme="dark"] .modal-header,
html[data-bs-theme="dark"] .modal-footer,
html[data-bs-theme="dark"] .toast,
html[data-bs-theme="dark"] .popover,
html[data-bs-theme="dark"] .nav-tabs .nav-link:not(.active),
html[data-bs-theme="dark"] .nav-pills .nav-link:not(.active) {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .btn-close {
    filter: invert(1) grayscale(1);
    opacity: .72;
}

html[data-bs-theme="dark"] .breadcrumb,
html[data-bs-theme="dark"] .custom-breadcrumb,
html[data-bs-theme="dark"] .aqar-breadcrumb,
html[data-bs-theme="dark"] .breadcrumb-item {
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .breadcrumb-item.active,
html[data-bs-theme="dark"] .custom-breadcrumb .current-page {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Keep breadcrumb interaction consistent across all page variants. */
@media (hover: hover) and (pointer: fine) {
    .custom-breadcrumb a:hover,
    .custom-breadcrumb a:focus-visible,
    .aqar-breadcrumb a:hover,
    .aqar-breadcrumb a:focus-visible,
    .breadcrumb-item a:hover,
    .breadcrumb-item a:focus-visible {
        color: var(--brand-gold) !important;
        text-decoration: none !important;
    }
}

html[data-bs-theme="dark"] .custom-breadcrumb .current-page,
html[data-bs-theme="dark"] .custom-breadcrumb .current-page:hover,
html[data-bs-theme="dark"] .aqar-breadcrumb ol li:last-child,
html[data-bs-theme="dark"] .aqar-breadcrumb ol li:last-child:hover,
html[data-bs-theme="dark"] .breadcrumb-item.active,
html[data-bs-theme="dark"] .breadcrumb-item.active:hover {
    color: #ffffff !important;
    font-weight: 700 !important;
}

html[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > *,
html[data-bs-theme="dark"] .table-hover > tbody > tr:hover > *,
html[data-bs-theme="dark"] table#mainAqarTable tr.data-card-row:not(.status-archived):not(.status-deleted):hover td {
    --bs-table-accent-bg: var(--aqar-surface-soft) !important;
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] #tableViewContainer,
html[data-bs-theme="dark"] table#mainAqarTable,
html[data-bs-theme="dark"] table.aqar-card-table {
    background-color: transparent !important;
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] table#mainAqarTable tr.data-card-row td,
html[data-bs-theme="dark"] table.aqar-card-table tr.data-card-row td {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] table#mainAqarTable .lc-title,
html[data-bs-theme="dark"] table.aqar-card-table .lc-title,
html[data-bs-theme="dark"] table#mainAqarTable .lc-value,
html[data-bs-theme="dark"] table.aqar-card-table .lc-value {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] table#mainAqarTable .lc-label,
html[data-bs-theme="dark"] table.aqar-card-table .lc-label {
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .page-item.disabled .page-link,
html[data-bs-theme="dark"] .custom-pagination .page-item.disabled .custom-page-link {
    background-color: var(--aqar-surface-soft) !important;
    color: #6f797f !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .custom-pagination .custom-page-link,
html[data-bs-theme="dark"] .table-pager .pg-btn {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text-muted) !important;
    border-color: var(--aqar-border) !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .custom-pagination .custom-page-link:hover,
html[data-bs-theme="dark"] .table-pager .pg-btn:hover {
    background-color: var(--aqar-surface-muted) !important;
    color: var(--brand-gold) !important;
    border-color: rgba(239, 170, 16, .42) !important;
}

html[data-bs-theme="dark"] input:disabled,
html[data-bs-theme="dark"] textarea:disabled,
html[data-bs-theme="dark"] select:disabled,
html[data-bs-theme="dark"] .form-control:disabled,
html[data-bs-theme="dark"] .form-select:disabled {
    background-color: var(--aqar-surface-muted) !important;
    color: #7f898e !important;
    opacity: 1;
}

html[data-bs-theme="dark"] input[type="checkbox"],
html[data-bs-theme="dark"] input[type="radio"] {
    background-color: var(--aqar-surface-soft);
    border-color: rgba(255, 255, 255, .28);
}

html[data-bs-theme="dark"] input[type="checkbox"]:checked,
html[data-bs-theme="dark"] input[type="radio"]:checked {
    background-color: var(--brand-gold) !important;
    border-color: var(--brand-gold) !important;
}

html[data-bs-theme="dark"] option {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .shadow,
html[data-bs-theme="dark"] .shadow-sm,
html[data-bs-theme="dark"] .shadow-lg {
    box-shadow: 0 10px 28px var(--aqar-shadow) !important;
}

html[data-bs-theme="dark"] code,
html[data-bs-theme="dark"] pre,
html[data-bs-theme="dark"] .code-block {
    background-color: #111719 !important;
    color: #e6eaec !important;
    border-color: var(--aqar-border) !important;
}

/* Header, footer and navigation. */
html[data-bs-theme="dark"] .aqar-main-navbar,
html[data-bs-theme="dark"] .custom-offcanvas-lg,
html[data-bs-theme="dark"] .offcanvas-custom-header,
html[data-bs-theme="dark"] .navbar-nav .dropdown-menu,
html[data-bs-theme="dark"] .sticky-chips,
html[data-bs-theme="dark"] .category-scroll-container {
    background-color: var(--aqar-page-bg) !important;
    border-color: var(--aqar-border) !important;
}

/* The landing-page categories sit directly over the hero image. */
html[data-bs-theme="dark"] .home-hero-chips,
html[data-bs-theme="dark"] .home-hero-chips .category-scroll-container {
    background-color: transparent !important;
    border-color: transparent !important;
}

@media (min-width: 992px) {
    html[data-bs-theme="dark"] .aqar-main-navbar .custom-offcanvas-lg {
        background-color: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }
}

@media (max-width: 991.98px) {
    .aqar-site-header .aqar-property-request-trigger {
        display: none !important;
    }

    .aqar-main-navbar .custom-offcanvas-lg {
        width: min(390px, calc(100vw - 16px)) !important;
        max-width: calc(100vw - 16px) !important;
        border-radius: 18px 0 0 18px !important;
    }

    .aqar-main-navbar .custom-offcanvas-lg,
    .aqar-main-navbar .custom-offcanvas-lg .offcanvas-custom-header,
    .aqar-main-navbar .custom-offcanvas-lg .offcanvas-body {
        background-color: var(--aqar-surface) !important;
        color: var(--aqar-text) !important;
    }

    .aqar-main-navbar .custom-offcanvas-lg {
        border-color: var(--aqar-border) !important;
        box-shadow: -14px 0 45px var(--aqar-shadow) !important;
    }

    .aqar-main-navbar .custom-offcanvas-lg .offcanvas-custom-header {
        min-height: 72px;
        padding: 0.8rem 1rem;
        border-bottom-color: var(--aqar-border) !important;
    }

    .aqar-main-navbar .custom-offcanvas-lg .mobile-divider {
        display: none !important;
    }

    .aqar-main-navbar .custom-offcanvas-lg .offcanvas-body {
        padding: 0.72rem 0.85rem calc(1rem + env(safe-area-inset-bottom)) !important;
    }

    .aqar-main-navbar .custom-offcanvas-lg .navbar-nav {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: stretch !important;
    }

    .aqar-main-navbar .custom-offcanvas-lg .navbar-nav > .nav-item {
        width: 100%;
        margin-bottom: 0.32rem;
    }

    .aqar-main-navbar .custom-offcanvas-lg .navbar-nav .nav-link,
    .aqar-main-navbar .custom-offcanvas-lg .navbar-nav .nav-link.text-secondary {
        width: 100% !important;
        min-height: 49px;
        justify-content: flex-start;
        padding: 0.72rem 0.95rem !important;
        background-color: transparent !important;
        color: var(--aqar-text) !important;
        font-size: 0.96rem;
        line-height: 1.35;
        text-align: right;
    }

    .aqar-main-navbar .custom-offcanvas-lg .navbar-nav .nav-link i.mobile-icon {
        color: var(--aqar-text-muted) !important;
    }

    .aqar-main-navbar .custom-offcanvas-lg .navbar-nav .nav-link.active {
        background-color: rgba(235, 165, 18, 0.12) !important;
        color: var(--brand-gold) !important;
    }

    .aqar-main-navbar .custom-offcanvas-lg .navbar-nav .nav-link.active i.mobile-icon {
        color: var(--brand-gold) !important;
    }

    .aqar-main-navbar .custom-offcanvas-lg .navbar-nav .nav-link:not(.active):hover,
    .aqar-main-navbar .custom-offcanvas-lg .navbar-nav .nav-link:not(.active):focus {
        background-color: var(--aqar-surface-soft) !important;
        color: var(--brand-gold) !important;
    }

    .aqar-main-navbar .custom-offcanvas-lg .navbar-nav .dropdown-menu {
        background-color: var(--aqar-surface-soft) !important;
        border-color: var(--aqar-border) !important;
    }

    .aqar-main-navbar .custom-offcanvas-lg .navbar-nav .dropdown-item {
        color: var(--aqar-text-muted) !important;
    }

    .aqar-main-navbar .custom-offcanvas-lg .navbar-nav .dropdown-item:hover,
    .aqar-main-navbar .custom-offcanvas-lg .navbar-nav .dropdown-item:focus {
        background-color: var(--aqar-surface) !important;
        color: var(--brand-gold) !important;
    }

    .aqar-main-navbar .custom-offcanvas-lg .aqar-mobile-theme {
        width: 100%;
        margin-top: 0.65rem;
        padding: 1rem 0 0.25rem;
        background-color: var(--aqar-surface) !important;
        border-color: var(--aqar-border) !important;
    }

    .aqar-main-navbar .custom-offcanvas-lg .aqar-mobile-theme-options {
        width: 100%;
    }

    .aqar-main-navbar .custom-offcanvas-lg .aqar-mobile-theme-options .aqar-theme-option {
        min-height: 62px;
        font-size: 0.76rem;
    }

    .aqar-main-navbar .custom-offcanvas-lg .aqar-mobile-actions {
        width: 100%;
        padding-inline: 0;
    }

    .aqar-main-navbar .custom-offcanvas-lg .aqar-mobile-action {
        min-height: 50px;
        font-size: 0.96rem;
    }

    html[data-bs-theme="dark"] .aqar-main-navbar .custom-offcanvas-lg .btn-close {
        filter: invert(1) grayscale(100%) brightness(1.8);
        opacity: 0.78;
    }
}

html[data-bs-theme="dark"] .aqar-main-navbar .navbar-nav .nav-link.hover-orange::before {
    background-color: transparent !important;
}

/* Desktop header utility buttons share the navbar glass surface. */
@media (min-width: 992px) {
    .aqar-main-navbar #btnGlobalSearchPopup,
    .aqar-main-navbar #aqarThemeToggle,
    .aqar-main-navbar .aqar-notification-trigger {
        background-color: transparent !important;
        color: var(--aqar-text, #202b2f) !important;
        border-color: rgba(32, 43, 47, 0.14) !important;
        box-shadow: none !important;
    }

    .aqar-main-navbar #btnGlobalSearchPopup:hover,
    .aqar-main-navbar #btnGlobalSearchPopup:focus-visible,
    .aqar-main-navbar #aqarThemeToggle:hover,
    .aqar-main-navbar #aqarThemeToggle:focus-visible,
    .aqar-main-navbar .aqar-notification-trigger:hover,
    .aqar-main-navbar .aqar-notification-trigger:focus-visible {
        background-color: rgba(230, 164, 20, 0.09) !important;
        color: var(--brand-gold) !important;
        border-color: rgba(230, 164, 20, 0.38) !important;
    }

    html[data-bs-theme="dark"] .aqar-main-navbar #btnGlobalSearchPopup,
    html[data-bs-theme="dark"] .aqar-main-navbar #aqarThemeToggle,
    html[data-bs-theme="dark"] .aqar-main-navbar .aqar-notification-trigger {
        background-color: transparent !important;
        color: var(--aqar-text, #f4f6f7) !important;
        border-color: rgba(255, 255, 255, 0.16) !important;
    }

    html[data-bs-theme="dark"] .aqar-main-navbar #btnGlobalSearchPopup:hover,
    html[data-bs-theme="dark"] .aqar-main-navbar #btnGlobalSearchPopup:focus-visible,
    html[data-bs-theme="dark"] .aqar-main-navbar #aqarThemeToggle:hover,
    html[data-bs-theme="dark"] .aqar-main-navbar #aqarThemeToggle:focus-visible,
    html[data-bs-theme="dark"] .aqar-main-navbar .aqar-notification-trigger:hover,
    html[data-bs-theme="dark"] .aqar-main-navbar .aqar-notification-trigger:focus-visible {
        background-color: rgba(239, 170, 16, 0.11) !important;
        color: var(--brand-gold) !important;
        border-color: rgba(239, 170, 16, 0.42) !important;
    }
}

html[data-bs-theme="dark"] .navbar-nav .nav-link.hover-orange:hover::before,
html[data-bs-theme="dark"] .navbar-nav .nav-link.hover-orange:focus::before {
    background-color: var(--aqar-surface-soft) !important;
}

html[data-bs-theme="dark"] .navbar-nav .nav-link.hover-orange:hover,
html[data-bs-theme="dark"] .navbar-nav .nav-link.hover-orange:focus {
    color: var(--brand-gold) !important;
}

html[data-bs-theme="dark"] .aqar-footer-bottom,
html[data-bs-theme="dark"] .mobile-divider {
    border-color: var(--aqar-border) !important;
}

/* Home, search and result cards. */
html[data-bs-theme="dark"] .home-page-shell,
html[data-bs-theme="dark"] .home-results-container,
html[data-bs-theme="dark"] .home-filter-section {
    background-color: var(--aqar-page-bg) !important;
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .home-search-panel {
    background: rgba(24, 29, 32, .96) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .26), 0 0 0 1px rgba(255, 255, 255, .03) inset !important;
}

html[data-bs-theme="dark"] .home-search-title,
html[data-bs-theme="dark"] .home-results-title,
html[data-bs-theme="dark"] .home-results-heading,
html[data-bs-theme="dark"] .main-title {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .home-search-panel .custom-input-group,
html[data-bs-theme="dark"] .search-status-shell,
html[data-bs-theme="dark"] .dashboard-status-shell,
html[data-bs-theme="dark"] .dashboard-search-utility-btn,
html[data-bs-theme="dark"] .search-utility-btn {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .home-type-tabs {
    background: transparent !important;
    color: inherit !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .search-status-shell,
html[data-bs-theme="dark"] .dashboard-status-shell {
    padding: .7rem;
    border: 1px solid var(--aqar-border);
    border-radius: 14px;
    background-color: var(--aqar-surface) !important;
}

html[data-bs-theme="dark"] .search-status-actions .btn-outline-secondary,
html[data-bs-theme="dark"] .search-status-actions .btn-outline-danger,
html[data-bs-theme="dark"] .dashboard-status-shell .btn-outline-secondary,
html[data-bs-theme="dark"] .dashboard-status-shell .btn-outline-danger {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text-muted) !important;
    border-color: var(--aqar-border) !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .search-status-actions .btn-primary {
    color: #111416 !important;
}

/* Brand-filled controls use dark ink in night mode for stronger contrast. */
html[data-bs-theme="dark"] :is(
    .btn-primary:not(.action-btn),
    .btn-warning,
    .btn-brand-solid,
    .view-btn-active,
    .home-type-filter-btn.active,
    .btn-category-chip.active,
    .btn-check:checked + .btn-outline-primary,
    .btn-check:checked + .btn-outline-warning,
    .pagination .active > .page-link,
    .page-link.active,
    .swal2-confirm
) {
    color: #111416 !important;
    -webkit-text-fill-color: #111416 !important;
}

html[data-bs-theme="dark"] :is(
    .btn-primary:not(.action-btn),
    .btn-warning,
    .btn-brand-solid,
    .view-btn-active,
    .home-type-filter-btn.active,
    .btn-category-chip.active,
    .btn-check:checked + .btn-outline-primary,
    .btn-check:checked + .btn-outline-warning,
    .pagination .active > .page-link,
    .page-link.active,
    .swal2-confirm
) :is(i, svg, span) {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* Keep the confirmation label readable when an error alert uses the neutral close button. */
.swal2-actions .swal2-confirm.btn-outline-secondary {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.swal2-actions .swal2-confirm.btn-outline-secondary :is(i, svg, span) {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

html[data-bs-theme="dark"] .search-status-actions .btn-warning {
    background-color: rgba(239, 170, 16, .18) !important;
    color: #f2bd46 !important;
    border-color: rgba(239, 170, 16, .48) !important;
}

html[data-bs-theme="dark"] .search-status-actions .btn-danger {
    background-color: rgba(220, 53, 69, .18) !important;
    color: #ff8e99 !important;
    border-color: rgba(220, 53, 69, .52) !important;
}

html[data-bs-theme="dark"] .home-type-filter-btn:not(.active),
html[data-bs-theme="dark"] .view-btn-inactive {
    background-color: transparent !important;
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .custom-aqar-card,
html[data-bs-theme="dark"] .custom-aqar-card .card-body,
html[data-bs-theme="dark"] .aqar-card-facts,
html[data-bs-theme="dark"] .aqar-icon-button,
html[data-bs-theme="dark"] .aqar-details-button,
html[data-bs-theme="dark"] .aqar-table-circle-action,
html[data-bs-theme="dark"] .aqar-table-view-pill,
html[data-bs-theme="dark"] .aqar-card-action,
html[data-bs-theme="dark"] .lc-img-square.is-default {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

/* Favorite buttons keep a white circle; only the star communicates selection. */
html[data-bs-theme="dark"] .fav-btn,
html[data-bs-theme="dark"] .fav-btn:hover,
html[data-bs-theme="dark"] .fav-btn:focus-visible,
html[data-bs-theme="dark"] .fav-btn[aria-pressed="true"] {
    background-color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.72) !important;
    color: #566168 !important;
}

html[data-bs-theme="dark"] .fav-btn:hover i,
html[data-bs-theme="dark"] .fav-btn:focus-visible i,
html[data-bs-theme="dark"] .fav-btn[aria-pressed="true"] i {
    color: #f0ad18 !important;
    -webkit-text-fill-color: #f0ad18 !important;
}

html[data-bs-theme="dark"] .aqar-card-facts,
html[data-bs-theme="dark"] .aqar-no-photo,
html[data-bs-theme="dark"] .aqar-card-meta-chip {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .aqar-card-title,
html[data-bs-theme="dark"] .lc-title,
html[data-bs-theme="dark"] .aqar-price-row,
html[data-bs-theme="dark"] .aqar-price-stack {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .lc-label,
html[data-bs-theme="dark"] .aqar-no-photo span,
html[data-bs-theme="dark"] .aqar-card-meta-row {
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .custom-aqar-card.status-archived,
html[data-bs-theme="dark"] table.aqar-card-table tr.status-archived td,
html[data-bs-theme="dark"] .panel-card.status-archived {
    background-color: rgba(239, 170, 16, .10) !important;
    border-color: rgba(239, 170, 16, .30) !important;
}

html[data-bs-theme="dark"] .custom-aqar-card.status-deleted,
html[data-bs-theme="dark"] table.aqar-card-table tr.status-deleted td,
html[data-bs-theme="dark"] .panel-card.status-deleted {
    background-color: rgba(220, 53, 69, .10) !important;
    border-color: rgba(220, 53, 69, .32) !important;
}

/* Legacy category list pages share these classes. */
html[data-bs-theme="dark"] .fg-input,
html[data-bs-theme="dark"] .btn-sort,
html[data-bs-theme="dark"] .sort-menu,
html[data-bs-theme="dark"] .card-wrap,
html[data-bs-theme="dark"] .prop-table,
html[data-bs-theme="dark"] .prop-table td,
html[data-bs-theme="dark"] .meta-chip,
html[data-bs-theme="dark"] .sideinfo-panel,
html[data-bs-theme="dark"] .sideinfo-body .dl-item,
html[data-bs-theme="dark"] .si-sec-body,
html[data-bs-theme="dark"] .no-cards {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .thumb-box,
html[data-bs-theme="dark"] .si-section,
html[data-bs-theme="dark"] .sort-menu .sort-option:hover,
html[data-bs-theme="dark"] .btn-sort:hover {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .title-link,
html[data-bs-theme="dark"] .sort-menu .sort-option,
html[data-bs-theme="dark"] .sideinfo-body .dl-item .v,
html[data-bs-theme="dark"] .prewrap {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .fg-label,
html[data-bs-theme="dark"] .sort-prefix,
html[data-bs-theme="dark"] .t-line .k,
html[data-bs-theme="dark"] .t-line .v,
html[data-bs-theme="dark"] .t-price,
html[data-bs-theme="dark"] .price-main,
html[data-bs-theme="dark"] .last-updated {
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .aqar-table-record-chip.is-ad-number,
html[data-bs-theme="dark"] .aqar-table-record-chip.last-updated {
    color: #fff !important;
    font-weight: 600 !important;
}

html[data-bs-theme="dark"] .details-related-card .aqar-table-record-chip,
html[data-bs-theme="dark"] .details-related-card .aqar-table-record-chip.last-updated,
html[data-bs-theme="dark"] .details-related-card .aqar-table-record-chip > * {
    font-weight: 600 !important;
}

/* Map controls and Google information windows. */
html[data-bs-theme="dark"] .map-filters,
html[data-bs-theme="dark"] .map-loading,
html[data-bs-theme="dark"] .map-popup-card,
html[data-bs-theme="dark"] .map-popup-media,
html[data-bs-theme="dark"] .map-popup-image,
html[data-bs-theme="dark"] .gm-style .gm-style-iw-c,
html[data-bs-theme="dark"] .gm-style .gm-style-iw-d {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .map-filters .custom-input-group,
html[data-bs-theme="dark"] .map-action-btn,
html[data-bs-theme="dark"] .gm-style .gm-ui-hover-effect {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

/* Keep selected Tom Select values readable across shared forms, offcanvas and alerts. */
html[data-bs-theme="dark"] .ts-control > .item,
html[data-bs-theme="dark"] .ts-control > input,
html[data-bs-theme="dark"] .ts-control > input::placeholder {
    color: var(--aqar-text) !important;
    -webkit-text-fill-color: var(--aqar-text) !important;
    opacity: 1 !important;
}

html[data-bs-theme="dark"] .ts-control > input::placeholder {
    color: var(--aqar-text-muted) !important;
    -webkit-text-fill-color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .ts-wrapper.multi .ts-control > .item {
    background-color: var(--aqar-surface-muted) !important;
    color: var(--aqar-text) !important;
    -webkit-text-fill-color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .ts-wrapper.multi .ts-control > .item .remove {
    color: var(--aqar-text) !important;
    -webkit-text-fill-color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .ts-dropdown,
html[data-bs-theme="dark"] .ts-dropdown-content {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .ts-dropdown .option,
html[data-bs-theme="dark"] .ts-dropdown .create,
html[data-bs-theme="dark"] .ts-dropdown .no-results {
    color: var(--aqar-text) !important;
    -webkit-text-fill-color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] #quickSearchOffcanvas .offcanvas-header,
html[data-bs-theme="dark"] #quickSearchOffcanvas .offcanvas-body,
html[data-bs-theme="dark"] #quickSearchOffcanvas .custom-input-group {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] #quickSearchOffcanvas .custom-input-group {
    background-color: var(--aqar-surface-soft) !important;
}

html[data-bs-theme="dark"] #quickSearchOffcanvas .form-label,
html[data-bs-theme="dark"] #quickSearchOffcanvas .input-group-text {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .map-action-btn:hover,
html[data-bs-theme="dark"] .map-action-btn:focus-visible {
    background-color: var(--aqar-surface-muted) !important;
    color: #f2bd46 !important;
    border-color: rgba(239, 170, 16, .48) !important;
    box-shadow: 0 0 0 3px rgba(239, 170, 16, .10) !important;
}

html[data-bs-theme="dark"] .map-filter-toggle:hover,
html[data-bs-theme="dark"] .map-filter-toggle:focus-visible {
    background-color: #f2bd46 !important;
    border-color: #f2bd46 !important;
    color: #15181b !important;
    box-shadow: 0 0 0 3px rgba(239, 170, 16, .14) !important;
}

html[data-bs-theme="dark"] .map-filters .custom-input-group .ts-wrapper .ts-control,
html[data-bs-theme="dark"] .map-filters .custom-input-group .input-group-text,
html[data-bs-theme="dark"] .map-filters .ts-dropdown .active,
html[data-bs-theme="dark"] .map-popup-title {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .map-filters .ts-control > .item,
html[data-bs-theme="dark"] .map-filters .ts-control > input,
html[data-bs-theme="dark"] .map-filters .ts-control > input::placeholder {
    color: var(--aqar-text) !important;
    -webkit-text-fill-color: var(--aqar-text) !important;
    opacity: 1 !important;
}

html[data-bs-theme="dark"] .map-filters .ts-control > input::placeholder {
    color: var(--aqar-text-muted) !important;
    -webkit-text-fill-color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .map-filters .ts-wrapper.multi .ts-control > .item {
    background-color: var(--aqar-surface-muted) !important;
    color: var(--aqar-text) !important;
    -webkit-text-fill-color: var(--aqar-text) !important;
    border: 1px solid var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .map-filters .ts-wrapper.multi .ts-control > .item .remove,
html[data-bs-theme="dark"] .map-filters .ts-dropdown .option,
html[data-bs-theme="dark"] .map-filters .ts-dropdown .selected {
    color: var(--aqar-text) !important;
    -webkit-text-fill-color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .map-filters .ts-wrapper.single .ts-control::after {
    border-color: var(--aqar-text-muted) transparent transparent transparent !important;
}

html[data-bs-theme="dark"] .map-filters .ts-wrapper.single.dropdown-active .ts-control::after {
    border-color: transparent transparent var(--aqar-text-muted) transparent !important;
}

html[data-bs-theme="dark"] .map-popup-ad-badge {
    background-color: rgba(24, 29, 32, .90) !important;
    color: #f2bd46 !important;
    border-color: rgba(239, 170, 16, .38) !important;
}

/* About, contact, branches and legal pages. */
html[data-bs-theme="dark"] .about-page,
html[data-bs-theme="dark"] .contact-page,
html[data-bs-theme="dark"] .branches-page,
html[data-bs-theme="dark"] .legal-page {
    background-color: var(--aqar-page-bg) !important;
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .about-facts,
html[data-bs-theme="dark"] .about-step-pin,
html[data-bs-theme="dark"] .about-hero-tag,
html[data-bs-theme="dark"] .contact-team-section,
html[data-bs-theme="dark"] .contact-note,
html[data-bs-theme="dark"] .branch-card,
html[data-bs-theme="dark"] .branches-visit-note,
html[data-bs-theme="dark"] .branches-hero-tag,
html[data-bs-theme="dark"] .legal-card,
html[data-bs-theme="dark"] .legal-hero {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
    box-shadow: 0 14px 32px var(--aqar-shadow) !important;
}

html[data-bs-theme="dark"] .about-fact strong,
html[data-bs-theme="dark"] .about-step strong,
html[data-bs-theme="dark"] .about-hero-tag,
html[data-bs-theme="dark"] .contact-note strong,
html[data-bs-theme="dark"] .contact-person h3,
html[data-bs-theme="dark"] .branch-card h3,
html[data-bs-theme="dark"] .branch-hours-row strong,
html[data-bs-theme="dark"] .branches-visit-note strong,
html[data-bs-theme="dark"] .branches-visit-link {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .about-fact span,
html[data-bs-theme="dark"] .about-intro-copy p,
html[data-bs-theme="dark"] .about-step p,
html[data-bs-theme="dark"] .contact-person-info bdi,
html[data-bs-theme="dark"] .contact-empty,
html[data-bs-theme="dark"] .contact-note p,
html[data-bs-theme="dark"] .branch-number,
html[data-bs-theme="dark"] .branch-area,
html[data-bs-theme="dark"] .branch-description,
html[data-bs-theme="dark"] .branch-hours-row span,
html[data-bs-theme="dark"] .branches-visit-note p {
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .about-route::before,
html[data-bs-theme="dark"] .about-fact + .about-fact,
html[data-bs-theme="dark"] .contact-team-list,
html[data-bs-theme="dark"] .contact-person,
html[data-bs-theme="dark"] .branch-hours-row {
    border-color: var(--aqar-border) !important;
}

/* Dashboard forms, reports, contracts and vouchers. */
html[data-bs-theme="dark"] .description-specs-card,
html[data-bs-theme="dark"] .floor-spec-box,
html[data-bs-theme="dark"] .desc-check-option,
html[data-bs-theme="dark"] .image-drop-zone,
html[data-bs-theme="dark"] .spec-scroll-box,
html[data-bs-theme="dark"] .sale-section-card,
html[data-bs-theme="dark"] .sale-party-card,
html[data-bs-theme="dark"] .receipt-section,
html[data-bs-theme="dark"] .receipt-detail-panel,
html[data-bs-theme="dark"] .receipt-edit-box,
html[data-bs-theme="dark"] .receipt-voucher-card,
html[data-bs-theme="dark"] .performance-table-card,
html[data-bs-theme="dark"] .analytics-card,
html[data-bs-theme="dark"] .folder-stat-card,
html[data-bs-theme="dark"] .update-task-card,
html[data-bs-theme="dark"] .campaign-assignment-row,
html[data-bs-theme="dark"] .my-campaign-card,
html[data-bs-theme="dark"] .ad-import-shell,
html[data-bs-theme="dark"] .ad-import-field,
html[data-bs-theme="dark"] .ad-import-loader-card {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
    box-shadow: 0 10px 28px var(--aqar-shadow) !important;
}

html[data-bs-theme="dark"] .desc-check-option:hover,
html[data-bs-theme="dark"] .image-drop-zone:hover,
html[data-bs-theme="dark"] .update-task-card:hover,
html[data-bs-theme="dark"] .my-campaign-card:hover,
html[data-bs-theme="dark"] .performance-progress,
html[data-bs-theme="dark"] .ad-import-field-value,
html[data-bs-theme="dark"] .dashboard-text-media-placeholder,
html[data-bs-theme="dark"] .dashboard-text-option-btn,
html[data-bs-theme="dark"] .dashboard-text-more-menu {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .image-drop-zone {
    background: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
    border-color: rgba(239, 170, 16, .42) !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .image-drop-zone:hover,
html[data-bs-theme="dark"] .image-drop-zone.is-dragover {
    background: rgba(239, 170, 16, .09) !important;
    color: var(--aqar-text) !important;
    border-color: var(--brand-gold) !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .image-drop-zone .text-dark {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .image-drop-zone-icon {
    background: rgba(239, 170, 16, .14) !important;
    color: var(--brand-gold) !important;
}

html[data-bs-theme="dark"] .image-drop-zone-hint {
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .desc-check-option:has(input:checked),
html[data-bs-theme="dark"] .neighborhood-option:has(input:checked),
html[data-bs-theme="dark"] .dashboard-text-option-btn.is-active {
    background-color: rgba(239, 170, 16, .13) !important;
    border-color: rgba(239, 170, 16, .45) !important;
}

html[data-bs-theme="dark"] .receipt-section-head,
html[data-bs-theme="dark"] .receipt-edit-box .ts-control,
html[data-bs-theme="dark"] .receipt-select-group .ts-control,
html[data-bs-theme="dark"] .receipt-form .ts-control,
html[data-bs-theme="dark"] .audit-select-group .ts-control,
html[data-bs-theme="dark"] .archive-reason-select .ts-control,
html[data-bs-theme="dark"] .performance-sort-select {
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .receipt-section-head h2,
html[data-bs-theme="dark"] .receipt-stat-value,
html[data-bs-theme="dark"] .receipt-detail-value,
html[data-bs-theme="dark"] .update-task-title,
html[data-bs-theme="dark"] .ad-import-field-value {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .receipt-section-head p,
html[data-bs-theme="dark"] .receipt-stat-label,
html[data-bs-theme="dark"] .performance-sort-note,
html[data-bs-theme="dark"] .ad-import-field-label,
html[data-bs-theme="dark"] .ad-import-loader-text {
    color: var(--aqar-text-muted) !important;
}

/* Details page surfaces not covered by its local CSS variables. */
html[data-bs-theme="dark"] .details-modern-page {
    --details-ink: var(--aqar-text);
    --details-sub: var(--aqar-text-muted);
    --details-hint: #929ca2;
    --details-paper: var(--aqar-page-bg);
    --details-card: var(--aqar-surface);
    --details-line: var(--aqar-border);
    --details-line-strong: #465158;
    --details-gold: var(--aqar-gold);
    --details-gold-deep: #f1b72f;
    --details-gold-tint: rgba(239, 170, 16, .14);
    --details-panel: #111619;
}

html[data-bs-theme="dark"] .details-modern-page .property-media-body,
html[data-bs-theme="dark"] .details-modern-page .property-price-card,
html[data-bs-theme="dark"] .details-modern-page .property-contact-card,
html[data-bs-theme="dark"] .details-modern-page .property-license-card,
html[data-bs-theme="dark"] .details-modern-page .property-description-panel,
html[data-bs-theme="dark"] .details-modern-page .details-section,
html[data-bs-theme="dark"] .details-modern-page .details-sidebar-card {
    background-color: var(--aqar-surface) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .details-modern-page .property-title-tag.contract {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
    border: 1px solid var(--aqar-border);
}

html[data-bs-theme="dark"] .details-modern-page .property-title-tag.type {
    background-color: rgba(239, 170, 16, .14) !important;
    color: #f1b72f !important;
    border: 1px solid rgba(239, 170, 16, .22);
}

html[data-bs-theme="dark"] .details-modern-page .detail-order-adtext,
html[data-bs-theme="dark"] .details-modern-page .detail-order-adtext .property-title-body,
html[data-bs-theme="dark"] .details-modern-page .detail-order-adtext .card-body {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .details-modern-page .detail-order-adtext {
    border: 0 !important;
    outline: 0 !important;
}

html[data-bs-theme="dark"] .details-modern-page .detail-order-media,
html[data-bs-theme="dark"] .details-modern-page .detail-order-media .property-media-body {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .details-modern-page .detail-order-media .property-quickfacts {
    background: transparent !important;
}

html[data-bs-theme="dark"] .details-modern-page .property-price-meta,
html[data-bs-theme="dark"] .details-modern-page .property-detail-label,
html[data-bs-theme="dark"] .details-modern-page .property-description-label {
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .details-modern-page .detail-order-neighborhood .text-dark,
html[data-bs-theme="dark"] .details-modern-page .detail-order-internal .text-dark,
html[data-bs-theme="dark"] .details-modern-page .detail-order-internal .last-updated {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .details-modern-page .detail-order-internal .btn-link {
    color: #f1b72f !important;
}

.details-modern-page .neighborhood-services-row {
    align-items: baseline;
}

.details-modern-page .neighborhood-services-row .property-description-heading {
    color: var(--details-ink) !important;
    font-family: 'Tajawal', sans-serif;
    font-size: var(--details-subtitle-size);
    font-weight: 800 !important;
    line-height: 1.65;
}

.details-modern-page .detail-order-neighborhood .property-detail-row > .fw-bold,
.details-modern-page .detail-order-internal .property-detail-row > .fw-bold,
.details-modern-page .detail-order-internal .property-detail-row > .fw-semibold,
.details-modern-page .detail-order-internal .property-detail-row > button,
.details-modern-page .detail-order-internal .property-detail-row > a {
    font-weight: 600 !important;
}

html[data-bs-theme="dark"] .details-modern-page .neighborhood-services-row .property-description-heading {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .details-modern-page .detail-order-neighborhood .property-detail-row > .fw-bold,
html[data-bs-theme="dark"] .details-modern-page .detail-order-internal .property-detail-row > .fw-bold,
html[data-bs-theme="dark"] .details-modern-page .detail-order-internal .property-detail-row > .fw-semibold {
    color: var(--aqar-text) !important;
}

.details-modern-page .plan-services-list {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--details-ink);
}

.details-modern-page .plan-service-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--details-ink);
    font-size: var(--details-body-size);
    font-weight: 600;
}

.details-modern-page .plan-service-item i {
    color: var(--details-gold);
    font-size: .95rem;
}

.details-modern-page .plan-service-item:not(:last-child)::after {
    content: "-";
    margin-inline-start: 8px;
    color: var(--details-sub);
    font-weight: 400;
}

html[data-bs-theme="dark"] .details-modern-page .plan-services-list,
html[data-bs-theme="dark"] .details-modern-page .plan-service-item {
    color: var(--aqar-text);
}

html[data-bs-theme="dark"] .details-modern-page .plan-service-item:not(:last-child)::after {
    color: var(--aqar-text-muted);
}

html[data-bs-theme="dark"] .details-mobile-bottom-bar {
    background-color: var(--aqar-surface) !important;
    border-color: var(--aqar-border) !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .24) !important;
}

html[data-bs-theme="dark"] .details-mobile-bottom-bar .details-mobile-action.mobile-call,
html[data-bs-theme="dark"] .details-mobile-bottom-bar .details-mobile-action.mobile-favorite {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .details-modern-page .details-contact-choice-btn[data-contact-mode="whatsapp"] {
    background-color: rgba(37, 211, 102, .12) !important;
    color: #6ee7a0 !important;
    border-color: rgba(37, 211, 102, .28) !important;
}

html[data-bs-theme="dark"] .details-modern-page .details-contact-choice-btn[data-contact-mode="whatsapp"] .fa-whatsapp {
    color: #6ee7a0 !important;
}

html[data-bs-theme="dark"] .details-modern-page .details-contact-choice-btn[data-contact-mode="whatsapp"]:hover {
    background-color: rgba(37, 211, 102, .18) !important;
    color: #8bf0b2 !important;
    border-color: rgba(37, 211, 102, .42) !important;
}

html[data-bs-theme="dark"] .swal2-popup .aqar-contact-picker-row {
    background-color: var(--aqar-surface-soft) !important;
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .swal2-popup .aqar-contact-picker-name {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .swal2-popup .aqar-contact-picker-phone {
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .swal2-popup .aqar-contact-picker-action {
    background-color: var(--aqar-surface-muted) !important;
    color: var(--aqar-text) !important;
    border: 1px solid var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .swal2-popup .aqar-contact-picker-action.whatsapp {
    background-color: rgba(37, 211, 102, .14) !important;
    color: #75e5a0 !important;
    border-color: rgba(37, 211, 102, .3) !important;
}

html[data-bs-theme="dark"] .swal2-popup .aqar-contact-picker-action.whatsapp:hover,
html[data-bs-theme="dark"] .swal2-popup .aqar-contact-picker-action.whatsapp:focus-visible {
    background-color: rgba(37, 211, 102, .22) !important;
    color: #9af0ba !important;
    border-color: rgba(37, 211, 102, .46) !important;
}

/* Final contrast pass for media placeholders, mobile navigation and price details. */
html[data-bs-theme="dark"] .navbar-toggler,
html[data-bs-theme="dark"] .navbar-toggler i,
html[data-bs-theme="dark"] .navbar-toggler .bi {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .aqar-card-media,
html[data-bs-theme="dark"] .aqar-media-shell,
html[data-bs-theme="dark"] .aqar-media-shell.has-no-photo {
    background-color: #20262a !important;
}

html[data-bs-theme="dark"] .aqar-media-shell.has-no-photo {
    background-image: radial-gradient(circle at 50% 35%, rgba(239, 170, 16, .10), transparent 44%) !important;
}

html[data-bs-theme="dark"] .aqar-no-photo,
html[data-bs-theme="dark"] .aqar-broken-photo-state {
    background-color: #20262a !important;
    background-image: radial-gradient(circle at 30% 20%, rgba(239, 170, 16, .12), transparent 48%) !important;
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .aqar-media-shell.has-no-photo .aqar-no-image-text,
html[data-bs-theme="dark"] .aqar-media-shell.has-no-photo .no-image-text,
html[data-bs-theme="dark"] .aqar-media-shell.has-no-photo p,
html[data-bs-theme="dark"] .aqar-media-shell.has-no-photo span:not(.aqar-media-tag) {
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .aqar-media-tag.is-time,
html[data-bs-theme="dark"] .aqar-media-tag.is-unit {
    background-color: rgba(32, 43, 47, 0.84) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

html[data-bs-theme="dark"] .text-dark,
html[data-bs-theme="dark"] .text-brand-price,
html[data-bs-theme="dark"] .details-modern-page .text-brand-price,
html[data-bs-theme="dark"] .details-modern-page span.text-brand-price,
html[data-bs-theme="dark"] .details-price-meta-item,
html[data-bs-theme="dark"] .details-price-meta-item span {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .details-price-cap,
html[data-bs-theme="dark"] .details-price-amount small {
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .details-modern-page .details-price-ppm {
    color: var(--aqar-text-muted) !important;
}

html[data-bs-theme="dark"] .details-modern-page .details-price-divider {
    background-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .details-modern-page .details-price-meta,
html[data-bs-theme="dark"] .details-modern-page .details-price-meta-item,
html[data-bs-theme="dark"] .details-modern-page .details-price-meta-item span,
html[data-bs-theme="dark"] .details-modern-page .details-price-note {
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .details-modern-page .details-price-meta-item i {
    color: #f1b72f !important;
}

html[data-bs-theme="dark"] .details-modern-page .details-price-note {
    border-color: var(--aqar-border) !important;
}

html[data-bs-theme="dark"] .details-modern-page .details-related-tabs .nav-link {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text-muted) !important;
    border-color: var(--aqar-border) !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .details-modern-page .details-related-tabs .nav-link:hover {
    background-color: var(--aqar-surface-muted) !important;
    color: var(--aqar-text) !important;
    border-color: rgba(239, 170, 16, .34) !important;
}

html[data-bs-theme="dark"] .details-modern-page .details-related-tabs .nav-link.active {
    background-color: var(--brand-gold) !important;
    color: #111416 !important;
    border-color: var(--brand-gold) !important;
}

html[data-bs-theme="dark"] .details-modern-page .details-related-tabs .nav-link .badge {
    background-color: #111619 !important;
    color: var(--aqar-text) !important;
    border: 1px solid var(--aqar-border);
}

html[data-bs-theme="dark"] .details-modern-page .details-related-tabs .nav-link.active .badge {
    background-color: rgba(17, 20, 22, .88) !important;
    color: #fff !important;
    border-color: transparent !important;
}

html[data-bs-theme="dark"] .details-modern-page .details-browse-chip {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .details-modern-page .details-browse-chip:hover {
    background-color: var(--aqar-surface-muted) !important;
    color: #f1b72f !important;
    border-color: rgba(239, 170, 16, .38) !important;
}

html[data-bs-theme="dark"] #map,
html[data-bs-theme="dark"] #map > div,
html[data-bs-theme="dark"] #map .gm-style {
    background-color: #182024 !important;
}

/* Calculator focus should not flash white in dark mode. */
html[data-bs-theme="dark"] .price-input:focus,
html[data-bs-theme="dark"] #calcModeCards,
html[data-bs-theme="dark"] .btn-outline-custom:hover {
    background-color: var(--aqar-surface-soft) !important;
    color: var(--aqar-text) !important;
    border-color: var(--aqar-border) !important;
}

@media (prefers-reduced-motion: reduce) {
    body,
    .aqar-main-navbar,
    .aqar-footer,
    .card,
    .dropdown-menu,
    .offcanvas,
    .modal-content,
    .form-control,
    .form-select {
        transition: none !important;
    }
}
/* Shared update counter in the account trigger and menu. */
.aqar-update-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 1px solid rgba(230, 164, 20, 0.5);
    border-radius: 999px;
    background: rgba(230, 164, 20, 0.12);
    color: #8d6200;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.aqar-update-count--trigger {
    margin-inline-start: 0.35rem;
    margin-inline-end: 0.05rem;
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.aqar-update-count--menu {
    margin-inline-start: 0.75rem;
}

html[data-bs-theme="dark"] .aqar-update-count {
    border-color: rgba(239, 170, 16, 0.55);
    background: rgba(239, 170, 16, 0.13);
    color: #f2bd42;
}

html[data-bs-theme="dark"] .aqar-update-count--trigger {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.aqar-notification-trigger {
    position: relative;
}

.aqar-notification-badge {
    position: absolute;
    top: -5px;
    inset-inline-start: -5px;
    min-width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #b77d00;
    font-size: .65rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.aqar-notification-menu {
    width: min(390px, calc(100vw - 24px));
    padding: 0;
    overflow: hidden;
    border: 1px solid #e1e4e6;
    border-radius: 8px;
    background: #fff;
}

.aqar-notification-header,
.aqar-notification-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
}

.aqar-notification-header {
    border-bottom: 1px solid #eceeef;
}

.aqar-notification-header strong {
    color: #20272b;
    font-size: .92rem;
}

.aqar-notification-header span {
    color: #8a650a;
    font-size: .72rem;
    font-weight: 700;
}

.aqar-notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.aqar-notification-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: #20272b;
    text-decoration: none;
    border-bottom: 1px solid #f0f1f2;
    transition: background-color .16s ease;
}

.aqar-notification-item:hover,
.aqar-notification-item:focus-visible {
    color: #20272b;
    background: #fff9eb;
}

.aqar-notification-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #a87300;
    background: #fff5da;
    border-radius: 50%;
}

.aqar-notification-content {
    min-width: 0;
}

.aqar-notification-content strong,
.aqar-notification-content small {
    display: block;
}

.aqar-notification-content strong {
    overflow: hidden;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.aqar-notification-content small,
.aqar-notification-item time {
    color: #777f84;
    font-size: .68rem;
}

.aqar-notification-item time {
    direction: ltr;
    white-space: nowrap;
}

.aqar-notification-empty {
    min-height: 125px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #777f84;
    font-size: .82rem;
}

.aqar-notification-empty i {
    color: #b2b7ba;
    font-size: 1.4rem;
}

.aqar-notification-footer {
    justify-content: center;
    color: #6f5100;
    background: #fafafa;
    border-top: 1px solid #eceeef;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.aqar-notification-footer:hover,
.aqar-notification-footer:focus-visible {
    color: #20272b;
    background: #fff7e3;
}

html[data-bs-theme="dark"] .aqar-notification-badge {
    border-color: var(--aqar-bg);
    color: #15181a;
    background: #efaa10;
}

html[data-bs-theme="dark"] .aqar-notification-menu {
    color: var(--aqar-text);
    background: var(--aqar-surface);
    border-color: var(--aqar-border);
}

html[data-bs-theme="dark"] .aqar-notification-header,
html[data-bs-theme="dark"] .aqar-notification-item,
html[data-bs-theme="dark"] .aqar-notification-footer {
    border-color: var(--aqar-border);
}

html[data-bs-theme="dark"] .aqar-notification-header strong,
html[data-bs-theme="dark"] .aqar-notification-item,
html[data-bs-theme="dark"] .aqar-notification-item:hover,
html[data-bs-theme="dark"] .aqar-notification-item:focus-visible {
    color: var(--aqar-text);
}

html[data-bs-theme="dark"] .aqar-notification-header span,
html[data-bs-theme="dark"] .aqar-notification-icon {
    color: #efbd4f;
}

html[data-bs-theme="dark"] .aqar-notification-icon {
    background: rgba(239, 170, 16, .12);
}

html[data-bs-theme="dark"] .aqar-notification-item:hover,
html[data-bs-theme="dark"] .aqar-notification-item:focus-visible,
html[data-bs-theme="dark"] .aqar-notification-footer {
    background: var(--aqar-surface-soft);
}

html[data-bs-theme="dark"] .aqar-notification-content small,
html[data-bs-theme="dark"] .aqar-notification-item time,
html[data-bs-theme="dark"] .aqar-notification-empty {
    color: var(--aqar-text-muted);
}

html[data-bs-theme="dark"] .aqar-notification-footer,
html[data-bs-theme="dark"] .aqar-notification-footer:hover,
html[data-bs-theme="dark"] .aqar-notification-footer:focus-visible {
    color: #efbd4f;
}

/* Keep every results pager aligned with the Arabic reading direction. */
.pagination,
.custom-pagination,
.table-pager {
    direction: rtl !important;
}

.pagination .page-link .fa-angle-left,
.pagination .page-link .fa-angle-right,
.pagination .page-link .fa-angles-left,
.pagination .page-link .fa-angles-right,
.table-pager .pg-btn .fa-angle-left,
.table-pager .pg-btn .fa-angle-right,
.table-pager .pg-btn .fa-angles-left,
.table-pager .pg-btn .fa-angles-right {
    transform: none;
}

/* Keep pager arrows visible even when a page loads before the icon font. */
.pagination .page-link :is(.fa-angle-left, .fa-angle-right, .fa-angles-left, .fa-angles-right),
.table-pager .pg-btn :is(.fa-angle-left, .fa-angle-right, .fa-angles-left, .fa-angles-right) {
    align-items: center;
    display: inline-flex !important;
    font-family: Arial, sans-serif !important;
    font-size: 1rem !important;
    font-style: normal;
    font-weight: 700 !important;
    justify-content: center;
    line-height: 1;
}

.pagination .page-link .fa-angle-left::before,
.table-pager .pg-btn .fa-angle-left::before {
    content: "‹" !important;
}

.pagination .page-link .fa-angle-right::before,
.table-pager .pg-btn .fa-angle-right::before {
    content: "›" !important;
}

.pagination .page-link .fa-angles-left::before,
.table-pager .pg-btn .fa-angles-left::before {
    content: "«" !important;
}

.pagination .page-link .fa-angles-right::before,
.table-pager .pg-btn .fa-angles-right::before {
    content: "»" !important;
}

/* Unified index pagination: mirrors the approved pager on the home page. */
.pagination {
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem !important;
    margin-bottom: 0;
    padding: 0;
}

.pagination .page-item {
    display: flex;
    margin: 0;
}

.pagination .page-link {
    align-items: center;
    background-color: #ffffff !important;
    border: 1px solid rgba(96, 99, 100, 0.15) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    color: var(--brand-gray) !important;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700 !important;
    height: 40px;
    justify-content: center;
    line-height: 1;
    min-width: 40px;
    padding: 0 !important;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    width: 40px;
}

.pagination .page-link:hover,
.pagination .page-link:focus-visible {
    background-color: var(--brand-gold-light) !important;
    border-color: var(--brand-gold) !important;
    box-shadow: none !important;
    color: var(--brand-gold) !important;
    outline: 0;
}

.pagination .page-item.active .page-link,
.pagination .page-link.active {
    background-color: var(--brand-gold) !important;
    border-color: var(--brand-gold) !important;
    box-shadow: 0 4px 10px rgba(230, 164, 20, 0.3) !important;
    color: #ffffff !important;
}

.pagination .page-item.disabled .page-link,
.pagination .page-link.disabled {
    background-color: #f8f9fa !important;
    border-color: #e9ecef !important;
    box-shadow: none !important;
    color: #adb5bd !important;
    pointer-events: none;
}

html[data-bs-theme="dark"] .pagination .page-link {
    background-color: var(--aqar-surface) !important;
    border-color: var(--aqar-border) !important;
    box-shadow: none !important;
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .pagination .page-link:hover,
html[data-bs-theme="dark"] .pagination .page-link:focus-visible {
    background-color: var(--aqar-surface-soft) !important;
    border-color: rgba(239, 170, 16, 0.56) !important;
    color: #efbd4f !important;
}

html[data-bs-theme="dark"] .pagination .page-item.active .page-link,
html[data-bs-theme="dark"] .pagination .page-link.active {
    background-color: var(--brand-gold) !important;
    border-color: var(--brand-gold) !important;
    box-shadow: none !important;
    color: #111416 !important;
}

html[data-bs-theme="dark"] .pagination .page-item.disabled .page-link,
html[data-bs-theme="dark"] .pagination .page-link.disabled {
    background-color: var(--aqar-surface-soft) !important;
    border-color: var(--aqar-border) !important;
    color: var(--aqar-text-muted) !important;
}

@media (max-width: 575.98px) {
    .aqar-notification-menu {
        position: fixed !important;
        top: var(--aqar-mobile-header-height, 76px) !important;
        right: 12px !important;
        left: 12px !important;
        width: auto;
        margin: 0 !important;
        transform: none !important;
    }
}

/* The staff quick search becomes a real page-sized workspace on phones. */
.aqar-quick-search {
    width: 550px;
    max-width: 100vw;
}

@media (min-width: 992px) {
    .aqar-quick-search {
        top: var(--aqar-header-height, 108px) !important;
        bottom: 0 !important;
        width: min(560px, calc(100vw - 24px)) !important;
        max-width: min(560px, calc(100vw - 24px)) !important;
        height: auto !important;
        border-radius: 0 !important;
        overflow: hidden;
    }

    .aqar-quick-search .offcanvas-header {
        flex: 0 0 auto;
        min-height: 58px;
        padding: 0.65rem 1rem;
    }

    .aqar-quick-search .offcanvas-title {
        font-size: 1.05rem;
    }

    .aqar-quick-search .offcanvas-body {
        min-height: 0;
        padding: 0.85rem 1rem 1rem !important;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scrollbar-gutter: stable;
    }

    .aqar-quick-search .row {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.7rem;
    }

    .aqar-quick-search .form-label {
        margin-bottom: 0.35rem !important;
        font-size: 0.84rem;
    }

    .aqar-quick-search .custom-input-group {
        min-height: 42px;
        padding-block: 0 !important;
    }

    .aqar-quick-search :is(.form-control, .form-select, .ts-control) {
        min-height: 40px !important;
        font-size: 0.9rem !important;
    }

    .aqar-quick-search hr {
        margin-block: 1rem !important;
    }

    .aqar-quick-search .d-grid {
        gap: 0.65rem !important;
    }

    .aqar-quick-search .d-grid > .btn {
        min-height: 42px;
        padding-block: 0.4rem !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 991.98px) {
    .aqar-quick-search {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .aqar-quick-search .offcanvas-header {
        min-height: var(--aqar-mobile-header-height, 76px);
        padding: 1rem 1.25rem;
    }

    .aqar-quick-search .offcanvas-body {
        padding: 1.25rem 1rem calc(2rem + env(safe-area-inset-bottom)) !important;
        overflow-y: auto;
    }

    .aqar-quick-search .row {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 1rem;
    }

    .aqar-quick-search .row > .col-md-6 {
        flex: 0 0 50%;
        width: 50%;
    }

    .aqar-quick-search .custom-input-group {
        min-height: 50px;
    }

    .aqar-quick-search .aqar-quick-search__desktop-field {
        display: none;
    }
}

/* Keep the phone search form easy to scan: one field per row. */
@media (max-width: 767.98px) {
    .aqar-quick-search .row > .col-md-6 {
        flex-basis: 100%;
        width: 100%;
    }
}

/* Home grid: keep an unselected favorite visually aligned with the share action in dark mode. */
html[data-bs-theme="dark"] .home-page-shell .grid-layout .fav-btn:not([aria-pressed="true"]),
html[data-bs-theme="dark"] .home-page-shell .grid-layout .fav-btn:not([aria-pressed="true"]):hover,
html[data-bs-theme="dark"] .home-page-shell .grid-layout .fav-btn:not([aria-pressed="true"]):focus-visible {
    background-color: var(--aqar-surface) !important;
    border-color: var(--aqar-border) !important;
    color: var(--aqar-text) !important;
}

html[data-bs-theme="dark"] .home-page-shell .grid-layout .fav-btn:not([aria-pressed="true"]) i,
html[data-bs-theme="dark"] .home-page-shell .grid-layout .fav-btn:not([aria-pressed="true"]):hover i,
html[data-bs-theme="dark"] .home-page-shell .grid-layout .fav-btn:not([aria-pressed="true"]):focus-visible i {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
}

/* Category chips: keep hover, pressed, focus and selected states visually consistent. */
.btn-category-chip {
    outline: 0 !important;
    transition: background-color 0.16s ease, border-color 0.16s ease,
                color 0.16s ease, box-shadow 0.16s ease !important;
}

.btn-category-chip:not(.active):focus {
    outline: 0 !important;
    box-shadow: none !important;
}

.btn-category-chip:not(.active):hover {
    color: #9a6a00 !important;
    background-color: #fffaf0 !important;
    border-color: rgba(230, 164, 20, 0.62) !important;
    box-shadow: 0 2px 7px rgba(21, 24, 27, 0.05) !important;
}

.btn-category-chip:not(.active):active {
    color: #111820 !important;
    background-color: rgba(230, 164, 20, 0.15) !important;
    border-color: rgba(230, 164, 20, 0.65) !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn-category-chip:focus-visible {
    outline: 2px solid rgba(230, 164, 20, 0.72) !important;
    outline-offset: 2px;
    box-shadow: none !important;
}

.btn-category-chip.active,
.btn-category-chip.active:hover,
.btn-category-chip.active:focus,
.btn-category-chip.active:active {
    color: #ffffff !important;
    background-color: var(--brand-gold) !important;
    border-color: var(--brand-gold) !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-bs-theme="dark"] .btn-category-chip:not(.active):active {
    color: var(--aqar-text) !important;
    background-color: rgba(239, 170, 16, 0.16) !important;
    border-color: rgba(239, 170, 16, 0.55) !important;
}
