/* ============================================================
   Aukro — тёмная тема (html.dark-theme)
   Подключается всегда; правила применяются только в тёмном режиме.
   ============================================================ */

/* ---------- Кнопка переключателя темы ---------- */
.aukro-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #dfe3e8;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    color: inherit;
    font: inherit;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}
.aukro-theme-toggle:hover { border-color: #b9c2cc; }
.aukro-theme-toggle .aukro-theme-icon { display: inline-flex; font-size: 17px; line-height: 1; }
.aukro-theme-icon-sun { display: none !important; }
.aukro-theme-label-to-light { display: none !important; }
.aukro-theme-toggle-mobile { padding: 7px 9px; }

/* ---------- Базовые цвета ---------- */
html.dark-theme {
    color-scheme: dark;
    --aukro-bg: #111418;
    --aukro-surface: #191d23;
    --aukro-surface-2: #20252e;
    --aukro-border: #2b323d;
    --aukro-text: #e8ebef;
    --aukro-muted: #9aa7b5;
}
html.dark-theme body {
    background-color: var(--aukro-bg) !important;
    color: var(--aukro-text) !important;
}
html.dark-theme ::selection { background: #ff5a5f; color: #fff; }
html.dark-theme ::-webkit-scrollbar { width: 10px; height: 10px; }
html.dark-theme ::-webkit-scrollbar-track { background: #14171c; }
html.dark-theme ::-webkit-scrollbar-thumb { background: #333b47; border-radius: 6px; }
html.dark-theme ::-webkit-scrollbar-thumb:hover { background: #424c5c; }

/* ---------- Тёмный вид кнопки переключателя ---------- */
html.dark-theme .aukro-theme-toggle {
    border-color: var(--aukro-border);
    background: var(--aukro-surface-2);
    color: var(--aukro-text);
}
html.dark-theme .aukro-theme-toggle:hover { border-color: #3d4655; }
html.dark-theme .aukro-theme-icon-sun { display: inline-flex !important; }
html.dark-theme .aukro-theme-icon-moon { display: none !important; }
html.dark-theme .aukro-theme-label-to-light { display: inline !important; }
html.dark-theme .aukro-theme-label-to-dark { display: none !important; }

/* ---------- Заголовки и основной текст ---------- */
html.dark-theme h1,
html.dark-theme h2,
html.dark-theme h3,
html.dark-theme h4,
html.dark-theme h5,
html.dark-theme h6,
html.dark-theme .h1title,
html.dark-theme .h1title a,
html.dark-theme .title-h2,
html.dark-theme .title-h3 {
    color: #f0f3f7 !important;
}
html.dark-theme .toolbar-dropdown-active,
html.dark-theme .toolbar-city-list a,
html.dark-theme .toolbar-category-list a,
html.dark-theme .toolbar-link,
html.dark-theme .toolbar-icon-list a,
html.dark-theme .item-grid-price-now,
html.dark-theme .item-grid-info .item-grid-info-price,
html.dark-theme .item-grid-info a,
html.dark-theme .item-grid-price-card,
html.dark-theme .item-title-card a,
html.dark-theme .btn-color-light,
html.dark-theme .btn-color-blue-light,
html.dark-theme .btn-color-white,
html.dark-theme .btn-color-transparent,
html.dark-theme .module-chat-dialog-prev span,
html.dark-theme .catalog-list-options ul li a,
html.dark-theme .main-search-results a,
html.dark-theme .main-search-results > span,
html.dark-theme .nav-pills .nav-link.active,
html.dark-theme .nav-pills a,
html.dark-theme .link-remind,
html.dark-theme .ads-image-item span,
html.dark-theme .module-chat-dialog-header-block-2,
html.dark-theme .module-chat-dialog-header-block-2 a,
html.dark-theme .color-light,
html.dark-theme .auth-login,
html.dark-theme .auth-phone,
html.dark-theme .dropdown-box-list-link a,
html.dark-theme .cities-lists a,
html.dark-theme .main-category-list-name,
html.dark-theme .uni-dropdown-content a,
html.dark-theme .user-menu-tab div,
html.dark-theme .user-menu-tab div.active,
html.dark-theme .user-menu-tab div:hover,
html.dark-theme .user-list-change,
html.dark-theme .item-list-title,
html.dark-theme .item-location,
html.dark-theme .text-dark {
    color: var(--aukro-text) !important;
}
html.dark-theme .item-grid-city,
html.dark-theme .item-grid-date,
html.dark-theme .item-date,
html.dark-theme .board-view-user-date,
html.dark-theme .text-muted,
html.dark-theme .text-black-50,
html.dark-theme small {
    color: var(--aukro-muted) !important;
}
/* инлайн-цвет фирменного тёмно-бирюзового текста в шаблонах */
html.dark-theme [style*="color:#002f34" i],
html.dark-theme [style*="color: #002f34" i],
html.dark-theme [style*="color:#001f22" i],
html.dark-theme [style*="color: #001f22" i] {
    color: var(--aukro-text) !important;
}

/* ---------- Поверхности: карточки, панели, шапка, подвал ---------- */
html.dark-theme .top-toolbar,
html.dark-theme .toolbar-dropdown-box,
html.dark-theme .beboss-head__drop-down-block,
html.dark-theme .item-grid-plug,
html.dark-theme .item-grid,
html.dark-theme .item-card,
html.dark-theme .item-list-container,
html.dark-theme .modal-custom,
html.dark-theme .modal-content,
html.dark-theme .textarea-custom,
html.dark-theme .filter-input > div,
html.dark-theme .main-search-results,
html.dark-theme .custom-results,
html.dark-theme .ads-blog-articles > div,
html.dark-theme .ads-services-tariffs,
html.dark-theme .module-chat,
html.dark-theme .module-chat-dialog-header,
html.dark-theme .chat-options-list,
html.dark-theme .tab-content,
html.dark-theme .uni-dropdown-content,
html.dark-theme .user-mobile-menu,
html.dark-theme .mobile-filter,
html.dark-theme .create-info-f,
html.dark-theme .create-info-price,
html.dark-theme .create-info-white,
html.dark-theme .create-info-blue,
html.dark-theme .user-review-item,
html.dark-theme .catalog-button-city-option,
html.dark-theme .catalog-action-options,
html.dark-theme .bg-container-shadow,
html.dark-theme .board-view-price-currency,
html.dark-theme .block-cookies,
html.dark-theme .header-wow-top,
html.dark-theme .header-wow-sticky,
html.dark-theme .header-wow-sticky-container,
html.dark-theme .header-wow-sticky-mobile,
html.dark-theme .header-wow-mobile-top,
html.dark-theme .header-wow-mobile-category,
html.dark-theme .sticky-search-geo-list,
html.dark-theme .sticky-search-geo-results,
html.dark-theme .sticky-search-geo-area-list,
html.dark-theme .floating-menu-ad,
html.dark-theme .floating-menu-box,
html.dark-theme .catalog-filters-top,
html.dark-theme .catalog-filters-top-more-filters-items,
html.dark-theme .sidebar-cart,
html.dark-theme .header-big-menu,
html.dark-theme .mobile-fixed-menu,
html.dark-theme .mobile-fixed-menu-content-bg-white,
html.dark-theme .ads-create-main-data,
html.dark-theme .ads-create-subcategory-prev,
html.dark-theme .ads-create-main-data-price-variant,
html.dark-theme .ads-create-main-data-user-options,
html.dark-theme .ads-update-category-list,
html.dark-theme .map-search-controls-top > div,
html.dark-theme .map-search-offer,
html.dark-theme .promo-menu-control,
html.dark-theme .promo-controls,
html.dark-theme .card,
html.dark-theme .footer-bg,
html.dark-theme footer,
html.dark-theme .bg-white,
html.dark-theme .bg-light {
    background-color: var(--aukro-surface) !important;
    border-color: var(--aukro-border) !important;
    color: var(--aukro-text) !important;
}
html.dark-theme .header-big-menu .col-lg-9,
html.dark-theme .header-big-menu .col-lg-3 {
    background-color: var(--aukro-surface) !important;
}
html.dark-theme .item-grid-img {
    background-color: #232830 !important;
}
html.dark-theme .header-wow-top {
    border-bottom-color: var(--aukro-border) !important;
}
/* логотип — на белой подложке, чтобы не терялся на тёмной шапке */
html.dark-theme .h-logo img:not(.load-mobile-logo) {
    background: #fff;
    border-radius: 8px;
    padding: 2px 6px;
}
html.dark-theme .h-logo img.load-mobile-logo {
    background: transparent;
    padding: 0;
}
/* гео-сегмент в поиске шапки */
html.dark-theme .sticky-search-control-geo {
    background-color: var(--aukro-surface-2) !important;
    border-color: var(--aukro-border) !important;
}
html.dark-theme .sticky-search-control-geo-name {
    color: var(--aukro-text) !important;
}

/* ---------- Формы ---------- */
html.dark-theme input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html.dark-theme select,
html.dark-theme textarea,
html.dark-theme .form-control,
html.dark-theme .uni-dropdown-name,
html.dark-theme .input-dropdown-name-display {
    background-color: #14181e !important;
    border-color: #303844 !important;
    color: var(--aukro-text) !important;
}
html.dark-theme input::placeholder,
html.dark-theme textarea::placeholder {
    color: #7e8b9b !important;
}
html.dark-theme .input-group-text {
    background-color: var(--aukro-surface-2) !important;
    border-color: #303844 !important;
    color: var(--aukro-muted) !important;
}
html.dark-theme label,
html.dark-theme .form-control-label {
    color: var(--aukro-text);
}
html.dark-theme input[type="checkbox"],
html.dark-theme input[type="radio"] {
    accent-color: #009688;
}

/* ---------- Кнопки светлых стилей ---------- */
html.dark-theme .btn-white,
html.dark-theme .btn-light,
html.dark-theme .btn-color-white {
    background-color: var(--aukro-surface-2) !important;
    border-color: var(--aukro-border) !important;
    color: var(--aukro-text) !important;
}

/* ---------- Выпадающие меню, подсказки, таблицы, пагинация ---------- */
html.dark-theme .dropdown-menu {
    background-color: var(--aukro-surface) !important;
    border-color: var(--aukro-border) !important;
}
html.dark-theme .dropdown-item { color: var(--aukro-text) !important; }
html.dark-theme .dropdown-item:hover,
html.dark-theme .dropdown-item:focus {
    background-color: #242b35 !important;
    color: #fff !important;
}
html.dark-theme .uni-dropdown-content a:hover,
html.dark-theme .toolbar-city-list a:hover,
html.dark-theme .toolbar-category-list a:hover {
    background-color: #242b35 !important;
}
html.dark-theme .table { color: var(--aukro-text) !important; }
html.dark-theme .table th,
html.dark-theme .table td { border-color: var(--aukro-border) !important; }
html.dark-theme .table-striped tbody tr:nth-of-type(odd) { background-color: #171b21 !important; }
html.dark-theme .table-hover tbody tr:hover { background-color: #20252e !important; }
html.dark-theme .page-link {
    background-color: var(--aukro-surface) !important;
    border-color: var(--aukro-border) !important;
    color: var(--aukro-text) !important;
}
html.dark-theme .page-item.active .page-link {
    background-color: #009688 !important;
    border-color: #009688 !important;
    color: #fff !important;
}
html.dark-theme .page-item.disabled .page-link { color: #5f6b7a !important; }
html.dark-theme .list-group-item {
    background-color: var(--aukro-surface) !important;
    border-color: var(--aukro-border) !important;
    color: var(--aukro-text) !important;
}
html.dark-theme .nav-tabs { border-color: var(--aukro-border) !important; }
html.dark-theme .nav-tabs .nav-link { color: var(--aukro-muted) !important; }
html.dark-theme .nav-tabs .nav-link.active {
    background-color: var(--aukro-surface) !important;
    border-color: var(--aukro-border) !important;
    color: var(--aukro-text) !important;
}
html.dark-theme .breadcrumb-item.active { color: var(--aukro-muted) !important; }
html.dark-theme .alert-light {
    background-color: var(--aukro-surface-2) !important;
    border-color: var(--aukro-border) !important;
    color: var(--aukro-text) !important;
}

/* ---------- Чипсы категорий и бейджи фильтров ---------- */
html.dark-theme .category-badge {
    background-color: var(--aukro-surface-2) !important;
    border-color: var(--aukro-border) !important;
    color: var(--aukro-text) !important;
}
html.dark-theme .category-name { color: var(--aukro-text) !important; }

/* ---------- Чат ---------- */
html.dark-theme .module-chat-users > div,
html.dark-theme .module-chat-dialog-footer textarea {
    background-color: var(--aukro-surface) !important;
    border-color: var(--aukro-border) !important;
}
html.dark-theme .chat-options-list li:hover { background-color: #242b35 !important; }

/* ---------- Блок услуг при подаче и модалка оплаты ---------- */
html.dark-theme .ads-create-services {
    background-color: var(--aukro-surface) !important;
    border-color: var(--aukro-border) !important;
    color: var(--aukro-text) !important;
    box-shadow: none !important;
}
html.dark-theme .ads-create-services .ads-create-subtitle,
html.dark-theme .ads-create-services .ads-create-service-card h5 {
    color: #f0f3f7 !important;
}
html.dark-theme .ads-create-services .ads-create-service-card {
    background-color: var(--aukro-surface-2) !important;
    border-color: var(--aukro-border) !important;
}
html.dark-theme .ads-create-services .ads-create-service-card p,
html.dark-theme .ads-create-services .ads-create-services-note {
    color: var(--aukro-muted) !important;
}
html.dark-theme .ads-create-services .ads-create-service-card > strong,
html.dark-theme .ads-create-services-total-sum {
    color: #f0f3f7 !important;
}
html.dark-theme .ads-create-services-total {
    background-color: var(--aukro-surface-2) !important;
    border-color: var(--aukro-border) !important;
    color: var(--aukro-text) !important;
}
html.dark-theme .ads-create-services-pay-modal .ads-create-pay-dialog {
    background-color: var(--aukro-surface) !important;
    color: var(--aukro-text) !important;
}
html.dark-theme .ads-create-services-pay-modal .ads-create-pay-dialog h4 {
    color: #f0f3f7 !important;
}
html.dark-theme .ads-create-pay-sum {
    background-color: var(--aukro-surface-2) !important;
    border-color: var(--aukro-border) !important;
}
html.dark-theme .ads-create-services-pay-modal .user-balance-payment > div {
    background-color: var(--aukro-surface-2) !important;
    border-color: var(--aukro-border) !important;
}

/* ---------- Редакторы и графики ---------- */
html.dark-theme .note-editor,
html.dark-theme .note-editable,
html.dark-theme .medium-editor-element {
    background-color: #14181e !important;
    color: var(--aukro-text) !important;
}
html.dark-theme .note-toolbar {
    background-color: var(--aukro-surface-2) !important;
    border-color: var(--aukro-border) !important;
}
html.dark-theme .apexcharts-text,
html.dark-theme .apexcharts-title-text,
html.dark-theme .apexcharts-legend-text {
    fill: #dbe2ea !important;
    color: #dbe2ea !important;
}
html.dark-theme .apexcharts-gridline { stroke: #2b323d !important; }
html.dark-theme .apexcharts-tooltip {
    background-color: var(--aukro-surface-2) !important;
    border-color: var(--aukro-border) !important;
    color: var(--aukro-text) !important;
}

/* ---------- Подвал ---------- */
html.dark-theme .footer-list-text,
html.dark-theme .footer-bg a {
    color: var(--aukro-muted) !important;
}
html.dark-theme .footer-bg a:hover { color: #fff !important; }

/* ---------- Карточка объявления и служебные панели ---------- */
html.dark-theme .block-card,
html.dark-theme .ad-infra-group,
html.dark-theme .cookie-banner {
    background-color: var(--aukro-surface) !important;
    border-color: var(--aukro-border) !important;
    color: var(--aukro-text) !important;
}
html.dark-theme [style*="background: #f2f2f2" i],
html.dark-theme [style*="background:#f2f2f2" i] {
    background-color: #1c2027 !important;
}

/* ---------- Панели каталога и объявления (раунд 2) ---------- */
html.dark-theme .sidebar-filter,
html.dark-theme .ad-nearby-places {
    background-color: var(--aukro-surface) !important;
    border-color: var(--aukro-border) !important;
    color: var(--aukro-text) !important;
}
html.dark-theme .block-card-right-auth {
    background-color: #1d3b57 !important;
    border-color: #2b4d6e !important;
    color: #e8f2fb !important;
}
html.dark-theme .board-view-price {
    background-color: var(--aukro-surface-2) !important;
    border-color: var(--aukro-border) !important;
    color: #f0f3f7 !important;
}
html.dark-theme [style*="background:#fff" i],
html.dark-theme [style*="background: #fff" i],
html.dark-theme [style*="background-color:#fff" i],
html.dark-theme [style*="background-color: #fff" i] {
    background-color: var(--aukro-surface) !important;
}
html.dark-theme .sidebar-filter label { color: var(--aukro-text) !important; }
html.dark-theme .header-wow-top-list a { color: var(--aukro-muted) !important; }
html.dark-theme .header-wow-top-lang-name { color: var(--aukro-text) !important; }
html.dark-theme .header-wow-top-lang-name span[style*="color: #000"] { color: var(--aukro-text) !important; }
html.dark-theme .css-wesaq23-text { color: var(--aukro-text) !important; }
html.dark-theme .item-list-city-name { color: var(--aukro-text) !important; }
html.dark-theme .submenu-title { color: var(--aukro-text) !important; }
html.dark-theme .submenu-item { color: var(--aukro-muted) !important; }
html.dark-theme .ad-view-title-info-label { color: var(--aukro-muted) !important; }
html.dark-theme .ad-nearby-label,
html.dark-theme .ad-infra-group-title,
html.dark-theme .ad-infra-name { color: var(--aukro-text) !important; }
html.dark-theme .ad-nearby-time { color: var(--aukro-muted) !important; }
html.dark-theme .css-324215 { color: var(--aukro-muted) !important; }
html.dark-theme .board-view-button .btn-custom {
    background-color: var(--aukro-surface-2) !important;
    border-color: var(--aukro-border) !important;
    color: #f0f3f7 !important;
}

/* ---------- Точечные исправления объявления и каталога (раунд 3) ---------- */
html.dark-theme .css-wesaq23 {
    background-color: var(--aukro-surface-2) !important;
    border-color: var(--aukro-border) !important;
    color: var(--aukro-text) !important;
}
html.dark-theme .board-view-button .btn-custom span { color: #f0f3f7 !important; }
html.dark-theme .css-asr34tg {
    background-color: var(--aukro-surface-2) !important;
    border-color: var(--aukro-border) !important;
    color: var(--aukro-text) !important;
}
html.dark-theme .css-asr34tg * { color: var(--aukro-text) !important; }
html.dark-theme .css-efw7665 {
    background-color: var(--aukro-surface) !important;
    border-color: var(--aukro-border) !important;
}
html.dark-theme .css-efw7665 * { color: var(--aukro-text) !important; }
html.dark-theme .css-efw7665 .vw-dynprops-item-attr { color: var(--aukro-muted) !important; }
html.dark-theme .css-szrfjb a { color: var(--aukro-text) !important; }
html.dark-theme [style*="background: #f5f5f5" i],
html.dark-theme [style*="background-color: #f5f5f5" i],
html.dark-theme [style*="background:#f5f5f5" i] {
    background-color: var(--aukro-surface) !important;
}

/* ---------- SVG-иконки: тёмные штрихи и заливки -> светлые ---------- */
html.dark-theme [stroke="#002F34" i],
html.dark-theme [stroke="#001F22" i],
html.dark-theme [stroke="#000" i],
html.dark-theme [stroke="#000000" i],
html.dark-theme [stroke="#363636" i],
html.dark-theme [stroke="#616161" i],
html.dark-theme [stroke="#696969" i],
html.dark-theme [stroke="#333" i],
html.dark-theme [stroke="#333333" i],
html.dark-theme [stroke="#212529" i],
html.dark-theme [stroke="#343a40" i],
html.dark-theme [stroke="#495057" i] {
    stroke: #dfe6ee !important;
}
html.dark-theme [fill="#002F34" i],
html.dark-theme [fill="#001F22" i],
html.dark-theme [fill="#000" i],
html.dark-theme [fill="#000000" i],
html.dark-theme [fill="#363636" i],
html.dark-theme [fill="#616161" i],
html.dark-theme [fill="#696969" i],
html.dark-theme [fill="#333" i],
html.dark-theme [fill="#333333" i],
html.dark-theme [fill="#212529" i],
html.dark-theme [fill="#343a40" i],
html.dark-theme [fill="#495057" i] {
    fill: #dfe6ee !important;
}
html.dark-theme [style*="stroke:#002f34" i],
html.dark-theme [style*="stroke: #002f34" i],
html.dark-theme [style*="stroke:#000" i],
html.dark-theme [style*="stroke: #000" i] {
    stroke: #dfe6ee !important;
}
html.dark-theme [style*="fill:#002f34" i],
html.dark-theme [style*="fill: #002f34" i],
html.dark-theme [style*="fill:#000" i],
html.dark-theme [style*="fill: #000" i] {
    fill: #dfe6ee !important;
}

/* ---------- Tippy-подсказки фильтров на фото оставляем как есть ---------- */
