/* =====================================
   ১. বেসিক এবং সাধারণ স্টাইল
   ==================================== */
/* 🚀 ফিক্স ১: sticky কাজ করার জন্য overflow-x: hidden নিশ্চিত করা হলো */
html, body {
    overflow-x: hidden; 
}
body {
    /* ফ্রন্ট: একটি আধুনিক, পাঠযোগ্য সিস্টেম ফন্ট ব্যবহার করা হলো */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6; /* হালকা ধূসর ব্যাকগ্রাউন্ড */
    color: #333;
    /* ✅ ডেস্কটপ ফিক্স: হেডার (100px) + ফিল্টার বার (~50px) = 150px */
    padding-top: 150px; 
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* ছোট স্ক্রিনের জন্য প্যাডিং */
}

/* মেইন কন্টেন্ট এলাকা: ফুটার নিচে রাখতে সাহায্য করবে */
.main-content {
    min-height: calc(100vh - 170px); /* হেডার ও ফুটারের জন্য জায়গা রাখা */
}


/* =====================================
   ২. ফিক্সড হেডার এবং নেভিগেশন (ছবি অনুযায়ী পরিবর্তিত)
   ==================================== */
.main-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.header-top {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 60px; /* হেডারের উচ্চতা নির্দিষ্ট করা হলো */
    padding: 0 15px;
    box-sizing: border-box;
}

/* লোগো টাইটেল - মাঝখানে থাকবে */
.logo-title {
    display: flex;
    align-items: center;
    color: #2ecc71; /* লোগো কালার */
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap; 
    flex-grow: 0;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 24px;
    margin-right: 5px;
}

/* অ্যাকশন বাটন গ্রুপ - প্রোফাইল আইকন ডান দিকে */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

/* মেনু এবং প্রোফাইল আইকনের সাধারণ স্টাইল */
.menu-icon,
.profile-icon {
    cursor: pointer;
    font-size: 28px; /* আইকনের আকার */
    color: #333;
    transition: color 0.2s;
}

/* ✅ নতুন যোগ: মেনু আইকন এবং লোগোর মধ্যে সামান্য দূরত্ব তৈরি করা */
.menu-icon {
    margin-right: 10px;
}

.menu-icon:hover,
.profile-icon:hover {
    color: #2ecc71;
}

/* এই বাটনটি index.html থেকে সরানো হয়েছে, কিন্তু অন্য পেজে লাগতে পারে */
.post-button {
    display: none; /* index.html এ লুকানো হলো */
}

/* সার্চ বার স্টাইল */
.search-bar {
    display: flex;
    padding: 5px 15px;
    border-bottom: 1px solid #eee;
}

.search-bar input {
    flex-grow: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
}

.search-bar button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-bar button:hover {
    background-color: #2980b9;
}

/* নেভিগেশন ফিল্টার */
.nav-filters {
    display: flex;
    justify-content: center;
    padding: 10px 15px;
    gap: 10px;
    border-bottom: 1px solid #eee;
    
    /* 🚀 ফিক্স ২: position: sticky এবং top যুক্ত করা হলো */
    position: sticky; 
    /* ✅ ডেস্কটপ: ফিক্সড হেডারের মোট উচ্চতা (~100px) */
    top: 100px; 
    
    background-color: #fff; /* স্ক্রল করার সময় কনটেন্টের উপরে থাকার জন্য সাদা ব্যাকগ্রাউন্ড */
    z-index: 90; /* প্রধান হেডারের (100) নিচে কিন্তু কন্টেন্টের (নিচে) উপরে */
}

.nav-filters .nav-button {
    background: none;
    border: none;
    padding: 8px 15px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-filters .nav-button:hover {
    background-color: #ecf0f1;
}

.nav-filters .nav-button.active {
    background-color: #2ecc71;
    color: #fff;
    box-shadow: 0 2px 5px rgba(46, 204, 113, 0.3);
}


/* =====================================
   ৩. সাইডবার স্টাইল
   ==================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px; /* লুকানো অবস্থা */
    width: 260px;
    height: 100%;
    background-color: #2c3e50; /* গাঢ় ব্যাকগ্রাউন্ড */
    color: #ecf0f1;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 200;
    transition: left 0.3s ease;
}

.sidebar.active {
    left: 0; /* দৃশ্যমান অবস্থা */
}

.sidebar nav {
    display: flex;
    flex-direction: column;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ecf0f1;
    transition: background-color 0.2s, color 0.2s;
    font-size: 16px;
}

.sidebar a:hover {
    background-color: #34495e; /* হোভারে গাঢ় রঙ */
    color: #2ecc71;
}

.sidebar a .material-icons {
    margin-right: 10px;
    font-size: 20px;
}

/* সাইডবার লোগো স্টাইল */
.sidebar-logo {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #2ecc71;
    border-bottom: 1px solid #34495e;
}

.sidebar-logo:hover {
    background-color: transparent;
    color: #2ecc71;
}

/* ওভারলে */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 150;
    display: none;
}

.overlay.active {
    display: block;
}

/* =====================================
   ৪. প্রপার্টি গ্রিড এবং কার্ড স্টাইল (স্লাইডার এবং ডাইনামিক ডেটা যুক্ত)
   ==================================== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 15px; 
}

.property-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative; /* স্লাইডারের জন্য আবশ্যক */
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* --- প্রপার্টি ইমেজ কন্টেইনার এবং স্লাইডার স্টাইল --- */
.property-image-container {
    width: 100%;
    height: 200px; /* কার্ডের জন্য ছবির উচ্চতা */
    overflow: hidden;
    position: relative; /* স্লাইডার, নেভিগেশন ও ক্যাটাগরি ট্যাগের জন্য */
    border-radius: 10px 10px 0 0;
}

.image-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* transition: opacity 0.3s ease; */ /* JS ডিসপ্লে টগল ব্যবহার করছে */
}

/* ক্যাটাগরি ট্যাগ */
.property-category {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 51; 
    background-color: #2ecc71; 
    color: #fff;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
}

/* নেভিগেশন বাটন স্টাইল */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 12px; /* প্যাডিং কমানো হলো */
    cursor: pointer;
    z-index: 50; 
    font-size: 18px; /* ফন্ট সাইজ কমানো হলো */
    line-height: 1;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.slider-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* --- প্রপার্টি ডিটেইলস এবং স্পেকস স্টাইল --- */
.property-details {
    padding: 15px;
}

.property-title {
    margin: 5px 0 10px 0;
    font-size: 18px;
    color: #333;
    line-height: 1.3;
}

.property-location {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.property-location .material-icons {
    font-size: 16px;
    margin-right: 5px;
    color: #777;
}

/* ডাইনামিক স্পেকস কন্টেইনার */
.property-specs {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
    gap: 10px;
    flex-wrap: wrap;
}

.property-specs span {
    display: flex;
    align-items: center;
    background-color: #ecf0f1; /* হালকা ব্যাকগ্রাউন্ড */
    padding: 4px 8px;
    border-radius: 5px;
    white-space: nowrap; /* টেক্সট যাতে না ভাঙে */
}

.property-specs .material-icons {
    font-size: 16px;
    margin-right: 5px;
    color: #3498db;
}

.property-price {
    font-size: 20px;
    font-weight: 700;
    color: #2ecc71;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.property-price .unit {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-left: 5px;
}

/* নো রেজাল্ট মেসেজ স্টাইল */
.loading-message, .no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
    font-size: 18px;
    color: #777;
}

/* ************************************************************
   ৫, ৬, ৭, ৮, ৯ নং সেকশনগুলি অপরিবর্তিত আছে, শুধুমাত্র কার্ড স্টাইল আপডেট করা হয়েছে
   ************************************************************ */


/* =====================================
   ৫. অন্য সেকশন স্টাইল (টিপস, অ্যাবাউট, কন্টাক্ট)
   ==================================== */
h2 {
    color: #2ecc71;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* টিপস এবং কন্টাক্ট কার্ডের জন্য গ্রিড */
.tip-card-grid, .contact-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tip-card, .contact-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tip-card h3, .contact-card h3 {
    color: #3498db;
    font-size: 18px;
    margin-top: 0;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.contact-card .material-icons {
    font-size: 30px;
    color: #2ecc71;
    margin-bottom: 10px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-links img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* =====================================
   ৬. ফর্ম স্টাইল (অন্যান্য পেইজের জন্য)
   ==================================== */
.form-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    color: #333;
    border-bottom: none;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.input-group input[type="email"],
.input-group input[type="password"],
.input-group input[type="text"],
.input-group input[type="number"],
.input-group input[type="tel"],
.input-group input[type="url"],
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: inherit;
}

.form-container button[type="submit"],
.form-container button[type="button"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.form-container button[type="submit"]:hover,
.form-container button[type="button"]:hover {
    background-color: #2980b9;
}

.form-container button[type="submit"]:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* অন্যান্য ফর্ম স্টাইল */
.switch-form {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.switch-form a {
    color: #2ecc71;
    font-weight: 600;
}

/* প্রোফাইল ট্যাব স্টাইল (profile.html-এর জন্য) */
.tab-navigation {
    display: flex;
    justify-content: flex-start;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #777;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-bottom-color 0.2s;
}

.tab-button.active {
    color: #2ecc71;
    border-bottom-color: #2ecc71;
}

.tab-content-item {
    padding: 10px 0;
}

/* =====================================
   ৭. ফুটার
   ==================================== */
.footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

.footer p {
    margin: 0;
}

/* =====================================
   ৮. রেসপনসিভনেস (Responsive Design)
   ==================================== */

/* অতিরিক্ত ছোট স্ক্রিনের জন্য সামঞ্জস্য (৬০০পিক্সেলের নিচে) */
@media (max-width: 600px) {
    /* কন্টেইনারের সাইড প্যাডিং কমানো হলো */
    .container {
        padding: 0 8px; 
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .tip-card-grid, .contact-card-grid {
        grid-template-columns: 1fr;
    }

    .nav-filters {
        flex-wrap: wrap;
        /* নেভ-ফিল্টারের প্যাডিং কমানো হলো */
        padding: 5px 8px; 
        
        /* 🚀 মোবাইল ফিক্স: ফিক্সড হেডারের মোট উচ্চতা (~90px) */
        top: 90px; 
    }
    
    .nav-filters .nav-button {
        /* বাটন প্যাডিং সামান্য কমানো হলো */
        padding: 6px 10px;
        font-size: 14px;
    }
    
    /* প্রপার্টি কার্ডে স্পেকস এর গ্যাপ কমানো */
    .property-specs {
        gap: 5px;
        font-size: 12px;
    }
    
    .property-specs span {
        padding: 3px 6px;
    }

    /* হেডার পরিবর্তন */
    .header-top {
        height: 50px; /* হেডারের উচ্চতা কমানো হলো */
        padding: 0 8px; 
    }

    /* ✅ সংশোধিত: ছোট স্ক্রিনে লোগোকে বাম দিকে আনা হলো */
    .logo-title {
        font-size: 18px;
    }
    
    .logo-title span {
        display: inline; 
        font-size: 16px; 
        font-weight: 600;
    }
    
    .logo-title .logo-icon {
        font-size: 24px;
    }
    
    /* ফিক্সড হেডারের জন্য কন্টেন্টকে নিচে নামানো */
    /* ✅ মোবাইল ফিক্স: হেডার (90px) + ফিল্টার বার (~40px) = 130px */
    body {
        padding-top: 130px; 
    }
}

/* =====================================
   ৯. পোস্ট প্রিভিউ স্টাইল (preview.html এর জন্য)
   ==================================== */
.preview-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.preview-container h2 {
    color: var(--primary-color, #007bff); 
    border-bottom: 2px solid #eee;
}

.preview-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
}

.preview-section h3 {
    color: #333;
    font-size: 1.2em;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 15px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #eee;
    align-items: flex-start;
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-label {
    font-weight: 600;
    color: #555;
    flex-basis: 40%; 
}

.preview-value {
    flex-basis: 55%; 
    text-align: right;
    word-wrap: break-word;
}

.not-found {
    text-align: center;
    padding: 50px;
    font-size: 1.1em;
    color: #e74c3c;
    border: 1px dashed #e74c3c;
    border-radius: 5px;
}

/* ছবি স্টাইল */
#image-carousel {
    display: flex;
    overflow-x: auto; 
    gap: 10px;
    padding-bottom: 10px;
}
.preview-image-wrapper {
    flex-shrink: 0; 
    width: 200px; 
    height: 150px; 
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.utility-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}
.utility-list li {
    display: inline-block;
    background-color: #ecf0f1;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 5px;
    margin-top: 5px;
    font-size: 0.9em;
    color: #34495e;
}

.preview-description {
    white-space: pre-wrap;
    text-align: justify;
}

/* অ্যাকশন বাটন স্টাইল */
.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}
.edit-button, .confirm-button {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    flex-grow: 1;
}

.edit-button {
    background-color: #f39c12; 
    color: white;
}
.confirm-button {
    background-color: #2ecc71; 
    color: white;
}
.confirm-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .action-buttons {
        flex-direction: column;
    }
   }

/* --- preview.html এর জন্য স্টাইল --- */

/* কার্ড বেস স্টাইল */
.stylish-card {
    background-color: #ffffff; /* সাদা ব্যাকগ্রাউন্ড */
    border-radius: 12px; /* গোল কোণা */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* হালকা শ্যাডো */
    margin-bottom: 25px; /* নিচের দিকে মার্জিন */
    padding: 25px; /* ভেতরের প্যাডিং */
    border: 1px solid #e0e0e0; /* হালকা বর্ডার */
}

/* সেকশন টাইটেল স্টাইল */
.section-title {
    font-size: 1.6em; /* বড় ফন্ট সাইজ */
    color: #007bff; /* প্রাইমারি নীল রঙ */
    margin-bottom: 20px; /* নিচের দিকে মার্জিন */
    border-bottom: 2px solid #e9ecef; /* হালকা বর্ডার */
    padding-bottom: 10px; /* বর্ডারের নিচে প্যাডিং */
    display: flex; /* আইকন এবং টেক্সট এক লাইনে */
    align-items: center; /* উল্লম্বভাবে মাঝখানে */
    font-weight: 600; /* সেমি-বোল্ড ফন্ট */
}

/* সেকশন টাইটেলে আইকন স্টাইল */
.icon-styling {
    color: #28a745; /* সবুজ আইকন */
    margin-right: 10px; /* আইকনের ডানে মার্জিন */
    font-size: 1.2em; /* আইকনের ফন্ট সাইজ */
}


/* প্রিভিউ হেডার স্টাইল */
.preview-header-section {
    text-align: center; /* মাঝখানে টেক্সট */
    padding-bottom: 15px; /* নিচের দিকে প্যাডিং */
}

.preview-title {
    font-size: 2.5em; /* শিরোনামের বড় ফন্ট */
    color: #343a40; /* গাঢ় ধূসর রঙ */
    margin-bottom: 10px; /* নিচের দিকে মার্জিন */
    font-weight: 700; /* বোল্ড ফন্ট */
}

.preview-meta-info {
    font-size: 1.1em; /* মেটা তথ্যের ফন্ট সাইজ */
    color: #6c757d; /* হালকা ধূসর রঙ */
}

.highlight-text {
    color: #007bff; /* হাইলাইট টেক্সটের জন্য নীল */
    font-weight: 600;
}

/* ডেটা গ্রিড স্টাইল */
.info-grid {
    display: grid; /* গ্রিড লেআউট */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* রেসপন্সিভ কলাম */
    gap: 15px; /* আইটেমগুলির মধ্যে গ্যাপ */
    margin-top: 15px; /* উপরের দিকে মার্জিন */
}

.info-item {
    background-color: #f8f9fa; /* হালকা ধূসর ব্যাকগ্রাউন্ড */
    padding: 15px 20px; /* প্যাডিং */
    border-radius: 8px; /* গোল কোণা */
    border: 1px solid #e9ecef; /* হালকা বর্ডার */
    font-size: 1.05em; /* ফন্ট সাইজ */
    color: #343a40; /* টেক্সট রঙ */
    display: flex; /* টেক্সট ও ভ্যালু এক লাইনে */
    justify-content: space-between; /* ভ্যালুকে ডানে সরিয়ে দেওয়া */
    align-items: center; /* উল্লম্বভাবে মাঝখানে */
}

.info-item strong {
    color: #495057; /* বোল্ড টেক্সটের রঙ */
    margin-right: 10px; /* স্পেস */
}

.info-value {
    color: #007bff; /* ভ্যালুর জন্য নীল রঙ */
    font-weight: 600; /* সেমি-বোল্ড */
}

.price-highlight {
    color: #dc3545; /* দামের জন্য লাল হাইলাইট */
    font-weight: 700;
    font-size: 1.1em;
}

/* সম্পূর্ণ প্রস্থের আইটেম */
.full-width-item {
    grid-column: 1 / -1; /* সম্পূর্ণ প্রস্থে প্রসারিত */
}

/* বিবরণ টেক্সট */
.description-text {
    line-height: 1.7; /* লাইনের উচ্চতা */
    color: #495057; /* টেক্সট রঙ */
    font-size: 1.1em; /* ফন্ট সাইজ */
}

/* ইউটিলিটি তালিকা */
.utility-list {
    list-style: none; /* বুলেট পয়েন্ট সরান */
    padding: 0; /* প্যাডিং সরান */
    margin-top: 10px; /* উপরের দিকে মার্জিন */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.utility-list li {
    background-color: #eaf7ed; /* সবুজ ব্যাকগ্রাউন্ড */
    padding: 8px 12px; /* প্যাডিং */
    border-radius: 6px; /* গোল কোণা */
    color: #155724; /* গাঢ় সবুজ টেক্সট */
    display: flex;
    align-items: center;
    font-size: 0.95em;
}

.utility-icon {
    margin-right: 8px; /* আইকনের ডানে মার্জিন */
    color: #28a745; /* আইকনের রঙ */
}


/* গুগল ম্যাপ লিঙ্ক স্টাইল */
.google-map-link-container {
    text-align: center;
}
.map-link {
    display: inline-block;
    background-color: #28a745; /* সবুজ বাটন */
    color: #ffffff; /* সাদা টেক্সট */
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none; /* আন্ডারলাইন সরান */
    font-weight: 600;
    transition: background-color 0.3s ease; /* হোভারে স্মুথ ট্রানজিশন */
}

.map-link:hover {
    background-color: #218838; /* হোভারে গাঢ় সবুজ */
}

/* ছবি গ্যালারি স্টাইল */
.image-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* রেসপন্সিভ গ্রিড */
    gap: 20px; /* ছবিগুলির মধ্যে গ্যাপ */
    margin-top: 20px;
}

.preview-gallery-image,
.ownership-doc-image {
    width: 100%; /* সম্পূর্ণ প্রস্থ */
    height: 250px; /* নির্দিষ্ট উচ্চতা */
    object-fit: cover; /* ছবি যাতে ক্রপ না হয় এবং নির্দিষ্ট অনুপাত বজায় রাখে */
    border-radius: 8px; /* গোল কোণা */
    border: 1px solid #e0e0e0; /* হালকা বর্ডার */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* হালকা শ্যাডো */
    transition: transform 0.3s ease; /* হোভারে ট্রানজিশন */
}

.preview-gallery-image:hover,
.ownership-doc-image:hover {
    transform: scale(1.02); /* হোভারে সামান্য বড় হবে */
}

.placeholder-text {
    color: #6c757d;
    text-align: center;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
}

/* ডকুমেন্ট প্রিভিউ এরিয়া (খতিয়ান, নকশা) */
.doc-preview-area {
    display: grid;
    grid-template-columns: 1fr; /* মোবাইল ভিউতে একটি কলাম */
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .doc-preview-area {
        grid-template-columns: 1fr 1fr; /* ডেস্কটপে দুটি কলাম */
    }
}

.doc-item p {
    text-align: center;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 10px;
}

.doc-image-wrapper {
    background-color: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    height: 250px; /* মূল ছবির মতোই উচ্চতা */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* অতিরিক্ত অংশ লুকানো */
}

/* এরর বক্স স্টাইল */
.error-box {
    background-color: #fff3cd; /* হালকা হলুদ ব্যাকগ্রাউন্ড */
    border: 1px solid #ffeeba; /* হলুদ বর্ডার */
    color: #856404; /* গাঢ় হলুদ টেক্সট */
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.error-box h3 {
    color: #856404;
    margin-bottom: 10px;
}

/* রেসপন্সিভনেস */
@media (max-width: 767px) {
    .preview-title {
        font-size: 1.8em;
    }
    .section-title {
        font-size: 1.4em;
    }
    .info-grid {
        grid-template-columns: 1fr; /* মোবাইল ডিভাইসের জন্য একটি কলাম */
    }
    .preview-gallery-image,
    .ownership-doc-image {
        height: 200px; /* মোবাইলে ছবির উচ্চতা কমানো */
    }
    .doc-image-wrapper {
        height: 200px;
    }
    .placeholder-text {
        height: 200px; /* মোবাইলে উচ্চতা ঠিক করা হলো */
    }

   }


/* --- হেডার ফিক্স: সবার উপরে ফিক্সড করা --- */
        .main-header {
             position: fixed; 
             top: 0;
             left: 0;
             right: 0;
             background-color: white; 
             box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
             z-index: 1000; 
             padding-bottom: 0;
        }
        
        /* --- [ফিক্স: সাইডবার পজিশনিং এবং ট্রানজিশন] --- */
        .sidebar {
            position: fixed; 
            top: 0;
            left: -250px; 
            width: 250px; 
            height: 100%;
            background-color: #34495e; /* আপনার পছন্দ করা গাঢ় নীল/ধূসর রঙ */
            transition: left 0.3s ease; 
            box-shadow: 2px 0 5px rgba(0,0,0,0.5); 
            z-index: 1050; 
            overflow-y: auto;
            padding-top: 50px; /* হেডার এর নিচে থেকে শুরু হবে */
        }
        
        .sidebar.active {
            left: 0; 
        }
        
        .overlay {
            position: fixed; 
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5); 
            z-index: 1040; 
            display: none; 
        }
        
        .overlay.active {
            display: block; 
        }
        
        /* সাইডবারের লিঙ্ক এবং আইকনের রঙ সাদা করা */
        .sidebar a {
            color: #ffffff; 
            padding: 12px 15px; 
            display: flex;
            align-items: center;
            text-decoration: none;
            font-weight: 500;
        }

        .sidebar a i.material-icons {
            color: #ffffff; 
            margin-right: 10px;
        }

        .sidebar a:hover {
            background-color: #3e5369; 
        }
        
        /* সাইডবারের লোগো লিঙ্ক (প্রথম লিঙ্ক) */
        .sidebar-logo {
            padding: 15px;
            font-size: 1.5em;
            font-weight: bold;
            color: white !important; 
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 5px;
        }
        /* --- [ফিক্স শেষ] --- */

    .header-top {
            display: flex;
            align-items: center;
            justify-content: space-between; 
            padding: 8px 15px; 
        }

        .header-left {
            display: flex;
            align-items: center;
            flex-shrink: 0; 
        }

        .menu-icon {
             margin-right: 0; 
             cursor: pointer;
        }
        
        .logo-title {
            display: flex;
            align-items: center;
            font-size: 1.8em; 
            font-weight: bold;
            color: #007bff);
            margin-left: 0px; 
            text-decoration: none; 
            white-space: nowrap; 
        }
        .logo-title:visited {
             color: #007bff;
        }
        .logo-icon {
            margin-right: 5px;
        }

        /* ডানের ব্লক (আইকন) ফিক্স */
        .header-actions {
             display: flex;
             align-items: center;
             gap: 12px; 
             position: relative; 
             flex-shrink: 0; 
        }
        
        /* কমন আইকন র‍্যাপার স্টাইল (নোটিফিকেশন, ম্যাসেজ, পোস্ট) */
        .icon-wrapper {
             position: relative;
             display: inline-flex;
             cursor: pointer;
             align-items: center; 
             justify-content: center;
             height: 30px; 
             width: 30px; 
        }
        
        /* কমন নোটিফিকেশন কাউন্ট স্টাইল */
        .notification-count {
            position: absolute;
            top: -5px; 
            right: -8px; 
            background-color: red;
            color: white;
            border-radius: 50%;
            padding: 2px 5px; 
            font-size: 0.7em;
            font-weight: bold;
            min-width: 10px;
            text-align: center;
            line-height: 1; 
            display: none; 
        }
        
        /* আইকন কালার */
        .notification-icon { color: #007bff; }
        .message-icon { color: #007bff; }
        .post-icon-header { color: #28a745; }

        .icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* ১. গোল করার জন্য ম্যাজিক কোড */
    height: 42px;
    width: 42px;
    border-radius: 50%; /* এটি চারকোনা বক্সকে একদম নিখুঁত গোল করে দেয় */
    
    /* ২. ব্যাকগ্রাউন্ড কালার (হালকা গ্লাস ফিল) */
    background: rgba(255, 255, 255, 0.9);
    
    /* ৩. মডার্ন ও সফট ড্রপ শ্যাডো (যা নিচে হালকা ভাসমান ভাব তৈরি করে) */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
    
    /* ৪. সূক্ষ্ম বর্ডার এবং অ্যানিমেশন ট্রানজিশন */
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* ৫. মাউস নিলে (Hover করলে) শ্যাডোটি আরও রঙিন ও গভীর হওয়ার কোড */
.icon-wrapper:hover {
    transform: translateY(-3px); /* সামান্য ওপরে ভেসে উঠবে */
    box-shadow: 0 5px 15px rgba(255, 90, 95, 0.2); /* ব্র্যান্ড কালারের একটি গ্লোয়িং শ্যাডো আসবে */
           }


        /* প্রোফাইল ইমেজ স্টাইল */
        .profile-image-wrapper {
            cursor: pointer;
            width: 35px; /* আইকন থেকে সামান্য বড় */
            height: 35px;
            border-radius: 50%;
            overflow: hidden;
            border: 2px solid var(--primary-color); /* রঙের বর্ডার */
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #profileImage {
            width: 100%;
            height: 100%;
            object-fit: cover;

           


