.search-form,
.listing-item,
.category-item {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

:root {
    --ux-text-primary: #2d251f;
    --ux-text-secondary: #6f6157;
    --ux-bg-soft: #faf5f1;
    --ux-border-soft: #eadfd6;
    --ux-focus: rgba(122, 75, 42, 0.2);
    --ux-focus-strong: #6b3f23;
    --catalog-field-height: 50px;
    --catalog-field-radius: 12px;
    --catalog-panel-radius: 18px;
    --catalog-panel-border: #e8ddd3;
    --catalog-panel-shadow: 0 14px 36px rgba(63, 36, 19, 0.14);
    --catalog-placeholder: #8f7d70;
    --warm-tint-strong: #7a4b2a;
    --warm-tint-soft: #b38564;
    --warm-surface-1: #f8f2ec;
    --warm-surface-2: #fffdfb;
}

body {
    color: var(--ux-text-primary);
}

.user-profile.py-120 {
    background: linear-gradient(180deg, #f9f4ef 0%, #f6eee7 100%);
}

.user-profile-card {
    border-radius: 16px;
    border: 1px solid var(--ux-border-soft);
}

.user-profile-card-title,
.login-header h3 {
    letter-spacing: 0.2px;
}

.user-profile-card p,
.user-profile-card small,
.login-header p,
.table td {
    color: var(--ux-text-secondary);
}

.form-control,
.form-select,
.theme-btn,
.btn {
    min-height: 44px;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid #e5d9cf;
    background: rgba(255, 253, 251, 0.92);
    padding: 10px 12px;
}

.form-label,
.property-single-agent-form label,
.add-property-form label {
    font-weight: 600;
    color: #5b3924;
    font-size: 14px;
}

.form-label i,
.property-single-agent-form label i,
.add-property-form label i {
    margin-right: 6px;
    color: var(--modern-primary);
}

.form-help-text,
.message-center-note,
.user-profile-card > p {
    font-size: 15px;
    line-height: 1.6;
}

.form-control::placeholder {
    color: #947f70;
    opacity: 1;
    font-size: 14px;
}

.search-form .form-control,
.search-form .form-select,
.search-form .nice-select,
.advanced-search-menu .form-control,
.advanced-search-menu .nice-select {
    min-height: 48px;
    height: 48px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 14px;
}

.search-form .nice-select span.current,
.advanced-search-menu .nice-select span.current {
    line-height: 24px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--warm-tint-strong);
    box-shadow: 0 0 0 0.25rem var(--ux-focus);
}

.theme-btn,
.btn {
    padding-left: 14px;
    padding-right: 14px;
}

.btn i,
.theme-btn i {
    margin-right: 6px;
}

.admin-property-detail {
    color: var(--ux-text-primary);
}

.admin-property-price {
    font-size: 22px;
    font-weight: 700;
    color: #5d3820;
}

.admin-property-kpi {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--ux-border-soft);
    background: #fdf9f5;
    font-size: 13px;
    color: #5a4a3f;
}

.admin-property-block {
    border-radius: 12px;
    border: 1px solid var(--ux-border-soft);
    padding: 12px 14px;
    background: #fffdfa;
}

.admin-amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.support-conversation-shell .table th {
    font-size: 13px;
    font-weight: 700;
    color: #324766;
}

.support-conversation-shell .table td {
    padding-top: 12px;
    padding-bottom: 12px;
}

.support-inbox-layout {
    min-height: 420px;
}

.support-thread-list {
    display: grid;
    gap: 10px;
    max-height: 640px;
    overflow: auto;
    padding-right: 4px;
}

.support-thread-item {
    width: 100%;
    text-align: left;
    border: 1px solid #dfe7f5;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    transition: all 0.2s ease;
    color: var(--ux-text-primary);
}

.support-thread-item h6 {
    font-size: 14px;
}

.support-thread-item p {
    margin: 0;
    font-size: 12px;
    color: #667792;
    line-height: 1.45;
}

.support-thread-item:hover {
    border-color: #b7c9eb;
    box-shadow: 0 8px 20px rgba(33, 66, 122, 0.08);
}

.support-thread-item.active {
    border-color: var(--warm-tint-strong);
    background: linear-gradient(135deg, #f9f4ef, #fffdfa);
    box-shadow: 0 10px 22px rgba(122, 75, 42, 0.15);
}

.support-thread-panel {
    display: none;
    border: 1px solid #dfe7f5;
    border-radius: 14px;
    padding: 14px;
    background: #fff;
    height: 100%;
}

.support-thread-panel.active {
    display: block;
}

.support-thread-header {
    border-bottom: 1px solid #ebf0f8;
    padding-bottom: 10px;
}

.support-thread-actions {
    border-top: 1px solid #edf2fa;
    padding-top: 12px;
}

.support-conversation-shell .table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.support-conversation-shell tbody tr {
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(22, 44, 88, 0.06);
}

.support-conversation-shell tbody td:first-child {
    border-radius: 10px 0 0 10px;
}

.support-conversation-shell tbody td:last-child {
    border-radius: 0 10px 10px 0;
}

.admin-action-group {
    gap: 6px;
    flex-wrap: wrap;
}

.admin-action-group .btn,
.support-actions .btn,
.table .btn {
    min-height: 40px;
    border-radius: 10px;
}

.table td .btn-label {
    font-size: 12px;
}

.search-form {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(12, 22, 44, 0.08);
}

.catalog-filter-panel {
    background: #ffffff;
    border: 1px solid var(--catalog-panel-border);
    border-radius: var(--catalog-panel-radius);
    box-shadow: var(--catalog-panel-shadow);
    padding: 18px;
    position: relative;
    z-index: 80;
    overflow: visible;
}

.catalog-filter-panel .form-group {
    position: relative;
    overflow: visible;
}

.catalog-filter-panel .form-group > i {
    position: absolute;
    left: 14px;
    top: 15px;
    color: #3860b8;
    z-index: 2;
}

.catalog-filter-panel .form-control,
.catalog-filter-panel .nice-select {
    background: #fdf8f4;
    border: 1px solid #e4d7cb;
    border-radius: var(--catalog-field-radius);
    min-height: var(--catalog-field-height);
    height: var(--catalog-field-height);
    padding-left: 40px;
    color: #29446d;
}

.catalog-filter-panel .form-control::placeholder {
    color: var(--catalog-placeholder);
}

.catalog-filter-panel .nice-select .list {
    border: 1px solid #d8e4fa;
    border-radius: 12px;
    z-index: 1300;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(14, 39, 92, 0.18);
}

.catalog-filter-panel .nice-select {
    position: relative;
    z-index: 90;
}

.catalog-filter-panel .nice-select.open {
    z-index: 1400;
}

.catalog-filter-form,
.catalog-filter-form .catalog-filter-main-row,
.catalog-filter-form .catalog-filter-advanced-field {
    position: relative;
    overflow: visible;
}

.catalog-filter-panel .theme-btn {
    min-height: var(--catalog-field-height);
    border-radius: var(--catalog-field-radius);
}

.catalog-filter-panel .theme-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.catalog-filter-form .catalog-filter-main-row {
    row-gap: 12px;
}

.catalog-filter-advanced {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #e4ecfb;
}

.catalog-filter-advanced .row {
    margin-top: 0;
}

.catalog-filter-panel .js-catalog-advanced-toggle {
    min-height: 42px;
    padding: 9px 14px;
}

.property-listing .listing-item,
.property-map-area .listing-list .listing-item {
    border: 1px solid var(--catalog-panel-border);
    background: #fff;
    box-shadow: 0 12px 28px rgba(10, 28, 68, 0.1);
    position: relative;
    z-index: 1;
}

.category-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(22, 34, 66, 0.14);
}

.listing-item {
    border-radius: 12px;
    transition: transform 0.25s ease;
    overflow: hidden;
}

.listing-item:hover {
    transform: translateY(-4px);
}

.theme-btn i {
    margin-right: 6px;
}

.listing-img {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.listing-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-img .property-card-slider,
.listing-img .property-card-slider .owl-stage-outer,
.listing-img .property-card-slider .owl-stage,
.listing-img .property-card-slider .owl-item {
    height: 100%;
}

.listing-img .property-card-slider .owl-nav {
    margin-top: 0;
}

.listing-img .property-card-slider .owl-nav button.owl-prev,
.listing-img .property-card-slider .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    z-index: 4;
}

.listing-img .property-card-slider .owl-nav button.owl-prev {
    left: 10px;
}

.listing-img .property-card-slider .owl-nav button.owl-next {
    right: 10px;
}

.listing-img .property-card-slider .owl-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    z-index: 4;
}

.listing-img .property-card-thumbs {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 5;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

.listing-img .property-card-thumb {
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 0;
    width: 46px;
    height: 34px;
    overflow: hidden;
    flex: 0 0 auto;
    background: #fff;
    opacity: 0.82;
    transition: all 0.2s ease;
    scroll-snap-align: start;
}

.listing-img .property-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-img .property-card-thumb:hover,
.listing-img .property-card-thumb.is-active {
    border-color: var(--warm-tint-strong);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(88, 49, 24, 0.28);
}

.listing-img .property-card-thumbs::-webkit-scrollbar {
    height: 0;
}

.listing-content {
    min-height: 290px;
}

:root {
    --z-overlay-backdrop: 1190;
    --z-overlay-modal: 1200;
    --z-overlay-swal: 1210;
    --z-mobile-nav: 1090;
}

body.overlay-open {
    overflow: hidden;
}

body.overlay-open .mobile-app-nav,
body.overlay-open #scroll-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
}

body.overlay-open .nice-select.open {
    z-index: 1100 !important;
}

.modal-backdrop.show {
    z-index: var(--z-overlay-backdrop);
}

.modal.show {
    z-index: var(--z-overlay-modal);
}

.swal2-container {
    z-index: var(--z-overlay-swal) !important;
}

.bantu-modern-modal {
    border: 1px solid rgba(51, 84, 148, 0.2);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(8, 21, 48, 0.32);
}

.bantu-modern-modal .swal2-title {
    font-size: 1.45rem;
    color: #183367;
}

.bantu-modern-modal .swal2-html-container {
    color: #3c4e71;
    line-height: 1.58;
}

.bantu-modern-modal .swal2-actions {
    gap: 10px;
    flex-wrap: wrap;
}

.bantu-install-confirm,
.bantu-modern-modal .swal2-confirm {
    border-radius: 12px !important;
    padding: 10px 18px !important;
    background: linear-gradient(135deg, #2a66d9, #1e4da8) !important;
}

.bantu-install-cancel,
.bantu-modern-modal .swal2-cancel {
    border-radius: 12px !important;
    padding: 10px 18px !important;
}

.bantu-install-legal,
.bantu-modern-modal .swal2-deny {
    border-radius: 12px !important;
    padding: 10px 18px !important;
    background: #edf3ff !important;
    color: #1f4ea6 !important;
}

.pwa-install-note {
    margin: 0 0 10px;
    font-size: 0.96rem;
}

.pwa-install-guide {
    border: 1px solid #e3ebfb;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7faff, #ffffff);
    padding: 12px 14px;
    margin-bottom: 12px;
}

.pwa-install-steps {
    margin: 0;
    padding-left: 20px;
    text-align: left;
}

.pwa-install-steps li {
    margin-bottom: 6px;
}

.pwa-consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid #dae5fb;
    padding: 10px;
    text-align: left;
    font-size: 0.92rem;
}

.pwa-consent-check input {
    margin-top: 4px;
}

.pwa-legal-copy ul {
    margin: 8px 0 12px;
    padding-left: 20px;
}

.mobile-app-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: var(--z-mobile-nav);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 16px;
    background: rgba(20, 26, 44, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.mobile-app-nav-link {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    gap: 2px;
    width: 20%;
}

.mobile-app-nav-link i {
    font-size: 18px;
    line-height: 1;
}

.mobile-app-nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.mobile-app-nav-link.active i {
    color: #e6cdbb;
}

.user-profile-card,
.dashboard-widget,
.booking-summary,
.login-form {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.44);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(66, 40, 24, 0.14);
}

.user-profile-sidebar {
    background: linear-gradient(145deg, rgba(67, 41, 25, 0.95), rgba(85, 54, 34, 0.92));
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(25, 14, 8, 0.3);
}

.user-profile-sidebar-top h4 {
    color: #fff8f1;
}

.user-profile-sidebar-top p {
    color: #ddc6b5;
}

.user-profile-sidebar .user-profile-sidebar-list li a {
    color: #f5e6da;
    background: transparent;
}

.user-profile-sidebar .user-profile-sidebar-list li a i {
    color: #d8b79f;
}

.user-profile-sidebar-list a {
    border-radius: 10px;
    transition: all 0.25s ease;
}

.user-profile-sidebar-list a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.user-profile-sidebar .user-profile-sidebar-list .active,
.admin-sidebar .user-profile-sidebar-list .active {
    background: #ffffff;
    color: #5a3420;
    box-shadow: 0 8px 18px rgba(40, 23, 13, 0.26);
}

.user-profile-sidebar .user-profile-sidebar-list .active i,
.admin-sidebar .user-profile-sidebar-list .active i {
    color: #2458c8;
}

.table tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(25, 65, 128, 0.05);
}

@media (max-width: 991.98px) {
    .header-top,
    .listing-author,
    .user-profile-sidebar-top p,
    .about-area,
    .ux-guide-section,
    .footer-widget,
    .footer-newsletter,
    .footer-social {
        display: none !important;
    }
    body {
        padding-bottom: calc(120px + env(safe-area-inset-bottom));
        scroll-padding-bottom: calc(120px + env(safe-area-inset-bottom));
    }
    .listing-content {
        min-height: auto;
    }
    .user-profile {
        padding-top: 50px !important;
        padding-bottom: 80px !important;
    }
    .user-profile-sidebar {
        margin-bottom: 16px;
    }
    .user-profile-sidebar-list {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        white-space: nowrap;
    }
    .user-profile-sidebar-list li {
        display: inline-flex;
    }
    .user-profile-sidebar-list a {
        min-width: 42px;
        height: 42px;
        border-radius: 10px;
        padding: 0 10px;
        font-size: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .user-profile-sidebar-list a i {
        font-size: 16px;
        margin-right: 0;
    }
    .user-profile-sidebar-list a::after {
        content: "";
    }
    .user-profile-card-header-right .user-profile-search {
        display: none;
    }
    .table-responsive {
        border-radius: 12px;
    }
    /* Mobile: hide low priority columns only where needed */
    .admin-recent-reservations-table th:nth-child(2),
    .admin-recent-reservations-table td:nth-child(2),
    .admin-recent-reservations-table th:nth-child(3),
    .admin-recent-reservations-table td:nth-child(3) {
        display: none;
    }
    .table td,
    .table th {
        font-size: 12px;
        padding: 8px 6px;
    }
    .admin-property-price {
        font-size: 18px;
    }
    .admin-property-kpi {
        font-size: 12px;
        min-height: 40px;
    }
    .btn-label {
        display: none !important;
    }
    .btn,
    .theme-btn {
        min-width: 40px;
    }
    .support-conversation-shell table,
    .support-conversation-shell thead,
    .support-conversation-shell tbody,
    .support-conversation-shell th,
    .support-conversation-shell td,
    .support-conversation-shell tr {
        display: block;
        width: 100%;
    }
    .support-conversation-shell thead {
        display: none;
    }
    .support-conversation-shell tbody tr {
        margin-bottom: 10px;
        border-radius: 12px;
        border: 1px solid #e1e8f3;
        padding: 10px;
    }
    .support-conversation-shell tbody td {
        border: 0 !important;
        padding: 6px 4px;
    }
    .support-message-content {
        min-width: 100%;
        max-width: 100%;
    }
    .support-inbox-layout {
        min-height: auto;
    }
    .support-thread-list {
        max-height: 320px;
    }
    .support-thread-panel {
        padding: 12px;
    }
    .theme-btn {
        font-size: 13px;
        padding: 10px 14px;
    }
    .navbar-toggler,
    .mobile-menu-right {
        display: none !important;
    }
    .search-form .form-control,
    .search-form .form-select,
    .search-form .nice-select,
    .advanced-search-menu .form-control,
    .advanced-search-menu .nice-select {
        min-height: 52px;
        height: 52px;
        font-size: 14px;
    }
    .search-form .form-control::placeholder,
    .advanced-search-menu .form-control::placeholder {
        font-size: 13px;
    }
}

@media (max-width: 991.98px) {
    .mobile-app-nav {
        bottom: max(10px, env(safe-area-inset-bottom));
    }

    .mobile-app-nav.mobile-app-nav-private {
        justify-content: space-around;
        padding: 8px 10px;
    }

    .mobile-app-nav.mobile-app-nav-private .mobile-app-nav-link {
        width: auto;
        min-width: 48px;
        min-height: 44px;
        border-radius: 12px;
        font-size: 0;
        gap: 0;
        padding: 0 6px;
    }

    .mobile-app-nav.mobile-app-nav-private .mobile-app-nav-link span {
        display: none;
    }

    .mobile-app-nav.mobile-app-nav-private .mobile-app-nav-link i {
        font-size: 19px;
        margin: 0;
    }

    body.is-private-context .user-profile-sidebar {
        display: none !important;
    }
}

.ux-guide-section {
    margin: 30px 0 20px;
}

.ux-guide-shell {
    height: 100%;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid rgba(36, 84, 199, 0.12);
    background: linear-gradient(145deg, rgba(246, 250, 255, 0.95), rgba(255, 255, 255, 0.94));
    box-shadow: 0 14px 30px rgba(14, 39, 92, 0.1);
}

.ux-guide-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.ux-guide-title h3 {
    margin: 0;
    font-size: 23px;
    font-weight: 700;
    color: #1a2f57;
}

.ux-guide-title i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 88, 210, 0.1);
    color: #2454c7;
}

.ux-guide-card {
    height: 100%;
    position: relative;
    padding: 18px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5ebf7;
    box-shadow: 0 10px 20px rgba(17, 44, 96, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ux-guide-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, var(--warm-tint-strong), var(--warm-tint-soft));
}

.ux-guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 28px rgba(17, 44, 96, 0.13);
}

.ux-guide-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7a4b2a, #5e351d);
}

.ux-guide-card h5 {
    font-size: 17px;
    margin-bottom: 8px;
    color: #1d3159;
}

.ux-guide-card p {
    margin-bottom: 0;
    color: #5f6c84;
    line-height: 1.55;
}

.ux-highlight {
    border-radius: 14px;
    border: 1px solid #eadfd5;
    background: linear-gradient(120deg, #f8f2eb, #fffdfb);
    padding: 16px 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ux-highlight ul {
    margin: 0;
    padding-left: 18px;
}

.ux-guide-shell.text-center .ux-highlight ul {
    display: inline-block;
    text-align: left;
}

.ux-highlight li {
    margin-bottom: 6px;
    color: #2a3f68;
}

.ux-illustration-card {
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(140deg, #0f284f, #1a3f79);
    box-shadow: 0 14px 36px rgba(10, 29, 58, 0.26);
}

.ux-illustration-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 240px;
    opacity: 0.93;
}

.ux-illustration-caption {
    padding: 14px 16px;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    background: rgba(5, 12, 28, 0.45);
}

.ux-admin-tip {
    margin-top: 14px;
    padding: 13px 14px;
    border-radius: 10px;
    border-left: 4px solid var(--warm-tint-strong);
    background: rgba(122, 75, 42, 0.1);
    color: #5a3822;
    font-size: 14px;
}

@media (max-width: 767.98px) {
    .ux-guide-title h3 {
        font-size: 19px;
    }

    .ux-guide-shell {
        padding: 16px;
    }

    .ux-guide-card {
        padding: 15px;
    }

    .ux-illustration-card img {
        min-height: 190px;
    }

    .search-form .row > div {
        margin-bottom: 10px;
    }
}

.catalog-mobile-tips {
    position: sticky;
    top: 20px;
    z-index: 95;
}

.catalog-mobile-tips-btn {
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(16, 38, 76, 0.15);
}

.mobile-filter-bar {
    position: sticky;
    top: 76px;
    z-index: 90;
}

@media (max-width: 991.98px) {
    .catalog-mobile-tips {
        top: 76px;
    }

    .mobile-filter-bar {
        top: 140px;
    }
}

.catalog-mobile-tips-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(247, 250, 255, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 18px 36px rgba(12, 30, 64, 0.2);
}

.catalog-mobile-tips-modal .modal-title {
    font-weight: 700;
    color: #1a2f57;
}

.catalog-mobile-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #eadfd6;
    border-radius: 12px;
    background: #fff;
}

.catalog-mobile-tip-step {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7a4b2a, #5e351d);
}

.catalog-mobile-tip-item h6 {
    margin: 1px 0 4px;
    font-size: 15px;
    color: #1d3159;
}

.catalog-mobile-tip-item p {
    margin: 0;
    color: #5f6c84;
    font-size: 13px;
    line-height: 1.45;
}

.listing-ux-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 6px 10px;
    border-radius: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 14px rgba(11, 23, 47, 0.2);
}

.listing-ux-badge-new {
    background: linear-gradient(135deg, #12a15b, #0d8a4d);
}

.listing-ux-badge-popular {
    background: linear-gradient(135deg, #dc7a10, #c65b0f);
}

.property-listing .theme-btn {
    font-weight: 600;
}

.property-single-slide-item {
    border-radius: 14px;
    overflow: hidden;
}

.property-single-slide-item img {
    width: 100%;
    min-height: 360px;
    max-height: 500px;
    object-fit: cover;
}

.reservations-modern-table .table thead th {
    background: #f8f2ec;
}

.reservations-modern-table .table tbody tr {
    background: #fff;
}

.reservation-date-chip {
    display: inline-block;
    border: 1px solid #e5d7cb;
    background: #f9f3ed;
    color: #744728;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
}

.reservation-detail-modern {
    border: 1px solid #e8ddd3;
    background: #fdf9f5;
    border-radius: 14px;
    padding: 14px;
}

.reservation-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.reservation-detail-item {
    border: 1px solid #ece1d8;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reservation-detail-item strong {
    color: #744628;
    font-size: 12px;
}

.reservation-detail-item span {
    color: #5c4a3f;
}

.portal-detail-shell {
    border: 1px solid #e8ddd3;
    background: linear-gradient(155deg, #fdf9f5, #f7eee6);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 14px 28px rgba(79, 49, 30, 0.12);
}

.portal-detail-media img {
    border-radius: 12px;
    width: 100%;
    object-fit: cover;
}

.portal-detail-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #eadfd6;
}

.portal-detail-hero-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7a4b2a, #b38564);
    color: #fff;
    flex-shrink: 0;
}

.portal-detail-hero h4,
.portal-detail-hero h5 {
    margin: 0;
    color: #523321;
}

.portal-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.portal-detail-card {
    border: 1px solid #ece1d8;
    border-radius: 12px;
    background: #fff;
    padding: 11px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 86px;
}

.portal-detail-card.portal-detail-card-full {
    grid-column: 1 / -1;
}

.portal-detail-card strong {
    color: #744628;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.15px;
}

.portal-detail-card span {
    color: #5c4a3f;
    font-size: 14px;
    line-height: 1.4;
}

.portal-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.portal-detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    color: #734527;
    background: #f8f0e9;
    border: 1px solid #e6d8cb;
}

.portal-detail-tag-muted {
    color: #6b7b98;
    background: #f6f8fc;
    border-color: #e6edf8;
}

.portal-detail-modal .modal-header {
    border-bottom: 1px solid #eadfd6;
    background: linear-gradient(140deg, #fdf8f3, #f6ede5);
}

.portal-detail-modal .modal-title {
    color: #593622;
    font-weight: 700;
}

.portal-detail-modal .modal-body {
    background: #fbf6f2;
}

.portal-detail-modal .portal-detail-shell {
    animation: portalModalFadeIn 220ms ease-out;
}

.portal-detail-modal .portal-detail-hero {
    animation: portalModalSlideUp 260ms ease-out;
}

.portal-detail-modal .portal-detail-card {
    animation: portalModalSlideUp 280ms ease-out;
}

.portal-detail-modal .portal-detail-grid .portal-detail-card:nth-child(2) { animation-delay: 20ms; }
.portal-detail-modal .portal-detail-grid .portal-detail-card:nth-child(3) { animation-delay: 35ms; }
.portal-detail-modal .portal-detail-grid .portal-detail-card:nth-child(4) { animation-delay: 50ms; }
.portal-detail-modal .portal-detail-grid .portal-detail-card:nth-child(5) { animation-delay: 65ms; }
.portal-detail-modal .portal-detail-grid .portal-detail-card:nth-child(6) { animation-delay: 80ms; }

@keyframes portalModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes portalModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .portal-detail-hero {
        align-items: flex-start;
    }

    .portal-detail-grid {
        grid-template-columns: 1fr;
    }
}

.reservation-skeleton .skeleton-line,
.reservation-skeleton .skeleton-card {
    background: linear-gradient(90deg, #f4e9de 25%, #fcf7f2 50%, #f4e9de 75%);
    background-size: 220% 100%;
    animation: reservationSkeleton 1.25s infinite ease-in-out;
    border-radius: 8px;
}

.reservation-skeleton .skeleton-line {
    height: 14px;
    margin-bottom: 10px;
}

.reservation-skeleton .skeleton-card {
    height: 68px;
    border: 1px solid #e7efff;
}

.reservation-skeleton .w-60 { width: 60%; }
.reservation-skeleton .w-30 { width: 30%; }

@keyframes reservationSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -20% 0; }
}

.property-map-box #property-map-listing {
    min-height: 800px;
}

@media (max-width: 991.98px) {
    .property-map-box #property-map-listing {
        min-height: 420px;
    }

    .property-map-listing {
        padding: 0 12px;
    }

    .listing-bottom {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .mobile-filter-bar {
        top: 68px;
    }
}

/* Global modern refresh */
:root {
    --modern-primary: #7a4b2a;
    --modern-primary-strong: #5e351d;
    --modern-surface: #ffffff;
    --modern-surface-soft: #f8f2ec;
    --modern-border: #eadfd5;
    --modern-shadow: 0 14px 34px rgba(61, 35, 20, 0.16);
    --modern-shadow-soft: 0 8px 22px rgba(61, 35, 20, 0.1);
}

body.home-3 {
    background:
        radial-gradient(980px 380px at 92% -120px, rgba(122, 75, 42, 0.18), transparent 56%),
        radial-gradient(620px 280px at -10% 22%, rgba(179, 133, 100, 0.14), transparent 54%),
        #f7f2ee;
}

.header {
    box-shadow: 0 6px 18px rgba(7, 27, 62, 0.08);
}

.main-navigation {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(232, 220, 211, 0.88);
}

.navbar-brand h3 {
    background: linear-gradient(135deg, #5e351d, #9d6f4f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.header .nav-link {
    border-radius: 10px;
    padding: 10px 14px !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.header .nav-link i {
    font-size: 13px;
    opacity: 0.92;
}

.header .nav-link:hover,
.header .nav-link.active {
    color: var(--modern-primary) !important;
    background: rgba(122, 75, 42, 0.12);
}

.theme-btn,
.btn-primary {
    background: linear-gradient(135deg, var(--modern-primary), var(--modern-primary-strong));
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(82, 49, 27, 0.28);
}

.theme-btn:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(82, 49, 27, 0.34);
}

.theme-btn-soft {
    background: #f7efe8;
    color: #6e3f23 !important;
    border: 1px solid #e7d8cc;
    box-shadow: none;
}

.theme-btn-soft:hover {
    background: #f2e5da;
    color: #53301b !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(92, 57, 33, 0.16);
}

.contact-page-main .contact-modern-card,
.contact-page-main .contact-modern-card * {
    overflow: visible;
}

.contact-page-main .contact-modern-card p,
.contact-page-main .contact-modern-list li,
.contact-page-main .message-center-note {
    white-space: normal;
    word-break: break-word;
    line-height: 1.55;
}

.contact-page-main #publicContactMessage {
    min-height: 160px;
    resize: vertical;
}

.contact-page-main .message-template-list {
    gap: 10px;
}

.contact-page-main .public-template-btn {
    min-height: 38px;
    padding: 6px 12px;
}

.listing-item,
.user-profile-card,
.dashboard-widget,
.booking-summary,
.login-form,
.table-responsive {
    border: 1px solid var(--modern-border);
    border-radius: 16px;
    background: rgba(255, 253, 251, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--modern-shadow-soft);
}

.table thead th {
    background: var(--modern-surface-soft);
    color: #593722;
    border-bottom-color: #e6d8cc;
}

.badge,
.status-badge {
    border-radius: 999px !important;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.support-thread-panel,
.support-thread-item,
.admin-property-block,
.admin-property-kpi {
    border-color: var(--modern-border);
    box-shadow: var(--modern-shadow-soft);
}

.footer-area {
    background: linear-gradient(180deg, #3f2415 0%, #2f190f 100%);
}

/* Improve footer contrast on dark background */
.footer-area .footer-logo,
.footer-area .footer-widget-box p,
.footer-area .footer-contact li,
.footer-area .footer-contact li a,
.footer-area .footer-newsletter p,
.footer-area .footer-list li a {
    color: #f7ece4;
}

.footer-area .footer-widget-title {
    color: #fff6ef;
}

.footer-area .footer-widget-title::before,
.footer-area .footer-widget-title::after,
.footer-area .footer-list li a i,
.footer-area .footer-contact li i {
    background-color: #b38564;
    color: #fff6ef;
}

.footer-area .footer-list li a:hover,
.footer-area .footer-contact li a:hover,
.copyright .copyright-text a,
.copyright .footer-menu li a {
    color: #d6ad90;
}

.footer-area .subscribe-form .form-control {
    background: #fff7ef;
    color: #3f2617;
}

.footer-area .subscribe-form .form-control::placeholder {
    color: #8a705e;
}

.home-mobile-hub {
    padding: 10px 0 20px;
}

.home-mobile-hub-card {
    background: #ffffff;
    border: 1px solid #d6e3fb;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(12, 35, 72, 0.12);
    padding: 16px;
}

.home-mobile-hub-card h4 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #102a56;
}

.home-mobile-hub-card p {
    margin-bottom: 12px;
    color: #4e648e;
}

.home-mobile-hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-btn-outline {
    background: #f8f1ea;
    color: #744628;
}

.theme-btn-outline:hover {
    background: #f1e2d7;
    color: #5a3420;
}

.advanced-search-menu {
    z-index: 120;
}

.advanced-search-menu .form-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.advanced-filter-icon {
    color: var(--modern-primary);
    min-width: 16px;
}

.decouvrir-card {
    display: block;
    height: 100%;
    border-radius: 14px;
    border: 1px solid #d6e3fb;
    background: #fff;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(12, 35, 72, 0.08);
    transition: all 0.25s ease;
}

.decouvrir-card h4 {
    color: #102a56;
    margin-bottom: 8px;
}

.decouvrir-card p {
    color: #4e648e;
    margin-bottom: 10px;
}

.decouvrir-card span {
    color: #1f54c8;
    font-weight: 600;
}

.decouvrir-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(12, 35, 72, 0.16);
}

@media (max-width: 991.98px) {
    body.is-home-route .header,
    body.is-home-route .footer-area,
    body.is-home-route .copyright,
    body.is-home-route #scroll-top {
        display: none !important;
    }
    body.is-home-route .home-scroll-sections {
        display: none !important;
    }
    body.is-home-route .main {
        margin-top: 0;
    }
    body.is-home-route .hero-single {
        min-height: 62vh;
    }
    body.is-home-route .hero-title {
        font-size: 38px;
        line-height: 1.15;
    }
    body.is-home-route .search-area {
        margin-top: -34px;
        padding-bottom: 10px;
    }
    body.is-home-route .search-form {
        position: relative;
        z-index: 30;
    }
    body.is-home-route .home-mobile-hub {
        position: relative;
        z-index: 5;
    }
    body.is-home-route .advanced-search-menu {
        position: relative;
        top: auto;
        left: auto;
        margin-top: 10px;
        min-height: 0;
        padding: 16px;
        z-index: 40;
    }
    body.is-home-route .advanced-search-menu::before {
        display: none;
    }
    .main-navigation {
        border-radius: 0 0 16px 16px;
    }
    .catalog-filter-panel {
        padding: 14px;
    }
    .catalog-filter-advanced {
        margin-top: 12px;
        padding-top: 12px;
    }
    .catalog-filter-panel .theme-btn,
    .catalog-filter-panel .theme-btn-outline {
        width: 100%;
    }
    .header .nav-link {
        padding: 8px 10px !important;
    }
    .contact-page-main .contact-area {
        padding-top: 70px !important;
        padding-bottom: 120px !important;
    }
    .contact-page-main .contact-modern-card {
        padding: 16px;
    }
    .contact-page-main .contact-modern-card h3 {
        font-size: 20px;
        line-height: 1.3;
    }
    .contact-page-main #publicContactCounter {
        font-size: 12px;
    }
}

/* Fixes d'affichage + modernisation structurelle */
.contact-page-main .contact-modern-info {
    display: block;
    width: 100%;
}

.contact-page-main .contact-modern-info h3 {
    margin-bottom: 12px;
}

.contact-page-main .contact-modern-info p {
    margin-bottom: 14px;
    color: #51627f;
}

/* Securite: neutralise tout ancien layout flex "contact-info" */
.contact-page-main .contact-info,
.contact-page-main .contact-modern-info,
.contact-page-main .contact-modern-card {
    display: block !important;
}

.contact-page-main .contact-modern-card > * {
    width: 100%;
    max-width: 100%;
}

.contact-page-main .contact-modern-list {
    display: block;
    width: 100%;
}

.contact-page-main .contact-modern-list li {
    display: block;
    width: 100%;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.6;
}

.contact-page-main .message-template-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.user-profile-sidebar {
    padding: 24px 18px;
}

.user-profile-sidebar .user-profile-sidebar-top {
    border-bottom-color: rgba(194, 212, 255, 0.24);
}

.user-profile-sidebar .user-profile-sidebar-list li a {
    color: #e9f0ff !important;
    font-weight: 500;
    opacity: 1;
}

.user-profile-sidebar .user-profile-sidebar-list li a i {
    color: #d8b79f !important;
}

.user-profile-sidebar .user-profile-sidebar-list li a:hover {
    color: #ffffff !important;
}

.user-profile-sidebar .user-profile-sidebar-list .active,
.admin-sidebar .user-profile-sidebar-list .active {
    background: linear-gradient(135deg, #7a4b2a, #b38564);
    color: #ffffff !important;
}

.user-profile-sidebar .user-profile-sidebar-list .active i,
.admin-sidebar .user-profile-sidebar-list .active i {
    color: #ffffff !important;
}

.dashboard-widget {
    min-height: 142px;
    border-radius: 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(17, 44, 96, 0.16);
}

.dashboard-hero-banner {
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(173, 130, 98, 0.34);
    background:
        radial-gradient(circle at 12% 18%, rgba(153, 105, 69, 0.26), transparent 45%),
        radial-gradient(circle at 90% 75%, rgba(199, 161, 131, 0.22), transparent 48%),
        linear-gradient(130deg, #fcf8f4, #f6ede5);
    box-shadow: 0 16px 34px rgba(80, 50, 30, 0.14);
}

.dashboard-hero-banner h3 {
    margin: 8px 0 4px;
    font-size: clamp(21px, 2.2vw, 30px);
    color: #1b2f57;
}

.dashboard-hero-banner p {
    margin: 0;
    color: #496088;
}

.dashboard-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e7d8ca;
    background: rgba(255, 255, 255, 0.75);
    color: #76492c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25px;
    text-transform: uppercase;
}

.dashboard-widget .dashboard-widget-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: iconFloat 3.2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.dashboard-widget .dashboard-widget-info h1 {
    font-size: clamp(26px, 2.2vw, 40px);
    line-height: 1.08;
    margin: 0 0 8px;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(5, 18, 44, 0.25);
}

.dashboard-widget .dashboard-widget-info span {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.96) !important;
    text-shadow: 0 1px 4px rgba(5, 18, 44, 0.24);
    font-size: 1.05rem;
}

.dashboard-widget .dashboard-widget-info {
    max-width: calc(100% - 72px);
}

.dashboard-widget .dashboard-widget-info h1,
.dashboard-widget .dashboard-widget-info span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dashboard-kpi-row > div {
    display: flex;
}

.dashboard-widget-color-1 {
    background: linear-gradient(135deg, #6f4226, #8f5c3c);
    color: #fff;
}

.dashboard-widget-color-2 {
    background: linear-gradient(135deg, #8b5a3d, #b98d6d);
    color: #fff;
}

.dashboard-widget-color-3 {
    background: linear-gradient(135deg, #0d7f7b, #10a8a3);
    color: #fff;
}

.dashboard-widget-color-1 .dashboard-widget-icon,
.dashboard-widget-color-2 .dashboard-widget-icon,
.dashboard-widget-color-3 .dashboard-widget-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.ux-quick-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e8ddd3;
    background: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ux-quick-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(17, 44, 96, 0.14);
}

.ux-quick-link-card:hover .ux-quick-link-icon {
    transform: scale(1.06);
}

.ux-quick-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7a4b2a, #b38564);
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ux-quick-link-card h5 {
    margin: 0 0 2px;
    color: #1d3159;
    font-size: 15px;
}

.ux-quick-link-card p {
    margin: 0;
    color: #5f6c84;
    font-size: 14px;
}

.dashboard-tips-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dashboard-tips-inline span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f8f1ea;
    border: 1px solid #e6d8cb;
    color: #6f4226;
    font-size: 14px;
    font-weight: 600;
}

.dashboard-tips-modal {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(20, 41, 84, 0.28);
}

.dashboard-tips-modal .modal-header {
    border-bottom: 1px solid #eadfd6;
    background: linear-gradient(130deg, #fdf8f3, #f6ede5);
}

.dashboard-tips-list {
    margin: 0;
    padding-left: 18px;
}

.dashboard-tips-list li {
    margin-bottom: 8px;
    color: #5f4a3d;
    font-size: 15px;
    line-height: 1.55;
}

.admin-users-table .user-role-select {
    min-width: 170px;
}

.admin-users-table {
    table-layout: auto;
    min-width: 980px;
}

.admin-users-table th,
.admin-users-table td {
    vertical-align: middle;
    white-space: nowrap;
}

.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1) {
    min-width: 220px;
}

.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) {
    min-width: 230px;
}

.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3) {
    min-width: 180px;
}

.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4) {
    min-width: 210px;
}

.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5) {
    min-width: 130px;
}

.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6) {
    min-width: 140px;
}

.admin-users-table td[data-label="Role"] .user-role-select {
    width: 100%;
    min-width: 170px;
}

.admin-users-table td[data-label="Localisation"] {
    white-space: normal;
}

.create-user-actions small {
    line-height: 1.5;
}

/* Pagination readable across admin + front pages */
.pagination {
    flex-wrap: wrap;
    gap: 8px;
}

.pagination .page-link {
    width: auto;
    height: auto;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 9px 14px;
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
}

.pagination .page-item.disabled .page-link {
    opacity: 1;
    color: #dfe9ff;
    background: #193a66;
}

.pagination .page-item:not(.disabled) .page-link:hover,
.pagination .page-item.active .page-link {
    transform: translateY(-1px);
}

.theme-btn:focus-visible,
.btn:focus-visible,
.user-profile-sidebar-list a:focus-visible,
.ux-quick-link-card:focus-visible,
.dashboard-tips-inline .btn:focus-visible,
.modal .btn-close:focus-visible {
    outline: 3px solid var(--ux-focus-strong);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.3rem var(--ux-focus);
}

.user-profile-wrapper .user-profile-card {
    padding: 20px;
}

.admin-table-static {
    overflow: visible !important;
}

@media (max-width: 991.98px) {
    .dashboard-hero-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .dashboard-hero-banner .theme-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .user-profile.py-120 {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }

    .user-profile-wrapper .user-profile-card {
        padding: 14px;
        border-radius: 14px;
    }

    .user-profile-card-title,
    .user-profile-card-header .user-profile-card-title {
        font-size: 1.18rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .user-profile-card p,
    .user-profile-card small,
    .user-profile-card label,
    .user-profile-card .text-muted {
        font-size: 13px;
        line-height: 1.45;
    }

    .form-control,
    .form-select {
        min-height: 42px;
        font-size: 14px;
        padding: 9px 11px;
    }

    .btn,
    .theme-btn {
        min-height: 40px;
        font-size: 14px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .table-responsive {
        border-radius: 12px;
    }

    .dashboard-kpi-row > div {
        display: block;
    }

    .dashboard-widget {
        width: 100%;
        min-height: 96px;
        padding: 14px;
        border-radius: 14px;
        gap: 10px;
    }

    .dashboard-widget .dashboard-widget-info h1 {
        font-size: clamp(20px, 7vw, 29px);
        margin-bottom: 4px;
    }

    .dashboard-widget .dashboard-widget-info span {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .dashboard-widget .dashboard-widget-icon {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .ux-quick-link-card {
        padding: 14px;
    }

    .dashboard-tips-inline span {
        width: 100%;
        justify-content: flex-start;
    }

    .pagination .page-link {
        min-width: 40px;
        min-height: 40px;
        padding: 8px 10px;
        font-size: 14px;
    }

    .table-responsive .table th,
    .table-responsive .table td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .table-responsive .table {
        min-width: 700px;
    }

    .table-responsive .admin-users-table {
        min-width: 980px;
    }

    .create-user-actions {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .create-user-actions .create-user-btn {
        width: 100%;
    }

    .create-user-actions small {
        display: block;
        font-size: 13px;
    }

    .message-thread-toolbar {
        gap: 8px;
    }

    .message-thread-toolbar .btn,
    .message-thread-toolbar .form-control,
    .message-thread-toolbar .form-select {
        width: 100%;
    }

    .support-thread-item,
    .message-thread-item {
        padding: 10px;
        border-radius: 12px;
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-content {
        border-radius: 14px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 12px;
    }

    .modal-title {
        font-size: 1rem;
        line-height: 1.3;
    }

    .modal-body {
        max-height: 62vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 575.98px) {
    .user-profile.py-120 {
        padding-top: 58px !important;
        padding-bottom: 58px !important;
    }

    .user-profile-card-title,
    .user-profile-card-header .user-profile-card-title {
        font-size: 1.08rem;
    }

    .user-profile-card p,
    .user-profile-card small,
    .user-profile-card label,
    .user-profile-card .text-muted {
        font-size: 12.5px;
    }

    .btn,
    .theme-btn {
        min-height: 38px;
        font-size: 13px;
    }

    .dashboard-hero-banner {
        padding: 12px;
        border-radius: 14px;
    }

    .dashboard-hero-banner h3 {
        font-size: 1.2rem;
    }

    .dashboard-hero-banner p {
        font-size: 12.5px;
    }

    .dashboard-hero-pill {
        font-size: 11px;
        padding: 5px 8px;
    }

    .admin-table-static {
        overflow: visible !important;
    }

    .admin-properties-table,
    .admin-reservations-table {
        min-width: 0 !important;
        width: 100%;
    }

    .admin-properties-table thead,
    .admin-reservations-table thead {
        display: none;
    }

    .admin-properties-table,
    .admin-properties-table tbody,
    .admin-properties-table tr,
    .admin-properties-table td,
    .admin-reservations-table,
    .admin-reservations-table tbody,
    .admin-reservations-table tr,
    .admin-reservations-table td {
        display: block;
        width: 100%;
    }

    .admin-properties-table tbody tr,
    .admin-reservations-table tbody tr {
        border: 1px solid #e8ddd3;
        border-radius: 12px;
        padding: 10px 12px;
        margin-bottom: 10px;
        background: #fff;
    }

    .admin-properties-table td,
    .admin-reservations-table td {
        border: 0;
        padding: 6px 0 !important;
        white-space: normal !important;
    }

    .admin-properties-table td::before,
    .admin-reservations-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        color: #60708b;
        margin-bottom: 2px;
        font-weight: 600;
    }

    .admin-properties-table .table-property-info a {
        align-items: flex-start;
    }

    .admin-properties-table .admin-action-group-compact,
    .admin-reservations-table td[data-label="Action"] {
        max-width: 100%;
    }

    .admin-properties-table .admin-action-group-compact .btn,
    .admin-reservations-table td[data-label="Action"] .btn {
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0 8px;
    }

    .admin-users-table td[data-label="Action"] .btn {
        width: 100%;
    }

    .admin-users-table .user-role-select {
        min-width: 0;
        width: 100%;
    }

    .portal-mobile-card-table {
        min-width: 0 !important;
        width: 100%;
    }

    .portal-mobile-card-table thead {
        display: none;
    }

    .portal-mobile-card-table,
    .portal-mobile-card-table tbody,
    .portal-mobile-card-table tr,
    .portal-mobile-card-table td {
        display: block;
        width: 100%;
    }

    .portal-mobile-card-table tbody tr {
        border: 1px solid #e8ddd3;
        border-radius: 12px;
        padding: 10px 12px;
        margin-bottom: 10px;
        background: #fff;
    }

    .portal-mobile-card-table td {
        border: 0;
        padding: 6px 0 !important;
        white-space: normal !important;
        word-break: normal !important;
    }

    .portal-mobile-card-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        color: #60708b;
        margin-bottom: 2px;
        font-weight: 600;
    }

    .portal-mobile-card-table td {
        font-size: 13px;
    }

    .modal-dialog {
        margin: 8px;
    }

    .modal-content {
        border-radius: 12px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 10px;
    }

    .modal-title {
        font-size: 0.96rem;
    }

    .modal-body {
        max-height: 66vh;
    }

    .modal-footer .btn,
    .modal-footer .theme-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-widget,
    .dashboard-widget:hover,
    .ux-quick-link-card,
    .ux-quick-link-card:hover,
    .ux-quick-link-card:hover .ux-quick-link-icon,
    .theme-btn,
    .btn {
        transition: none !important;
        transform: none !important;
    }

    .dashboard-widget .dashboard-widget-icon {
        animation: none !important;
    }

    .portal-detail-modal .portal-detail-shell,
    .portal-detail-modal .portal-detail-hero,
    .portal-detail-modal .portal-detail-card {
        animation: none !important;
    }
}

.admin-recent-reservations-table {
    table-layout: fixed;
}

.admin-recent-reservations-table th:nth-child(1) { width: 27%; }
.admin-recent-reservations-table th:nth-child(2) { width: 12%; }
.admin-recent-reservations-table th:nth-child(3) { width: 19%; }
.admin-recent-reservations-table th:nth-child(4) { width: 12%; }
.admin-recent-reservations-table th:nth-child(5) { width: 14%; }
.admin-recent-reservations-table th:nth-child(6) { width: 16%; }

.admin-recent-reservations-table td,
#adminPropertiesTable td {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    vertical-align: middle;
}

.admin-recent-reservations-table .table-property-info h6 {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
}

#adminPropertiesTable .table-property-info a {
    display: flex;
    align-items: center;
    gap: 12px;
}

#adminPropertiesTable .table-property-content h6 {
    margin-bottom: 4px;
}

.admin-properties-table th {
    white-space: nowrap;
}

.admin-properties-table .admin-action-group-compact {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 170px;
}

.admin-properties-table .admin-action-group-compact .btn,
.admin-reservations-table .btn {
    min-height: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0 10px;
}

.admin-properties-table .btn-label,
.admin-reservations-table .btn-label {
    display: none;
}

.admin-properties-table td:nth-child(6) {
    min-width: 180px;
}

.message-thread-item,
.support-thread-item,
.ux-guide-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.message-thread-item:hover,
.support-thread-item:hover,
.ux-guide-card:hover {
    transform: translateY(-2px);
}

.property-map-area .property-map-box {
    position: sticky;
    top: 110px;
    left: auto;
    width: 100%;
    height: calc(100vh - 130px);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--modern-border);
    box-shadow: var(--modern-shadow);
}

.property-map-area .property-map-box #property-map-listing {
    min-height: 420px;
    width: 100%;
    height: 100%;
}

.property-map-area .property-map-listing {
    margin-right: 0;
    padding: 18px 20px 18px 8px;
    height: calc(100vh - 130px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.property-map-area .search-form-modern {
    padding: 18px;
}

.property-map-area .property-sort-modern {
    margin-bottom: 18px;
    border-radius: 14px;
    border: 1px solid var(--modern-border);
    background: #fff;
    padding: 14px 16px;
}

.property-map-area .listing-list .listing-item {
    display: grid;
    grid-template-columns: minmax(185px, 220px) 1fr;
    align-items: stretch;
}

.property-map-area .listing-list .listing-img {
    height: 100%;
    min-height: 210px;
}

.property-map-area .listing-list .listing-content {
    min-height: auto;
    display: flex;
    flex-direction: column;
}

.payment-create-shell {
    border-radius: 14px;
    border: 1px solid #e8ddd3 !important;
    box-shadow: 0 10px 22px rgba(73, 45, 27, 0.1);
}

.payment-create-shell .card-body {
    overflow: visible;
}

.payment-search-field {
    position: relative;
}

.payment-suggestions-list {
    display: grid;
    gap: 6px;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 60;
    max-height: 220px;
    overflow: auto;
    padding: 8px;
    border: 1px solid #e5d8cb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(77, 48, 29, 0.16);
}

.payment-suggestions-list:empty {
    display: none;
}

.payment-suggestion-item {
    width: 100%;
    text-align: left;
    border: 1px solid #eadfd5;
    border-radius: 10px;
    background: #fff;
    padding: 9px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #5d3a23;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-suggestion-item strong {
    font-size: 13px;
}

.payment-suggestion-item small {
    font-size: 12px;
    color: #7d6758;
    line-height: 1.35;
}

.payment-suggestion-item:hover {
    border-color: var(--modern-primary);
    box-shadow: 0 10px 20px rgba(90, 54, 31, 0.12);
    transform: translateY(-1px);
}

.payment-context-summary {
    border-top: 1px dashed #e6d9cc;
    padding-top: 10px;
}

.payment-context-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-context-chips span {
    border-radius: 999px;
    border: 1px solid #e2d3c5;
    background: #f8f0e8;
    color: #6a3f24;
    padding: 5px 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.payment-history-table .table tbody tr {
    background: #fff;
}

.payment-history-table .payment-status {
    min-width: 132px;
    color: #1c365f;
    font-size: 13px;
}

.payment-history-table td[data-label="Statut"] {
    min-width: 145px;
}

.payment-history-table .invoice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.payment-history-table .invoice-actions .btn {
    white-space: nowrap;
}

.payment-history-toolbar {
    border: 1px solid #e8ddd3;
    border-radius: 12px;
    background: #fdf9f4;
    padding: 10px 12px;
}

.payment-entity-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-entity-cell strong {
    color: #5c3923;
}

.payment-entity-cell small {
    color: #7c6657;
    font-size: 12px;
}

.payment-entity-cell span {
    color: #345788;
    font-size: 12px;
}

.payment-amount-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-amount-cell strong {
    color: #153f85;
}

.payment-amount-cell small {
    color: #667999;
    text-transform: capitalize;
    font-size: 12px;
}

.property-map-area .listing-list .listing-bottom {
    margin-top: auto;
}

@media (max-width: 991.98px) {
    .navbar-toggler,
    .mobile-menu-right {
        display: none !important;
    }

    .main-navigation .navbar-collapse {
        display: none !important;
    }

    .property-map-area .property-map-box {
        position: relative;
        top: 0;
        height: 430px;
        border-radius: 14px;
    }

    .property-map-area .property-map-listing {
        padding: 0 6px;
        height: auto;
        overflow: visible;
    }

    .property-map-area .listing-list .listing-item {
        grid-template-columns: 1fr;
    }

    .property-map-area .listing-list .listing-img {
        min-height: 190px;
    }

    .listing-img .property-card-thumbs {
        left: 10px;
        right: 10px;
        bottom: 10px;
        gap: 8px;
        padding-bottom: 4px;
    }

    .listing-img .property-card-thumb {
        width: 58px;
        height: 42px;
        border-radius: 9px;
    }

    .admin-recent-reservations-shell,
    .admin-table-static,
    .reservations-modern-table,
    .table-responsive {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive .table,
    .admin-properties-table,
    .admin-reservations-table {
        min-width: 760px;
        table-layout: auto;
    }

    .admin-recent-reservations-table,
    .admin-recent-reservations-table thead,
    .admin-recent-reservations-table tbody,
    .admin-recent-reservations-table tr,
    .admin-recent-reservations-table th,
    .admin-recent-reservations-table td {
        display: block;
        width: 100%;
    }

    .admin-recent-reservations-table thead {
        display: none;
    }

    .admin-recent-reservations-table tbody tr {
        border: 1px solid #e8ddd3;
        border-radius: 12px;
        padding: 10px 12px;
        margin-bottom: 10px;
        background: #fff;
    }

    .admin-recent-reservations-table td {
        padding: 6px 0;
        border: 0;
    }

    .admin-recent-reservations-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        color: #60708b;
        margin-bottom: 2px;
    }

    .admin-properties-table th,
    .admin-properties-table td,
    .admin-reservations-table th,
    .admin-reservations-table td {
        white-space: nowrap;
        word-break: normal;
    }
}

/* Visibilite globale des flèches de navigation (sliders/carousels) */
.owl-theme .owl-nav [class*=owl-] {
    color: #6a3f24 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid #e2d3c4 !important;
    box-shadow: 0 8px 18px rgba(84, 51, 30, 0.2);
}

.owl-theme .owl-nav [class*=owl-]:hover,
.owl-theme .owl-nav [class*=owl-]:focus {
    color: #ffffff !important;
    background: linear-gradient(135deg, #7a4b2a, #5e351d) !important;
    border-color: transparent !important;
}

.owl-theme .owl-nav [class*=owl-] span {
    color: inherit !important;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid #e2d3c4;
    box-shadow: 0 8px 18px rgba(84, 51, 30, 0.2);
    filter: brightness(0) saturate(100%) invert(26%) sepia(25%) saturate(1034%) hue-rotate(344deg) brightness(93%) contrast(92%);
    background-size: 18px 18px;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: #7a4b2a;
    border-color: #7a4b2a;
    filter: brightness(0) saturate(100%) invert(100%);
}

.image-space-selector-list {
    display: grid;
    gap: 10px;
}

.image-space-selector-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e8ddd3;
    border-radius: 12px;
    background: #fdf8f4;
}

.image-space-selector-file {
    color: #63402a;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.property-space-block + .property-space-block {
    margin-top: 14px;
}

.property-space-block h6 {
    margin-bottom: 10px;
    color: #603b24;
}

.property-space-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.property-space-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8ddd3;
    background: #fff;
}

.property-space-gallery-item img {
    width: 100%;
    height: 135px;
    object-fit: cover;
    display: block;
}

.property-detail-map-shell {
    border: 1px solid #e8ddd3;
    border-radius: 14px;
    background: #fdf8f4;
    padding: 10px;
}

.property-detail-map-note {
    font-size: 13px;
    color: #5c6f90;
    margin-bottom: 8px;
}

.property-map-detail {
    width: 100%;
    min-height: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e4d7ca;
}

@media (max-width: 767.98px) {
    .image-space-selector-row {
        grid-template-columns: 1fr;
    }

    .property-map-detail {
        min-height: 250px;
    }
}

/* Global button system: unified look with icon/illustration support */
:root {
    --btn-primary-start: #7a4b2a;
    --btn-primary-end: #b38564;
    --btn-primary-text: #ffffff;
    --btn-radius-xl: 14px;
    --btn-shadow: 0 10px 24px rgba(88, 53, 30, 0.24);
    --btn-shadow-hover: 0 14px 28px rgba(88, 53, 30, 0.3);
}

.theme-btn,
a.btn,
button.btn,
input.btn[type="button"],
input.btn[type="submit"] {
    border-radius: var(--btn-radius-xl) !important;
    min-height: 46px;
    padding: 10px 16px !important;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.theme-btn,
.btn-primary {
    color: var(--btn-primary-text) !important;
    background: linear-gradient(135deg, var(--btn-primary-start), var(--btn-primary-end)) !important;
    box-shadow: var(--btn-shadow);
    border-color: rgba(94, 53, 29, 0.34) !important;
}

.theme-btn:hover,
.theme-btn:focus,
.btn-primary:hover,
.btn-primary:focus {
    color: #ffffff !important;
    background: linear-gradient(135deg, #6f4226, #9f6f4e) !important;
    border-color: rgba(90, 50, 28, 0.44) !important;
    transform: translateY(-1px);
    box-shadow: var(--btn-shadow-hover) !important;
}

.theme-btn:active,
.theme-btn:focus:active,
.btn-primary:active,
.btn-primary:focus:active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #5f371f, #845438) !important;
    border-color: rgba(73, 39, 21, 0.54) !important;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-danger,
.btn-light {
    background: #ffffff !important;
    border-color: #e6d8ca !important;
    color: #6a3e24 !important;
    box-shadow: 0 8px 18px rgba(91, 54, 30, 0.12);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover,
.btn-light:hover {
    background: linear-gradient(135deg, #f8efe7, #fdf8f3) !important;
    border-color: #ccaa90 !important;
    color: #4f2e1a !important;
    transform: translateY(-1px);
}

.btn-outline-primary:active,
.btn-outline-secondary:active,
.btn-outline-success:active,
.btn-outline-warning:active,
.btn-outline-danger:active,
.btn-light:active {
    background: #f0e2d5 !important;
    border-color: #be987b !important;
    color: #452816 !important;
}

.theme-btn > i:first-child,
.theme-btn > span[class*="fa"]:first-child,
.btn > i:first-child,
.btn > span[class*="fa"]:first-child {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    font-size: 12px;
    line-height: 1;
}

.btn-outline-primary > i:first-child,
.btn-outline-secondary > i:first-child,
.btn-outline-success > i:first-child,
.btn-outline-warning > i:first-child,
.btn-outline-danger > i:first-child,
.btn-light > i:first-child {
    background: rgba(47, 111, 253, 0.08);
    border-color: rgba(47, 111, 253, 0.2);
    color: #1d4fa8;
}

.theme-btn img,
.btn img {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn.btn-sm,
.theme-btn.btn-sm {
    min-height: 38px;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    gap: 6px;
}

.btn.btn-sm > i:first-child,
.btn.btn-sm > span[class*="fa"]:first-child {
    width: 22px;
    height: 22px;
    font-size: 11px;
}

/* Hard override: prevent legacy white hover bubble from style.css */
.theme-btn::before,
.theme-btn:hover::before,
.theme-btn:focus::before,
.theme-btn:active::before {
    content: none !important;
    display: none !important;
}

/* Contrast-safe hover/active for every actionable button class */
a.theme-btn:hover,
a.theme-btn:focus,
button.theme-btn:hover,
button.theme-btn:focus,
a.btn:hover,
a.btn:focus,
button.btn:hover,
button.btn:focus,
input.btn[type="button"]:hover,
input.btn[type="submit"]:hover {
    text-decoration: none;
}

a.theme-btn:hover,
a.theme-btn:focus,
button.theme-btn:hover,
button.theme-btn:focus,
.btn-primary:hover,
.btn-primary:focus {
    color: #ffffff !important;
    background: linear-gradient(135deg, #6f4226, #9f6f4e) !important;
    border-color: rgba(90, 50, 28, 0.44) !important;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover,
.btn-light:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:focus,
.btn-outline-success:focus,
.btn-outline-warning:focus,
.btn-outline-danger:focus,
.btn-light:focus {
    color: #4f2e1a !important;
    background: linear-gradient(135deg, #f8efe7, #fdf8f3) !important;
    border-color: #ccaa90 !important;
}

/* Keep semantic filled buttons readable across the platform */
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning {
    border-color: transparent !important;
    box-shadow: 0 10px 22px rgba(18, 66, 165, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, #3f5f95, #284879) !important;
    color: #ffffff !important;
}

.btn-success {
    background: linear-gradient(135deg, #179a5a, #107947) !important;
    color: #ffffff !important;
}

.btn-danger {
    background: linear-gradient(135deg, #dd4d5d, #be3145) !important;
    color: #ffffff !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f6b33f, #e39a1f) !important;
    color: #1f2430 !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: linear-gradient(135deg, #324f84, #213d68) !important;
    color: #ffffff !important;
}

.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, #11884e, #0b6a3d) !important;
    color: #ffffff !important;
}

.btn-danger:hover,
.btn-danger:focus {
    background: linear-gradient(135deg, #cb3c4d, #a72538) !important;
    color: #ffffff !important;
}

.btn-warning:hover,
.btn-warning:focus {
    background: linear-gradient(135deg, #efa72c, #cf8610) !important;
    color: #1f2430 !important;
}

/* Legacy variant alignment */
.theme-btn2 {
    background: #ffffff !important;
    color: #6a3e24 !important;
    border: 1px solid #e6d8ca !important;
}

.theme-btn2:hover,
.theme-btn2:focus {
    background: linear-gradient(135deg, #f8efe7, #fdf8f3) !important;
    color: #4f2e1a !important;
    border-color: #ccaa90 !important;
}

/* Small-screen touch comfort and icon alignment */
@media (max-width: 575.98px) {
    .theme-btn,
    .btn {
        min-height: 40px !important;
        padding: 9px 12px !important;
        font-size: 13px;
        line-height: 1.2;
        white-space: normal;
    }

    .theme-btn > i:first-child,
    .theme-btn > span[class*="fa"]:first-child,
    .btn > i:first-child,
    .btn > span[class*="fa"]:first-child {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

/* Captured zones alignment: topbar/header/footer */
.header-top {
    background: linear-gradient(135deg, #4a2a18, #5f3821) !important;
}

.header-top .header-top-contact-info a,
.header-top .header-top-link {
    color: #f8ede4 !important;
}

.header-top .header-top-contact-info a:hover,
.header-top .header-top-link:hover {
    color: #ffffff !important;
}

.header-top .header-top-social a {
    color: #f6e8dc !important;
}

.header-top .header-top-social a:hover {
    color: #ffffff !important;
}

.copyright {
    background: #2b190f !important;
    border-top: 1px solid rgba(179, 133, 100, 0.28);
}

.copyright .copyright-text,
.copyright .copyright-text a {
    color: #f1dfcf !important;
}

.footer-social a {
    background: #f4e5d6 !important;
    color: #5f3821 !important;
    border: 1px solid #cfaa8d;
}

.static-trust-grid {
    margin-top: 28px;
}

.static-trust-card {
    background: linear-gradient(145deg, rgba(255, 250, 245, 0.92), rgba(246, 231, 218, 0.88));
    border: 1px solid rgba(179, 133, 100, 0.22);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 14px 30px rgba(80, 45, 21, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    animation: staticFadeSlide 0.5s ease both;
}

.static-trust-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(80, 45, 21, 0.2);
}

.static-trust-card img {
    border-radius: 14px;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    margin-bottom: 12px;
}

@keyframes staticFadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-social a:hover {
    background: #7a4b2a !important;
    color: #ffffff !important;
    border-color: #7a4b2a !important;
}

#scroll-top {
    background: linear-gradient(135deg, #7a4b2a, #b38564) !important;
    color: #ffffff !important;
}

/* Private/Admin fullscreen shell UX */
body.is-private-context {
    overflow-x: hidden;
    background: radial-gradient(circle at top left, #f8efe6 0%, #f5ede4 35%, #f2e9df 100%);
}

body.is-private-context .main {
    min-height: 100vh;
}

body.is-private-context .user-profile.py-120 {
    padding: 14px 0 !important;
    min-height: 100vh;
}

body.is-private-context .user-profile > .container {
    width: min(98vw, 1560px);
    max-width: min(98vw, 1560px);
}

body.is-private-context .user-profile .row {
    align-items: stretch;
}

body.is-private-context .user-profile-sidebar {
    position: sticky;
    top: 10px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    border-radius: 18px;
}

body.is-private-context .user-profile-wrapper {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding-right: 4px;
}

body.is-private-context .user-profile-wrapper::-webkit-scrollbar,
body.is-private-context .user-profile-sidebar::-webkit-scrollbar {
    width: 7px;
}

body.is-private-context .user-profile-wrapper::-webkit-scrollbar-thumb,
body.is-private-context .user-profile-sidebar::-webkit-scrollbar-thumb {
    background: rgba(122, 75, 42, 0.34);
    border-radius: 999px;
}

body.is-private-context .user-profile-card {
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(63, 36, 19, 0.12);
}

body.is-private-context .dashboard-hero-banner {
    border-radius: 18px;
}

body.is-private-context .table-responsive {
    overflow-x: auto;
    border-radius: 14px;
}

body.is-private-context .table-responsive .table {
    margin-bottom: 0;
    width: 100%;
    table-layout: auto;
}

body.is-private-context .table-responsive .table th,
body.is-private-context .table-responsive .table td {
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 991.98px) {
    body.is-private-context .user-profile.py-120 {
        min-height: auto;
        padding: 8px 0 14px !important;
    }

    body.is-private-context .user-profile > .container {
        width: 100vw;
        max-width: 100vw;
        padding-left: 10px;
        padding-right: 10px;
    }

    body.is-private-context .user-profile-sidebar,
    body.is-private-context .user-profile-wrapper {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (min-width: 992px) {
    body.is-private-context .user-profile > .container > .row > .col-lg-3 {
        flex: 0 0 22%;
        max-width: 22%;
    }

    body.is-private-context .user-profile > .container > .row > .col-lg-9 {
        flex: 0 0 78%;
        max-width: 78%;
    }
}

body.is-private-context .user-profile-sidebar .user-profile-sidebar-list li a {
    padding: 9px 12px;
    font-size: 14px;
}

@media (max-width: 991.98px) {
    body.is-private-context .user-profile-sidebar .user-profile-sidebar-list li a,
    .user-profile-sidebar .user-profile-sidebar-list li a {
        min-width: 38px;
        width: 38px;
        height: 38px;
        padding: 0 !important;
        font-size: 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.is-private-context .user-profile-sidebar .user-profile-sidebar-list li a i,
    .user-profile-sidebar .user-profile-sidebar-list li a i {
        margin-right: 0 !important;
        font-size: 16px !important;
    }
}

body.is-private-context .dashboard-hero-banner {
    padding: 18px 20px;
    margin-bottom: 12px !important;
}

body.is-private-context .dashboard-hero-banner h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}

body.is-private-context .dashboard-hero-banner p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

body.is-private-context .dashboard-widget {
    min-height: 108px;
    padding: 14px 16px;
}

body.is-private-context .dashboard-widget .dashboard-widget-info h1 {
    font-size: clamp(1.35rem, 1.9vw, 1.85rem);
    line-height: 1.05;
}

body.is-private-context .user-profile-card {
    padding: 14px 16px;
}

body.is-private-context .user-profile-card .user-profile-card-title {
    margin-bottom: 0.75rem;
}

body.is-private-context .ux-guide-shell,
body.is-private-context .ux-illustration-card,
body.is-private-context .ux-quick-link-card {
    border-radius: 14px;
}

body.is-private-context .ux-quick-link-card {
    padding: 12px;
    min-height: 92px;
}

body.is-private-context .ux-quick-link-card h5 {
    margin-bottom: 4px;
    font-size: 1rem;
}

body.is-private-context .ux-quick-link-card p {
    margin: 0;
    font-size: 0.87rem;
}

body.is-private-context .ux-illustration-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

body.is-private-context .table-responsive .btn,
body.is-private-context .table-responsive .theme-btn {
    white-space: nowrap;
}

body.is-private-context .dashboard-kpi-row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
    margin-bottom: 0.75rem !important;
}

body.is-private-context .user-profile-wrapper > .row.mt-4,
body.is-private-context .user-profile-wrapper > .user-profile-card.mt-4 {
    margin-top: 0.75rem !important;
}

body.is-private-context .user-profile-wrapper .modal {
    z-index: var(--z-overlay-modal);
}

body.is-private-context .user-profile-wrapper .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f7efe6;
}

body.is-private-context .user-profile-wrapper .table td,
body.is-private-context .user-profile-wrapper .table th {
    padding-top: 0.58rem;
    padding-bottom: 0.58rem;
    font-size: 0.92rem;
}

body.is-private-context .user-profile-wrapper .badge {
    font-size: 0.74rem;
    padding: 0.36rem 0.5rem;
}

body.is-private-context .user-profile-wrapper .theme-btn,
body.is-private-context .user-profile-wrapper .btn {
    min-height: 38px;
}

@media (min-width: 1200px) {
    body.is-private-context .user-profile-wrapper .row.g-3 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }

    body.is-private-context .user-profile-wrapper > .user-profile-card,
    body.is-private-context .user-profile-wrapper > .row > [class*="col-"] > .user-profile-card {
        min-height: unset;
    }
}

@media (max-width: 767.98px) {
    body.is-private-context .user-profile-wrapper .table td,
    body.is-private-context .user-profile-wrapper .table th {
        font-size: 0.88rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    body.is-private-context .dashboard-kpi-row .dashboard-widget {
        min-height: 96px;
    }
}

.img-fallback-applied {
    object-fit: contain !important;
    background: #f5ecdf;
    padding: 10px;
}

.listing-bottom {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start !important;
    align-items: stretch !important;
    border-top: 1px solid rgba(122, 75, 42, 0.15) !important;
    padding-top: 12px !important;
    margin-top: 14px !important;
}

.listing-bottom .listing-btn {
    border: 1px solid #b58563 !important;
    color: #6a3f23 !important;
    background: #fffaf5 !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    min-height: 44px;
    min-width: 118px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.listing-bottom .listing-btn:hover {
    background: linear-gradient(135deg, #7a4b2a, #b38564) !important;
    color: #ffffff !important;
    border-color: #7a4b2a !important;
}

.permissions-modern-modal {
    border-radius: 18px;
    border: 1px solid rgba(122, 75, 42, 0.28);
    box-shadow: 0 24px 60px rgba(51, 33, 21, 0.24);
    overflow: hidden;
}

.permissions-modern-modal .modal-header {
    background: linear-gradient(135deg, rgba(122, 75, 42, 0.16), rgba(181, 133, 99, 0.08));
    border-bottom: 1px solid rgba(122, 75, 42, 0.15);
}

.permissions-modern-note {
    border-radius: 14px;
    background: rgba(255, 250, 245, 0.85);
}

.permissions-illustration {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.permissions-illustration .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6a3f23;
    border: 1px solid rgba(122, 75, 42, 0.25);
    background: #fff8f1;
}

.permissions-list-grid .permission-check-card {
    display: flex;
    gap: 10px;
    width: 100%;
    min-height: 78px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(122, 75, 42, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 247, 240, 0.9));
}

.permissions-list-grid .permission-check-card:hover {
    border-color: rgba(122, 75, 42, 0.45);
    box-shadow: 0 10px 24px rgba(122, 75, 42, 0.16);
}

.permissions-modern-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.permissions-modern-search {
    position: relative;
    flex: 1 1 280px;
}

.permissions-modern-search i {
    position: absolute;
    top: 11px;
    left: 10px;
    color: #8b674f;
}

.permissions-modern-search .form-control {
    padding-left: 34px;
}

.permissions-modern-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.permissions-modern-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.permissions-stat-card {
    border: 1px solid rgba(122, 75, 42, 0.24);
    border-radius: 12px;
    background: linear-gradient(145deg, #fffaf6, #fff3ea);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.permissions-stat-card small {
    color: #7f6655;
}

.permissions-stat-card strong {
    color: #5d341d;
    font-size: 1rem;
}

.permissions-list-grid {
    display: grid;
    gap: 12px;
}

.permission-group-block {
    border: 1px solid rgba(122, 75, 42, 0.18);
    border-radius: 14px;
    background: rgba(255, 251, 247, 0.85);
    padding: 10px;
}

.permission-group-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #6c4127;
    font-weight: 700;
    font-size: 0.92rem;
}

.permission-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.permission-check-card-wrap {
    min-width: 0;
}

.permissions-list-grid .permission-check-card {
    min-height: 86px;
}

@media (max-width: 767.98px) {
    .permissions-modern-stats {
        grid-template-columns: 1fr;
    }

    .permission-group-grid {
        grid-template-columns: 1fr;
    }
}

.catalog-filter-form select[multiple] {
    min-height: 156px;
    border-radius: 12px;
    border: 1px solid rgba(122, 75, 42, 0.25);
    background: #fffbf7;
    font-size: 0.92rem;
}

.catalog-filter-form select[multiple] option {
    padding: 6px 8px;
}

/* Module compare/favoris reporte: actions masquees temporairement sur les cartes biens */
.listing-price .listing-btns {
    display: none !important;
}

.property-location-panel {
    border: 1px solid #e8ddd3;
    border-radius: 14px;
    background: linear-gradient(145deg, #fffdfb, #f9f2ea);
    padding: 14px;
}

.property-location-panel-head {
    margin-bottom: 10px;
    color: #6f6157;
    font-size: 13px;
}

.property-location-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.property-location-mode .btn.is-active {
    background: linear-gradient(135deg, #7a4b2a, #5e351d) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.property-location-map {
    width: 100%;
    min-height: 280px;
    border-radius: 12px;
    border: 1px solid #dfd0c2;
    overflow: hidden;
}

.property-location-results {
    display: grid;
    gap: 8px;
}

.property-location-result-item {
    width: 100%;
    text-align: left;
    border: 1px solid #e7d8c9;
    border-radius: 10px;
    background: #fff;
    padding: 9px 10px;
    color: #5f3a22;
    transition: all 0.2s ease;
}

.property-location-result-item:hover {
    border-color: #7a4b2a;
    box-shadow: 0 10px 20px rgba(92, 54, 32, 0.12);
}

.availability-calendar-shell {
    border: 1px solid #e8ddd3;
    border-radius: 14px;
    background: linear-gradient(145deg, #fffdfb, #f8f2ec);
    padding: 12px;
}

.availability-calendar-head h6 {
    color: #5e351d;
}

.availability-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.availability-legend .legend-item {
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    border: 1px solid #ddd1c5;
    background: #fff;
}

.availability-legend .legend-item.available { border-color: #84c69b; color: #1f6b39; }
.availability-legend .legend-item.booked { border-color: #d88d8d; color: #8f2f2f; }
.availability-legend .legend-item.option { border-color: #e4bb7b; color: #8c5d12; }
.availability-legend .legend-item.pending { border-color: #9db4dd; color: #365c9a; }
.availability-legend .legend-item.selected { border-color: #8bb7ef; color: #1f4f8f; background: #dff0ff; }

.availability-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.availability-month {
    border: 1px solid #e7dbcf;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
}

.availability-month h6 {
    margin-bottom: 8px;
    text-transform: capitalize;
}

.availability-weekdays,
.availability-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.availability-weekdays span {
    text-align: center;
    font-size: 11px;
    color: #7a6758;
}

.availability-day {
    min-height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: #eff8f1;
    color: #225d35;
}

.availability-day.is-empty {
    background: transparent;
}

.availability-day.is-booked {
    background: #fdebec;
    color: #8a2c2c;
}

.availability-day.is-booked.is-option {
    background: #fff3df;
    color: #875b14;
}

.availability-day.is-booked.is-pending {
    background: #ecf1ff;
    color: #355593;
}

.availability-day.is-today {
    border: 1px dashed #7a4b2a;
}

.availability-day.is-selected-range {
    background: #dff0ff;
    color: #1f4f8f;
}

.availability-day.is-selected-start,
.availability-day.is-selected-end {
    background: linear-gradient(135deg, #7a4b2a, #b38564);
    color: #fff;
    font-weight: 700;
}

.availability-period-list {
    margin: 10px 0 0;
    padding-left: 16px;
    font-size: 13px;
}

.availability-period-list li {
    margin-bottom: 4px;
    color: #6c5646;
}

.availability-period-tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 2px 8px;
    margin-right: 6px;
    font-size: 11px;
    border: 1px solid #e6d8cb;
    background: #f8f0e8;
}

.availability-period-tag.booked { border-color: #d88d8d; color: #8f2f2f; background: #fdebec; }
.availability-period-tag.option { border-color: #e4bb7b; color: #8c5d12; background: #fff3df; }
.availability-period-tag.pending { border-color: #9db4dd; color: #365c9a; background: #ecf1ff; }

.availability-card-hint {
    color: #6d5a4a;
    font-size: 12px;
}

.iti {
    width: 100%;
}

.iti .form-control.phone-intl-input {
    padding-left: 88px !important;
}

.iti--separate-dial-code .iti__selected-flag {
    background: #f8f6f3;
    border-right: 1px solid #e6ddd2;
}

.phone-field-hint {
    font-size: 12px;
    color: #776656;
}

.form-required-star {
    color: #c0392b;
    font-weight: 700;
}

.form-char-counter {
    font-size: 12px;
}

.form-char-counter.is-limit {
    color: #b03a2e !important;
}
