/* Store Listing Section Improvements */
/* Store list container */
#wpsl-result-list #wpsl-stores {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* Restore the scrolling functionality */
    height: 350px;
    overflow-y: auto;
}
/* Store list items */
#wpsl-result-list #wpsl-stores ul li {
    padding: 15px;
    border-bottom: 1px solid #eaeaea;
    transition: background-color 0.2s ease;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
#wpsl-result-list #wpsl-stores ul li:hover {
    background-color: #f9f9f9;
}
#wpsl-result-list #wpsl-stores ul li:last-child {
    border-bottom: none;
}
/* Store info section */
#wpsl-result-list .wpsl-store-location {
    flex: 1;
    min-width: 250px;
}
#wpsl-result-list .wpsl-store-location p {
    margin-bottom: 10px;
}
#wpsl-result-list .wpsl-store-location p:last-child {
    margin-bottom: 0;
}
#wpsl-result-list .wpsl-store-location strong, #wpsl-result-list .wpsl-store-location strong a {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--ast-global-color-2);
}
#wpsl-result-list .wpsl-street {
    display: block;
    margin-bottom: 2px;
}
/* Make "Plus d'infos" more prominent with icon */
#wpsl-result-list .wpsl-store-details {
    display: inline-flex;
    align-items: center;
    background-color: #2b2e36;
    color: white;
    padding: 8px 15px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
}
/* Add info icon before "Plus d'infos" */
#wpsl-result-list .wpsl-store-details:before {
    content: '\f0e0'; /* FontAwesome info icon */
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    margin-right: 8px;
    font-weight: 900;
}
#wpsl-result-list .wpsl-store-details:hover {
    opacity: 0.9;
}
/* Direction section with subtle background */
#wpsl-result-list .wpsl-direction-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    color: #888;
    background-color: #f9f9f9;
    padding: 6px 10px;
    border-radius: 0;
    font-size: 13px;
}
/* De-emphasize Itinéraire link but add icon */
#wpsl-result-list .wpsl-directions {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #888;
    text-decoration: none;
    font-weight: normal;
    font-size: 13px;
    padding-left: 0;
    margin-left: 0;
}
/* Add route icon */
#wpsl-result-list .wpsl-directions:after {
    content: '\f4d7'; /* FontAwesome route icon */
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    margin-left: 5px;
    font-weight: 900;
}
#wpsl-result-list .wpsl-directions:hover {
    text-decoration: underline;
    color: var(--ast-global-color-2);
}
/* Directions details */
#wpsl-result-list #wpsl-direction-details {
    background: #fff;
    border-radius: 0;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#wpsl-result-list .wpsl-street.category {
    font-style: italic;
    font-size: .8rem;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #wpsl-result-list #wpsl-stores ul li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #wpsl-result-list .wpsl-direction-wrap {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
}


#wpsl-result-list #wpsl-stores .wpsl-store-location img{
	display: none;
}

/* Phone number in store listing */
#wpsl-result-list .wpsl-contact-details {
    margin: 0 0 10px;
}
#wpsl-result-list .wpsl-phone-track {
    display: block;
    margin-bottom: 3px;
    color: #444;
    font-size: 14px;
}
#wpsl-result-list .wpsl-phone-track:before {
    content: '\f879';
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    margin-right: 8px;
    font-weight: 900;
}
#wpsl-result-list .wpsl-phone-track strong {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0;
    margin-right: 5px;
    color: #000;
}
#wpsl-result-list .wpsl-phone-track a {
    color: #444;
    font-weight: 600;
    text-decoration: none;
}

/*
 * AUDIT NOTE #12: CSS custom properties (--ast-global-color-*) are provided by the Astra theme.
 * This plugin is exclusively deployed with Astra — these variables are always defined.
 * If the theme ever changes, replace with explicit hex values.
 *
 * AUDIT NOTE #27: height: 350px on #wpsl-stores is intentional. The store list is a fixed-height
 * scrollable container — a max-height alternative was evaluated but caused layout shifts on
 * low-result searches. The fixed height is consistent with WPSL's default layout contract.
 */
