/* Lokale Bedrifter – Frontend styles */

.lb-grid {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.lb-cols-1 { grid-template-columns: 1fr; }
.lb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.lb-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .lb-cols-2,
    .lb-cols-3,
    .lb-cols-4 { grid-template-columns: 1fr; }
}

@media (min-width: 480px) and (max-width: 768px) {
    .lb-cols-3,
    .lb-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

.lb-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow .2s ease;
}

.lb-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.lb-card-img {
    display: block;
    overflow: hidden;
    height: 180px;
}

.lb-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.lb-card:hover .lb-card-img img {
    transform: scale(1.04);
}

.lb-card-body {
    padding: 1rem;
}

.lb-card-title {
    margin: 0 0 .4rem;
    font-size: 1.1rem;
}

.lb-card-title a {
    text-decoration: none;
    color: inherit;
}

.lb-card-title a:hover {
    text-decoration: underline;
}

.lb-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 600;
    margin-bottom: .6rem;
}

.lb-address,
.lb-phone,
.lb-website {
    margin: .3rem 0;
    font-size: .9rem;
    color: #374151;
}

.lb-address a,
.lb-phone a,
.lb-website a {
    color: #1d4ed8;
}

.lb-social {
    display: flex;
    gap: .5rem;
    margin-top: .6rem;
}

.lb-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    font-size: .7rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
}

.lb-social a:hover {
    background: #1d4ed8;
    color: #fff;
}

.lb-map-wrap {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
