* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #0b1120; color: #f8fafc; line-height: 1.6; }

/* Header */
header { background: #1e293b; border-bottom: 2px solid #e11d48; padding: 12px 0; position: sticky; top: 0; z-index: 1000; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.logo { font-size: 26px; font-weight: bold; color: #fff; text-decoration: none; }
.logo span { color: #f43f5e; }

.nav-links { display: flex; align-items: center; gap: 15px; }
.nav-links a { color: #cbd5e1; text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: #f43f5e; }

/* Highlighted Header Add Post Button */
.header-post-btn { background: #e11d48 !important; color: #ffffff !important; padding: 8px 16px; border-radius: 6px; font-weight: bold !important; font-size: 14px !important; transition: background 0.3s ease; box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4); }
.header-post-btn:hover { background: #be123c !important; }

/* Main Section */
.hero { text-align: center; padding: 50px 20px; background: linear-gradient(180deg, #1e293b 0%, #0b1120 100%); }
.hero h1 { color: #f43f5e; font-size: 32px; margin-bottom: 10px; }
.container { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.page-heading { color: #fbbf24; font-size: 28px; margin-bottom: 5px; }
.sub-text { color: #94a3b8; margin-bottom: 20px; }

/* ==========================================================
   100% BULLETPROOF LOCKED FIXED-SIZE LISTING BOX (MOBILE)
   ========================================================== */
.listing-box { 
    display: flex !important; 
    flex-direction: row !important;
    background: #000222 !important; 
    border: 1px solid #cbd5e1 !important; 
    border-radius: 8px !important; 
    margin-bottom: 16px !important; 
    position: relative !important; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important; 
    
    /* Strict Height Locks (Never changes) */
    width: 100% !important;
    height: 165px !important; 
    min-height: 165px !important;
    max-height: 165px !important;
    flex: 0 0 165px !important;
    overflow: hidden !important; 
}

.top-right-tag { position: absolute; top: -12px; right: -5px; background: purple; border: 1px solid #0284c7; color: #0284c7; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 12px; z-index: 5; text-transform: uppercase; }
.top-right-tag.tag-super { border-color: #0284c7; color: yellow; }
.top-right-tag.tag-vip { border-color: #e11d48; color: lime; }
.top-right-tag.tag-featured { border-color: #7c3aed; color: white; }

/* Strict Locked Image Box Container */
.listing-img-box { 
    position: relative !important; 
    flex: 0 0 110px !important; 
    width: 110px !important; 
    min-width: 110px !important;
    max-width: 110px !important;
    height: 165px !important; 
    min-height: 165px !important;
    max-height: 165px !important;
    background: #000 !important; 
    border-top-left-radius: 7px !important; 
    border-bottom-left-radius: 7px !important; 
    overflow: hidden !important; 
}

/* Image Locked to Box Dimensions */
.listing-img-box img { 
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 110px !important; 
    height: 165px !important; 
    object-fit: cover !important; 
    display: block !important; 
}

.img-badge-new { 
    position: absolute !important; 
    bottom: 4px !important; 
    left: 5px !important; 
    background: skyblue !important; 
    color: #000022 !important; 
    font-size: 9px !important; 
    font-weight: bold !important; 
    padding: 1px 4px !important; 
    border-radius: 3px !important; 
    text-transform: uppercase !important; 
    z-index: 3 !important;
}

.listing-details { 
    flex: 1 !important; 
    width: calc(100% - 110px) !important;
    height: 165px !important;
    min-height: 165px !important;
    max-height: 165px !important;
    padding: 8px 12px !important; 
    display: flex !important; 
    flex-direction: column !important; 
    justify-content: flex-start !important; 
    position: relative !important; 
    overflow: hidden !important;
}

.listing-title { 
    color: pink !important; 
    font-size: 11px !important; 
    font-weight: 700 !important; 
    margin: 0 0 3px 0 !important; 
    line-height: 1.2 !important; 
    display: -webkit-box !important; 
    -webkit-line-clamp: 2 !important; 
    -webkit-box-orient: vertical !important; 
    overflow: hidden !important; 
}

.listing-desc { 
    color: gray !important; 
    font-size: 10px !important; 
    line-height: 1.2 !important; 
    margin-bottom: 4px !important; 
    display: -webkit-box !important; 
    -webkit-line-clamp: 2 !important; 
    -webkit-box-orient: vertical !important; 
    overflow: hidden !important; 
}

.listing-info { 
    position: absolute !important; 
    bottom: 6px !important; 
    left: 12px !important; 
    font-size: 11px !important; 
    color: khaki !important; 
    font-weight: 600 !important; 
    display: flex !important; 
    gap: 15px !important; 
}

.action-buttons { 
    position: absolute !important; 
    bottom: 6px !important; 
    right: 10px !important; 
    display: flex !important; 
    gap: 5px !important; 
    z-index: 2 !important; 
}

.btn-icon { 
    width: 30px !important; 
    height: 30px !important; 
    border-radius: 50% !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    text-decoration: none !important; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important; 
}
.btn-icon-call { color: #e11d48 !important; border: 1px solid #f1f5f9 !important; background: #fff !important; }
.btn-icon-wa { color: #25d366 !important; border: 1px solid #f1f5f9 !important; background: #fff !important; }
.btn-icon svg { width: 16px !important; height: 16px !important; fill: currentColor !important; }

/* Grid & Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 20px; position: relative; }
.badge { position: absolute; top: 10px; right: 10px; background: #10b981; color: #fff; padding: 3px 10px; font-size: 12px; border-radius: 4px; font-weight: bold; }

/* Buttons & Links */
.btn { display: inline-block; background: #e11d48; color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 5px; font-weight: bold; text-align: center; margin-top: 10px; border: none; cursor: pointer; }
.call-btn { width: 100%; background: #25d366; }
.area-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.area-chip { background: #000022; color: #ffffff; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 700; font-size: 11px; border: 1px solid rgba(255, 255, 255, 0.1); }
.area-chip:hover { background: #000044; color: #fff; }

.city-orange-btn { background: #f97316; color: #ffffff; font-size: 11px; font-weight: 700; text-align: center; padding: 9px 6px; border-radius: 6px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3); border: 1px solid rgba(255, 255, 255, 0.15); }
.city-orange-btn:hover { background: #ea580c; color: #ffffff; }

.city-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0; }

.breadcrumb { margin-bottom: 15px; font-size: 14px; color: #94a3b8; }
.breadcrumb a { color: #38bdf8; text-decoration: none; }

/* Footer & Modal */
footer { background: #0f172a; border-top: 1px solid #1e293b; padding: 25px 0; text-align: center; margin-top: 50px; color: #64748b; }
.disclaimer { font-size: 12px; margin-top: 5px; color: #475569; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.modal-content { background: #1e293b; padding: 30px; border-radius: 10px; max-width: 400px; text-align: center; border: 1px solid #f43f5e; }
.modal-content h2 { color: #f43f5e; margin-bottom: 10px; }
.modal-content p { color: #cbd5e1; font-size: 14px; margin-bottom: 20px; }
.btn-accept { background: #10b981; margin-right: 10px; }
.btn-reject { background: #ef4444; }
.wa-btn { width: 100%; background: #25d366; color: #ffffff; font-weight: bold; text-align: center; }
.wa-btn:hover { background: #128c7e; }

/* ==========================================================
   DESKTOP SCREEN ENHANCEMENTS & LOCKED UNIFORM SIZE
   ========================================================== */
@media (min-width: 768px) { 
    .listing-box { 
        height: 210px !important; 
        min-height: 210px !important;
        max-height: 210px !important;
        flex: 0 0 210px !important;
    }
    .listing-img-box { 
        flex: 0 0 160px !important; 
        width: 160px !important; 
        min-width: 160px !important;
        max-width: 160px !important;
        height: 210px !important; 
        min-height: 210px !important;
        max-height: 210px !important;
    }
    .listing-img-box img { 
        width: 160px !important; 
        height: 210px !important; 
    }
    .listing-details { 
        width: calc(100% - 160px) !important;
        height: 210px !important;
        min-height: 210px !important;
        max-height: 210px !important;
        padding: 12px 18px !important; 
    }
    .listing-title { 
        font-size: 15px !important; 
        margin-bottom: 5px !important; 
        -webkit-line-clamp: 2 !important;
    }
    .listing-desc { 
        font-size: 12px !important; 
        -webkit-line-clamp: 3 !important;
    }
    .listing-info { 
        bottom: 12px !important; 
        left: 18px !important; 
        font-size: 12px !important; 
    }
    .action-buttons { 
        bottom: 12px !important; 
        right: 18px !important; 
        gap: 8px !important; 
    }
    .btn-icon { 
        width: 38px !important; 
        height: 38px !important; 
    }
    .btn-icon svg { 
        width: 20px !important; 
        height: 20px !important; 
    }
    .img-badge-new { 
        left: 8px !important; 
        bottom: 6px !important; 
        font-size: 10px !important; 
        padding: 2px 5px !important; 
    }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .header-container { justify-content: space-between; }
    .nav-links { gap: 10px; }
    .nav-links a { font-size: 13px; }
    .header-post-btn { padding: 6px 12px; font-size: 12px !important; }
    .city-grid-4 { grid-template-columns: repeat(2, 1fr); }
}