/* Premium Listing Description Styling */
.listing-description-content {
    font-size: 1.15rem;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 40px;
}
.listing-description-content p {
    margin-bottom: 1.5rem;
}
.listing-description-content ul, .listing-description-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.listing-description-content li {
    margin-bottom: 0.8rem;
    position: relative;
}
.listing-description-content h1, .listing-description-content h2, .listing-description-content h3 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}
.listing-description-content strong {
    color: #111827;
    font-weight: 700;
}
.listing-description-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: var(--card-shadow);
}
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #003366;
    --secondary-color: #002244;
    --accent-color: #ffcc00;
    --text-dark: #1a1a1a;
    --text-light: #f4f4f5;
    --bg-light: #f9fbfe;
    --bg-white: #ffffff;
    --card-shadow: 0 10px 20px rgba(0,0,0,0.05);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 5px;
    }
}

/* Header Navbar */
header {
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: white;
}

/* Hero Section */
.hero {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 40px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--accent-color);
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 25px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    outline: none;
}

.search-bar button {
    background: var(--accent-color);
    color: var(--text-dark);
    border: none;
    padding: 15px 35px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
}

.search-bar button:hover {
    background: #e6b800;
}

/* Section Headings */
.section-title {
    text-align: center;
    margin: 0 0 50px;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 3px;
}

/* Categories Grid */
.categories-container {
    margin-bottom: 80px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-white);
    padding: 30px 15px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid #e1e8ed;
    box-shadow: var(--card-shadow);
}

.category-card:hover { border-bottom: 3px solid var(--accent-color); }

.category-icon {
    font-size: 38px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Category By Item (Listings Grid) */
.featured-section {
    background: #f4f7fa; 
    padding: 80px 0; 
    margin-bottom: 80px;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.listing-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #e1e8ed;
    box-shadow: var(--card-shadow);
    height: 100%;
}

.listing-img {
    height: 220px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    position: relative;
}

.listing-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
}

.listing-details {
    padding: 25px;
}

.listing-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
    line-height: 1.3;
}

.listing-brand {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
}

.listing-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.listing-location {
    font-size: 0.95rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Brands Section */
.brands-section {
    margin-bottom: 100px;
    text-align: center;
}
.brands-grid {
    display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 40px;
}
.brand-box {
    padding: 25px 40px; border: 1px solid #e1e8ed; border-radius: 8px; font-weight: bold; font-size: 1.3rem; background: white; color: var(--primary-color); box-shadow: var(--card-shadow);
}

/* Informational Sections */
.info-section {
    padding: 80px 0;
    margin-bottom: 80px;
}

.info-bg-alternate {
    background: #f4f7fa;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.info-grid-reverse {
    direction: rtl;
}

.info-grid-reverse > * {
    direction: ltr;
}

.info-content {
    padding-right: 30px;
}

.info-grid-reverse .info-content {
    padding-right: 0;
    padding-left: 30px;
}

.info-content h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.2;
}

.info-content p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 30px;
}

.info-features {
    list-style: none;
}

.info-features li {
    margin-bottom: 20px;
    font-size: 1.15rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-features li i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 2px;
}

.info-visual img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    height: 450px;
    object-fit: cover;
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: var(--primary-color);
    color: white;
    margin-bottom: 80px;
}

.process-section .section-title {
    color: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    margin-top: 60px;
}

.step-card {
    background: rgba(255,255,255,0.05);
    padding: 50px 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
}

.step-icon {
    font-size: 60px;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.step-card h3 {
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.step-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    margin-bottom: 80px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: var(--card-shadow);
}

.faq-item h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.faq-item p {
    color: #555;
    font-size: 1.05rem;
}

/* Search Layout */
.search-container {
    display: flex;
    gap: 40px;
    margin: 40px auto 80px;
    width: 95%;
    max-width: 1600px; /* Increased from 1200px for better desktop view */
}

.search-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
    align-self: flex-start;
}

.filter-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.filter-box h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.filter-group {
    margin-bottom: 25px;
}
.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}
.filter-group input, .filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
}

.search-results {
    flex: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}
.pagination a, .pagination span {
    padding: 10px 18px;
    background: white;
    border: 1px solid #ccc;
    color: var(--primary-color);
    border-radius: 4px;
    font-weight: bold;
    transition: 0.2s;
}
.pagination a:hover {
    background: var(--bg-light);
}
.pagination .active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Banner Section */
.cta-banner {
    background: var(--accent-color);
    padding: 80px 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.cta-banner p {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 80px 0 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 70px;
    width: auto;
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: white;
}

.footer-col p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ccc;
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    .info-content { padding: 0 !important; }
    .process-steps {
        grid-template-columns: 1fr;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-logo {
        margin: 0 auto 20px auto;
        text-align: center;
    }
    .footer-logo img {
        height: 80px;
    }
}

/* --- Auth Pages --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 20px;
}
.auth-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 450px;
    border: 1px solid #e1e8ed;
}
.auth-box h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}
.auth-box p {
    color: #666;
    margin-bottom: 25px;
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper input {
    padding-right: 45px;
}
.toggle-password {
    position: absolute;
    right: 15px;
    color: #888;
    cursor: pointer;
    font-size: 1.1rem;
}
.toggle-password:hover {
    color: var(--primary-color);
}
.w-100 { width: 100%; }
.auth-footer {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.auth-footer a {
    color: var(--primary-color);
    font-weight: bold;
}
.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
}
.alert-error {
    background: #ffeded;
    color: #cc0000;
    border: 1px solid #ffcccc;
}
.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.form-options a { color: var(--primary-color); font-weight: 600; }

/* --- Dashboard --- */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 80px); /* Account for header */
}
.dashboard-sidebar {
    width: 280px;
    background: var(--bg-white);
    border-right: 1px solid #e1e8ed;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
}
.sidebar-menu {
    flex: 1; /* Pushes the profile section to the bottom */
    overflow-y: auto;
    padding: 20px;
}
.sidebar-menu ul {
    list-style: none;
}
.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: 0.2s;
}
.sidebar-menu li a.active, .sidebar-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}
.sidebar-menu li a.active i { color: var(--accent-color); }

/* Sticky Profile Bottom */
.sidebar-profile {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fff;
    /* Remains at bottom due to flex:1 on sidebar-menu */
}
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.user-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}
.user-details h4 {
    font-size: 1rem;
    color: var(--secondary-color);
    line-height: 1.2;
}
.user-details span {
    font-size: 0.85rem;
    color: #666;
    text-transform: capitalize;
}
.btn-logout {
    display: block;
    text-align: center;
    padding: 10px;
    background: #ffeded;
    color: #cc0000;
    border-radius: 6px;
    font-weight: 600;
    width: 100%;
}
.btn-logout:hover { background: #ffcccc; }

.dashboard-content {
    flex: 1;
    padding: 40px;
    background: var(--bg-light);
}

@media (max-width: 900px) {
    .dashboard-layout { flex-direction: column; }
    .dashboard-sidebar { 
        width: 100%; 
        height: auto; 
        position: static; 
        border-right: none; 
        border-bottom: 1px solid #e1e8ed; 
    }
    .dashboard-content { padding: 20px; }
}

.otp-input-compact {
    max-width: 140px;
    text-align: left;
    letter-spacing: 2px;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 12px;
}

.otp-input-compact::placeholder {
    font-weight: 400;
    letter-spacing: normal;
    font-size: 0.9rem;
}

/* Responsive Grid for Search page and listing page */
.listing-page-container {
    margin: 40px auto;
}

.listing-page-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.listing-main-image {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 900px) {
    .search-container {
        flex-direction: column;
        gap: 30px;
    }
    .search-sidebar {
        width: 100%;
    }
    .listing-page-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .listing-main-image {
        height: 320px;
    }
    .listing-page-container {
        width: 100%;
        padding: 0 10px;
        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    .nav-actions {
        gap: 8px !important;
    }
    .nav-actions a {
        font-size: 0.9rem !important;
        padding: 8px 16px !important;
    }
    .logo img {
        height: 40px !important;
    }
    .hero h1 {
        font-size: 2.2rem !important;
        margin-bottom: 15px;
    }
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    .search-bar {
        flex-direction: column;
        background: transparent;
        padding: 0;
        box-shadow: none;
        gap: 12px;
    }
    .search-bar input {
        width: 100%;
        background: white;
        border-radius: 8px;
        padding: 15px;
        font-size: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    .search-bar button {
        width: 100%;
        border-radius: 8px;
        padding: 15px;
        font-size: 1.1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .info-content h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    .info-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .info-visual img {
        height: 300px;
    }
    .cta-banner h2 {
        font-size: 2rem;
    }
    .cta-banner p {
        font-size: 1.1rem;
    }
    .brands-grid {
        gap: 15px;
    }
    .brand-box {
        padding: 15px 25px;
        font-size: 1.1rem;
    }
    .search-results > div:first-child {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
}


