/*
 * Custom Stylesheet for Shop Directory Homepage
 */

/* --- Hero Section & Search Bar --- */
.shopdirectory-hero {
    background: linear-gradient(45deg, rgb(60 142 181 / 90%), rgb(55 195 105 / 90%)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80') center center/cover no-repeat;
    padding: 100px 0;
    position: relative;
    margin-bottom: -75px; /* Pull the content below up */
}

.search-bar-wrapper {
    background-color: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

/* --- Section Headers --- */
.section-header h2 {
    font-weight: 700;
}

.section-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* --- Listing Card --- */
.listing-card {
    position: relative; /* Establishes positioning context for the logo */
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.listing-card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.listing-card-image-wrapper .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.listing-card:hover .main-image {
    transform: scale(1.05);
}

.listing-card-logo {
    position: absolute;
    top: 175px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 0;
    /* Replaced box-shadow with filter: drop-shadow for shape-conforming shadow */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
    object-fit: contain;
    z-index: 10;
}

.listing-card .card-body {
    padding-top: 2rem;
}

.listing-card .card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-card-info-item {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.listing-card-info-item .fa {
    color: #0d6efd;
    margin-right: 8px;
    width: 14px; /* Align icons */
    text-align: center;
}

/* --- Review Card --- */
.review-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}