@import url('./colors.css');

body {
    font-family: 'Inter', "Hind Siliguri", 'Noto Sans Bengali', sans-serif;
    min-height: 100vh;
}

main {
    min-height: 84vh;
    margin-top: var(--appbar-height);
}

#ads-container,
#ads-count-wrapper {
    height: 100%;
    /* max-width: 520px; */
}

:root {
    --appbar-height: 75.39px;
    --bs-primary: #007FFF;
    --bs-secondary: #FFC107;
    --bs-font-sans-serif: 'Inter', 'Noto Sans Bengali', sans-serif;
    --filter-sidebar-width: 320px;

    --premium-accent: #0d6efd;
    --premium-accent-gradient: linear-gradient(135deg, #0d6efd 0%, #1e3c72 100%);
    --glow-color: rgba(13, 110, 253, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.03);
    --trust-score-badge-color: #413000;
}

#no-ads {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 78vh;
}

.badge-success-100 {
    background-color: rgba(163, 207, 187, 0.47);
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

[data-bs-theme="dark"] .badge-success-100 {
    background-color: #479f761a;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #3d4348 !important;
}

[data-bs-theme="dark"] .badge.bg-light.text-dark {
    color: #ffffffbd !important;
}

[data-bs-theme="dark"] nav.bg-light {
    background-color: #1e2124 !important;
}

[data-bs-theme="dark"] nav.border-top,
[data-bs-theme="dark"] .filter-sidebar .border-right {
    border-color: #2c2e30 !important;
}

.filter-sidebar .border-right {
    border-color: var(--bs-border-color);
    border-right-width: 1px;
    border-right-style: solid;
}


.tenant-sidebar,
.owner-sidebar {
    position: sticky;
    top: 80px;
}

/* ডেসিমাল এবং ফ্র্যাকশনাল স্পেসিং ক্লাস সাপোর্ট (Compatibility Layers) */
.px-2\.5 {
    padding-left: 0.625rem !important;
    padding-right: 0.625rem !important;
}

.py-2\.5 {
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
}

.py-1\.5 {
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
}

.p-2\.5 {
    padding: 0.625rem !important;
}


.mt-3\.5 {
    margin-top: 0.875rem !important;
}

.mb-3\.5 {
    margin-bottom: 0.875rem !important;
}

.me-1\.5 {
    margin-right: 0.375rem !important;
}

.me-2\.5 {
    margin-right: 0.625rem !important;
}

.ms-2\.5 {
    margin-left: 0.625rem !important;
}

.gap-1\.5 {
    gap: 0.375rem !important;
}

.gap-2\.5 {
    gap: 0.625rem !important;
}

/* প্রিমিয়াম ব্লার ও শ্যাডো সহ অ্যাববার স্টাইল */
.premium-navbar {
    background-color: rgba(var(--bs-body-bg-rgb), 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--bs-border-color-translucent) !important;
    transition: all 0.3s ease-in-out;
    padding: 1rem 0;
}

.navbar-brand-custom {
    font-size: 1.35rem;
    background: linear-gradient(135deg, #fd6a0d, #0dcaf0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    transition: opacity 0.2s;
}

.navbar-brand-custom:hover {
    opacity: 0.85;
}

/* থিম টগলার ও আইকন বাটন স্টাইল */
.appbar-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--bs-border-color-translucent);
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.appbar-btn:hover {
    background-color: var(--bs-secondary-bg);
    transform: scale(1.05);
}

.appbar-btn:active {
    transform: scale(0.95);
}

/* প্রোফাইল অবতার ডেকোরেশন */
.appbar-avatar-btn {
    padding: 2px;
    border: 2px solid #0d6efd;
    background: transparent;
    overflow: hidden;
}

.appbar-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ড্রপডাউন মেনু কাস্টমাইজেশন */
.appbar-dropdown-menu {
    border-radius: 12px !important;
    border: 1px solid var(--bs-border-color-translucent) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    padding: 8px !important;
    background-color: var(--bs-body-bg) !important;
}

.appbar-dropdown-item {
    border-radius: 8px !important;
    padding: 8px 16px !important;
    color: var(--bs-body-color) !important;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background-color 0.15s ease;
}

.appbar-dropdown-item:hover {
    background-color: var(--bs-tertiary-bg) !important;
}

.appbar-dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.appbar-login-btn {
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
    transition: all 0.2s ease;
}

.appbar-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.25);
}

/* custom margin */
.mb-6 {
    margin-bottom: 4rem !important;
}

.mb-7 {
    margin-bottom: 5rem !important;
}

.mb-8 {
    margin-bottom: 6rem !important;
}

.mb-9 {
    margin-bottom: 7rem !important;
}

.mb-10 {
    margin-bottom: 8rem !important;
}

/* --- বুটস্ট্র্যাপ কম্পোনেন্ট টুইক --- */
.btn {
    border-radius: 8px;
    /* MUI Button style */
    text-transform: none;
    /* MUI Button style */
}

.card {
    border-radius: 12px;
    border: none;
}

[data-bs-theme="dark"] .card {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background-color: var(--bs-body-bg) !important;
}

[data-bs-theme="dark"] #booking-requests-panel .card.border-success {
    border: 1px solid rgba(var(--bs-success-rgb)) !important;
    border-left-width: 5px !important;
    border-left-color: rgba(var(--bs-success-rgb), var(--bs-border-opacity)) !important;
    border-left-style: solid !important;
}

.card-img-left {
    width: 232px;
    height: 155px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.modal-content {
    border-radius: 16px;
    /* MUI Dialog style */
}

.modal-header .nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* --- বিজ্ঞাপন কার্ড (Ad Card) --- */
.ad-card {
    position: relative;
    overflow: hidden;
    /* ভাড়ার ট্যাগ ঠিক রাখার জন্য */
}

.ad-card .img-placeholder {
    height: 100%;
    min-height: 200px;
    /* মোবাইল ভিউতে ন্যূনতম উচ্চতা */
    width: 100%;
}

.ad-card img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}



/* --- নিচের নেভিগেশন বার --- */
.fixed-bottom .nav-link {
    padding: 0.5rem 0.25rem;
    color: #6c757d;
    /* ডিফল্ট আইকন কালার */
}

.fixed-bottom .nav-link small {
    font-size: 0.75rem;
}

.fixed-bottom .nav-link.active,
.fixed-bottom .nav-link:hover {
    color: var(--bs-primary);
}


/* =========================================
   নতুন স্টাইল (একাউন্ট ও চ্যাট পেজের জন্য)
=========================================
*/

/* --- একাউন্ট পেজ --- */
.account-info-card .rounded-circle {
    width: 150px;
    height: 150px;
    border: 4px solid var(--bs-primary);
    padding: 2px;
}

.rounded-circle.avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* ওনার ড্যাশবোর্ডের প্রধান ট্যাব */
#ownerDashboardTab .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
}

/* বিজ্ঞাপন পোস্ট করার ফর্ম (Wizard) */
#postAdWizard .nav-link {
    font-weight: 500;
    color: var(--bs-secondary-text);
    border-bottom: 3px solid transparent;
    border-radius: 0;
}

#postAdWizard .nav-link.active {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
    background-color: transparent;
}


/* --- চ্যাট পেজ --- */

/* চ্যাট পেজের বডিকে নিচের ন্যাভিগেশন থেকে মুক্ত রাখা */
body.d-flex {
    padding-bottom: 0;
}

/* চ্যাট বাবল */
.chat-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.wrapper.sender {
    margin-left: auto;
}

.wrapper.receiver {
    margin-right: auto;
}

.chat-bubble.sender {
    background-color: var(--bs-primary);
    color: white;
    border-top-right-radius: 0;
    margin-left: auto;
}

.chat-bubble+.time {
    font-size: .65em
}

.chat-bubble.receiver {
    background-color: #e9ecef;
    color: #212529;
    margin-right: auto;
    border-top-left-radius: 0;
}

.chat-bubble small {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* ---------- Post detail custom styles ---------- */
.rent-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bs-primary);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
    color: #0f5132;
    /* bootstrap success dark */
}

.owner-info {
    font-size: 0.95rem;
}

.post-actions .btn {
    border-radius: 10px;
}

.post-actions .btn-primary {
    background: linear-gradient(90deg, var(--bs-primary), #005fd6);
    border: none;
}

.post-actions .btn-light {
    border: 1px solid #e9ecef;
}

.carousel-item img {
    height: 420px;
    object-fit: cover;
}

#postAdForm {
    display: flex;
    flex-direction: column;
}

/* subtle card shadow for detail view */
.card.mb-4 {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

/* Ensure carousel and placeholder images have a consistent height */
.ad-carousel {
    height: 420px;
    overflow: hidden;
}

.ad-carousel .carousel-item img {
    height: 420px;
    object-fit: cover;
    width: 100%;
}

.img-placeholder.ad-placeholder {
    height: 420px;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Floating messenger bubble */
.floating-chat {
    position: fixed;
    right: 18px;
    bottom: 92px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--bs-primary), #005fd6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    z-index: 1100;
    text-decoration: none;
}

.floating-chat i {
    font-size: 1.25rem;
}

.floating-chat:hover {
    transform: translateY(-3px);
}

/* Chat modal (bottom-right small) */
.modal.chat-modal {
    background: transparent !important;
    pointer-events: none;
    /* পেজের বাকি অংশে ক্লিকের অনুমতি */
    padding: 0 !important;
    overflow: hidden !important;
}

/* ২. চ্যাট ডায়ালগ বক্স: পজিশনিং */
.modal.chat-modal .modal-dialog {
    position: fixed;
    bottom: 70px;
    /* নিচ থেকে ১০ পিক্সেল */
    right: 80px;
    /* ডান পাশ থেকে ১০ পিক্সেল */
    margin: 0;
    /* বুটস্ট্র্যাপের ডিফল্ট মার্জিন রিমুভ */

    width: 320px;
    /* চ্যাট উইন্ডোর উইডথ */

    /* ছোট স্ক্রিনে যাতে বাইরে না যায় তার জন্য ক্যালকুলেশন */
    max-width: calc(100vw - 20px);

    pointer-events: auto;
    /* চ্যাট বক্সে ক্লিকের অনুমতি */
    z-index: 1101;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    /* শ্যাডো */
    border-radius: 12px 12px 0 0;
}

/* ৩. অ্যানিমেশন (নিচ থেকে স্লাইড আপ) */
.modal.chat-modal.fade .modal-dialog {
    transform: translateY(120%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.chat-modal.show .modal-dialog {
    transform: translateY(0);
}

/* ৪. চ্যাট কন্টেন্ট ডিজাইন */
.modal.chat-modal .modal-content {
    border-radius: 12px 12px 0 0;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
    /* স্ক্রিন হাইটের ৭০% এর বেশি হবে না */
}

.modal.chat-modal .modal-header {
    background-color: var(--bs-primary);
    padding: 10px 15px;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    flex-shrink: 0;
}

.dark-mode .modal.chat-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal.chat-modal .modal-body {
    background-color: #f0f2f5;
    /* ফেসবুক মেসেঞ্জার স্টাইল ব্যাকগ্রাউন্ড */
    padding: 0;
    overflow-y: auto;
    height: 350px;
    /* বডির ফিক্সড হাইট */
}

.modal.chat-modal #chat-messages-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.modal.chat-modal .modal-footer {
    background-color: white;
    padding: 10px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.modal-title {
    text-align: left;
}


/* Ad detail styles inside modal */
.chat-modal .ad-detail h6 {
    font-size: 1rem;
}

.chat-modal .ad-detail p {
    margin: .25rem 0;
    font-size: .92rem;
}

.chat-modal .ad-description {
    margin-top: .5rem;
}

/* Inline pill for ad meta (rooms, floor, area, etc.) */
.ad-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-grow: 1;
    gap: .4rem;
    margin: -4px;
    padding: .46rem .82rem;
    font-size: .9rem;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    border: 1px dashed;
    border-top: none;
    border-right: none;
    border-bottom: none;
}

.ad-pill:first-child {
    border-left: none;
}

.ad-pill i {
    font-size: 1rem;
}

#previewGrid,
.previewGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.preview-container {
    position: relative;
    width: 120px !important;
    height: 120px !important;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    background-color: #f8f9fa;
}

.preview-container img,
.preview-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-remove,
.btn-crop {
    position: absolute;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    z-index: 10;
    border-radius: 50%;
    transition: 0.2s;
}

.btn-remove {
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.btn-remove.btn-upload {
    height: 100%;
    width: 100%;
    border-radius: 0;
    padding: 0;
    margin: -5px;
    border: none;
    font-size: 34px;
    color: var(--bs-gray-500);
}

.btn-crop {
    top: 5px;
    left: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #0d6efd;
    border: 1px solid #0d6efd;
}

.index-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 11px;
    text-align: center;
    padding: 2px 0;
}

.amenities-container {
    padding: 1rem;
    border-bottom: 1px solid gray;
    overflow: hidden;
}

.amenity-badge {
    padding: 6px 9px;
    border-radius: 50px;
    font-size: 0.70rem;
    font-weight: 500;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-items: center;
}

.alert-lg {
    min-height: 44vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 1.25rem;
}

.alert-sm {
    padding: .35rem 0.5rem;
    font-size: .8rem;
}

.bd-callout {
    --bs-link-color-rgb: var(--bd-callout-link);
    --bs-code-color: var(--bd-callout-code-color);
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--bd-callout-color, inherit);
    background-color: var(--bd-callout-bg, var(--bs-gray-100));
    border-left: .25rem solid var(--bd-callout-border, var(--bs-gray-300));
}

.bd-callout.small {
    padding: .85rem;
    text-align: left;
}

.bd-callout-warning {
    --bd-callout-color: var(--bs-warning-text-emphasis);
    --bd-callout-bg: var(--bs-warning-bg-subtle);
    --bd-callout-border: var(--bs-warning-border-subtle);
}

.bd-callout-info {
    --bd-callout-color: var(--bs-info-text-emphasis);
    --bd-callout-bg: var(--bs-info-bg-subtle);
    --bd-callout-border: var(--bs-info-border-subtle);
}

.bd-callout-danger {
    --bd-callout-color: var(--bs-danger-text-emphasis);
    --bd-callout-bg: var(--bs-danger-bg-subtle);
    --bd-callout-border: var(--bs-danger-border-subtle);
}

.img-container {
    height: 60vh;
    width: 100%;
    background-color: #333;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#imageToCrop {
    max-width: 100%;
    display: block;
    /* ক্রপারের জন্য এটি জরুরি */
}

/* Cropper JS কাস্টমাইজেশন */
.cropper-view-box,
.cropper-face {
    border-radius: 0;
    /* ক্রপ বক্স চারকোনা হবে */
}

.thumb-img.rounded {
    max-width: 100%;
}

.sticky-sidebar {
    position: sticky;
    top: 20px;
    /* Header height + gap */
}

#rightSidebar {
    position: sticky;
    top: 85px;
    align-self: start;
    max-height: 100%;
    overflow-y: auto;
}

#filterSidebar {
    top: var(--appbar-height) !important;
    width: var(--filter-sidebar-width);
    position: fixed;
    background-color: var(--bs-body-bg);
    border-right: 1px dashed #3f3f3f;
    z-index: 1041;
    scrollbar-color: transparent transparent;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.property-tab,
.offcanvas-body,
.category-scroll-container,
#rightSidebar {
    scrollbar-color: transparent transparent;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-tab:hover,
.offcanvas-body:hover,
.category-scroll-container:hover,
#rightSidebar:hover {
    scrollbar-color: #919191 rgb(0 0 0 / 16%);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* স্টিকি সাইডবার স্টাইল */
.filter-sidebar {
    position: sticky;
    top: 56px;
    height: 100%;
    width: var(--filter-sidebar-width) !important;
    z-index: 1041;
    align-self: start;
    overflow-y: auto;
    scrollbar-color: #919191 rgb(0 0 0 / 16%);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 991.98px) {

    body>main,
    main {
        margin-left: 0 !important;
        display: flex;
        flex-direction: column;
        gap: 4rem;
    }
}

main {
    margin-left: 0;
}

#filterSidebar+main {
    margin-left: var(--filter-sidebar-width);
}

@media (min-width: 992px) {
    #content-wrapper {
        padding: 1.25rem;
    }

    #filterSidebar.offcanvas.offcanvas-start {
        position: fixed !important;
        left: 0 !important;
        bottom: 0 !important;
        width: var(--filter-sidebar-width) !important;
        max-width: var(--filter-sidebar-width) !important;
        height: 100vh !important;
        max-height: 100vh !important;
        transform: translateX(0) !important;
        visibility: visible !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 1020 !important;
        background: var(--bs-body-bg) !important;
        border-right: 1px solid var(--bs-border-color-translucent) !important;
        box-shadow: none !important;
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
        padding-top: 0;
    }

    #filterSidebar .offcanvas-header {
        display: flex !important;
        flex-shrink: 0;
        border-bottom: 1px solid var(--bs-border-color-translucent);
    }

    #filterSidebar .offcanvas-body {
        padding: 1rem !important;
        overflow-y: auto !important;
        flex: 1 1 auto;
    }

    /* main প্রসারণ — padding-left বেশি নির্ভরযোগ্য কিছু লেআউটে */
    main {
        padding-left: 0 !important;
        width: auto !important;
        max-width: none !important;
        transition: margin-left 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-sizing: border-box !important;
    }



    body.filter-sidebar-collapsed #filterSidebar.offcanvas.offcanvas-start,
    html.filter-sidebar-collapsed #filterSidebar.offcanvas.offcanvas-start {
        transform: translateX(-100%) !important;
        pointer-events: none !important;
    }

    body.filter-sidebar-collapsed main,
    html.filter-sidebar-collapsed main {
        margin-left: 0 !important;
        transition: margin-left 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    body:not(.filter-sidebar-collapsed) .offcanvas-backdrop {
        display: none !important;
    }

    .filter-sidebar {
        top: 85px;
        height: 100%;
        max-height: calc(100vh - 75px) !important;
    }
}

.filter-card {
    height: 100%;
    background: var(--bs-body-tertiary);
    border-radius: 0px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-y: scroll;
    overflow-x: hidden !important;
}

.filter-sidebar-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 992px) {
    .filter-sidebar-card {
        max-height: 100%;
    }
}

.offcanvas.offcanvas-start {
    width: auto;
}

/* গ্লাস-মরফিজম এফেক্ট মোবাইলের অফক্যানভাসের জন্য */
@media (max-width: 991.98px) {
    .offcanvas.offcanvas-start {
        backdrop-filter: blur(15px) !important;
        background: rgba(var(--bs-body-bg-rgb), 0.88) !important;
    }
}

/* কাস্টম ইনপুট গ্রুপ ফোকাস ইফেক্টস */
.filter-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.filter-input-wrapper .filter-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-secondary-color);
    pointer-events: none;
    transition: color 0.25s ease;
    z-index: 5;
}

#postAdWizardContent .form-control,
#postAdWizardContent .custom-select-btn,
#postAdWizardContent .form-select {
    border: none !important;
    border-bottom: 2px solid var(--bs-border-color) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#postAdWizardContent .form-control:focus {
    border-color: #86b7fe9e !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.filter-input-wrapper .form-control,
.filter-input-wrapper .form-select {
    padding-left: 45px;
    border-radius: 12px;
    height: 50px;
    border: 1.5px solid var(--bs-border-color);
    transition: all 0.25s ease-in-out;
    font-size: 0.95rem;
    background-color: var(--bs-tertiary-bg);
}

.filter-input-wrapper .form-control:focus,
.filter-input-wrapper .form-select:focus {
    border-color: var(--bs-primary);
    background-color: var(--bs-body-bg);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.filter-input-wrapper .form-control:focus+.filter-icon,
.filter-input-wrapper .form-select:focus+.filter-icon {
    color: var(--bs-primary);
}

/* বেডরুম সিলেক্টর পিলস (ভিজুয়াল চয়েস) */
.bedroom-pill-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.bedroom-pill {
    flex: 1;
    min-width: 40px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bs-border-color);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

.bedroom-pill:hover {
    background: var(--bs-secondary-bg);
    border-color: var(--bs-secondary);
    transform: translateY(-1px);
}

.bedroom-pill.active {
    background: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
    transform: translateY(-2px);
}

/* কুইক বাজেট বাটন */
.budget-pill-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.budget-pill {
    font-size: 0.8rem;
    padding: 6px 12px;
    border: 1.5px solid var(--bs-border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

.budget-pill:hover,
.budget-pill.active {
    background: var(--bs-primary-subtle);
    border-color: var(--bs-primary);
    color: var(--bs-primary-emphasis);
    transform: scale(1.03);
}

/* স্ক্রলবার বিউটিফিকেশন */
.filter-sidebar-card::-webkit-scrollbar {
    width: 5px;
}

.filter-sidebar-card::-webkit-scrollbar-track {
    background: transparent;
}

.filter-sidebar-card::-webkit-scrollbar-thumb {
    background: var(--bs-border-color);
    border-radius: 10px;
}

.hr-scroll-box {
    display: flex;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    padding-bottom: .5rem !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scrollbar-color: transparent transparent;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hr-scroll-box .hr-scroll-item {
    flex: 0 0 260px;
    max-width: 260px;
    width: 260px;
}

.hr-scroll-box:hover {
    scrollbar-color: #919191 rgb(0 0 0 / 16%);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width:767.98px) {
    #filterSidebar {
        top: 0 !important;
    }

    .tab-pane-content {
        height: calc(264px + 72px);
    }

    .carousel-item img {
        height: 240px;
    }

    .owner-info {
        text-align: left;
    }

    .flex-sm-no-wrap {
        flex-wrap: nowrap !important;
    }

    #tenantDashboardTab.nav .nav-link,
    #owner-dashboard .btn-tabs {
        display: flex;
        align-items: center;
        flex-direction: column;
        /* font-size: small; */
    }


    .ad-carousel {
        height: 240px;
    }

    .ad-carousel .carousel-item img {
        height: 240px;
    }

    .img-placeholder.ad-placeholder {
        height: 240px;
        min-height: 240px;
    }

    .flex-direction-column-sm {
        flex-direction: column;
    }

    .chat-modal .modal-dialog {
        position: fixed;
        left: 1em;
        right: 1em !important;
        margin: 0;
        width: calc(100% - 2em) !important;
    }

    .chat-modal .modal-content {
        width: 100%;
        min-width: auto;
        border-radius: 10px;
    }

    .chat-modal .modal-body {
        padding: 0.5rem;
    }

    .chat-modal .modal-footer {
        padding: 0.5rem;
    }

    #rightSidebar {
        margin-top: 0;
    }
}

.ad-card-img {
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* Light mode: subtle light background with dark text */
[data-bs-theme="light"] {
    .ad-pill {
        background: #fff;
        color: #0f1720;
        border-color: rgb(2 6 23 / 17%);
    }

    .ad-pill i {
        opacity: 0.8;
    }
}

/* Dark mode: translucent pill with light text */
[data-bs-theme="dark"] {
    .ad-pill {
        background: rgb(14 14 14 / 33%);
        color: #afb8c3;
        border-color: rgb(233 233 233 / 51%);
    }

    .ad-pill i {
        opacity: 0.95;
    }
}

@media (max-width: 575.98px) {
    .m-n1 {
        margin: -0.25rem;
    }

    .m-n2 {
        margin: -0.5rem;
    }

    .m-n3 {
        margin: -0.75rem;
    }

    .m-n4 {
        margin: -1.5rem;
    }

    .m-n5 {
        margin: -3rem;
    }

    .ad-pill {
        font-size: .82rem;
        padding: .32rem .5rem;
    }
}

/* Gallery grid for desktop */
.thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 600;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
}

button#theme-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
}

header.bg-primary .btn {
    color: var(--bs-navbar-brand-color);
}

/*
 * এই কাস্টম স্টাইলগুলো amenity_checkbox_grid.php এর 
 * গ্রিড-ভিত্তিক চেকবক্স ডিজাইনকে নতুন ছবির মতো করে তুলবে (আইকন বাম দিকে)।
 */

/* ১. আসল চেকবক্স লুকিয়ে রাখা */
.amenity-checkbox-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ২. লেবেলকে কার্ডের মতো ডিজাইন দেওয়া (নতুন ছবির সাথে মিল রেখে) */
.chip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 16px;
    margin-right: 1em;
    border: 1px solid #dee2e6;
    cursor: pointer;
    background-color: #ffffff;
    color: #495057;
    transition: all 0.2s ease-in-out;
    width: max-content;
    min-width: 170px;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
}

.chip.mini {
    padding: 6px 16px;
    font-size: 14px;
}

/* যখন মাউস হোভার করা হবে */
.chip:hover {
    color: #007bff;
    border-color: #007bff;
    box-shadow: 0 0 7px rgba(0, 123, 255, 0.3);
}

.chip.is-checked {
    background-color: #007bff1c;
    border-color: #007bff94;
    color: #007bff;
    font-weight: 500;
    box-shadow: 0 3px 6px rgba(0, 123, 255, 0.4);
}

.chip.is-checked:hover {
    background-color: #007bffd7;
    border-color: #007bff94;
    color: #fff;
    box-shadow: 0 3px 6px rgba(0, 123, 255, 0.4);
}

.chip-icon {
    margin-right: 0.75rem;
    margin-left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.chip-icon .bi-check-circle-fill {
    color: #495057;
    transition: color 0.2s ease-in-out;
}

.chip.is-checked .chip-icon .bi-check-circle-fill {
    color: #ffffff;
}

/* সুবিধার নামটি */
.chip-text {
    /* আইকন বাম দিকে, তাই নাম ডানে */
    margin-right: 0;
    font-weight: 400;
}

/* কাস্টম ফ্ল্যাটপিকার ইনপুট কন্টেইনার */
.flatpickr-wrapper-custom {
    position: relative;
}

.flatpickr-wrapper-custom i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0d6efd;
    pointer-events: none;
}

.bangla-date-preview {
    background-color: #f0f7ff;
    border-left: 4px solid #0d6efd;
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
    font-size: 0.88rem;
    margin-top: 8px;
    display: none;
}

[data-bs-theme="dark"] .bangla-date-preview {
    background-color: rgba(13, 110, 253, 0.1);
}

/* ছোট স্ক্রিনের জন্য ফন্ট সাইজ সামঞ্জস্য করা */
@media (max-width: 372px) {
    .col-xs {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .chip {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .align-start {
        align-items: flex-start !important;
    }

    .chip-icon {
        font-size: 1.3rem;
    }

}

.text-left {
    text-align: left;
}

.large {
    font-size: large;
}

/* NID কার্ড হোভার অ্যান্ড ডিসপ্লে */
.nid-thumbnail-view {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    max-height: 110px;
    object-fit: contain;
    background-color: #f8f9fa;
}

.nid-thumbnail-view:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .85;
        transform: scale(1.02);
    }
}

.animate-pulse {
    animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ১. প্রিমিয়াম স্কেল-পপ ট্রানজিশন (পপআপ, বড় মোডাল ও অ্যালার্টের জন্য চমৎকার) */
.scale-pop {
    transform: scale(0.85);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.scale-pop.active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

/* স্প্রিং-স্কেল ট্রানজিশন (ড্রপডাউন লিস্টের জন্য) - !important যুক্ত করা হয়েছে যাতে ওভাররাইড না হয় */
.scale-spring {
    transform: scale(0.92) translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease, visibility 0.2s ease !important;
}

.scale-spring.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* কার্ডের ইন্টারেক্টিভ হোভার */
.scale-hover {
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    z-index: 1000;
}

.scale-hover:hover {
    transform: scale(1.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    z-index: 1001;
}

#ai-matching-results-container .card.scale-hover:hover {
    transform: scale(1.05) !important;
}

.scale-hover:active {
    transform: scale(0.99);
    z-index: 1002;
}

/* মোডালের জন্য প্রিমিয়াম স্কেল/জুম অ্যানিমেশন */
.modal.scale-modal .modal-dialog {
    transform: scale(0.82);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.modal.scale-modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* ট্যাব সুইচের জন্য চমৎকার স্প্রিং-স্কেল অ্যানিমেশন */
.tab-pane.scale-tab {
    display: none;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.tab-pane.scale-tab.active {
    display: block;
}

.tab-pane.scale-tab.show {
    opacity: 1;
    transform: scale(1);
}

/* ভ্যালিডেশন স্টাইলিং */
.is-invalid-custom {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.is-valid-custom {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25) !important;
}

.ws-nowrap {
    white-space: nowrap;
}

:root {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border-card: rgba(0, 0, 0, 0.08);
    --text-main: #0f172a;
    --text-muted: #242529;
    --bg-select: #ffffff;
    --border-select: #cbd5e1;
    --bg-option: #ffffff;
    --border-option: #e2e8f0;
    --bg-option-hover: rgba(66, 71, 209, 0.16);
    --text-option-hover: #4f46e5;
    --bg-badge: rgba(99, 102, 241, 0.1);
    --text-badge: #4f46e5;
    --border-badge: rgba(99, 102, 241, 0.2);
    --bg-code: #0f172a;
}

[data-bs-theme="dark"] {
    --bg-body: #0b0f19;
    --bg-card: #151f32;
    --border-card: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #dde2e9;
    --bg-select: #1e293b;
    --border-select: rgba(255, 255, 255, 0.1);
    --bg-option: #1e293b;
    --border-option: rgba(255, 255, 255, 0.12);
    --bg-option-hover: rgba(46, 51, 202, 0.3);
    --text-option-hover: #818cf8;
    --bg-badge: rgba(13, 202, 240, 0.15);
    --text-badge: #0dcaf0;
    --border-badge: rgba(13, 202, 240, 0.3);
    --bg-code: #090d16;
}

.custom-select-btn {
    background-color: var(--bs-body-bg);
    border: 1px solid var(--border-select) !important;
    color: var(--text-main) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.2s ease;
}

.right-2 {
    left: unset !important;
    right: .5rem !important;
}

.custom-option-menu {
    margin-top: 0.5rem;
    padding: 0;
    overflow: hidden;
    position: absolute;
    left: 8px;
    width: 100%;
    background-color: var(--bs-body-bg);
    border: 1px solid var(--border-option) !important;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    z-index: 100;
    /* ড্রপডাউনটি যেন সবার উপরে থাকে */
}

[data-bs-theme="dark"] .custom-option-menu {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.custom-option-item {
    color: var(--bs-body-color) !important;
    padding: 8px 16px;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.custom-option-item.active,
.custom-option-item:hover {
    background-color: var(--bs-primary-bg-subtle) !important;
    color: var(--bs-primary-text-emphasis) !important;
}

/* .custom-option-item {
        color: var(--text-muted) !important;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .custom-option-item:hover {
        background-color: var(--bg-option-hover) !important;
        color: var(--text-muted) !important;
    } */

#authModal {
    top: 60px;
    bottom: 65px;
    height: calc(100% - 125px);
    padding-right: 15px;
    display: block;

}

.modal-dialog-scrollable .modal-body {
    scrollbar-width: none !important;
}

.modal-dialog-scrollable .modal-body:hover {
    scrollbar-width: thin !important;
}


@media (min-width: 768px) {
    .w-md-100 {
        width: 100% !important;
    }

    .offcanvas-body {
        margin-bottom: 4.75rem;
    }

    .ad-card .img-placeholder {
        height: 100%;
        min-height: auto;
    }

    .ad-card img {
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
        border-top-right-radius: 0px;
    }

    .chat-modal .modal-dialog {
        right: 18px;
        left: auto;
        top: auto;
    }

    .thumb-overlay {
        border-radius: 10px;
    }
}

.chat-bubble,
.modal-msg-bubble {
    position: relative;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    max-width: 75%;
    word-wrap: break-word;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-bubble.chat-bubble-received {
    border-top-right-radius: 8px;
}

[data-testid="tail-out"],
[data-testid="tail-in"] {
    width: 8px;
    height: 13px;
    top: -5.5px;
    z-index: 100;
    display: block;
    position: absolute;
    color: var(--bs-primary);
    border: none;
    outline: none;
}

.chat-bubble.chat-bubble-sent,
.modal-msg-bubble.modal-msg-sent {
    padding: 10px 36px 10px 14px;
}

.chat-bubble.chat-bubble-sent [data-testid="tail-out"],
.modal-msg-bubble.modal-msg-sent [data-testid="tail-out"] {
    right: -8px;
    left: auto;
}

.chat-bubble.chat-bubble-received [data-testid="tail-in"],
.modal-msg-bubble.modal-msg-received [data-testid="tail-in"] {
    left: -8px;
    /* top: -6.75px; */
    color: #313131;
}

.chat-bubble,
.modal-msg-sent {
    background-color: var(--bs-primary);
    color: white;
    align-self: flex-end;
    border-top-right-radius: 0px;
}

.chat-bubble-received,
.modal-msg-received {
    background-color: #313131;
    color: var(--bs-body-color);
    align-self: flex-start;
    border-top-left-radius: 0px;
}

.cursor-pointer {
    cursor: pointer;
}

/* AI Matching visual upgrades */
.ai-score-ring {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

[data-bs-theme="dark"] {
    .ai-score-ring {
        color: var(--bs-light);
        background: radial-gradient(closest-side, #000000 79%, transparent 80% 100%), conic-gradient(#161616 calc(var(--score-pct) * 1%), #f1f5f9 0) !important;
    }
}

@media (max-width: 767.99px) {
    .offcanvas-body {
        margin-bottom: 0;
    }

    .ps-sm-1 {
        padding-left: .25rem !important;
    }

    .ai-score-ring {
        width: 48px;
        height: 48px;
        font-size: .85rem;
    }
}

.room-counter {
    font-size: 0.85rem;
    padding: 5px 44px 5px 12px;
    border-radius: 50px;
    position: relative;
    min-width: 114px;
    --bs-border-opacity: 1;
    border: var(--bs-border-width) var(--bs-border-style) rgba(var(--bs-primary-rgb), var(--bs-border-opacity)) !important;
    color: var(--bs-primary-text-emphasis) !important;
}

.room-number {
    font-size: 0.85rem;
    top: -1px;
    right: -1px;
    position: absolute;
    min-width: 44px;
    padding: 7px 10px;
    border-radius: 0px 50px 50px 0px;
    background-color: var(--bs-primary-bg-subtle) !important;
    color: var(--bs-primary-text-emphasis) !important;
    --bs-border-opacity: 1;
    border-color: rgba(var(--bs-primary-rgb), var(--bs-border-opacity)) !important;
    margin-left: .25rem !important;
}

.text-overflow-ellipsis {
    max-width: 10rem;
    text-overflow: ellipsis;
}

.col-3-wide .custom-option-menu {
    max-width: 222px !important;
}

.leaflet-control-attribution.leaflet-control {
    display: none !important;
}

@media (max-width: 399.98px) {
    .d-xs-block {
        display: block;
    }

    .d-xs-none {
        display: none;
    }

    .w-xs-auto{
        width: auto !important;
    }
}

@media (min-width: 400px) {
    .d-xs-block {
        display: none;
    }
}