.carousel .carousel-item {
    height: 200px;
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 500px;
}

/* Updated Search Bar Styling */
.search-container {
    width: 100%;
    max-width: 800px;
    margin: 0;
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper:first-child {
    width: 240px;
}

.search-input-wrapper:last-child {
    width: 400px;
}

.search-input {
    width: 100%;
    height: 48px;
    border: 2px solid #003F34;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
}

.location-input {
    padding-right: 40px;
    /* Space for GPS icon */
}

.gps-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #003F34;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gps-button i {
    font-size: 16px;
}

/* Search button */
.btn-search {
    height: 48px;
    width: 48px;
    background: #003F34;
    border: none;
    border-radius: 4px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-search:hover {
    background: #002a23;
}

/* Navigation items */
.navbar-nav {
    margin-left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item .btn-sell {
    background: white;
    border: 6px solid #003F34;
    border-radius: 30px;
    color: #003F34;
    font-weight: 700;
    padding: 0 12px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    margin-left: 10px;
}

@media (max-width: 992px) {
    .search-container {
        max-width: 100%;
    }

    .search-input-wrapper:first-child,
    .search-input-wrapper:last-child {
        width: 100%;
    }
}

/* Rest of your existing styles */
.chat-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.message-box {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
}

.sender {
    background-color: #007bff;
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin: 5px 0;
    text-align: right;
    float: right;
    clear: both;
}

.receiver {
    background-color: #e5e5ea;
    color: black;
    padding: 10px;
    border-radius: 10px;
    margin: 5px 0;
    text-align: left;
    float: left;
    clear: both;
}

.message::after {
    content: "";
    display: table;
    clear: both;
}

.input-group textarea {
    resize: none;
    border-radius: 10px;
}

.btn-send {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
}

.btn-send:hover {
    background-color: #218838;
}

/* Updated navbar styles */
.container-fluid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    gap: 10px;
}

.navbar {
    padding: 8px 0;
    background: white !important;
    border-bottom: 1px solid #ccc;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 40px;
    padding: 0;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    margin-right: 10px;
}

.brand-name {
    color: #003F34;
    font-weight: 600;
    font-size: 20px;
    text-decoration: none;
    white-space: nowrap;
    margin-right: 20px;
}

.navbar-nav {
    margin-left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-wrapper:first-child {
    width: 240px;
}

.search-input-wrapper:last-child {
    width: 400px;
}

.search-input {
    width: 100%;
    height: 48px;
    border: 2px solid #003F34;
    border-radius: 4px;
    padding: 0 40px 0 12px;
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: #23e5db;
}

.gps-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #003F34;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gps-button i {
    font-size: 16px;
}

/* Updated SELL button */
.nav-item .btn-sell {
    background: white;
    border: 6px solid #003F34;
    border-radius: 30px;
    color: #003F34;
    font-weight: 700;
    padding: 0 12px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    margin-left: 10px;
}

.btn-sell .fas {
    font-size: 18px;
}

.btn-sell:hover {
    background: #003F34;
    color: white;
}

/* Login link */
.nav-link.login {
    color: #003F34;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    padding: 0 10px;
}

/* Search button */
.btn-search {
    height: 48px;
    min-width: 48px;
    padding: 0;
}

.btn-search:hover {
    background: #002a23;
}

/* Post Ad Modal Styling */
.modal-content {
    border-radius: 8px;
}

.modal-header {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background-color: #003F34;
}

.form-control:focus,
.form-select:focus {
    border-color: #003F34;
    box-shadow: 0 0 0 0.25rem rgba(0, 63, 52, 0.25);
}

.btn:hover {
    opacity: 0.9;
}

#imagePreview img {
    height: 100px;
    width: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.input-group .btn {
    border: 1px solid #003F34;
}

.input-group .btn:hover {
    background-color: #002a23 !important;
}


/* Global Pagination Styling */
.pagination {
    --bs-pagination-color: #003F34;
    --bs-pagination-hover-color: white;
    --bs-pagination-hover-bg: #003F34;
    --bs-pagination-active-bg: #003F34;
    --bs-pagination-active-border-color: #003F34;
    --bs-pagination-focus-color: #003F34;
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(0, 63, 52, 0.25);
}

.page-link {
    color: #003F34;
    border-color: #dee2e6;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #003F34;
    color: white;
    border-color: #003F34;
}

.page-item.active .page-link {
    background-color: #003F34;
    border-color: #003F34;
    color: white;
}

.page-item.disabled .page-link {
    color: #6c757d;
}

.page-link:focus {
    background-color: rgba(0, 47, 52, 0.1);
    box-shadow: 0 0 0 0.25rem rgba(0, 47, 52, 0.25);
}

/* Override Bootstrap's primary color */
:root {
    --bs-primary: #003F34;
    --bs-primary-rgb: 0, 63, 52;
}

/* Primary button styles */
.btn-primary {
    background-color: #003F34 !important;
    border-color: #003F34 !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #002a23 !important;
    border-color: #002a23 !important;
}

/* Links and text */
.text-primary {
    color: #003F34 !important;
}

/* Backgrounds */
.bg-primary {
    background-color: #003F34 !important;
}

/* Borders */
.border-primary {
    border-color: #003F34 !important;
}

/* Form elements */
.form-control:focus,
.form-select:focus {
    border-color: #003F34 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 63, 52, 0.25) !important;
}

/* Pagination */
.pagination .page-link {
    color: #003F34;
}

.pagination .active .page-link {
    background-color: #003F34 !important;
    border-color: #003F34 !important;
}

/* Badges */
.badge.bg-primary {
    background-color: #003F34 !important;
}

/* Progress bars */
.progress-bar {
    background-color: #003F34;
}

/* Nav links */
.nav-pills .nav-link.active {
    background-color: #003F34 !important;
}

/* Switches and checkboxes */
.form-check-input:checked {
    background-color: #003F34 !important;
    border-color: #003F34 !important;
}

/* Custom select */
.custom-select:focus {
    border-color: #003F34;
    box-shadow: 0 0 0 0.25rem rgba(0, 63, 52, 0.25);
}

/* Links */
a {
    color: #003F34;
}

a:hover {
    color: #002a23;
}

/* Dropdown */
.dropdown-item.active,
.dropdown-item:active {
    background-color: #003F34;
}

/* List groups */
.list-group-item.active {
    background-color: #003F34;
    border-color: #003F34;
}

/* Alerts */
.alert-primary {
    color: #003F34;
    background-color: rgba(0, 63, 52, 0.1);
    border-color: rgba(0, 63, 52, 0.2);
}

/* Input focus */
input:focus,
select:focus,
textarea:focus {
    border-color: #003F34 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 63, 52, 0.25) !important;
}

.notification-dropdown {
    width: 300px;
    padding: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 8px;
}

.notification-body .dropdown-item {
    border-bottom: 1px solid #eee;
    white-space: normal;
}

.notification-body .dropdown-item:last-child {
    border-bottom: none;
}

.notification-body .dropdown-item:hover {
    background-color: rgba(0, 63, 52, 0.05);
}

.notification-body .dropdown-item.unread {
    background-color: rgba(0, 63, 52, 0.05);
}

.notification-body .dropdown-item.unread:hover {
    background-color: rgba(0, 63, 52, 0.1);
}

.notification-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 63, 52, 0.1);
    border-radius: 50%;
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    .navbar {
        padding: 8px 0;
        height: auto;
    }
    
    .navbar-brand {
        margin-right: 0;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .search-container {
        order: 3;
        margin-top: 10px;
        width: 100%;
    }
    
    .search-form {
        flex-direction: column;
        width: 100%;
    }
    
    .search-input-wrapper {
        margin-bottom: 8px;
        width: 100% !important;
    }
    
    .mobile-search-bar {
        display: flex;
        align-items: center;
        width: 100%;
        background: #f2f2f2;
        border-radius: 8px;
        padding: 0 10px;
        margin-top: 10px;
    }
    
    .mobile-search-bar input {
        background: transparent;
        border: none;
        padding: 12px;
        width: 100%;
    }
    
    .mobile-search-bar input:focus {
        outline: none;
    }
    
    .mobile-location {
        display: flex;
        align-items: center;
        font-size: 14px;
        color: #002f34;
        padding: 8px 0;
    }
    
    .mobile-location i {
        margin-right: 5px;
        color: #3a77ff;
    }
    
    .mobile-menu-container {
        padding: 15px;
    }
    
    .mobile-menu-item {
        display: flex;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #f2f2f2;
    }
    
    .mobile-menu-item i {
        width: 30px;
        font-size: 18px;
    }
    
    .mobile-menu-header {
        padding: 15px;
        border-bottom: 1px solid #f2f2f2;
    }
    
    .mobile-user-icon {
        width: 50px;
        height: 50px;
        background: #f2f2f2;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-collapse {
        background: white;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 85%;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }
    
    .navbar-collapse.show {
        transform: translateX(0);
    }
    
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        display: none;
    }
    
    .mobile-nav-overlay.show {
        display: block;
    }
    
    .mobile-header {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        padding: 10px;
    }
    
    .btn-search {
        height: 40px;
        width: 40px;
    }
}

/* Snackbar styles */
.snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-right: 30px;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 1500;
    right: 0;
    bottom: 30px;
    font-size: 17px;
    transition: visibility 0s, opacity 0.5s linear, transform 0.5s ease;
    opacity: 0;
    transform: translateX(100%);
}

.snackbar.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.snackbar.success {
    background-color: #003F34;
}

.snackbar.error {
    background-color: #dc3545;
}


/* .carousel-control-prev-icon { 
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23003F34' viewBox='0 0 8 8'%3E%3Cpath d='M4.5 0l-4 4 4 4 1-1-3-3 3-3-1-1z'/%3E%3C/svg%3E"); 
width: 30px;
height: 48px;
}
.carousel-control-next-icon { 
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23003F34' viewBox='0 0 8 8'%3E%3Cpath d='M2.5 0l4 4-4 4-1-1 3-3-3-3 1-1z'/%3E%3C/svg%3E");
width: 30px;
height: 48px;
} */

/* .carousel .carousel-item{


height: 0 !important;
} */
/* Remove the min-height and set a custom height */
.carousel-item img {
min-height: 0 !important;
}




.nav-link{

    color: #003F34 !important;
    }
    
    /* Category Tab Styling */
    .nav-tabs .nav-link {
    color: #003F34;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    padding: 8px 16px;
    font-weight: 500;
    }
    
    .nav-tabs .nav-link.active {
    color: black;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 600;
    }
    
    .nav-tabs .nav-link:hover:not(.active) {
    border-color: #e9ecef #e9ecef #dee2e6;
    background-color: #f8f9fa;
    }



@media (max-width: 767.98px) {
       .banner-image {
            height: 180px; /* Height for mobile */
        }
        }
    
    /* Brand Card Hover Effect */
    .card {
        transition: all 0.3s ease;
    }
    
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Product Card Styling */
    .product-item {
        transition: transform 0.3s ease-in-out;
    }

    .product-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .card-title {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .card-text {
        font-size: 0.9rem;
    }
    
    /* Button Styles */
    .btn-check:checked + .btn {
        background-color: #003F34 !important;
        color: white !important;
        border-color: #003F34;
    }
    
    /* Range Slider Styling */
    .form-range::-webkit-slider-thumb {
        background: #003F34;
    }
    
    .form-range::-moz-range-thumb {
        background: #003F34;
    }
    
    /* Brand Placeholder Styling */
    .brand-placeholder {
        transition: all 0.3s ease;
    }
    
    .brand-placeholder:hover {
        background: #e8f5e9;
    }
    
    /* Pagination Styling */
    .pagination {
        --bs-pagination-color: #003F34;
        --bs-pagination-hover-color: white;
        --bs-pagination-hover-bg: #003F34;
        --bs-pagination-active-bg: #003F34;
        --bs-pagination-active-border-color: #003F34;
    }
    
    /* Brand Model Button Styling based on screenshot */
    .model-btn {
        background-color: #e9ecef;
        color: #333;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    
    .active-model {
        background-color: #003F34 !important;
        color: white !important;
    }
    
    /* Brand Model Selection */
    .model-btn-option {
        border-radius: 20px;
        background-color: #e9ecef;
        color: #333;
        font-weight: 500;
        border: none;
        padding: 8px 15px;
        margin-right: 8px;
        margin-bottom: 8px;
        transition: all 0.2s ease;
        cursor: pointer;
    }
    
    .model-btn-option:hover {
        background-color: #d1d3d4;
    }
    
    .model-btn-option.selected {
        background-color: #003F34;
        color: white;
    }
    
    /* Mobile Responsive Adjustments */
    @media (max-width: 767.98px) {
        .card-title {
            font-size: 1rem;
        }
        
        .card-text {
            font-size: 0.8rem;
        }
        
        .btn {
            font-size: 0.9rem;
        }
    }
    
    
    
    /* Mobile responsive tab adjustments */
    @media (max-width: 767.98px) {
        .nav-tabs {
            flex-wrap: nowrap;
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            -ms-overflow-style: -ms-autohiding-scrollbar;
            white-space: nowrap;
        }
        
        .nav-tabs .nav-link {
            padding: 8px 12px;
            font-size: 0.9rem;
        }
        
        .nav-tabs::-webkit-scrollbar {
            height: 4px;
        }
        
        .nav-tabs::-webkit-scrollbar-thumb {
            background-color: rgba(0, 63, 52, 0.2);
            border-radius: 4px;
        }
    }
    
    /* Category Pills for Results Page */
    .nav-pills .nav-link {
        color: #003F34;
        background-color: #fff;
        border: 1px solid #dee2e6;
        margin-right: 8px;
        margin-bottom: 8px;
        border-radius: 20px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .nav-pills .nav-link.active {
        background-color: #003F34;
        color: #fff;
        border-color: #003F34;
    }
    
    .nav-pills .nav-link:hover:not(.active) {
        background-color: #f8f9fa;
    }
    
    .brand-model-filters .btn {
        border-radius: 20px;
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .brand-model-filters .model-btn {
        background-color: #e9ecef;
        color: #333;
    }
    
    .brand-model-filters .model-btn:hover {
        background-color: #d1d3d4;
    }

/* Additional styles for unselected buttons */
.btn {
    background-color: white; /* Unselected background color */
    color: #003F34; /* Text color for unselected button */
    border: 1px solid #003F34; /* Border color for unselected button */
}

.btn:hover {
    background-color: #e9ecef; /* Hover effect for unselected buttons */
}
