/* ===== GLOBAL STYLES ===== */
html, body {
    overflow-x: hidden;
    width: 100%;
}


.search-results-container {
    background: #fff;
    max-width: 100%;
    margin-top: 60px; /* Search box ke niche */
    max-height: 400px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.search-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-list li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.search-list li a:hover {
    background: #f9f9f9;
}

.search-list li img {
    margin-right: 15px;
    border-radius: 4px;
    object-fit: cover;
}

.no-result {
    padding: 20px;
    text-align: center;
    color: #888;
    font-weight: bold;
}


.custom-image-list {
    list-style: none;
    padding: 0;
}

.list-image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 5px solid #fff;
    transition: 0.4s ease;
}

.list-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.5s ease;
}

.list-image-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255, 94, 20, 0.2);
}

.list-image-container:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .list-image-container {
        border-radius: 10px;
        border-width: 3px;
    }
}

/* ===== SEARCH ICON ===== */
.search-icon {
    cursor: pointer;
    font-size: 18px;
    /* Desktop margins */
    margin-left: 26px;
    margin-right: 30px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

/* ===== SEARCH OVERLAY (No change here) ===== */
.search-overlay {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Thoda dark kiya taaki readability achhi ho */
    z-index: 9999;
    transition: 0.4s ease;
}

.search-overlay.active {
    top: 0;
}

.search-box {
    width: 100%;
    background: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-box .close-btn {
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
    color: #333;
}

/* ===== RESPONSIVE CHANGES (Main Fix Here) ===== */

@media (max-width: 991px) {
    /* Header container ko flex banayein */
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Items ko shuruat se align karein */
        width: 100%;
        padding: 5px 25px;
    }

    /* Logo apni jagah rahega (Left) */
    .mobile-menu-header .logo {
        flex-shrink: 0;
    }

    /* Search Icon ko auto margin de kar right mein dhakelna */
    .search-icon {
        margin-left: auto;   /* Yeh sabse important hai: Logo aur Search ke beech gap bana dega */
        margin-right: 20px;  /* Toggle button se doori */
        font-size: 22px;     /* Mobile icon size */
        cursor: pointer;
        display: flex;
        align-items: center;
    }

    /* Toggle button icon */
    .m-menu-icon {
        display: flex;
        align-items: center;
    }

    .navbar-toggler {
        padding: 0;
        border: none;
        background: transparent;
    }
}

@media (max-width: 768px) {
    .search-icon {
        margin-right: 15px; /* Thodi spacing kam chote devices ke liye */
    }
}
/* Body Freeze when search is open */
body.no-scroll {
    overflow: hidden;
}