/* Base Styles */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --delivery-color: #10b981;
    --delivery-hover: #059669;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light);
    color: var(--dark);
}

a { text-decoration: none; color: inherit; }

/* Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text { margin: 0; font-size: 24px; color: var(--dark); }
.text-accent { color: var(--primary); }

.nav-links, .nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link-highlight {
    color: var(--delivery-color);
    font-weight: 600;
}

/* Dropdowns & Sub-menus */
.dropdown { position: relative; display: inline-block; }
.dropbtn {
    background: none; border: none; font-size: 16px; 
    font-family: inherit; cursor: pointer; color: var(--dark);
}
.dropdown-content, .sub-dropdown-content {
    display: none; position: absolute;
    background-color: #fff; min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px; z-index: 1; top: 100%;
}
.sub-dropdown { position: relative; }
.sub-dropdown-content {
    top: 0; left: 100%; /* Opens to the right */
}
.dropdown-content a, .sub-dropdown-content a {
    color: var(--dark); padding: 12px 16px;
    display: block; font-size: 14px;
}
.dropdown-content a:hover, .sub-dropdown-content a:hover {
    background-color: var(--light);
    border-radius: 8px;
}
.dropdown:hover > .dropdown-content { display: block; }
.sub-dropdown:hover > .sub-dropdown-content { display: block; }

/* Buttons */
.btn-primary {
    background: var(--primary); color: white;
    padding: 8px 16px; border-radius: 6px; font-weight: 600;
}
.btn-delivery {
    background: var(--delivery-color); color: white;
    padding: 12px 20px; border-radius: 6px; font-weight: 600;
    display: inline-block; margin-top: 10px;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-delivery:hover { background: var(--delivery-hover); }
.text-danger { color: #ef4444; }

/* Dual Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white; padding: 60px 20px; text-align: center;
}
.hero-content h1 { font-size: 2.5rem; margin-bottom: 10px; }
.hero-actions {
    display: flex; justify-content: center; gap: 20px;
    max-width: 900px; margin: 40px auto 0;
}
.action-card {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    padding: 30px; border-radius: 12px; flex: 1;
    border: 1px solid rgba(255,255,255,0.2);
}
.search-form { display: flex; gap: 10px; margin-top: 15px; }
.search-form input {
    flex: 1; padding: 12px; border: none;
    border-radius: 6px; font-size: 16px;
}
.search-form button {
    background: var(--primary); color: white;
    border: none; padding: 12px 20px; border-radius: 6px;
    cursor: pointer; font-weight: 600;
}

/* Listings Grid */
.main-content { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.clear-filter { font-size: 14px; color: var(--gray); }
.ad-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.ad-card {
    background: white; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.2s;
    border: 1px solid var(--border);
}
.ad-card:hover { transform: translateY(-5px); }
.ad-image-wrapper { position: relative; height: 200px; }
.ad-image { width: 100%; height: 100%; object-fit: cover; }
.ad-badge {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,0.7); color: white;
    padding: 4px 10px; border-radius: 4px; font-size: 12px;
}
.ad-details { padding: 15px; }
.ad-price { font-size: 1.25rem; margin: 0 0 5px 0; color: var(--dark); }
.ad-title { margin: 0 0 15px 0; color: var(--gray); font-size: 0.95rem; }
.ad-footer { display: flex; justify-content: space-between; align-items: center; }
.ad-date { font-size: 12px; color: var(--gray); }
.contact-btn {
    background: #25D366; color: white; padding: 6px 12px;
    border-radius: 4px; font-size: 13px; font-weight: 600;
}

/* Mobile Responsive */
.menu-toggle { display: none; font-size: 24px; cursor: pointer; }
.mobile-only { display: none; }

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .menu-toggle { display: block; }
    .nav-actions {
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0; background: white;
        padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .nav-actions.active { display: flex; align-items: flex-start; }
    .mobile-only { display: flex; flex-direction: column; width: 100%; gap: 10px; }
    .hero-actions { flex-direction: column; }
    .search-form { flex-direction: column; }
}

.site-footer {
    text-align: center; padding: 40px 20px;
    background: white; border-top: 1px solid var(--border); margin-top: 60px;
}
.footer-brand { font-size: 20px; font-weight: bold; margin-bottom: 10px; }