/* Main Container - Width Matches Input */
ul.nc_list {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 !important;
    /* Tiny gap from input */
    border: 1px solid #bbb;
    /* Darker border for contrast */
    background: #f8f9fa;
    /* Light grey background as requested */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    z-index: 99999 !important;

    /* Width is handled by JS to match input exactly */
    box-sizing: border-box;

    border-radius: 0 0 4px 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* Stronger shadow for "nuance" against page */
}

/* List Items - Continuous List (No Gaps) */
ul.nc_list li.nc_item {
    cursor: pointer;
    /* Compact height */
    padding: 8px 12px;
    height: auto;
    min-height: 38px;
    /* Ensure it's smaller than a standard 45px+ input field */

    margin: 0;
    /* No gaps */
    background: #fff;
    /* White items on grey list background */
    border-bottom: 2px solid #e0e0e0;
    /* Thicker separation as requested */

    color: #202124;
    display: flex;
    align-items: center;
    transition: background-color 0.1s;
}

ul.nc_list li.nc_item:last-child {
    border-bottom: none;
}

/* Hover State */
ul.nc_list li.nc_item.nc_hover,
ul.nc_list li.nc_item:hover {
    background-color: #f1f3f4;
    /* Light grey hover */
    color: #000;
}

/* Pin Icon (Senegal Flag Colors) */
ul.nc_list li.nc_item::before {
    content: '';
    display: inline-block;
    width: 18px;
    /* Slightly smaller icon to match compact height */
    height: 18px;
    margin-right: 10px;
    /* Senegal Flag Map Pin SVG (Solid 3-Color: TL=Yellow, TR=Green, Bot=Red) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24px' height='24px'%3E%3Cdefs%3E%3CclipPath id='pin'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23pin)'%3E%3Crect width='24' height='24' fill='%23e31b23'/%3E%3Crect width='12' height='11' x='0' y='0' fill='%23fdef42'/%3E%3Crect width='12' height='11' x='12' y='0' fill='%2300853f'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

/* Text Content Container */
.addy-suggestion {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

/* Title Line (Bold) */
.addy-suggestion-title {
    font-weight: 500;
    font-size: 13px;
    color: #202124;
    margin-bottom: 1px;
    line-height: 1.2;
}

/* Detail Line (Gray) */
.addy-suggestion-detail {
    font-size: 12px;
    color: #555;
    /* Slightly darker for readability */

    /* WRAPPING ENABLED */
    white-space: normal;
    /* Go to next line */
    overflow: visible;
    text-overflow: clip;

    line-height: 1.25;
    /* Tight line height */
    display: block;
    max-width: 100%;
}

/* Highlighting match */
.nc_highlight {
    font-weight: 700;
}

/* Empty State / Footer */
li.nc_empty,
ul.nc_list li.nc_footer {
    padding: 8px 12px;
    background: #f8f9fa;
    border-top: 1px solid #e6e6e6;
    color: #70757a;
    font-size: 12px;
}

/* Mobile Tweak: Limit width to 90% as requested */
@media only screen and (max-width: 768px) {
    ul.nc_list {
        max-width: 90% !important;
        /* Override JS inline style */
        width: auto !important;
        /* Allow it to shrink if needed, but cap at 90% */
    }
}