/* BETICONSULT — Walnut & Antique Gold | PHPRunner 11.3
   Общ файл. За трите страници с body класове виж инструкциите.
   Запазени са оригиналните размери и анимации. */

:root {
    --theme-menu-top: #503d2e;
    --theme-menu-middle: #35271d;
    --theme-menu-bottom: #211810;
    --theme-page-bg: #e9dfcb;
    --theme-surface: #fffaf0;
    --theme-gold: #c2a16b;
    --theme-text: #000000;
    --theme-menu-text: #f4e7cc;
    --theme-bronze: #a8844f;
    --theme-bronze-dark: #765634;
    --theme-border: #d8c3a0;
    --theme-border-dark: #8f7048;
    --theme-border-bottom: #463f38;
    --theme-row-even: #e6d6bc;
    --theme-row-hover: #f0e1c7;
    --theme-soft: #f5ecdc;
    --theme-muted: #6c5847;
    --theme-photo-gold: #d5b57b;
    --theme-photo-white: #fffaf0;
    --theme-focus: rgba(168,132,79,.30);
    --theme-login-surface: rgba(255,250,240,.90);
    --theme-photo-hover: rgba(53,39,29,.65);
    --theme-menu-button-top: #5f5852;
    --theme-menu-button-middle: #3a322b;
    --theme-menu-button-bottom: #211810;
 }

body:not(.function-login) {
    background-color: var(--theme-page-bg) !important;
    color: var(--theme-text);
}
.r-topheader .navbar.navbar-default {
    background: linear-gradient(180deg, var(--theme-menu-top), var(--theme-menu-middle), var(--theme-menu-bottom)) !important;
    border: none !important;
    border-bottom: 2px solid var(--theme-gold) !important;
    box-shadow: 0 3px 8px rgba(0,0,0,.25);
}
.r-topheader .navbar-brand { color: var(--theme-menu-text) !important; }

/* ===== РЕТРО МЕНЮ С ОТДЕЛНИ БУТОНИ ===== */

.navbar-nav > li {
    margin: 2px 2px !important;
}

/* Всеки бутон със собствена рамка */

.navbar-nav > li > a {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    padding: 7px 12px !important;
    background: linear-gradient(
        to bottom,
        var(--theme-menu-button-top) 0%,
        var(--theme-menu-button-middle) 45%,
        var(--theme-menu-button-bottom) 100%
    ) !important;
    color: var(--theme-menu-text) !important;
    border: 1px solid var(--theme-border-bottom) !important;
    border-top-color: var(--theme-border) !important;
    border-left-color: var(--theme-border) !important;
    border-radius: 2px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.20),
        0 1px 2px rgba(0,0,0,0.25) !important;
}

/* При посочване с мишката */

.navbar-nav > li > a:hover {
    background: linear-gradient(
        to bottom,
        var(--theme-bronze),
        var(--theme-bronze-dark)
    ) !important;
    border-color: var(--theme-border-dark) !important;
    color: var(--theme-menu-text) !important;
}

/* Активен бутон */

.navbar-nav > .active > a,
.navbar-nav > .active > a:hover,
.navbar-nav > .active > a:focus {
    background: linear-gradient(
        to bottom,
        var(--theme-bronze),
        var(--theme-bronze-dark)
    ) !important;
    border: 1px solid var(--theme-border-dark) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.30) !important;
    color: var(--theme-menu-text) !important;
}

/* ===== РЕТРО ПАНЕЛ ЗА ТЪРСЕНЕ ===== */

/* Основен панел */

[data-itemtype="search_panel"],
.r-search-panel {
    background: linear-gradient(
        to bottom,
        var(--theme-soft) 0%,
        var(--theme-row-even) 45%,
        var(--theme-gold) 100%
    ) !important;
    border: 1px solid var(--theme-border-dark) !important;
    border-radius: 3px !important;
    padding: 6px !important;
}

/* Горна лента на търсенето */

[data-itemtype="search_panel"] .panel-heading,
.r-search-panel .panel-heading {
    background: linear-gradient(
        to bottom,
        var(--theme-bronze),
        var(--theme-bronze-dark)
    ) !important;
    color: var(--theme-menu-text) !important;
    border: 1px solid var(--theme-border-dark) !important;
}

/* Надписи на полетата */

[data-itemtype="search_panel"] label,
.r-search-panel label {
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    color: var(--theme-text) !important;
    text-shadow: none !important;
}

/* Полета за въвеждане */

[data-itemtype="search_panel"] .form-control,
.r-search-panel .form-control {
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    height: 27px !important;
    padding: 3px 6px !important;
    background: var(--theme-surface) !important;
    border: 1px solid var(--theme-border-dark) !important;
    border-radius: 2px !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.12) !important;
}

/* Разделители между полетата */

[data-itemtype="search_panel"] .form-group,
.r-search-panel .form-group {
    border-bottom: 1px dotted var(--theme-border-dark);
    padding-bottom: 7px !important;
    margin-bottom: 7px !important;
}

/* Бутони на панела */

[data-itemtype="search_panel"] .btn,
.r-search-panel .btn {
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    background: linear-gradient(
        to bottom,
        var(--theme-soft),
        var(--theme-row-even)
    ) !important;
    color: var(--theme-bronze-dark) !important;
    border: 1px solid var(--theme-border-dark) !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.20) !important;
}

/* Посочен бутон */

[data-itemtype="search_panel"] .btn:hover,
.r-search-panel .btn:hover {
    background: linear-gradient(
        to bottom,
        var(--theme-bronze),
        var(--theme-bronze-dark)
    ) !important;
    color: var(--theme-menu-text) !important;
}

/*tablicata*/

/* =========================================
   BETICONSULT - RETRO TABLE
   PHPRunner 11.3
   ========================================= */

/* Основна таблица */

.r-gridtable,
table[data-location="grid"],
table.table.rnr-gridtable {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: var(--theme-surface) !important;
}

/* Заглавия на колоните */

.r-gridtable thead th,
table[data-location="grid"] thead th,
.rnr-gridtable thead th {
    background: linear-gradient(
        to bottom,
        var(--theme-bronze) 0%,
        var(--theme-bronze) 50%,
        var(--theme-bronze-dark) 100%
    ) !important;
    color: var(--theme-menu-text) !important;
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    text-shadow: none !important;
    padding: 7px 5px !important;
    border-right: 1px solid var(--theme-surface) !important;
    border-bottom: 1px solid var(--theme-border-dark) !important;
    vertical-align: middle !important;
}

/* Линкове в заглавията - сортиране */

.r-gridtable thead th a,
table[data-location="grid"] thead th a {
    color: var(--theme-menu-text) !important;
    text-decoration: none !important;
}

.r-gridtable thead th a:hover,
table[data-location="grid"] thead th a:hover {
    color: var(--theme-menu-text) !important;
    text-decoration: underline !important;
}

/* Клетки на таблицата */

.r-gridtable tbody td,
table[data-location="grid"] tbody td,
.rnr-gridtable tbody td {
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    color: var(--theme-text) !important;
    padding: 6px 5px !important;
    border-right: 1px solid var(--theme-surface) !important;
    border-bottom: 1px solid var(--theme-surface) !important;
    vertical-align: top !important;
}

/* Нечетни редове */

.r-gridtable tbody tr:nth-child(odd) td,
table[data-location="grid"] tbody tr:nth-child(odd) td,
.rnr-gridtable tbody tr:nth-child(odd) td {
    background: var(--theme-soft) !important;
}

/* Четни редове */

.r-gridtable tbody tr:nth-child(even) td,
table[data-location="grid"] tbody tr:nth-child(even) td,
.rnr-gridtable tbody tr:nth-child(even) td {
    background: var(--theme-row-even) !important;
}

/* Посочен ред */

.r-gridtable tbody tr:hover td,
table[data-location="grid"] tbody tr:hover td,
.rnr-gridtable tbody tr:hover td {
    background: var(--theme-row-hover) !important;
}

/* Линкове в клетките */

.r-gridtable tbody td a,
table[data-location="grid"] tbody td a {
    color: var(--theme-bronze-dark) !important;
    text-decoration: none;
}

.r-gridtable tbody td a:hover,
table[data-location="grid"] tbody td a:hover {
    color: var(--theme-bronze) !important;
    text-decoration: underline;
}

/* Бутони в таблицата */

.r-gridtable tbody .btn,
table[data-location="grid"] tbody .btn {
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    padding: 4px 7px !important;
    border-radius: 0px !important;
    background: linear-gradient(
        to bottom,
        var(--theme-menu-top),
        var(--theme-menu-middle)
    ) !important;
    border: 1px solid var(--theme-menu-bottom) !important;
    color: var(--theme-menu-text) !important;
    text-shadow: none !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25),
                0 1px 2px rgba(0,0,0,.2) !important;
}

/* Бутон при hover */

.r-gridtable tbody .btn:hover,
table[data-location="grid"] tbody .btn:hover {
    background: linear-gradient(
        to bottom,
        var(--theme-bronze),
        var(--theme-bronze-dark)
    ) !important;
}

/* По-компактни изображения */

.r-gridtable tbody img,
table[data-location="grid"] tbody img {
    border: 1px solid var(--theme-border);
    padding: 2px;
    background: var(--theme-surface);
}

/* Без заобляне на клетките */

.r-gridtable td,
.r-gridtable th {
    border-radius: 0 !important;
}

/* Компактен бутон "Добави нова оферта" */

[data-itemtype="add"] .btn,
[data-itemtype="add"] a {
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    padding: 5px 10px !important;
    line-height: 16px !important;
    min-height: 0 !important;
}

/* Брой показани записи */

[data-itemtype="details_found"] {
    font-family: Arial, sans-serif !important;
    font-size: 11px !important;
    padding: 0 4px !important;
    line-height: 22px !important;
}

/* Падащо меню за брой записи */

[data-itemtype="page_size"] select,
[data-itemtype="recsperpage"] select {
    font-family: Arial, sans-serif !important;
    font-size: 11px !important;
    height: 25px !important;
    min-height: 25px !important;
    padding: 2px 5px !important;
    border-radius: 2px !important;
}

/*Показани записи Компактно разположение */

[data-itemtype="details_found"],
[data-itemtype="page_size"],
[data-itemtype="recsperpage"] {
    margin: 0 !important;
}

/* =====================================
   BETICONSULT RETRO - EDIT PAGE
   ===================================== */

/* Основен формуляр */

[data-page^="edit"],
.r-edit-form {
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
}

/* Редове на полетата */

.r-edit-form .r-integrated-field,
.r-edit-form .form-group {
    background: var(--theme-soft);
    border-bottom: 1px dotted var(--theme-border);
    padding: 5px 8px !important;
    margin-bottom: 2px !important;
}

/* Имена на полетата */

.r-edit-form label,
.r-edit-form .rnr-label {
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    color: var(--theme-text) !important;
    text-shadow: none !important;
}

/* Полета за въвеждане */

.r-edit-form .form-control,
.r-edit-form input[type="text"],
.r-edit-form select {
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    min-height: 27px !important;
    height: 27px;
    padding: 3px 6px !important;
    border: 1px solid var(--theme-border-dark) !important;
    border-radius: 2px !important;
    background: var(--theme-surface) !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.10);
}

/* Големи текстови полета*/

.r-edit-form textarea {
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    height: 140px;
    min-height: 75px !important;
    /*resize: vertical;*/
}

/* Фокус на поле */

.r-edit-form .form-control:focus {
    border-color: var(--theme-bronze-dark) !important;
    box-shadow: 0 0 3px var(--theme-focus);
}

/* Заглавия на секции */

.r-edit-form .panel-heading,
.r-edit-form .r-section-header {
    background: linear-gradient(
        to bottom,
        var(--theme-bronze),
        var(--theme-bronze-dark)
    ) !important;
    color: var(--theme-menu-text) !important;
    font-size: 12px !important;
    font-weight: bold !important;
}

/* Бутони във формуляра */

.r-edit-form .btn {
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    padding: 5px 12px !important;
    border-radius: 2px !important;
    border: 1px solid var(--theme-border-dark) !important;
    background: linear-gradient(
        to bottom,
        var(--theme-bronze),
        var(--theme-bronze-dark)
    ) !important;
    color: var(--theme-menu-text) !important;
    text-shadow: none !important;
}

/* ===== ВЪНШНА РАМКА EDIT И VIEW ===== */

.r-edit-form,
.r-view-form {
    border: 4px solid var(--theme-bronze-dark) !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.20),
        inset 0 1px 0 rgba(255,255,255,0.35) !important;
    padding: 8px !important;
    background: var(--theme-soft) !important;
}

/* ===== DETAILS TABLES - ОРЕХ И СТАРО ЗЛАТО ===== */

/* ===== DETAILS: ПРОЗРАЧНИ ЗАГЛАВИЯ ===== */

.panel.panel-primary > .panel-heading,
.panel.panel-primary > div.panel-heading,
.panel.panel-info > .panel-heading,
.panel.panel-info > div.panel-heading {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    min-height: 0 !important;
    padding: 3px 8px !important;
    line-height: 22px !important;
    color: var(--theme-text) !important;
}

/* Надписи Коментари и Оглед */

.panel.panel-primary > .panel-heading *,
.panel.panel-info > .panel-heading * {
    color: var(--theme-text) !important;
    text-shadow: none !important;
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
}

/* Бутони Добави коментар / Добави нов запис */

.panel.panel-primary > .panel-heading .btn,
.panel.panel-info > .panel-heading .btn {
    background: linear-gradient(
        to bottom,
        var(--theme-menu-top),
        var(--theme-menu-middle)
    ) !important;
    color: var(--theme-menu-text) !important;
    border: 1px solid var(--theme-menu-bottom) !important;
    border-radius: 2px !important;
    font-size: 11px !important;
    padding: 3px 7px !important;
    line-height: 16px !important;
}

/* Текст в бутоните */

.panel.panel-primary > .panel-heading .btn *,
.panel.panel-info > .panel-heading .btn * {
    color: var(--theme-menu-text) !important;
}

/* Рамка около Details таблиците */

.panel.panel-primary,
.panel.panel-info {
    border: 1px solid var(--theme-border-dark) !important;
}

/* Текстови полета */

.r-edit-form input.form-control,
.r-edit-form select.form-control {
    width: 100% !important;
    max-width: 180px !important;
    box-sizing: border-box;
}

/* Разстояние между бутоните на едит адд */

[data-itemtype="edit_save"] {
    margin-right: 15px !important;
    margin-bottom: 10px !important;
}

[data-itemtype="edit_back_list"] {
    margin-right: 15px !important;
    margin-bottom: 10px !important;
}

[data-itemtype="add_save"] {
    margin-right: 15px !important;
    margin-bottom: 10px !important;
}

[data-itemtype="add_back_list"] {
    margin-right: 15px !important;
    margin-bottom: 10px !important;
}

[data-itemtype="list_save"] {
    margin-right: 10px !important;
}


/* ==================== BROKER_DOSIETA_VIEW ==================== */
/* Put  your custom CSS code here */

/* Основна таблица */

body.theme-broker-dosieta-view #form_grid_1 {
    width: 750px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
}

/* Еднакъв фон и размер на текста */

body.theme-broker-dosieta-view #form_grid_1 td,
body.theme-broker-dosieta-view #form_grid_1 th,
body.theme-broker-dosieta-view #form_grid_1 .r-view-label,
body.theme-broker-dosieta-view #form_grid_1 .r-view-control,
body.theme-broker-dosieta-view #form_grid_1 .r-readonly-control {
    background-color: var(--theme-soft) !important;
    font-size: 19px !important;
    color: var(--theme-text) !important;
}

/* Клетки */

body.theme-broker-dosieta-view #form_grid_1 td {
    padding: 9px 12px !important;
    border-bottom: 1px solid var(--theme-border) !important;
}

/* Без редуване на цветове */

body.theme-broker-dosieta-view #form_grid_1 tr:nth-child(even) td,
body.theme-broker-dosieta-view #form_grid_1 tr:nth-child(odd) td,
body.theme-broker-dosieta-view #form_grid_1 tr:hover td {
    background-color: var(--theme-soft) !important;
}

/* Телефони */

@media screen and (max-width: 767px) {
    body.theme-broker-dosieta-view .r-small-page {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.theme-broker-dosieta-view #form_grid_1 {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.theme-broker-dosieta-view #form_grid_1 td {
        padding: 6px 5px !important;
        font-size: 14px !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    body.theme-broker-dosieta-view #form_grid_1 .r-view-label,
    body.theme-broker-dosieta-view #form_grid_1 .r-view-control,
    body.theme-broker-dosieta-view #form_grid_1 .r-readonly-control {
        font-size: 14px !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    body.theme-broker-dosieta-view #form_grid_1 img {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ==================== KLIENT_NAEMI1_CARDS ==================== */
/* ===================================
   BETICON - NAEMI3 CARDS
   =================================== */

/* Големи екрани - 4 карти */

body.theme-klient-naemi1-cards .r-grid-cards {
    width: 90% !important;
    max-width: none !important;
    margin: 20px auto !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

/* Нормални екрани - 3 карти */

@media (max-width: 1400px) {
    body.theme-klient-naemi1-cards .r-grid-cards {
        width: 85% !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 15px !important;
    }
}

/* Телефони - 2 карти */

@media (max-width: 767px) {
    body.theme-klient-naemi1-cards .r-grid-cards {
        width: 98% !important;
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}

/* Външен контейнер */

body.theme-klient-naemi1-cards .r-grid-cards .r-record-body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Самата карта */

body.theme-klient-naemi1-cards .r-grid-cards .r-record-body > .panel {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 11px !important;
    overflow: hidden !important;
    background-color: var(--theme-menu-bottom) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    box-shadow: none !important;
    cursor: pointer;
}

/* Скриваме стандартния header */

body.theme-klient-naemi1-cards .r-grid-cards .panel-heading {
    display: none !important;
}

/* Съдържание */

body.theme-klient-naemi1-cards .r-grid-cards .panel-body {
    position: static !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Таблицата с информацията */

body.theme-klient-naemi1-cards .r-grid-cards .panel-body > table {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    z-index: 3 !important;
}

/* Подреждане отдолу */

body.theme-klient-naemi1-cards .r-grid-cards .panel-body > table > tbody {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 8px 13px !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

/* Скриваме оригиналния ред със снимката.
   Снимката вече е фон на панела. */

body.theme-klient-naemi1-cards .r-grid-cards .panel-body > table > tbody > tr:first-child {
    display: none !important;
}

/* Редове с информация */

body.theme-klient-naemi1-cards .r-grid-cards .panel-body > table > tbody > tr:not(:first-child) {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Клетки */

body.theme-klient-naemi1-cards .r-grid-cards .panel-body > table > tbody > tr > td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    color: var(--theme-photo-white) !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

/* Номер и надпис Оферта */

body.theme-klient-naemi1-cards .r-grid-cards td[data-cellid="grid_cell_field1"] {
    font-family: Georgia, serif !important;
    font-size: 24px !important;
    font-weight: bold !important;
    color: var(--theme-photo-white) !important;
}

body.theme-klient-naemi1-cards .r-grid-cards td[data-cellid="grid_cell_field1"] * {
    color: var(--theme-photo-white) !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

/* Вид на имота и район */

body.theme-klient-naemi1-cards .r-grid-cards td[data-cellid="grid_cell_field2"],
body.theme-klient-naemi1-cards .r-grid-cards td[data-cellid="grid_cell_field3"] {
    font-family: Georgia, serif !important;
    font-size: 15px !important;
    color: var(--theme-photo-white) !important;
}

body.theme-klient-naemi1-cards .r-grid-cards td[data-cellid="grid_cell_field2"] *,
body.theme-klient-naemi1-cards .r-grid-cards td[data-cellid="grid_cell_field3"] * {
    color: var(--theme-photo-white) !important;
}

/* Цена и EUR */

body.theme-klient-naemi1-cards .r-grid-cards td[data-cellid="grid_cell_field4"] {
    font-family: Georgia, serif !important;
    font-size: 19px !important;
    font-weight: bold !important;
    color: var(--theme-photo-gold) !important;
    margin-top: 3px !important;
}

body.theme-klient-naemi1-cards .r-grid-cards td[data-cellid="grid_cell_field4"] * {
    color: var(--theme-photo-gold) !important;
}

/* Тъмен градиент зад надписите */

body.theme-klient-naemi1-cards .r-grid-cards .r-record-body > .panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.30) 35%,
        rgba(0,0,0,0.92) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Кафяв hover слой */

body.theme-klient-naemi1-cards .r-grid-cards .r-record-body > .panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--theme-photo-hover);
    opacity: 0;
    transition: opacity .55s ease;
    z-index: 2;
    pointer-events: none;
}

body.theme-klient-naemi1-cards .r-grid-cards .r-record-body > .panel:hover::before {
    opacity: 1;
}

/* Белият плюс */

body.theme-klient-naemi1-cards .r-grid-cards .panel-body::before,
body.theme-klient-naemi1-cards .r-grid-cards .panel-body::after {
    content: "";
    position: absolute;
    background: var(--theme-surface);
    z-index: 5;
    pointer-events: none;
    transition: all .65s ease;
}

/* Хоризонтална линия */

body.theme-klient-naemi1-cards .r-grid-cards .panel-body::before {
    top: 35px;
    right: 15px;
    width: 40px;
    height: 1px;
}

/* Вертикална линия */

body.theme-klient-naemi1-cards .r-grid-cards .panel-body::after {
    top: 15px;
    right: 35px;
    width: 1px;
    height: 60px;
}

/* Анимация при hover */

body.theme-klient-naemi1-cards .r-grid-cards .panel:hover .panel-body::before {
    width: 160px;
}

body.theme-klient-naemi1-cards .r-grid-cards .panel:hover .panel-body::after {
    height: 120px;
}

/* Плавно увеличение на снимката */

body.theme-klient-naemi1-cards .r-grid-cards .r-record-body > .panel {
    transition: background-size 0.4s ease;
}

/* Снимка като отделен слой */

body.theme-klient-naemi1-cards .r-grid-cards .property-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

/* Увеличаване само на снимката */

body.theme-klient-naemi1-cards .r-grid-cards .panel:hover .property-bg {
    transform: scale(1.08);
}


/* ==================== KLIENT_NAEMI1_LIST ==================== */
/* Put  your custom CSS code here */

/* ======================================
   ОСНОВНА ТАБЛИЦА
   ====================================== */

table[data-page="naemi3_list"][data-location="grid"] {
    width: 80% !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
}

/* ======================================
   ЛЯВА КЛЕТКА - СНИМКА
   ====================================== */

table[data-page="naemi3_list"][data-location="grid"] td[data-cellid="grid_cell_icons"] {
    position: relative !important;
    width: 260px !important;
    padding: 10px !important;
    background: var(--theme-surface) !important;
    vertical-align: top !important;
    text-align: left !important;
    border: none !important;
    box-sizing: border-box !important;
}

/* Контейнер на снимката */

table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="grid_field2"] {
    display: block !important;
    width: 240px !important;
    height: 150px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Реална снимка и No Photo */

table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="grid_field2"] img {
    display: block !important;
    width: 100% !important;
    height: 150px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="grid_field2"] a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* Вид на имота върху снимката */

table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="simple_grid_field1"] {
    position: absolute !important;
    top: 131px !important;
    left: 10px !important;
    z-index: 2 !important;
    background: var(--theme-menu-middle) !important;
    color: var(--theme-photo-white) !important;
    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 19px !important;
    padding: 5px 10px !important;
    border-radius: 0 4px 0 0 !important;
    margin: 0 !important;
}

/* ======================================
   ДЯСНА КЛЕТКА - ИНФОРМАЦИЯ
   ====================================== */

table[data-page="naemi3_list"][data-location="grid"] td[data-cellid="grid_cell_field"] {
    background: var(--theme-surface) !important;
    border: none !important;
    text-align: left !important;
    vertical-align: top !important;
    padding: 10px 15px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

/* Надпис Оферта и номер */

table[data-page="naemi3_list"][data-location="grid"] td[data-cellid="grid_cell_field"]
span[data-itemid="text"],
table[data-page="naemi3_list"][data-location="grid"] td[data-cellid="grid_cell_field"]
span[data-itemid="simple_grid_field"] {
    display: inline !important;
    font-size: 19px !important;
    font-weight: bold !important;
    color: var(--theme-bronze) !important;
    vertical-align: baseline !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Нов ред след номера на офертата */

table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="simple_grid_field"]::after {
    content: "";
    display: block;
    height: 8px;
}

/* Град и район */

table[data-page="naemi3_list"][data-location="grid"] td[data-cellid="grid_cell_field"]
span[data-itemid="text1"],
table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="simple_grid_field5"] {
    display: inline !important;
    font-size: 21px !important;
    font-weight: 600 !important;
    color: var(--theme-muted) !important;
    vertical-align: baseline !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Иконка за местоположение */

table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="text1"]::before {
    content: "";
    font-family: FontAwesome;
    color: var(--theme-bronze);
    margin-right: 6px;
}

/* Описание на имота */

table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="simple_grid_field4"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 15px !important;
    font-weight: normal !important;
    line-height: 1.5 !important;
    color: var(--theme-muted) !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
}

/* ======================================
   ДОЛНА ЛЕНТА С ЦЕНАТА
   ====================================== */

table[data-page="naemi3_list"][data-location="grid"] td[data-cellid="grid_cell_field1"] {
    background: linear-gradient(
        to bottom, var(--theme-menu-top), var(--theme-menu-bottom)
    ) !important;
    text-align: left !important;
    padding: 7px 15px !important;
    border: none !important;
    border-bottom: 12px solid var(--theme-page-bg) !important;
    color: var(--theme-menu-text) !important;
}

/* Надпис Цена и EUR */

table[data-page="naemi3_list"][data-location="grid"] td[data-cellid="grid_cell_field1"]
span[data-itemid="text2"],
table[data-page="naemi3_list"][data-location="grid"] td[data-cellid="grid_cell_field1"]
span[data-itemid="text3"] {
    display: inline !important;
    font-size: 18px !important;
    color: var(--theme-menu-text) !important;
    vertical-align: baseline !important;
}

/* Стойност на цената */

table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="simple_grid_field7"] {
    display: inline !important;
    font-size: 24px !important;
    font-weight: bold !important;
    color: var(--theme-photo-white) !important;
    vertical-align: baseline !important;
    margin: 0 5px !important;
}

/* Иконка пред цената */

table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="text2"]::before {
    content: "";
    font-family: FontAwesome;
    color: var(--theme-gold);
    margin-right: 8px;
}

/* ======================================
   RESPONSIVE - ТЕЛЕФОН
   ====================================== */

@media screen and (max-width: 767px) {
    table[data-page="naemi3_list"][data-location="grid"] td[data-cellid="grid_cell_icons"] {
        width: 130px !important;
        padding: 5px !important;
    }

    table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="grid_field2"] {
        width: 120px !important;
        height: 100px !important;
    }

    table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="grid_field2"] img {
        height: 100px !important;
    }

    table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="simple_grid_field1"] {
        top: 82px !important;
        left: 5px !important;
        font-size: 11px !important;
        line-height: 15px !important;
        padding: 4px 6px !important;
    }

    table[data-page="naemi3_list"][data-location="grid"] td[data-cellid="grid_cell_field"] {
        padding: 6px 8px !important;
    }

    table[data-page="naemi3_list"][data-location="grid"] td[data-cellid="grid_cell_field"]
    span[data-itemid="text"],
    table[data-page="naemi3_list"][data-location="grid"] td[data-cellid="grid_cell_field"]
    span[data-itemid="simple_grid_field"] {
        font-size: 16px !important;
    }

    table[data-page="naemi3_list"][data-location="grid"] td[data-cellid="grid_cell_field"]
    span[data-itemid="text1"],
    table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="simple_grid_field5"] {
        font-size: 17px !important;
    }

    table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="simple_grid_field4"] {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="simple_grid_field7"] {
        font-size: 21px !important;
    }
}

/* Бял фон на обявите */

table[data-page="naemi3_list"] tbody tr td[data-cellid="grid_cell_icons"],
table[data-page="naemi3_list"] tbody tr td[data-cellid="grid_cell_field"] {
    background: var(--theme-surface) !important;
    background-color: var(--theme-surface) !important;
    box-shadow: none !important;
    border: none !important;
}

/* Орехова лента с цената */

table[data-page="naemi3_list"] tbody tr td[data-cellid="grid_cell_field1"] {
    background: linear-gradient(180deg, var(--theme-menu-top), var(--theme-menu-bottom)) !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 12px solid var(--theme-page-bg) !important;
}

/* Иконка за местоположение */

table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="text1"]::before {
    content: "" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    color: var(--theme-bronze) !important;
    margin-right: 7px;
}

/* Иконка за цена */

table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="text2"]::before {
    content: "" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    color: var(--theme-gold) !important;
    margin-right: 8px;
}

/* Скриване на линка "Подробно ..." */

table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="simple_grid_field4"] a {
    display: inline !important;
    font-size: 0 !important;
}

table[data-page="naemi3_list"][data-location="grid"] span[data-itemid="simple_grid_field4"] a::after {
    content: "...";
    font-size: 15px !important;
    color: var(--theme-muted) !important;
}


/* ==================== LOGIN1 ==================== */
/* ==========================================
   BETICONSULT - LOGIN PAGE
   PHPRunner 11.3
   ========================================== */

/* Фон с град */

body.function-login {
    background: url("/add/images/beticon_city.jpg")
                left center / cover no-repeat fixed !important;
    min-height: 100vh !important;
    margin: 0 !important;
    font-family: Arial, sans-serif !important;
}

/* Центриране на формата */

body.function-login .r-panel-page {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    background: transparent !important;
}

/* Външен прозорец */

body.function-login .bs-pagepanel {
    width: 360px !important;
    max-width: 100% !important;
    margin: 0 !important;
    background: var(--theme-login-surface) !important;
    border: 5px solid var(--theme-bronze-dark) !important;
    border-radius: 3px !important;
    box-shadow: 0 5px 18px rgba(0,0,0,0.45) !important;
}

/* Заглавие */

body.function-login .bs-pagepanel > .panel-heading {
    background: linear-gradient(
        to bottom,
        var(--theme-menu-top),
        var(--theme-menu-middle)
    ) !important;
    border: none !important;
    padding: 7px 10px !important;
    text-align: left !important;
}

body.function-login h3[data-itemtype="login_header"] {
    color: var(--theme-menu-text) !important;
    font: bold 17px Arial, sans-serif !important;
    text-align: left !important;
}

/* Основно съдържание */

body.function-login .bs-pagepanel > .panel-body {
    padding: 12px !important;
    background: transparent !important;
}

/* Махаме старата дебела рамка и розовите клетки */

body.function-login table.r-edit-form {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.function-login table.r-edit-form td {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 5px !important;
}

/* Надписи */

body.function-login .r-edit-label {
    font: bold 12px Arial, sans-serif !important;
    color: var(--theme-text) !important;
    white-space: nowrap !important;
    padding: 4px 6px !important;
}

/* Полета */

body.function-login #username,
body.function-login #password {
    width: 100% !important;
    height: 29px !important;
    padding: 4px 6px !important;
    font: 12px Arial, sans-serif !important;
    background: var(--theme-surface) !important;
    border: 1px solid var(--theme-border-dark) !important;
    border-radius: 2px !important;
}

/* Запомни ме */

body.function-login .checkbox {
    margin: 4px 0 !important;
    font: 12px Arial, sans-serif !important;
}

/* Центриране на бутона */

body.function-login #form_footer_1 .row {
    display: flex !important;
    justify-content: center !important;
}

body.function-login #form_footer_1 [data-cellid="footer_c2"] {
    width: auto !important;
    float: none !important;
}

/* Бутон за вход */

body.function-login #submitLogin1 {
    background: linear-gradient(
        to bottom,
        var(--theme-menu-top),
        var(--theme-menu-middle)
    ) !important;
    color: var(--theme-menu-text) !important;
    font: bold 12px Arial, sans-serif !important;
    padding: 6px 20px !important;
    border: 1px solid var(--theme-menu-bottom) !important;
    border-radius: 2px !important;
    text-shadow: none !important;
}

body.function-login #submitLogin1:hover {
    background: linear-gradient(
        to bottom,
        var(--theme-bronze),
        var(--theme-bronze-dark)
    ) !important;
}


/* ==================== MENU1 ==================== */
body.theme-menu1 .property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 10px;
}

body.theme-menu1 .property-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: var(--theme-menu-bottom);
    text-decoration: none !important;
}

body.theme-menu1 .property-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

body.theme-menu1 .property-card:hover .property-photo {
    transform: scale(1.36);
}

body.theme-menu1 .property-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(
        transparent,
        rgba(0,0,0,.9)
    );
    pointer-events: none;
}

body.theme-menu1 .property-info {
    position: absolute;
    bottom: 12px;
    left: 15px;
    right: 10px;
    z-index: 2;
    line-height: 1.25;
}

body.theme-menu1 .property-title {
    color: var(--theme-photo-white);
    font-size: 24px;
    font-weight: bold;
}

body.theme-menu1 .property-type,
body.theme-menu1 .property-region {
    color: var(--theme-photo-white);
    font-size: 15px;
}

body.theme-menu1 .property-price {
    color: var(--theme-photo-gold);
    font-size: 17px;
    font-weight: bold;
    margin-top: 3px;
}

/* Знак плюс */

/* Кафяв фон при hover */

body.theme-menu1 .property-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--theme-photo-hover);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
    pointer-events: none;
}

body.theme-menu1 .property-card:hover::before {
    opacity: 1;
}

/* Плюс */

body.theme-menu1 .property-card .property-plus {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    z-index: 4;
    pointer-events: none;
}

/* Двете линии */

body.theme-menu1 .property-card .property-plus::before,
body.theme-menu1 .property-card .property-plus::after {
    content: "";
    position: absolute;
    background: var(--theme-surface);
    transition: all 0.55s ease;
}

/* Хоризонтална */

body.theme-menu1 .property-card .property-plus::before {
    width: 40px;
    height: 1px;
    right: 0;
    top: 20px;
}

/* Вертикална */

body.theme-menu1 .property-card .property-plus::after {
    width: 1px;
    height: 40px;
    right: 20px;
    top: 0;
}

/* Удължаване при hover */

body.theme-menu1 .property-card:hover .property-plus::before {
    width: 120px;
}

body.theme-menu1 .property-card:hover .property-plus::after {
    height: 120px;
}

/* Телефон - винаги 3 колони */

@media (max-width: 767px) {
    body.theme-menu1 .property-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding: 0 3px;
    }

    body.theme-menu1 .property-card {
        border-radius: 5px;
    }

    body.theme-menu1 .property-info {
        bottom: 5px;
        left: 5px;
        right: 3px;
    }

    body.theme-menu1 .property-title {
        font-size: 12px;
    }

    body.theme-menu1 .property-type,
    body.theme-menu1 .property-region {
        font-size: 10px;
    }

    body.theme-menu1 .property-price {
        font-size: 12px;
    }

    @media (max-width: 767px) {
        body.theme-menu1 .property-card .property-plus {
            top: 6px;
            right: 6px;
            transform: scale(0.5);
            transform-origin: top right;
        }
    }
}

/* Тъмен градиент зад надписите */

body.theme-menu1 .property-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.45) 35%,
        rgba(0, 0, 0, 0.95) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Надписите винаги над градиента */

body.theme-menu1 .property-card .property-info {
    position: absolute;
    z-index: 4;
}

/* Кафявият hover ефект */

body.theme-menu1 .property-card::before {
    z-index: 3;
}

/* Плюсът остава най-отгоре */

body.theme-menu1 .property-card .property-plus {
    z-index: 5;
}

/* Центриране и ширина 80% */

body.theme-menu1 .property-grid {
    width: 80% !important;
    max-width: none !important;
    margin: 20px auto !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* Мобилен изглед */

@media (max-width: 767px) {
    body.theme-menu1 .property-grid {
        width: 98% !important;
        gap: 6px;
    }
}

/* Центриране на долната таблица */

body.theme-menu1 #form_grid_1 {
    width: 100% !important;
    max-width: none !important;
    margin: 25px auto 15px !important;
}

/* Последните два реда - тъмни като менюто */

body.theme-menu1 #form_grid_1 > tbody > tr:nth-last-child(-n/**/+2) > td {
    background: linear-gradient(
        to bottom,
        var(--theme-menu-top) 0%,
        var(--theme-menu-middle) 55%,
        var(--theme-menu-middle) 100%
    ) !important;
    color: var(--theme-photo-white) !important;
}

/* Бял текст и линкове */

body.theme-menu1 #form_grid_1 > tbody > tr:nth-last-child(-n/**/+2) a,
body.theme-menu1 #form_grid_1 > tbody > tr:nth-last-child(-n/**/+2) p,
body.theme-menu1 #form_grid_1 > tbody > tr:nth-last-child(-n/**/+2) span {
    color: var(--theme-photo-white) !important;
}

/* Copyright - центриран */

body.theme-menu1 #form_grid_1 > tbody > tr:last-child > td {
    text-align: center !important;
    padding: 12px !important;
}

/* Телефон */

@media (max-width: 767px) {
    body.theme-menu1 #form_grid_1 {
        width: 98% !important;
    }
}

/* Премахване на всички рамки */

body.theme-menu1 #form_grid_1,
body.theme-menu1 #form_grid_1 > tbody > tr,
body.theme-menu1 #form_grid_1 > tbody > tr > td {
    border: none !important;
    box-shadow: none !important;
}

/* Премахване на разстоянията между клетките */

body.theme-menu1 #form_grid_1 {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}
/* ===== БЪРЗО ТЪРСЕНЕ В ГОРНОТО МЕНЮ ===== */

.r-topheader [data-itemid="simple_search"] .form-control {
    background: linear-gradient(
        180deg,
        #fffaf0 0%,
        #e9dfcb 100%
    ) !important;

    color: #38291f !important;
    border: 1px solid #c2a16b !important;
    border-radius: 3px !important;
    box-shadow: none !important;
}

/* Надпис "Търси" */
.r-topheader [data-itemid="simple_search"] input::placeholder {
    color: #78604c !important;
    opacity: 1 !important;
}

/* Бутон и иконка на лупата */
.r-topheader [data-itemid="simple_search"] .btn {
    background: #c2a16b !important;
    border: 1px solid #c2a16b !important;
    color: #35271d !important;
}

/* При активно поле */
.r-topheader [data-itemid="simple_search"] input:focus {
    background: #fffaf0 !important;
    border-color: #c2a16b !important;
    box-shadow: 0 0 5px rgba(194,161,107,0.5) !important;
}
/* ===== BETICONSULT - ЛОГО В МЕНЮТО ===== */

.r-topheader [data-itemid="logo"] {
    position: relative !important;
    display: flex !important;
    align-items: center;
    justify-content: center;

    min-width: 165px;
    min-height: 60px;

    isolation: isolate;
}

/* Прозрачно лого зад надписа */

.r-topheader [data-itemid="logo"]::before {
    content: "";
    position: absolute;
    inset: 3px 5px;

    background-image: url("/add/images/beti_logo_gold.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0.30;
    z-index: -1;
    pointer-events: none;

    transition: opacity .5s ease;
}

/* Надпис върху логото */

.r-topheader [data-itemid="logo"] .navbar-brand {
    position: relative;
    z-index: 1;

    background: transparent !important;
    color: #f4e7cc !important;

    font-family: Georgia, serif !important;
    font-size: 18px !important;
    font-weight: bold !important;

    text-shadow: 0 2px 4px #211810 !important;
}
/* Логото изпъква при посочване */

.r-topheader [data-itemid="logo"]:hover::before {
    opacity: 0.65;
}
/* Нормално състояние на надписа */

.r-topheader [data-itemid="logo"] .navbar-brand {
    opacity: 1 !important;
    color: #f4e7cc !important;

    transition:
        color .6s ease,
        text-shadow .6s ease !important;
}

/* Избледняване само на текста */

.r-topheader [data-itemid="logo"]:hover .navbar-brand {
    opacity: 1 !important;
    color: transparent !important;
    text-shadow: none !important;
}

/* Нормална видимост на логото */

.r-topheader [data-itemid="logo"]::before {
    opacity: 0.30 !important;
    transition: opacity .6s ease !important;
}

/* Пълна видимост на логото при hover */

.r-topheader [data-itemid="logo"]:hover::before {
    opacity: 1 !important;
}
/* ===== ТЪМЕН ТЕКСТ ВЪВ ВСИЧКИ ТАБЛИЦИ ===== */

.r-gridtable tbody td,
table[data-location="grid"] tbody td,
.rnr-gridtable tbody td {
    color: #38291f !important;
}

/* Текстове вътре в клетките */

.r-gridtable tbody td [data-itemtype="grid_field"],
table[data-location="grid"] tbody td [data-itemtype="grid_field"],
.rnr-gridtable tbody td [data-itemtype="grid_field"] {
    color: #38291f !important;
}

/* Заглавия на колоните - запазваме светлия текст */

.r-gridtable thead th,
.r-gridtable thead th a,
table[data-location="grid"] thead th,
table[data-location="grid"] thead th a {
    color: #f4e7cc !important;
}
/* ===== BETICONSULT CONTACT BUTTONS ===== */

.beticon-offer-contact {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #c2a16b;
    font-family: Arial, sans-serif;
    text-align: center;
}

.beticon-contact-title {
    font-family: Georgia, serif;
    font-size: 23px;
    color: #503d2e;
    margin-bottom: 20px;
}

/* Подреждане на бутоните */

.beticon-contact-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

/* Общ стил */

.beticon-contact-buttons a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 8px;
    border-radius: 6px;
    color: white !important;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none !important;
    transition: all .3s ease;
}

.beticon-contact-buttons i {
    font-size: 25px;
}

/* Цветове */

.contact-phone {
    background: #503d2e;
}

.contact-viber {
    background: #7360f2;
}

.contact-whatsapp {
    background: #218c4b;
}

.contact-messenger {
    background: #0866ff;
}

/* Hover */

.beticon-contact-buttons a:hover {
    transform: translateY(-4px);
    filter: brightness(1.15);
    box-shadow: 0 5px 12px rgba(0,0,0,.2);
}

/* Адрес */

.beticon-contact-address {
    margin-top: 20px;
    font-size: 15px;
    color: #78604c;
}

/* Мобилна версия */

@media (max-width: 767px) {

    .beticon-contact-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .beticon-contact-buttons a {
        font-size: 14px;
        padding: 12px 5px;
    }

    .beticon-contact-buttons i {
        font-size: 21px;
    }

    .beticon-contact-title {
        font-size: 19px;
    }
}
/* Филтри в стила на панела за търсене */
.r-left .panel:has(.filter-values) {
    --filter-frame: #b79a67;
    --filter-heading: #e4d2af;
    --filter-surface: #faf6ec;
    --filter-divider: #dfd1b7;
    --filter-text: #513824;
    --filter-hover: #781e36;

    border: 3px solid var(--filter-frame);
    border-radius: 5px;
    overflow: hidden;
    background: var(--filter-surface);
    box-shadow: 0 2px 5px rgba(62, 41, 24, .14);
}

.r-left .panel:has(.filter-values) > .panel-heading {
    padding: 8px 10px;
    background: var(--filter-heading);
    color: var(--filter-text);
    font-weight: 700;
    border-bottom: 1px solid var(--filter-frame);
}

.r-left .panel:has(.filter-values) .list-group-item {
    background: var(--filter-surface);
    border-color: var(--filter-divider);
}

.r-left .panel:has(.filter-values) .list-group-item:hover {
    background: #efe5d2;
}

.r-left .panel:has(.filter-values) a {
    color: var(--filter-text) !important;
}

.r-left .panel:has(.filter-values) a:is(:hover, :focus-visible) {
    color: var(--filter-hover) !important;
}

.r-left .panel:has(.filter-values) input[type="checkbox"] {
    accent-color: #795633;
}
/* Стрелка за свиване на филтрите */
.r-left .filter-expander .filter-indicator.glyphicon::before {
    content: "" !important;
    display: inline-block;
    width: 7px;
    height: 7px;
    box-sizing: border-box;
    border-right: 2px solid #63452f;
    border-bottom: 2px solid #63452f;
    transform: rotate(45deg);
}

.r-left .filter-expander .filter-indicator.glyphicon-triangle-top::before {
    transform: rotate(225deg);
}

.r-left .filter-expander .filter-indicator.glyphicon-triangle-right::before {
    transform: rotate(-45deg);
}
.r-left .filter-field .glyphicon-remove::before {
    content: "×" !important;
    display: inline-block;
    font: 700 16px / 1 Arial, sans-serif !important;
    color: #63452f;
}
.r-left .filter-expander .glyphicon-remove::before {
    content: "\00D7" !important;
    font: 700 16px / 1 Arial, sans-serif !important;
    color: #63452f;
}
/* Избрани райони в панела за търсене на „Стаи“ */
.r-left [data-page="rooms2_cards"] .srchPanelRow[id$="_raion"]
:is(.token, .tag, .search-choice, .select2-search-choice, .select2-selection__choice) {
    font-size: 12px !important;
    line-height: 16px !important;
    height: auto !important;
    min-height: 0 !important;
    padding-block: 0 !important;
    margin-bottom: 3px !important;
}

.r-left [data-page="rooms2_cards"] .srchPanelRow[id$="_raion"]
:is(.token-label, .select2-selection__choice__display) {
    font-size: inherit !important;
    line-height: inherit !important;
}
.menu-user-name {
    --menu-user-name-size: 30px;
    --menu-user-name-color: #f4e7cc;

    font-size: var(--menu-user-name-size);
    color: var(--menu-user-name-color);
    font-weight: 600;
}
/* Фон зад бутона „Търсене“ */
.r-left .panel-footer.bottomSearchButt {
    background: transparent !important;
    border-top: 1px solid rgba(99, 69, 47, .25);
}
body.function-list .r-body {
    width: 100% !important;
    max-width: 100% !important;
}

body.function-list .r-grid {
    width: 100% !important;
}

body.function-list table.rnr-gridtable {
    width: 100% !important;
}
@media screen and (min-width: 992px) {

    td[data-field="roomsListPic1"],
    th[data-field="roomsListPic1"] {
        width: 170px !important;
        min-width: 170px !important;
        max-width: 170px !important;
    }

    td[data-field="roomsListPic1"] img {
        width: 160px !important;
        height: 100px !important;
        object-fit: contain;
    }

}
/* Мобилен бутон Меню */
.navbar-toggle .icon-bar {
    display: none !important;
}

.navbar-toggle::after {
    content: "Меню";
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: bold;
    color: #f5e6ce;
}

.navbar-toggle {
    width: auto !important;
    height: auto !important;
    padding: 6px 14px !important;
    border: 1px solid #c5a572 !important;
    border-radius: 6px !important;
    background: transparent !important;
}