body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: white;
    min-height: 100vh;
    padding-top: 40px;
}
header {
    background: #f8f9fa;
    padding: 4px 20px;
    border-bottom: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    height: 40px;
}
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 1100;
}
.social-icons a img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}
#mobile-header {
    display: none;
    text-align: center;
    margin: 10px auto;
}
#mobile-header .logo {
    max-width: 150px;
    width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}
#social-links-mobile {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin: 5px auto 15px;
    width: 100%;
    max-width: 300px;
}
#social-links-mobile a img {
    width: 26px;
    height: 26px;
    transition: transform 0.3s ease;
    object-fit: contain;
}
#social-links-mobile a:hover img {
    transform: scale(1.1);
}
#left-menu {
    width: 250px;
    height: calc(100vh - 40px);
    background: #f8f9fa;
    position: fixed;
    top: 40px;
    left: 0;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 10000;
    overflow-y: auto;
}
#left-menu .logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}
#left-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#left-menu ul li {
    margin: 15px 0;
}
#left-menu ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 10px;
    border-radius: 5px;
}
#left-menu ul li a img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    object-fit: contain;
}
#left-menu .search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #007BFF;
    border-radius: 4px;
    width: 200px;
    box-sizing: border-box;
}
#left-menu #search-input-desktop {
    padding: 1px 0 1px 1px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: calc(100% - 36px);
    min-width: 120px;
    font-size: 14px;
}
#left-menu #search-btn-desktop {
    padding: 8px;
    border: none;
    background: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
#left-menu #search-btn-desktop img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
#right-sidebar {
    width: 250px;
    background: #f8f9fa;
    position: fixed;
    top: 40px;
    right: 0;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    z-index: 900;
    height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
}
.market-trends, .most-expensive {
    margin-bottom: 20px;
}
.market-trends h3, .most-expensive h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}
#trendChart {
    max-width: 100%;
    width: 230px;
    height: 150px;
}
#trendChartFallback {
    color: #666;
    text-align: center;
    font-size: 0.9em;
}
.most-expensive ul {
    list-style: none;
    padding: 0;
}
.most-expensive li {
    margin-bottom: 10px;
}
.most-expensive a {
    color: #007BFF;
    text-decoration: none;
    font-size: 0.9em;
}
.most-expensive a:hover {
    text-decoration: underline;
}
.most-expensive p {
    color: #333;
    font-size: 0.85em;
    margin: 5px 0 0;
}
footer {
    background: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 14px;
    color: #666;
    position: relative;
    z-index: 900;
}
footer .container {
    max-width: 800px;
    margin: 0 auto;
}
footer a {
    color: #007BFF;
    text-decoration: none;
}
footer p {
    margin: 5px 0;
}
footer p:last-child {
    font-size: 12px;
    margin-top: 10px;
}
.header-section {
    text-align: center;
    margin: 20px 0;
    padding: 0 20px;
}
.header-section h2 {
    font-size: 1.5rem;
    color: #333;
}
.header-section p {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}
.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px auto;
    max-width: 800px;
    justify-content: center;
}
.listing-card {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.listing-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 5px;
}
.listing-card .video-container {
    width: 100%;
    max-width: 230px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    height: 129px;
}
.listing-card .video-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 5px;
}
.listing-card h2 {
    font-size: 1.2rem;
    margin: 6px 0;
    color: #333;
}
.listing-card p {
    font-size: 0.85rem;
    color: #666;
    margin: 4px 0;
    line-height: 1.3;
}
.listing-card .content {
    flex-grow: 1;
    overflow: hidden;
    max-height: 90px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}
.more-btn {
    padding: 6px 12px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
}
.more-btn:hover {
    background-color: #0056b3;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    padding: 10px;
}
.pagination .page-item {
    margin: 0 4px;
}
.pagination .page-link {
    padding: 6px 10px;
    font-size: 14px;
    color: #007BFF;
    background-color: #fff;
    border: 1px solid #007BFF;
    border-radius: 5px;
    text-decoration: none;
}
.pagination .page-item.active .page-link {
    background-color: #007BFF;
    color: #fff;
    border-color: #007BFF;
}
.pagination .page-item.disabled .page-link {
    color: #ccc;
    border-color: #ccc;
    background-color: #f8f9fa;
    pointer-events: none;
}
#about-us-content {
    text-align: left;
    padding: 20px;
}
#about-us-content h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: left;
}
#about-us-content img {
    float: left;
    max-width: 200px;
    height: auto;
    margin: 0 20px 20px 0;
    border: 1px solid #FF6F61;
}
#about-us-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}
#about-us-content .signature {
    font-weight: bold;
    color: #333;
    font-size: 20px;
    margin-top: 20px;
    text-align: left;
    clear: both;
}
#about-us-content .signature-title {
    color: #666;
    font-size: 16px;
    margin-top: 5px;
    text-align: left;
}
#about-us-content::after {
    content: "";
    display: table;
    clear: both;
}
#contact-content {
    text-align: left;
    padding: 20px;
}
#contact-content h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: left;
}
#contact-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
}
#contact-content ul {
    list-style: none;
    padding: 0;
}
#contact-content ul li {
    margin-bottom: 10px;
}
#contact-content ul li a {
    color: #007BFF;
    text-decoration: none;
    font-size: 16px;
}
#contact-content ul li a:hover {
    text-decoration: underline;
}
#search-content {
    text-align: left;
    padding: 20px;
}
#search-content h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: left;
}
#search-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
}
@media (max-width: 767px) {
    #main-content {
        margin-left: 0;
        margin-right: 0;
        padding: 0 5px 80px 5px;
    }
    #mobile-header {
        display: block;
    }
    #left-menu .search-bar { 
        border: none; 
    }

    .social-icons {
        position: static;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 15px auto 5px;
        width: 100%;
        max-width: 300px;
        gap: 15px;
    }
    #left-menu {
        width: 100%;
        height: 50px;
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        padding: 10px;
        display: flex;
        justify-content: space-around;
        align-items: flex-end;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        background: #f8f9fa;
        z-index: 10000;
    }
    #left-menu .logo {
        display: none;
    }
    #left-menu ul {
        display: flex;
        width: 100%;
        justify-content: space-around;
        align-items: flex-end;
        height: 100%;
    }
    #left-menu ul li {
        margin: 0;
    }
    #left-menu ul li a {
        padding: 8px;
        font-size: 0;
    }
    
    .listing-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
        gap: 10px;
        margin: 20px 0 80px;
        max-width: 600px;
    }
    .listing-card {
        width: 100%;
        max-width: 100%;
    }
    #right-sidebar {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
    }
    #about-us-content img {
        float: none;
        margin: 0 auto 20px;
        display: block;
    }
    #contact-content {
        padding: 10px;
    }
    #contact-content ul li a {
        font-size: 14px;
    }
    #search-content {
        padding: 10px;
    }
    #search-content p {
        font-size: 14px;
    }
}
@media (max-width: 576px) {
    .listing-grid {
        grid-template-columns: 1fr;
    }
    .listing-card {
        width: 100%;
    }
}
@media (min-width: 768px) {
    #mobile-header {
        display: none;
    }
    #social-links-mobile {
        display: none;
    }
    .social-icons {
        display: flex;
        gap: 15px;
        align-items: center;
        z-index: 1100;
        position: fixed;
        top: 4px;
        right: 20px;
    }
    #right-sidebar {
        width: 250px;
    }
    .modal, #about-us-modal, #about-us-container {
        display: none;
    }
    body {
        background: white;
    }
}

/* FINAL FIX – Mobile bottom bar Search icon alignment (works everywhere) */
#mobile-bottom-nav .nav-item[href="/search.php"] img,
#mobile-bottom-nav .nav-item img[src*="search.png"] {
    position: relative !important;
    top: 8px !important;
    left: 0 !important;
    transform: translateY(0) !important;
} 