/* MURTI REALTY - MASTER STYLESHEET 2026 (Refactored)
    Cleaned by Gemini for Rabi - Premium, SEO-friendly, Mobile Responsive
*/

/* --- 1. GLOBAL RESET & FONTS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background-color: #f9f9f9; color: #333; line-height: 1.6; overflow-x: hidden; }
.container { width: 92%; max-width: 1200px; margin: auto; }
img { max-width: 100%; display: block; border-radius: 10px; }
a { text-decoration: none; transition: 0.3s; }

/* --- 2. HEADER & NAVIGATION --- */
header { width: 100%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; padding: 5px 0; }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand-name { font-size: 22px; font-weight: 800; color: #333; letter-spacing: -0.5px; }
.brand-name span { color: #007bff; }

.header-left, .header-right { flex: 1; display: flex; align-items: center; }
.header-center { flex: 2; display: flex; justify-content: center; }
.header-right { justify-content: flex-end; }

/* Buttons in Header */
.callback-btn { background: #007bff; color: #fff; border: none; padding: 10px 20px; border-radius: 50px; font-weight: 600; font-size: 14px; margin-right: 12px; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2); }
.call-btn-circle { background: #28a745; color: #fff; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3); }

/* Hamburger & Drawer */
.hamburger-menu { cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 10px; }
.hamburger-menu span { width: 25px; height: 2px; background: #333; }
.side-drawer { position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background: #fff; z-index: 10001; transition: 0.4s; padding: 30px; box-shadow: 5px 0 25px rgba(0,0,0,0.1); }
.side-drawer.active { left: 0; }
.side-drawer ul { list-style: none; margin-top: 40px; }
.side-drawer ul li { margin-bottom: 25px; }
.side-drawer ul li a { color: #333; font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 12px; }
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; z-index: 10000; }
.menu-overlay.active { display: block; }

/* --- ULTIMATE POP-UP FIX --- */

.modal-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px);
    z-index: 999999 !important;
}

.modal-box {
    background: #ffffff !important;
    width: 92% !important;
    max-width: 400px !important;
    
    /* Force Center Position - No more sliding */
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important; 
    
    border-radius: 24px !important;
    padding: 35px !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5) !important;
    z-index: 1000000 !important;
    
    /* New Pop Animation */
    animation: instantPop 0.2s ease-out !important;
}

/* यह एनीमेशन बॉक्स को नीचे नहीं जाने देगा, सिर्फ ज़ूम करेगा */
@keyframes instantPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) !important;
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) !important;
    }
}

/* Form Elements Styling */
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.modal-header h3 { font-size: 22px; font-weight: 700; color: #111; }
.close-btn { font-size: 35px; color: #aaa; cursor: pointer; line-height: 0.8; }
.close-btn:hover { color: #ff0000; }

.input-group { position: relative; margin-bottom: 18px; }
.input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #007bff; }
.input-group input { 
    width: 100%; padding: 14px 15px 14px 45px; 
    border: 1.5px solid #eee; border-radius: 12px; 
    font-size: 15px; outline: none; background: #fafafa;
}

.modal-body textarea { 
    width: 100%; padding: 14px 15px; border: 1.5px solid #eee; 
    border-radius: 12px; height: 100px; resize: none; 
    font-size: 15px; outline: none; margin-bottom: 20px; background: #fafafa;
}

.modal-submit-btn { 
    width: 100%; padding: 16px; background: #28a745; 
    color: #fff; border: none; border-radius: 12px; 
    font-weight: 700; font-size: 16px; cursor: pointer; transition: 0.2s;
}

.modal-submit-btn:hover { background: #218838; transform: scale(1.02); }

/* --- 3. PREMIUM HERO & GOOGLE SEARCH --- */
.hero { min-height: 500px; background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero.jpg') center/cover; display: flex; justify-content: center; align-items: center; padding: 20px; }

.hero-search-container { width: 100%; max-width: 750px; position: relative; }
.search-inner-box { display: flex; align-items: center; background: #fff; padding: 8px; border-radius: 50px; box-shadow: 0 15px 40px rgba(0,0,0,0.2); }
.search-field { display: flex; align-items: center; flex: 1; padding-left: 15px; }
.search-field input { width: 100%; border: none; outline: none; padding: 12px; font-size: 16px; font-family: inherit; }
.premium-search-btn { background: linear-gradient(135deg, #007bff, #0056b3); color: #fff; border: none; padding: 14px 30px; border-radius: 40px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 10px; }

.suggestion-box { position: absolute; top: 110%; left: 10px; right: 10px; background: #fff; border-radius: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 1000; display: none; }
.suggestion-item { padding: 12px 20px; cursor: pointer; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 10px; }

/* --- 4. PROPERTY SECTIONS (FLATS, PLOTS, VILLAS) --- */
.category-section { padding: 60px 0; }
.flats-bg { background: #fff; }
.plots-bg { background: #fcfcfc; }
.villas-bg { background: #f4f9ff; }

.section-header-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.section-title { font-size: 28px; font-weight: 700; }
.section-title span { color: #007bff; }
.view-all-btn { color: #007bff; border: 1px solid #007bff; padding: 8px 20px; border-radius: 50px; font-size: 13px; font-weight: 600; }

/* Horizontal Scrolling Container */
.property-scroll-container { display: flex; gap: 20px; overflow-x: auto; padding: 10px 0 30px; scrollbar-width: none; }
.property-scroll-container::-webkit-scrollbar { display: none; }

/* Card Design (Universal for all sections) */
.prop-swipe-card, .prop-card { min-width: 300px; background: #fff; border-radius: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.05); border: 1px solid #eee; flex-shrink: 0; overflow: hidden; }
.prop-img-box { position: relative; height: 200px; }
.prop-img-box img { width: 100%; height: 100%; object-fit: cover; }
.prop-badge { position: absolute; top: 15px; left: 15px; background: #007bff; color: #fff; padding: 5px 12px; border-radius: 5px; font-size: 11px; font-weight: 700; }
.resale-badge { background: #ff9800; }

.prop-content, .prop-details { padding: 20px; }
.prop-price-tag, .prop-price { font-size: 20px; font-weight: 700; color: #007bff; display: block; margin-bottom: 5px; }
.prop-loc { font-size: 13px; color: #777; }
.prop-view-btn, .details-btn { display: block; text-align: center; border: 1px solid #007bff; padding: 10px; border-radius: 10px; margin-top: 15px; color: #007bff; font-weight: 600; }
.prop-view-btn:hover { background: #007bff; color: #fff; }

/* --- 5. MODAL & FOOTER --- */
.modal-overlay { display: none; position: fixed; z-index: 2500; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); }
.modal-box { background: #fff; width: 90%; max-width: 400px; margin: 80px auto; border-radius: 20px; padding: 30px; animation: slideDown 0.4s; }
@keyframes slideDown { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.footer-section { background: #111; color: #fff; padding: 60px 0 30px; text-align: center; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; text-align: left; }
.footer-col h3 { color: #007bff; margin-bottom: 20px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { color: #fff; font-size: 20px; }

/* --- 6. MOBILE MASTER FIXES --- */
@media (max-width: 768px) {
    .brand-name { font-size: 18px; }
    .callback-btn { padding: 6px 12px; font-size: 11px; margin-right: 5px; }
    .call-btn-circle { width: 36px; height: 36px; }
    
    .section-header-flex { flex-direction: column; align-items: flex-start; gap: 10px; }
    .property-scroll-container { padding-left: 5px; }
    .prop-swipe-card { min-width: 85%; }
    
    .premium-search-btn span { display: none; } /* Mobile par text chhupao */
    .premium-search-btn { padding: 12px 18px; }
    .search-field input { font-size: 14px; }
}