.searchResults{
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
     & > div.resulTypeContainer {
        flex: 1 1 300px;
        box-sizing: border-box;
        border:  solid #292828 ;
        border-width: 0 0 0 1px;
        padding: .3em .7em ;
        height: 545px;
        overflow: hidden;
        /* Hide container if it has no list items */
        &:not(:has(ul li)) {
            display: none;
        }
     }
     /* Single container takes full width */
     &:has(> div.resulTypeContainer:only-child) > div.resulTypeContainer {
        flex-basis: 100%;
        width: 100%;
       
     }
     & h5{
        margin: 1em 0;
        text-transform: uppercase;
        font-size: 0.9em;
     }
     & ul{
        list-style: none;
        padding: 0;
        margin: 0;
        height: 100%;
        overflow: hidden;
        columns: auto;
        column-width: 250px;
        column-gap: 2em;
        column-fill: auto;
        & li{
            display: flex;
            align-items: center;
            gap: 0.5em;
            padding: 0;
            margin: 0 0 0.6em 0;
            max-width: 380px;
            width: 100%;
            break-inside: avoid;
           
            & i { font-size: 1.6em; color: #555; margin: 0 10px 0 0;}
            & a{
                display: block;
                flex-grow: 1;
                text-decoration: none;
                color: #000;
                font-size: 1em;
                border: solid #e4e2e2;
                border-width: 0 0 1px 0;
                padding: 0.6em 0;
                &:hover {
                    border-color: #292828;
                }
                &:hover i{ color: #0f0f0f;}
            }
        }
        
     }

     & ul.media-results-list {
       
        & li {
            margin: 0 0 0.8em 0;
            & a {
                display: grid;
                grid-template-columns: 70px 1fr;
                grid-template-rows: auto auto auto;
                column-gap: 1em;
                row-gap: 0.3em;
                text-decoration: none;
                color: #000;
                padding: 0.1em 0;
                & .mediaDisp {
                    grid-row: 1 / 4;
                    grid-column: 1;
                    width: 60px;
                    height: 60px;
                    overflow: hidden;
                    border: 1px solid #e4e2e2;
                    & img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        transition: transform 0.3s ease;
                    }
                }
                & .content {
                    grid-column: 2;
                    display: contents;
                }
                & .pr-title {
                    grid-column: 2;
                    grid-row: 1;
                    font-weight: bold;
                    font-size: 1em;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }
                & .pr-subtitle {
                    grid-column: 2;
                    grid-row: 2;
                    font-size: 0.9em;
                    color: #555;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }
                & .pr-subtitle2 {
                    grid-column: 2;
                    grid-row: 3;
                    font-size: 0.9em;
                    color: #555;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }
                &:hover {
                    & .pr-title {
                        text-decoration: underline;
                    }
                    & .mediaDisp img {
                        transform: scale(1.2);
                    }
                }
            }
        }
     }

     & ul.media-results-list.cirule {
        & li a .mediaDisp {
            border-radius: 50%;
        }
     }

     /* Empty state message */
     & .empty-state {
        display: none;
        justify-content: center;
        align-items: center;
        min-height: 300px;
        padding: 2em;
        gap: 2em;
        & .bi {
            font-size: 4em;
            color: #888;
        }
        & .empty-text {
            max-width: 400px;
            & h3 {
                margin: 0 0 0.5em 0;
                font-size: 1.8em;
                color: #333;
                font-weight: 400;
            }
            & p {
                margin: 0;
                font-size: 1.1em;
                color: #666;
                line-height: 1.5;
            }
        }
     }
     /* Show empty state when no list items */
     &:not(:has(li)) .empty-state {
        display: flex;
     }

}

/* Mobile responsive: full width when container is less than 800px */
@media (max-width: 800px) {
    .searchResults > div.resulTypeContainer {
        flex-basis: 100%;
        width: 100%;
        min-width: unset;
    }
}