/* ================= বেসিক রিসেট ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #000;
    overflow-x: hidden;
}

/* ================= হিরো সেকশন (মেইন ইমেজ) ================= */
/* ================= হিরো সেকশন (মেইন ইমেজ) ================= */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center center; /* ছবি মাঝখানে থাকবে */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 120px; /* নেভিগেশন বারের জন্য উপরে জায়গা */
    padding-bottom: 50px;
}
/* ডার্ক ওভারলে (ছবির ওপর হালকা কালো রঙ) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* ================= টপ নেভিগেশন ================= */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.logo {
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -2px;
}

.logo span {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 5px;
    font-weight: 400;
    margin-top: 5px;
}

.nav-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links li a:hover { color: #e74c3c; }

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.social-icons a:hover {
    background: white;
    color: #1c2a38;
    border-color: white;
}

/* ================= নেভিগেশন ড্রপডাউন ================= */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    list-style: none;
    padding: 15px 0;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 25px;
    color: #333 !important;
    text-transform: none;
    font-size: 14px;
    transition: all 0.3s;
}

.dropdown-menu li a:hover {
    background: #f4f4f4;
    color: #1c2a38 !important;
    padding-left: 30px;
}

/* ================= মেইন কন্টেন্ট ================= */
.hero-content {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    z-index: 5;
}

.profile-pic img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    margin-bottom: 20px;
}

.agent-name {
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 52px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.agent-title {
    color: #ddd;
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.location-title {
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

/* ================= আধুনিক সার্চ বার ================= */
.search-container {
    width: 95%;
    max-width: 1200px;
    position: relative;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    background: white;
    height: 70px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-bar:hover, .search-bar:focus-within {
    border-color: #e74c3c; /* সার্চ বারে ক্লিক করলে লাল বর্ডার */
}

/* প্রতিটি ইনপুট/ড্রপডাউনের বক্স */
.input-group {
    flex: 1;
    display: flex;
    align-items: center;
    border-right: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.input-group:hover { background: #fcfcfc; }

.input-group.main-input { flex: 2.5; }

.input-group input, .input-group select {
    width: 100%;
    height: 100%;
    padding: 0 20px;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
    background: transparent;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
}

.search-btn {
    flex: 1.2;
    background-color: #1c2a38;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-btn:hover { 
    background-color: #e74c3c; /* হোভার করলে লাল হবে */
}

/* More Options বাটন */
.more-options-toggle {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.more-options-toggle a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 30px;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.more-options-toggle a:hover { 
    background: #e74c3c; 
    border-color: #e74c3c;
}

/* ================= অ্যাডভান্সড সার্চ অপশন (More Options) ================= */
.advanced-options {
    display: none; 
    background: white;
    padding: 25px;
    margin-top: 15px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    text-align: left;
    width: 100%;
    animation: fadeInDown 0.4s ease;
}

.advanced-options.show { display: grid; }

.adv-field { display: flex; flex-direction: column; }

.adv-field label {
    font-size: 13px;
    font-weight: 600;
    color: #1c2a38;
    margin-bottom: 8px;
}

.adv-field input, .adv-field select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    width: 100%;
}

.adv-field input:focus, .adv-field select:focus {
    border-color: #1c2a38;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= সার্চ রেজাল্ট সেকশন ================= */
.results-section {
    display: none; 
    background: #f4f4f4;
    padding: 80px 20px;
    min-height: 90vh;
}

.results-section.active { display: block; }

.results-container {
    max-width: 1200px;
    margin: 0 auto;
}

.results-container h2 {
    font-family: 'Montserrat', sans-serif;
    color: #1c2a38;
    margin-bottom: 5px;
    font-size: 32px;
}

.results-container h2 span { color: #e74c3c; }
.results-container p { color: #777; margin-bottom: 30px; font-size: 16px; }

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.property-card:hover { transform: translateY(-5px); }

.property-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-details { padding: 25px; }

.card-details h3 {
    color: #e74c3c;
    font-size: 26px;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.card-details p {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
}

.features {
    display: flex;
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.features span { font-size: 14px; color: #555; font-weight: 600; }

.back-btn {
    background: #1c2a38;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}

.back-btn:hover { background: #e74c3c; }

/* ================= নিচের কালো বার (Bottom Bar) ================= */
.bottom-bar {
    background-color: #1c2a38;
    color: white;
    text-align: center;
    padding: 25px 0;
    width: 100%;
    font-size: 16px;
    letter-spacing: 1px;
}

/* ================= ইন্টেরিয়র পেজের ডিজাইন (page.html) ================= */
.inner-page-section {
    padding: 120px 20px 60px 20px;
    background: #f4f4f4;
    min-height: 100vh;
}

.inner-container {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.inner-container h1 {
    font-family: 'Montserrat', sans-serif;
    color: #1c2a38;
    font-size: 36px;
    margin-bottom: 25px;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 15px;
    display: inline-block;
}

.inner-container p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 20px;
    font-size: 16px;
}

/* ================= চ্যাটবট CSS ================= */
.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 35px;
    outline: none;
    border: none;
    height: 65px;
    width: 65px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e74c3c; /* লাল বাটন */
    color: #fff;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.chatbot-toggler:hover { 
    background: #c0392b; 
    transform: scale(1.1) rotate(10deg); 
}

.chatbot-container {
    position: fixed;
    bottom: 110px;
    right: 35px;
    width: 360px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 1000;
    border: 1px solid #eee;
}

.chatbot-container.show { display: flex; }

.chat-header {
    background: #1c2a38;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h2 { font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.close-btn { cursor: pointer; font-size: 20px; transition: 0.3s; }
.close-btn:hover { color: #e74c3c; }

.chatbox {
    height: 320px;
    list-style: none;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f9f9f9;
}

.chat { display: flex; align-items: flex-start; gap: 10px; }
.chat.incoming p {
    background: #fff;
    color: #333;
    padding: 12px 18px;
    border-radius: 12px 12px 12px 0;
    font-size: 14px;
    max-width: 80%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.chat.outgoing { flex-direction: row-reverse; }
.chat.outgoing p {
    background: #1c2a38;
    color: white;
    padding: 12px 18px;
    border-radius: 12px 12px 0 12px;
    font-size: 14px;
    max-width: 80%;
}

.avatar {
    width: 35px;
    height: 35px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.chat-input {
    display: flex;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.chat-input textarea {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    resize: none;
    padding: 12px 20px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
}

.chat-input button {
    background: #1c2a38;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
    transition: 0.3s;
}

.chat-input button:hover { background: #e74c3c; }

/* ================= অ্যানিমেটেড গুগল ম্যাপ ডিজাইন ================= */
.animated-map-container {
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    background: #fff;
    animation: slideUpFade 0.8s ease-out forwards;
}

.map-header {
    background: #1c2a38;
    color: white;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-wrapper {
    width: 100%;
    height: 450px;
    position: relative;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #f0f0f0; 
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ================= মোবাইল রেসপনসিভ ================= */
@media (max-width: 900px) {
    .navbar { padding: 20px; flex-direction: column; gap: 15px; }
    .nav-right { align-items: center; }
    .nav-links { display: none; }
    
    .search-bar {
        flex-direction: column;
        height: auto;
        background: transparent;
        box-shadow: none;
        gap: 10px;
    }
    
    .input-group {
        background: white;
        border-radius: 8px;
        width: 100%;
        height: 55px;
    }
    
    .search-btn {
        width: 100%;
        height: 55px;
        border-radius: 8px;
    }
    
    .advanced-options { grid-template-columns: 1fr 1fr; }
    .agent-name { font-size: 36px; }
    .location-title { font-size: 22px; }
    .chatbot-container { width: 90%; right: 5%; bottom: 90px; }
    .map-wrapper { height: 300px; }
    .inner-container { padding: 30px; }
}