:root {
    --bg-color: #f8f9fa;
    --text-main: #212529;
    --link-color: #0056b3;
    --link-visited: #4b0082;
    --navbar-bg: #111827;
    --navbar-text: #ffffff;
    --border: #e5e7eb;
    --btn-green: #10b981;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
    padding-top: 60px;
}

.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background-color: var(--navbar-bg);
    color: var(--navbar-text);
    height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); z-index: 1000;
}

.navbar-container {
    width: 100%; max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; padding: 0 15px;
}

.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; color: var(--navbar-text); text-decoration: none; }
.logo span { color: var(--btn-green); }
.nav-links { display: flex; align-items: center; gap: 15px; }
.nav-links a { color: #d1d5db; text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: #ffffff; }

.mobile-menu-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 5px; }

.post-btn {
    background-color: var(--btn-green); color: #fff !important;
    padding: 6px 14px; border-radius: 4px; font-weight: bold; white-space: nowrap;
}

.container {
    max-width: 1200px; margin: 0 auto; padding: 20px 15px;
    display: flex; gap: 30px;
}

aside { flex: 1; min-width: 220px; }
.listings { flex: 3; background: #ffffff; padding: 20px; border: 1px solid var(--border); border-radius: 4px; }

.filter-group {
    margin-bottom: 20px; border: 1px solid var(--border);
    padding: 15px; background: #ffffff; border-radius: 4px;
}
.filter-group h3 { margin-top: 0; font-size: 0.95rem; color: #4b5563; text-transform: uppercase; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
ul { list-style-type: none; padding: 0; margin: 0; }
li { margin-bottom: 8px; font-size: 0.95rem; }

.search-bar { width: 100%; padding: 12px; font-size: 1rem; margin-bottom: 20px; border: 2px solid var(--border); border-radius: 4px; box-sizing: border-box; }

.listing-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px dashed #ccc; gap: 10px;
}
.listing-item:hover { background-color: #f3f4f6; }
.listing-info { display: flex; flex-direction: column; gap: 4px; }

.price { font-weight: bold; color: var(--btn-green); font-size: 1.1rem; white-space: nowrap; }
.date { color: #6b7280; font-size: 0.85rem; }
footer { text-align: center; padding: 30px 15px; color: #6b7280; font-size: 0.85rem; border-top: 1px solid var(--border); margin-top: 40px; }

@media (max-width: 768px) {
    .container { flex-direction: column; }
    .nav-links a.hide-mobile { display: none; }
    
    .mobile-menu-toggle { display: block; }
    .nav-links { 
        display: none; position: absolute; top: 60px; left: 0; width: 100%; 
        background-color: var(--navbar-bg); flex-direction: column; align-items: center; 
        padding: 20px 0; gap: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.2); border-top: 1px solid #333;
    }
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.1rem; }
    .post-btn { padding: 10px 20px; font-size: 1.1rem; width: 80%; }
    
    .logo-img { max-width: 140px; }
    aside { order: 2; }
    .listings { order: 1; padding: 15px; }
}