/* ========================================================================== */
/* Wimmo - Personalizzazioni del tema pubblico                                */
/* ========================================================================== */

/* ========================================================================== */
/* Consenso cookie                                                            */
/* ========================================================================== */
#cookie-consent-modal .modal-content {
    border: 0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.dashboard-coordinate-wrapper {
    position: relative;
}

.dashboard-coordinate-wrapper .form-control {
    padding-right: 4.5rem;
}

.dashboard-coordinate-wrapper .dashboard-coordinate-readonly[readonly] {
    color: #667085;
    background-color: #f3f5f7;
    border-color: #d8dee5;
    cursor: not-allowed;
}

.dashboard-coordinate-wrapper .dashboard-coordinate-readonly[readonly]:focus {
    box-shadow: none;
}

.dashboard-coordinate-icon,
.dashboard-coordinate-map-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.dashboard-coordinate-icon {
    right: 2.6rem;
}

.dashboard-coordinate-map-button {
    right: 0.5rem;
    padding: 0;
    color: var(--bs-primary);
    background: transparent;
    border: 0;
}

.dashboard-coordinate-picker-map {
    height: 540px;
    border-radius: 0.5rem;
}

/* Bootstrap compensa la scrollbar con uno style inline: qui non serve. */
#cookie-consent-modal {
    padding-right: 0 !important;
}

#cookie-consent-modal .modal-header,
#cookie-consent-modal .modal-footer {
    padding: 1.5rem;
}

#cookie-consent-modal .modal-footer {
    justify-content: flex-end;
    gap: 0.5rem;
}

#cookie-consent-modal .cookie-consent-reject-link {
    display: inline-flex;
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    align-items: center;
    gap: 0.45rem;
    color: var(--bs-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: right;
}

#cookie-consent-modal .cookie-consent-title {
    order: 1;
    display: block !important;
    padding-right: 0 !important;
}

#cookie-consent-modal .cookie-consent-reject-link:hover,
#cookie-consent-modal .cookie-consent-reject-link:focus {
    color: var(--bs-secondary);
}

#cookie-consent-modal .cookie-consent-reject-link.disabled {
    pointer-events: none;
    opacity: 0.6;
}

@media (max-width: 575.98px) {
    #cookie-consent-modal .modal-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    #cookie-consent-modal .cookie-consent-reject-link {
        order: 1;
        margin-left: auto;
    }

    #cookie-consent-modal .cookie-consent-title {
        order: 2;
        width: 100%;
        padding-right: 0 !important;
    }
}

#cookie-consent-modal .nav-tabs .nav-link {
    color: var(--bs-primary);
}

#cookie-consent-modal .nav-tabs .nav-link.active {
    color: var(--bs-secondary);
    font-weight: 600;
}

.cookie-consent-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.cookie-consent-option:last-child {
    border-bottom: 0;
}

.cookie-consent-switch {
    position: relative;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 1.5rem;
}

.cookie-consent-switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.cookie-consent-switch span {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 2rem;
    background: #adb5bd;
    transition: background-color 0.2s ease;
}

.cookie-consent-switch span::before {
    position: absolute;
    bottom: 0.2rem;
    left: 0.2rem;
    width: 1.1rem;
    height: 1.1rem;
    content: '';
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.cookie-consent-switch input:checked + span {
    background: var(--bs-primary);
}

.cookie-consent-switch input:checked + span::before {
    transform: translateX(1.25rem);
}

.cookie-consent-switch input:disabled + span {
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-policy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ========================================================================== */
/* 01. Variabili cromatiche                                                   */
/* ========================================================================== */
:root,
[data-bs-theme="light"] {
    --bs-primary: #29637F;
    --bs-primary-rgb: 41, 99, 127;
    --bs-primary-text-emphasis: #29637F;
    --bs-primary-bg-subtle: #e8f0f4;
    --bs-primary-bg-dark: #204e66;
    --bs-primary-border-subtle: #bdd2dc;

    --bs-secondary: #B92422;
    --bs-secondary-rgb: 185, 36, 34;
    --bs-secondary-text: #ffffff;
    --bs-secondary-border-subtle: #e8bdbc;

    --bs-acent: #B92422;
    --bs-acent-bg-subtle: #f8e9e9;
    --bs-acent-bg-dark: #941d1b;
    --bs-acent-border-subtle: #e9bfbe;

    --bs-header-dark: #29637F;
    --bs-dark-text: #29637F;
    --headingColor: #29637F;
    --bs-link-color: #29637F;
    --bs-link-hover-color: #B92422;
    --bs-link-highlighter-color: #B92422;
    --bs-code-color: #29637F;
    --bs-nav-color: #29637F;
    --bs-featured: #B92422;
}

[data-bs-theme="dark"] {
    --bs-primary: #29637F;
    --bs-primary-rgb: 41, 99, 127;
    --bs-primary-text-emphasis: #6e9db5;
    --bs-primary-bg-subtle: #173846;
    --bs-primary-bg-dark: #204e66;
    --bs-primary-border-subtle: #29637F;

    --bs-secondary: #B92422;
    --bs-secondary-rgb: 185, 36, 34;
    --bs-secondary-text: #ffffff;
    --bs-secondary-border-subtle: #6d1615;

    --bs-acent: #B92422;
    --bs-acent-bg-subtle: #491010;
    --bs-acent-bg-dark: #941d1b;
    --bs-acent-border-subtle: #6d1615;

    --bs-link-hover-color: #B92422;
    --bs-link-highlighter-color: #B92422;
    --bs-code-color: #6e9db5;
}

/* ========================================================================== */
/* 02. Pulsanti                                                               */
/* ========================================================================== */
.btn-primary {
    --bs-btn-bg: #29637F;
    --bs-btn-border-color: #29637F;
    --bs-btn-hover-bg: #204e66;
    --bs-btn-hover-border-color: #204e66;
    --bs-btn-active-bg: #204e66;
    --bs-btn-active-border-color: #204e66;
    --bs-btn-disabled-bg: #29637F;
    --bs-btn-disabled-border-color: #29637F;
}

.btn-outline-primary {
    --bs-btn-color: #29637F;
    --bs-btn-border-color: #29637F;
    --bs-btn-hover-bg: #29637F;
    --bs-btn-hover-border-color: #29637F;
    --bs-btn-active-bg: #204e66;
    --bs-btn-active-border-color: #204e66;
}

.btn-outline-secondary {
    background-color: #ffffff;
    border-color: #B92422;
    color: #B92422 !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    background-color: #B92422 !important;
    border-color: #B92422 !important;
    color: #ffffff !important;
}

/* ========================================================================== */
/* 03. Sezioni a contrasto                                                    */
/* ========================================================================== */
.bg-secondary {
    color: #ffffff;
}

.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary h4,
.bg-secondary h5,
.bg-secondary h6,
.bg-secondary .text-dark {
    color: #ffffff !important;
}

/* Hero Home e tipologie immobiliari: sfondo principale Wimmo. */
.wimmo-hero:not(.bg-light),
.wimmo-property-types:not(.bg-light),
.wimmo-blog-page-title {
    background-color: #29637F !important;
    color: #ffffff;
}

.wimmo-hero:not(.bg-light) h1,
.wimmo-hero:not(.bg-light) h2,
.wimmo-hero:not(.bg-light) h3,
.wimmo-hero:not(.bg-light) h4,
.wimmo-hero:not(.bg-light) h5,
.wimmo-hero:not(.bg-light) h6,
.wimmo-hero:not(.bg-light) .text-primary,
.wimmo-hero:not(.bg-light) .text-dark,
.wimmo-hero:not(.bg-light) .subtitle,
.wimmo-hero:not(.bg-light) .fw-medium,
.wimmo-property-types:not(.bg-light) h1,
.wimmo-property-types:not(.bg-light) h2,
.wimmo-property-types:not(.bg-light) h3,
.wimmo-property-types:not(.bg-light) h4,
.wimmo-property-types:not(.bg-light) h5,
.wimmo-property-types:not(.bg-light) h6,
.wimmo-property-types:not(.bg-light) .subtitle-heading,
.wimmo-blog-page-title h1,
.wimmo-blog-page-title h2,
.wimmo-blog-page-title h3,
.wimmo-blog-page-title h4,
.wimmo-blog-page-title h5,
.wimmo-blog-page-title h6,
.wimmo-blog-page-title p {
    color: #ffffff !important;
}

.contact-page-title {
    background-image: linear-gradient(rgba(25, 74, 98, 0.78), rgba(25, 74, 98, 0.78)), url('../img/banner/banner-imprese-1920x680.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Varianti chiare della home: i sottotitoli non devono ereditare il bianco del tema. */
.wimmo-hero.bg-light .subtitle,
.wimmo-property-types.bg-light .subtitle-heading {
    color: #4b5563 !important;
}

/* ========================================================================== */
/* 04. Interazioni                                                            */
/* ========================================================================== */
.form-checks .btn-secondary {
    border-color: #B92422;
    background-color: #B92422;
    color: #ffffff !important;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.form-checks .btn-secondary:hover,
.form-checks .btn-check:checked + .btn-secondary {
    border-color: #29637F;
    background-color: #29637F;
    color: #ffffff !important;
    box-shadow: 0 .35rem .85rem rgba(41, 99, 127, .28);
    transform: translateY(-2px);
}

.form-checks .btn-check:focus + .btn-secondary {
    box-shadow: 0 0 0 .25rem rgba(41, 99, 127, .22);
}

.propertyGrid.cards,
.propertyTypesgrid .typesLink,
.agentWrap,
.feature-button .btn,
.propertyFooter .btn {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}

.propertyGrid.cards:hover,
.agentWrap:hover {
    box-shadow: 0 .75rem 1.5rem rgba(41, 99, 127, .14);
    transform: translateY(-4px);
}

.propertyTypesgrid .typesLink:hover {
    box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .22);
    transform: translateY(-4px);
}

.propertyFooter .btn:hover,
.feature-button .btn:hover {
    border-color: #29637F;
    background-color: #29637F;
    color: #ffffff;
}

/* ========================================================================== */
/* 05. Header e modale di accesso                                             */
/* ========================================================================== */
.header.header-light .nav-menu > li:not(.list-buttons) > a:hover,
.header.header-light .nav-menu > li:not(.list-buttons) > a:focus,
.header.header-light .nav-menu > li:not(.list-buttons) > a:focus-visible {
    background-color: #e8f0f4;
    color: #29637F !important;
}

.header.header-light .nav-menu > li:not(.list-buttons) > a:hover i,
.header.header-light .nav-menu > li:not(.list-buttons) > a:focus i {
    color: #29637F !important;
}

#login .btn-outline-secondary {
    background-color: #ffffff;
    border-color: #bdd2dc;
    color: #29637F !important;
}

#login .btn-outline-secondary:hover,
#login .btn-outline-secondary:focus,
#login .btn-outline-secondary:active {
    background-color: #29637F !important;
    border-color: #29637F !important;
    color: #ffffff !important;
}

.account-drop .account-dropdown-menu {
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: .5rem !important;
    transform: none !important;
}

.account-drop .account-dropdown-menu.show {
    animation: account-dropdown-open .16s ease-out;
}

.account-drop .account-dropdown-menu ul li a .notti_coun {
    top: auto;
    right: auto;
    left: auto;
    margin-left: auto;
}

.propertyList .cards .propertyThumb .bookmarkProperty .bookmark.is-active {
    background-color: var(--bs-body-bg);
    color: var(--bs-danger);
}

.annuncio-favorite-toggle.is-active {
    border-color: var(--bs-danger);
    color: var(--bs-danger);
}


#favorite-registration-modal .modal-content {
    overflow: hidden;
}

#favorite-registration-modal .modal-body {
    position: relative;
    padding-top: 4.5rem !important;
}

#favorite-registration-modal .modal-body > .square--60 {
    box-shadow: 0 0.5rem 1.5rem rgba(13, 110, 253, 0.15);
}

#favorite-note-modal .square--60 {
    box-shadow: 0 0.5rem 1.5rem rgba(13, 110, 253, 0.15);
}

#favorite-registration-modal .favorite-continue-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 0;
    background: transparent;
    color: var(--bs-primary);
    font-size: 0.8125rem;
    font-weight: 500;
}

#favorite-registration-modal .favorite-continue-link:hover,
#favorite-registration-modal .favorite-continue-link:focus {
    color: var(--bs-secondary);
}

@keyframes account-dropdown-open {
    from {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

.user-dashboard-inner.bg-white .dashboard_Menu ul li a {
    color: #1f4f6a !important;
    border-bottom-color: rgba(41, 99, 127, .12);
}

.user-dashboard-inner.bg-white .dashboard_Menu ul li a:hover,
.user-dashboard-inner.bg-white .dashboard_Menu ul li a:focus {
    background-color: #e8f0f4;
    color: #29637F !important;
}

.user-dashboard-inner.bg-white .dashboard_Menu ul li a.active,
.user-dashboard-inner.bg-white .dashboard_Menu ul li a.active:hover,
.user-dashboard-inner.bg-white .dashboard_Menu ul li a.active:focus {
    color: #ffffff !important;
}

/* La voce selezionata nel sottomenù resta distinta dalla sezione principale. */
.user-dashboard-inner.bg-white .dashboard_Menu ul ul li a.active,
.user-dashboard-inner.bg-white .dashboard_Menu ul ul li a.active:hover,
.user-dashboard-inner.bg-white .dashboard_Menu ul ul li a.active:focus {
    background-color: #e8f0f4;
    color: #29637F !important;
    box-shadow: none;
}

/* Badge richieste: resta allineato a destra nella sidebar. */
.user-dashboard-inner .dashboard_Menu ul li a .notti_coun {
    top: auto;
    right: auto;
    left: auto;
    margin-left: auto;
}

.dashboard-menu-chevron {
    transition: transform .2s ease-in-out;
}

.dashboard-property-search {
    flex: 1 1 380px;
    max-width: 540px;
}

.dashboard-property-search .form-control {
    width: 100%;
}

[data-bs-toggle="collapse"][aria-expanded="true"] .dashboard-menu-chevron {
    transform: rotate(180deg);
}

/* Sottoliste immobili nel menu utente dell'header. */
.account-drop .dropdown-menu #header-account-property-lists {
    padding-left: 1rem;
    background-color: rgba(41, 99, 127, .04);
}

.account-drop .dropdown-menu #header-account-property-lists li a {
    padding-left: 1rem;
    font-size: .9rem;
}

/* Azioni nelle schede immobili: l'hover evidenzia solo lo sfondo. */
.dashboard-property-actions-dropdown .dropdown-item:hover,
.dashboard-property-actions-dropdown .dropdown-item:focus,
.user-dashboard-box .dropdown-menu .dropdown-item:hover,
.user-dashboard-box .dropdown-menu .dropdown-item:focus {
    color: var(--bs-dropdown-link-color);
}

.dashboard-property-actions-dropdown .dropdown-item.text-danger:hover,
.dashboard-property-actions-dropdown .dropdown-item.text-danger:focus,
.user-dashboard-box .dropdown-menu .dropdown-item.text-danger:hover,
.user-dashboard-box .dropdown-menu .dropdown-item.text-danger:focus {
    color: var(--bs-danger) !important;
}

/* 07 Liste immobili dashboard: struttura a card del template my-properties */
.dashboard-property-placeholder {
    min-height: 180px;
}

.dashboard-property-location,
.dashboard-property-location span {
    color: #55616a !important;
}

/* Stato annuncio nelle schede delle tre liste immobili. */
.listingCard .listBody > .d-flex > div:nth-child(2) h6 {
    display: inline-block;
    margin-bottom: 0;
    padding: .25rem .55rem;
    border-radius: 50rem;
    background: #d1e7dd;
    color: #0f5132;
    font-size: .8rem;
}

@media (min-width: 768px) {
    .table-responsive:has(.dashboard-property-list-table) {
        overflow: visible;
    }

    .dashboard-property-list-table,
    .dashboard-property-list-table tbody,
    .dashboard-property-list-table tr,
    .dashboard-property-list-table td {
        display: block;
        width: 100%;
    }

    .dashboard-property-list-table {
        padding: 1rem;
    }

    .dashboard-property-list-table thead {
        display: none;
    }

    .dashboard-property-list-table tbody {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-property-list-table tr {
        display: grid;
        grid-template-columns: 190px minmax(0, 1fr) minmax(145px, auto) minmax(130px, auto);
        grid-template-rows: auto auto;
        align-items: center;
        gap: .5rem 1.25rem;
        padding: .5rem;
        border: 2px solid rgba(31, 79, 106, .12);
        border-radius: .75rem;
        background: #fff;
        box-shadow: 0 .125rem .25rem rgba(31, 79, 106, .06);
    }

    .dashboard-property-list-table td {
        padding: 0 !important;
        border: 0;
        text-align: left !important;
    }

    .dashboard-property-list-table td:nth-child(1) {
        grid-row: 1 / span 2;
        grid-column: 1;
    }

    .dashboard-property-list-table td:nth-child(2) {
        grid-column: 2;
    }

    .dashboard-property-list-table td:nth-child(3) {
        grid-column: 2;
    }

    .dashboard-property-list-table td:nth-child(4) {
        grid-column: 3;
        grid-row: 1;
        font-size: 1.05rem;
        font-weight: 700;
        text-align: right !important;
    }

    .dashboard-property-list-table td:nth-child(5) {
        grid-column: 3;
        grid-row: 2;
        text-align: right !important;
    }

    .dashboard-property-list-table td:nth-child(6) {
        grid-column: 4;
        grid-row: 1 / span 2;
        text-align: right !important;
    }

    .dashboard-property-list-table .dashboard-property-list-image > div,
    .dashboard-property-list-table .dashboard-property-list-image > img {
        width: 100% !important;
        height: 132px !important;
        object-fit: cover;
    }

    .dashboard-property-list-table .dashboard-property-list-details .fw-semibold {
        font-size: 1.05rem;
    }
}

@media (max-width: 767.98px) {
    .table-responsive:has(.dashboard-property-list-table) {
        overflow: visible;
    }

    .dashboard-property-list-table,
    .dashboard-property-list-table tbody,
    .dashboard-property-list-table tr,
    .dashboard-property-list-table td {
        display: block;
        width: 100%;
    }

    .dashboard-property-list-table thead {
        display: none;
    }

    .dashboard-property-list-table tbody {
        padding: .75rem;
    }

    .dashboard-property-list-table tr {
        margin-bottom: .75rem;
        padding: 1rem;
        border: 1px solid rgba(41, 99, 127, .14);
        border-radius: .6rem;
        background-color: #ffffff;
        box-shadow: 0 .125rem .25rem rgba(31, 79, 106, .06);
    }

    .dashboard-property-list-table tr:last-child {
        margin-bottom: 0;
    }

    .dashboard-property-list-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: .7rem 0 !important;
        border: 0;
        border-bottom: 1px solid rgba(41, 99, 127, .1);
        text-align: right !important;
    }

    .dashboard-property-list-table td::before {
        color: #1f4f6a;
        font-size: .75rem;
        font-weight: 700;
        text-align: left;
        text-transform: uppercase;
    }

    .dashboard-property-list-table td:nth-child(3)::before {
        content: 'Tipologia';
    }

    .dashboard-property-list-table td:nth-child(4)::before {
        content: 'Prezzo';
    }

    .dashboard-property-list-table td:nth-child(5)::before {
        content: 'Visibilità';
    }

    .dashboard-property-list-table td:nth-child(6)::before {
        content: 'Azioni';
    }

    .dashboard-property-list-table td:first-child {
        display: block;
        padding-top: 0 !important;
        text-align: left !important;
    }

    .dashboard-property-list-table td:first-child::before {
        content: none;
    }

    .dashboard-property-list-table .dashboard-property-list-image {
        padding-bottom: .85rem !important;
        border-bottom: 1px solid rgba(41, 99, 127, .1);
    }

    .dashboard-property-list-table .dashboard-property-list-image > div,
    .dashboard-property-list-table .dashboard-property-list-image > img {
        margin: 0 auto;
    }

    .dashboard-property-list-table .dashboard-property-list-image > div {
        width: 100% !important;
        height: 150px !important;
    }

    .dashboard-property-list-table .dashboard-property-list-image > img {
        display: block;
        width: 100% !important;
        height: 150px !important;
        object-fit: cover;
    }

    .dashboard-property-list-table .dashboard-property-list-details {
        display: block;
        padding-top: .85rem !important;
        text-align: center !important;
    }

    .dashboard-property-list-table .dashboard-property-list-details::before {
        content: none;
    }

    .dashboard-property-list-table td:last-child {
        padding-bottom: 0 !important;
        border-bottom: 0;
    }

    .dashboard-property-list-table td:last-child .btn {
        min-width: 104px;
    }
}

.user-dashboard-inner.bg-white .dashboard_Menu ul li a.active:hover,
.user-dashboard-inner.bg-white .dashboard_Menu ul li a.active:focus {
    background-color: #1f4f6a;
    box-shadow: inset 4px 0 0 var(--bs-primary);
}

.account-role-switch .form-check-label {
    margin-left: .65rem;
}

/* 07 Form immobili dashboard */
.dashboard-property-features .form-check-label {
    margin-left: .65rem;
}

.dashboard-property-features .form-check {
    margin-bottom: .35rem;
}

.dashboard-page-header {
    background-color: var(--bs-primary);
    color: #ffffff;
}

.dashboard-page-header h1,
.dashboard-page-header h4 {
    color: #ffffff;
}

.user-dashboard-box .btn-secondary:not(.disabled) {
    border-color: rgba(185, 36, 34, .22);
    background-color: rgba(185, 36, 34, .12);
    color: var(--bs-secondary) !important;
}

.user-dashboard-box .btn-secondary:not(.disabled):hover,
.user-dashboard-box .btn-secondary:not(.disabled):focus,
.user-dashboard-box .btn-secondary:not(.disabled):active {
    border-color: var(--bs-secondary);
    background-color: var(--bs-secondary);
    color: #ffffff !important;
}

/* Tabella riepilogo dashboard: sovrascrive la striscia rossa del template. */
.dashboard-transaction-table.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: #f5f8fa;
    --bs-table-color-type: #1f4f6a;
}

.dashboard-transaction-table > :not(caption) > * > * {
    padding: 1rem;
    border-bottom-color: rgba(41, 99, 127, .12);
    vertical-align: middle;
}

.dashboard-transaction-table thead th {
    color: #1f4f6a;
    font-weight: 700;
    white-space: nowrap;
}

/* ========================================================================== */
/* 06. Badge soft dashboard                                                   */
/* ========================================================================== */
.badge-soft-success { color: #146c43 !important; background-color: #d1f7e5 !important; border: 1px solid #9fe8c5 !important; }
.badge-soft-danger { color: #b02a37 !important; background-color: #fde2e6 !important; border: 1px solid #f7b8c0 !important; }
.badge-soft-warning { color: #997404 !important; background-color: #fff2cc !important; border: 1px solid #ffe49a !important; }
.badge-soft-info { color: #087990 !important; background-color: #d9f7ff !important; border: 1px solid #a9ebfb !important; }
.badge-soft-primary { color: #084298 !important; background-color: #dbe9ff !important; border: 1px solid #b8d2ff !important; }
.badge-soft-secondary { color: #41464b !important; background-color: #e9ecef !important; border: 1px solid #d5d9de !important; }

/* ========================================================================== */
/* Selettore periodicità pagina piani                                         */
/* ========================================================================== */
.pricing-period-switch {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid rgba(41, 99, 127, .2);
    border-radius: 999px;
    background-color: #ffffff;
}

.pricing-period-switch-wrap {
    position: relative;
    display: inline-flex;
}

.pricing-period-discount {
    position: absolute;
    top: -.95rem;
    right: -4rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 50px;
    background: var(--bs-success-bg-subtle);
    color: var(--bs-success);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.pricing-period-switch button {
    padding: .55rem 1.35rem;
    border: 0;
    background-color: transparent;
    color: #1f4f6a;
    font-weight: 600;
}

.pricing-period-switch button.active {
    background-color: var(--bs-primary);
    color: #ffffff;
}

.pricing-period-switch button:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
}

.pricing-plan-select.disabled {
    cursor: not-allowed;
    opacity: .65;
}

.pricing-plan-select.btn-secondary:hover {
    color: #ffffff !important;
}

.pricing-plan-card.pricing-plan-unavailable {
    opacity: .48;
    transition: opacity .2s ease;
}

/* ========================================================================== */
/* Piano e registrazione agenzia                                              */
/* ========================================================================== */
.pricing-plan-icon {
    font-size: 2rem;
    line-height: 1.875rem;
}

.pricingbox {
    position: relative;
    overflow: hidden;
}

.pricing-plan-ribbon {
    position: absolute;
    top: 1.7rem;
    right: -2.8rem;
    z-index: 1;
    width: 11rem;
    padding: .45rem 0;
    background-color: var(--bs-danger);
    color: #ffffff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(45deg);
}

.pricingCaptions ul li {
    display: grid;
    grid-template-columns: 1rem minmax(0, 12rem);
    align-items: flex-start;
    justify-content: center;
    gap: .55rem;
    text-align: left;
}

.pricingCaptions ul li i {
    margin: .15rem 0 0;
    text-align: center;
}

.pricing-selected-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .12em;
}

.pricing-selected-currency,
.pricing-selected-period {
    font-size: .55em;
    font-weight: 400;
}

.pricing-selected-period {
    align-self: center;
}

.registration-payment-domain {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.15rem;
    color: var(--bs-primary);
    border: 1px solid rgba(41, 99, 127, .3);
    border-radius: .75rem;
    background-color: #eef4f7;
}

.registration-payment-domain > i {
    font-size: 1.25rem;
}

.payment-method-icons .fa-brands {
    font-family: "Font Awesome 5 Brands";
    font-weight: 400;
}

.registration-payment-option {
    position: relative;
    border-color: rgba(41, 99, 127, .28) !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.registration-payment-option:not(.is-disabled):hover {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 .5rem 1.2rem rgba(41, 99, 127, .12);
    transform: translateY(-2px);
}

.registration-payment-option.is-disabled {
    opacity: .42;
    cursor: not-allowed;
}

.registration-payment-option.is-disabled button {
    cursor: not-allowed;
}

.registration-payment-recommended {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 1;
    font-size: .68rem;
    letter-spacing: .02em;
}

.registration-agency-form .form-control {
    border: 2px solid rgba(41, 99, 127, .35);
}

.registration-agency-form .form-control:focus {
    border-color: var(--bs-primary);
}

.form-select-wimmo {
    padding-right: 2.25rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2329637F' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.5 5.5a.5.5 0 0 1 .8-.4L8 9.6l5.7-4.5a.5.5 0 0 1 .6.8l-6 4.75a.5.5 0 0 1-.6 0l-6-4.75a.5.5 0 0 1-.2-.4Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: .85rem;
}

.form-select-wimmo:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2329637F' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.5 10.5a.5.5 0 0 1 .8.4L8 6.4l5.7 4.5a.5.5 0 0 1-.6.8l-6-4.75a.5.5 0 0 1-.6 0l-6 4.75a.5.5 0 0 1-.2-.4Z'/%3E%3C/svg%3E");
}

.registration-agency-form .input-group > .form-control {
    border-right: 0;
}

.registration-agency-form .input-group-text {
    border: 2px solid rgba(41, 99, 127, .35);
    border-left: 0;
    color: var(--bs-primary);
}

.registration-agency-form .form-check-input {
    width: 1.2em;
    height: 1.2em;
    border: 2px solid var(--bs-primary);
}

.registration-agency-form .form-check-input:checked {
    border-color: var(--bs-primary);
    background-color: var(--bs-primary);
}

.registration-agency-form .form-check-label {
    cursor: pointer;
}

.registration-agency-form .registration-submit-button,
.registration-agency-form .registration-submit-button:hover,
.registration-agency-form .registration-submit-button:focus,
.registration-agency-form .registration-submit-button:active {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    color: #ffffff !important;
}

.registration-setup-preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, .96);
    text-align: center;
}

.registration-setup-preloader[hidden] {
    display: none;
}

.registration-setup-preloader-content {
    max-width: 30rem;
}

.registration-setup-preloader-content h2 {
    margin: 1.5rem 0 .5rem;
    color: var(--bs-primary);
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.registration-setup-preloader-content p {
    margin: 0;
    font-weight: 600;
}

.registration-setup-preloader-spinner {
    display: inline-block;
    width: 4rem;
    height: 4rem;
    border: .35rem solid rgba(41, 99, 127, .2);
    border-top-color: var(--bs-primary);
    border-radius: 50%;
    animation: registration-setup-preloader-spin .8s linear infinite;
}

.registration-setup-loading {
    overflow: hidden;
}

@keyframes registration-setup-preloader-spin {
    to {
        transform: rotate(360deg);
    }
}

.registration-agency-form .registration-readonly {
    background-color: #eef4f7;
    pointer-events: none;
}

.registration-billing-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .85rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.registration-billing-heading h5,
.registration-billing-heading .form-check {
    margin: 0;
}

.registration-agency-form .form-check-input:disabled {
    opacity: .45;
}

/* Riepilogo piano nella sola pagina di registrazione agenzia */
.registration-plan-summary {
    overflow: hidden;
}

.registration-plan-summary .registration-plan-features {
    margin-bottom: 1.5rem !important;
}

.registration-plan-summary .registration-plan-features ul {
    margin: 0;
    padding: 0;
}

.registration-plan-summary .registration-plan-features ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-right: 1.35rem;
    margin-left: 1.35rem;
    padding: .78rem 0;
    text-align: left;
    border-bottom: 1px dashed rgba(41, 99, 127, .28);
}

.registration-plan-summary .registration-plan-features ul li:first-child {
    border-top: 1px dashed rgba(41, 99, 127, .28);
}

.registration-plan-summary .registration-plan-features ul li i {
    order: 2;
    flex: 0 0 auto;
    margin: 0;
}

/* Badge richieste contatto cliccabile nelle liste immobili */
.dashboard-contact-count-badge,
.dashboard-contact-count-badge:hover,
.dashboard-contact-count-badge:focus {
    color: #ffffff !important;
}

/* Logo nel menu laterale mobile */
.mobile-menu-brand {
    display: none;
}

.navigation-portrait .mobile-menu-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    padding: 28px 48px 20px;
}

.navigation-portrait .mobile-menu-brand img {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
}

/* Classi energetiche: scala cromatica dell'etichettatura europea. */
select.energy-class-select option {
    font-weight: 600;
}

select.energy-class-select option.energy-class-empty {
    background-color: #ffffff;
    color: #343a40;
}

select.energy-class-select option.energy-class-a4,
select.energy-class-select option.energy-class-a3 {
    background-color: #00833e;
    color: #ffffff;
}

select.energy-class-select option.energy-class-a2 {
    background-color: #35a84a;
    color: #ffffff;
}

select.energy-class-select option.energy-class-a1 {
    background-color: #91c83e;
    color: #1d3b20;
}

select.energy-class-select option.energy-class-b {
    background-color: #c8d72e;
    color: #26320e;
}

select.energy-class-select option.energy-class-c {
    background-color: #f2de22;
    color: #4b4100;
}

select.energy-class-select option.energy-class-d {
    background-color: #f6b52c;
    color: #4c2e00;
}

select.energy-class-select option.energy-class-e {
    background-color: #ef832b;
    color: #ffffff;
}

select.energy-class-select option.energy-class-f {
    background-color: #df562d;
    color: #ffffff;
}

select.energy-class-select option.energy-class-g {
    background-color: #cc2e2e;
    color: #ffffff;
}

.energy-class-option {
    display: block;
    font-weight: 600;
}

.select2-results__option .energy-class-option {
    margin: -6px -12px;
    padding: 6px 12px;
}

.select2-selection__rendered .energy-class-option {
    margin: 0;
    padding: 0;
}

.energy-class-option.energy-class-a4,
.energy-class-option.energy-class-a3 { background-color: #00833e; color: #ffffff; }
.energy-class-option.energy-class-a2 { background-color: #35a84a; color: #ffffff; }
.energy-class-option.energy-class-a1 { background-color: #91c83e; color: #1d3b20; }
.energy-class-option.energy-class-b { background-color: #c8d72e; color: #26320e; }
.energy-class-option.energy-class-c { background-color: #f2de22; color: #4b4100; }
.energy-class-option.energy-class-d { background-color: #f6b52c; color: #4c2e00; }
.energy-class-option.energy-class-e { background-color: #ef832b; color: #ffffff; }
.energy-class-option.energy-class-f { background-color: #df562d; color: #ffffff; }
.energy-class-option.energy-class-g { background-color: #cc2e2e; color: #ffffff; }

/* Badge classe energetica nel dettaglio annuncio. */
.annuncio-energy-badge {
    --energy-badge-color: #00833e;
    display: inline-flex;
    align-items: center;
    background-color: var(--energy-badge-color);
    border-radius: 0;
    justify-content: center;
    min-width: 40px;
    min-height: 28px;
    padding: 0.25rem 0.65rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    position: relative;
}

.annuncio-energy-badge.energy-class-a4,
.annuncio-energy-badge.energy-class-a3 { --energy-badge-color: #00833e; }
.annuncio-energy-badge.energy-class-a2 { --energy-badge-color: #35a84a; }
.annuncio-energy-badge.energy-class-a1 { --energy-badge-color: #91c83e; color: #1d3b20; }
.annuncio-energy-badge.energy-class-b { --energy-badge-color: #c8d72e; color: #26320e; }
.annuncio-energy-badge.energy-class-c { --energy-badge-color: #f2de22; color: #4b4100; }
.annuncio-energy-badge.energy-class-d { --energy-badge-color: #f6b52c; color: #4c2e00; }
.annuncio-energy-badge.energy-class-e { --energy-badge-color: #ef832b; }
.annuncio-energy-badge.energy-class-f { --energy-badge-color: #df562d; }
.annuncio-energy-badge.energy-class-g { --energy-badge-color: #cc2e2e; }

.annuncio-energy-badge::after {
    border-bottom: 0.875rem solid transparent;
    border-left: 0.625rem solid var(--energy-badge-color);
    border-top: 0.875rem solid transparent;
    content: '';
    position: absolute;
    right: -0.625rem;
    top: 0;
}

/* Etichette stato su card e galleria dell'annuncio. */
.propertyThumb .property-trattativa-badge,
.propertyThumb .property-concluso-badge,
.annuncio-gallery-pane .annuncio-trattativa-badge,
.annuncio-gallery-pane .annuncio-concluso-badge {
    align-items: center;
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.28);
    color: #ffffff;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 800;
    justify-content: center;
    left: 50%;
    letter-spacing: 0.035em;
    padding: 0.45rem 1rem;
    pointer-events: none;
    position: absolute;
    text-transform: uppercase;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 3;
}

.propertyThumb .property-trattativa-badge,
.annuncio-gallery-pane .annuncio-trattativa-badge {
    background-color: rgba(220, 53, 69, 0.94);
}

.propertyThumb .property-concluso-badge,
.annuncio-gallery-pane .annuncio-concluso-badge {
    background-color: rgba(25, 135, 84, 0.94);
}

.annuncio-gallery-pane {
    position: relative;
}

.annuncio-gallery-pane .annuncio-trattativa-badge,
.annuncio-gallery-pane .annuncio-concluso-badge {
    font-size: 1rem;
    padding: 0.6rem 1.3rem;
}

/* Blocco efficienza energetica nel dettaglio annuncio. */
.annuncio-energy-efficiency-card {
    align-items: center;
    background-color: #f1f6ff;
    border-radius: 0.5rem;
    display: flex;
    gap: 1rem;
    min-height: 3.25rem;
    padding: 1rem 1.25rem;
}

.annuncio-energy-efficiency-icon {
    color: #24354a;
    font-size: 1.5rem;
}

.annuncio-energy-efficiency-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.2rem;
}

.annuncio-energy-efficiency-content strong {
    color: #1f2d3d;
}

.annuncio-energy-efficiency-content span {
    color: #52667e;
}

.annuncio-energy-efficiency-class {
    --energy-badge-color: #00833e;
    align-items: center;
    background-color: var(--energy-badge-color);
    color: #fff;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 700;
    justify-content: center;
    min-height: 1.75rem;
    min-width: 2.5rem;
    padding: 0.25rem 0.65rem;
    position: relative;
}

.annuncio-energy-efficiency-class::after {
    border-bottom: 0.875rem solid transparent;
    border-left: 0.625rem solid var(--energy-badge-color);
    border-top: 0.875rem solid transparent;
    content: '';
    position: absolute;
    right: -0.625rem;
    top: 0;
}

.annuncio-energy-efficiency-class.energy-class-a4,
.annuncio-energy-efficiency-class.energy-class-a3 { --energy-badge-color: #00833e; }
.annuncio-energy-efficiency-class.energy-class-a2 { --energy-badge-color: #35a84a; }
.annuncio-energy-efficiency-class.energy-class-a1 { --energy-badge-color: #91c83e; color: #1d3b20; }
.annuncio-energy-efficiency-class.energy-class-b { --energy-badge-color: #c8d72e; color: #26320e; }
.annuncio-energy-efficiency-class.energy-class-c { --energy-badge-color: #f2de22; color: #4b4100; }
.annuncio-energy-efficiency-class.energy-class-d { --energy-badge-color: #f6b52c; color: #4c2e00; }
.annuncio-energy-efficiency-class.energy-class-e { --energy-badge-color: #ef832b; }
.annuncio-energy-efficiency-class.energy-class-f { --energy-badge-color: #df562d; }
.annuncio-energy-efficiency-class.energy-class-g { --energy-badge-color: #cc2e2e; }

.annuncio-energy-efficiency-details {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0.75rem;
}

.annuncio-energy-efficiency-details > div {
    align-items: center;
    background-color: #f1f6ff;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    justify-content: center;
    min-height: 4.25rem;
    padding: 0.75rem;
}

.annuncio-energy-efficiency-details span {
    color: #52667e;
    font-size: 0.8125rem;
    text-align: center;
}

.annuncio-energy-efficiency-details strong {
    color: #1f2d3d;
    font-size: 0.9375rem;
    text-align: center;
}

@media (hover: none), (pointer: coarse) {
    #filtermodal .property-type-picker .btn-check:not(:checked) + .btn-selection:hover,
    #filtermodal .property-type-picker .btn-check:not(:checked) + .btn-selection:focus,
    #filtermodal .property-type-picker .btn-check:not(:checked) + .btn-selection:focus-visible {
        color: var(--bs-body-color);
        background: transparent;
        border-color: var(--bs-border-color);
    }
}

@media (max-width: 575.98px) {
    .annuncio-energy-efficiency-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    #filtermodal {
        overflow-x: hidden;
    }

    #filtermodal .modal-dialog {
        box-sizing: border-box;
        margin-bottom: 0.5rem;
        margin-left: 0.25rem;
        margin-right: auto;
        margin-top: 0.5rem;
        max-width: calc(100vw - 1rem);
        width: calc(100vw - 1rem);
    }

    #filtermodal .modal-content,
    #filtermodal .modal-body,
    #filtermodal #home-search-filters {
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    #filtermodal .property-type-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-gap: 0.5rem;
    }

    #filtermodal .property-type-picker .form-checks,
    #filtermodal .property-type-picker .btn-selection {
        min-width: 0;
    }

    #filtermodal .property-type-picker .btn-selection {
        overflow-wrap: anywhere;
    }
}

.home-filter-suggestions-menu {
    position: absolute;
    z-index: 10;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    display: none;
    max-height: 240px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid var(--bs-border-color);
    border-radius: 7px;
    background: var(--bs-body-bg);
    box-shadow: 0 8px 20px rgba(33, 37, 41, 0.15);
}

.home-filter-suggestion-host {
    position: relative;
}

.home-filter-suggestions-menu.show {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
}

.home-filter-suggestion {
    padding: 6px 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--bs-body-color);
    font-size: 0.8rem;
    text-align: left;
}

.home-filter-suggestion:hover,
.home-filter-suggestion:focus {
    background: var(--bs-secondary-bg);
    color: var(--bs-primary);
}
.tooltip.ai-search-tooltip {
    --bs-tooltip-bg: #000;
    --bs-tooltip-color: #fff;
    --bs-tooltip-max-width: 440px;
}

.tooltip.ai-search-tooltip .tooltip-inner {
    max-width: 440px;
    padding: .75rem 1rem;
    text-align: left;
}

.tooltip.ai-search-tooltip .bi-stars {
    color: #ffc107;
}

.home-search-type-badges-wrap {
    position: relative;
    margin-top: 2rem;
    padding-top: 0.5rem;
}

.home-search-type-badges-wrap .singleItem {
    position: relative;
}

#home-search-type-badges .badge-primary.active,
#home-search-type-badges .badge-primary.active:hover,
#home-search-type-badges .badge-primary.active:focus {
    color: var(--bs-white);
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
