
























/* Lister Component Styles */
.lister-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lister-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.lister-under-header {
    padding-left: 10px;
    padding-top: 9px;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}


.lister-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
}

.lister-empty,
.lister-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.lister-items {
    display: flex;
    flex-direction: column;
}

.lister-item {
    padding: 0.55rem .2rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.15s;
}

.lister-item:hover {
    /* ATTN: THIS IS THE ONE HIDING THE BACKGROUND from lister-selected below*/
    /*background-color: #f8f9fa;*/
    background-color: rgba(13, 110, 253, 0.2);
}

.lister-item.active {
    background-color: #e7f1ff;
    border-left: 3px solid #0d6efd;
    padding-left: calc(1rem - 3px);
}

.lister-item-content {
    font-size: 0.9rem;
    color: #495057;
}



/* for selected results
this first one background-color doesnt seem to get obeyed, second is needed
 */
.lister-selected {
    border-left: 2px solid #0d6efd;
    border-right: 2px solid #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    /* background-color: rgba(13, 110, 253, 1); */
}

.lister-items .lister-selected {
    background-color: rgba(13, 110, 253, 0.1);

}

/* selected should override hover */
.lister-items .lister-selected:hover {
    background-color: rgba(13, 110, 253, 0.2);
}









/* Scrollbar styling for result list */
.lister-content::-webkit-scrollbar {
    width: 6px;
}

.lister-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.lister-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.lister-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


/* Action bar - appears at bottom of selected cards */
.lister-action-bar {
    flex-basis: 100%;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
}

/* Hide normal ad when item is selected (expanded version shown instead) */
.lister-selected .poi-ad {
    display: none;
}



/* POI Card Layout */
.poi-card {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}



.poi-card-right {
    flex: 0 0 auto;
    width: min(200px, 30%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.poi-card-icon {
    flex-shrink: 0;
    width: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.poi-card-icon img {
    width: 20px;
    height: 20px;
}

.poi-card-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.poi-dname {
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1.1;
    margin-top: -2px;
}

.poi-address {
    color: #6c757d;
    font-size: 0.8em;
    line-height: 1;
    margin-top: 4px;
    margin-bottom: 6px;
}

.poi-anchor-dist {
    display: block;
    font-style: italic;
    color: #6c757d;
    /* font-size: 1em; */
}

.currentAnchor {
    font-weight: bold;
    color: #DD4444;
}

.poi-lead {
    display: inline-block;
    margin-top: auto;
    align-self: flex-start;
}

.poi-pcat {
    font-size: 0.65em;
    color: #6c757d;
    text-align: right;
}


.cornerbut .poi-pcat {
    padding-right: 20px;
    margin-top: -1px;
}

.poi-ad {
    margin-bottom: 6px;
}

.poi-ad img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}



/* Expanded ad image shown when item is selected */
.poi-ad-expanded {
    flex-basis: 100%;
    width: 100%;
    text-align: center;
    margin-top: 8px;
    padding: 8px 0;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.poi-ad-expanded img {
    width: 95%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
}

.poi-regionloc {
    font-family: monospace;
    font-size: 0.8em;
    font-weight: bold;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
}



.itemIcon img {
    max-width: 20px;
    max-height: 20px;
}

























.lister-vheader {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    /*
    gap: 0.4rem;
    */
    gap: 4px;
    /*
    padding: 0.55rem .2rem;
    */

    /*font-size: 0.9rem;*/
    /* color: #495057;*/
    font-weight: bold;
    color: #000000;
}


/* Legacy yellowadimg - kept for backward compatibility */
.lister-item-content .yellowadimg {
  display: block;
  max-width: 200px;
  width: 50%;
  height: auto;
  margin: 0 auto;
  margin-top: 6px;
}

.lister-item .userLabel,
.poi-card .userLabel {
    font-weight: bold;
    color: #dc3545;
}

/* Expand ad image when item is selected */
#yellow-lister .lister-selected .poi-ad img {
    max-height: 300px;
    max-width: 100%;
}

#yellow-lister {
    background-color: #FFFDD0;
}

#yellow-lister .lister-item:hover {
    background-color: #FFFF8F;
}

#yellow-lister .lister-selected {
    background-color: #fbe9a0;

}

/* selected should override hover */
#yellow-lister .lister-selected:hover {
    background-color: #fbe9a0;
}



/* Legacy dName class - keep for backward compatibility */
.dName {
    font-weight: bold;
}

/* Yellow pages dName coloring */
.ptypeclass_yellow .poi-dname {
    color: #635d1d;
}

#yellow-lister .ptypeclass_yellow .poi-dname {
    color: #000000;
}

#yellow-lister .lister-item {
    border-bottom: 1px solid #C0C0C0;
}







/* Legacy yellowad - kept for backward compatibility */
.yellowad {
    padding-top: 2px;
}




.itemIndent .poi-card-icon {
    /* hierarchical indent - only indent the icon column */
    margin-left: 24px;
}

.itemIndent,    #yellow-lister .itemIndent {
    /* reduce text size for indented/child items */
    font-size: 0.9em;
    padding-top: 0.4em;
    padding-bottom: 0.4em;
    /*padding-top: 0;*/
}




/* SEE OTHER LISTER THEME SETTINGS IN themes.css */