/* SolviFood Directory & Marketplace Styles */
.solvifood-dir-wrapper {
    max-width: 1100px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.solvifood-dir-hero {
    background: #fff;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: center;
    margin-bottom: 35px;
    border: 1px solid #eaeaea;
}

.solvifood-dir-hero h2 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 10px;
}

.solvifood-dir-hero p {
    color: #666;
    font-size: 1rem;
    margin: 0 0 25px 0;
}

.solvifood-dir-filters {
    max-width: 800px;
    margin: 0 auto;
}

.solvifood-dir-search-wrap input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    margin-bottom: 15px;
    transition: border-color 0.2s;
}

.solvifood-dir-search-wrap input:focus {
    outline: none;
    border-color: #ff5722;
}

.solvifood-dir-selects-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

@media (max-width: 650px) {
    .solvifood-dir-selects-row {
        grid-template-columns: 1fr;
    }
}

.solvifood-dir-selects-row select {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
    width: 100%;
}

.solvifood-dir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.solvifood-dir-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    cursor: pointer;
}

.solvifood-dir-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.dir-card-header {
    height: 60px;
    position: relative;
    padding: 10px 15px;
}

.dir-cat-tag {
    background: rgba(255,255,255,0.9);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #333;
}

.dir-card-body {
    padding: 20px;
    text-align: center;
    position: relative;
    margin-top: -35px;
}

.dir-logo-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px auto;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #fff;
}

.dir-card-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dir-card-logo-placeholder {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff5722;
}

.dir-card-body h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #1a1a1a;
}

.dir-location {
    color: #777;
    font-size: 0.9rem;
    margin: 0 0 18px 0;
}

.btn-dir-view-menu {
    display: block;
    width: 100%;
    padding: 10px;
    color: #fff;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: opacity 0.2s;
}

.btn-dir-view-menu::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.btn-dir-view-menu:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none !important;
}

.dir-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 12px;
    border: 2px dashed #ddd;
    color: #666;
    font-size: 1.1rem;
}
