body { margin: 0; display: flex; height: 100vh; font-family: 'Segoe UI', sans-serif; background: #e6ebe0; color: #333; }
#sidebar { width: 320px; background: #fff; border-right: 1px solid #ccc; overflow-y: auto; padding: 15px; }
#content { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; align-items: center; scroll-behavior: smooth; }

h3 { font-size: 0.85rem; color: #999; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 1.5px; }

.estate-btn { 
    width: 100%; padding: 12px; margin-bottom: 6px; border: 1px solid #eee; 
    background: #f9f9f9; border-radius: 10px; cursor: pointer; text-align: left; 
    font-size: 0.9rem; font-weight: 500; transition: 0.2s; display: flex; align-items: center;
}
.estate-btn:hover { background: #0088cc; color: #fff; border-color: #0088cc; }
.estate-btn.active { background: #0088cc; color: #fff; box-shadow: 0 4px 8px rgba(0,136,204,0.3); }
.estate-btn span { color: #0088cc; font-weight: 800; margin-right: 12px; min-width: 30px; }
.estate-btn:hover span, .estate-btn.active span { color: #fff; }

.msg-bubble { 
    background: #fff; max-width: 550px; width: 100%; border-radius: 15px; 
    margin-bottom: 25px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex; flex-direction: column; border: 1px solid #f0f0f0;
}

.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(49%, 1fr)); gap: 2px; background: #fff; order: 1; }
.media-grid.single { grid-template-columns: 1fr; }
.media-item, video { width: 100%; height: 280px; object-fit: cover; display: block; }
.single .media-item, .single video { height: auto; max-height: 600px; }

.msg-content { padding: 18px; order: 2; border-top: 1px solid #f8f8f8; }
.msg-text { line-height: 1.6; font-size: 1rem; white-space: pre-wrap; color: #1a1a1a; }
.msg-text a { color: #0088cc; text-decoration: none; font-weight: 600; }

blockquote { border-left: 4px solid #0088cc; margin: 15px 0; padding: 10px 15px; background: #f4f9fc; border-radius: 4px; color: #444; }
.date { font-size: 0.75rem; color: #bbb; margin-top: 15px; text-align: right; font-weight: 400; }
