.search-container {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    font-family: Arial, sans-serif;
    z-index: 99999;  /* 🔥 ensures container sits on top */
}

.search-form {
    width: 100% !important;
    padding: 10px !important;
}

/* Wrapper */
.search-box-wrapper {
    position: relative;
    height: 50px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    background: #fff;
    padding: 0;
        z-index: 1; /* below dropdown */
}

/* Input */
.search-input {
    width: calc(100% - 60px);
    height: 100%;
    border: none;
    outline: none;
    padding-left: 36px;
    padding-right: 24px;
    font-size: 16px;
    background: transparent;
    box-sizing: border-box;
}

/* Search Icon */
.search-icon-new {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #5f6368;
    pointer-events: none;
}

/* Clear Button */
.clear-btn-new {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #80868b;
    cursor: pointer;
    display: none;
}

/* Suggestions Dropdown */
.suggestions-box {
       position: fixed; /* fixed for overlay */
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 12px rgba(32,33,36,.28);
    max-height: 300px;
    overflow-y: auto;
    z-index: 99999;
    display: none;
}


/* Suggestion Items */
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    cursor: pointer;
    min-height: 50px;
    transition: background 0.2s;
}
.suggestion-item:hover,
.suggestion-item.active {
    background: #f1f3f4;
    color: #47823d;
    font-weight: 600;
}
.suggestion-text {
  white-space: normal;  /* allow wrapping */
  word-break: break-word;
  max-width: 100%;      /* stay within dropdown */
}
/* Thumbnail */
.suggestion-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.suggestion-thumb:hover {
    transform: scale(1.05);
}

/* Scrollbar */
.suggestions-box::-webkit-scrollbar {
    width: 6px;
}
.suggestions-box::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Mobile */
@media screen and (max-width: 768px){
    .search-container {
        max-width: 95%;
        margin: 0 auto;
    }

    .search-box-wrapper {
        height: 45px;
        border-radius: 8px;
    }

    .search-input {
        width: calc(100% - 50px);
        padding-left: 32px;
        padding-right: 18px;
        font-size: 14px;
    }

    .search-icon-new {
        left: 10px;
        font-size: 16px;
    }

    .clear-btn-new {
        right: 10px;
        font-size: 14px;
    }

    .suggestions-box {
        border-radius: 0 0 8px 8px;
    }

    .suggestion-item {
        padding: 5px 10px;
        min-height: 45px;
    }

    .suggestion-thumb {
        width: 40px;
        height: 40px;
    }
}

