/* Universal LocalsOutpost card engine */

.lo-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.lo-card:hover {
    border-color: #2f4f2f;
    transform: translateY(-2px);
}

.lo-card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    background: #f3f3f3;
}

.lo-card-type {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2f4f2f;
    margin: 0;
}

.lo-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f1f1f;
}

.lo-card-meta {
    margin: 0;
    color: #666;
    font-size: 0.92rem;
}

.lo-card-desc {
    margin: 0;
    color: #444;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lo-card-fields {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: #333;
}

.lo-card-fields li {
    margin: 2px 0;
}

.search-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.search-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.search-tab {
    background: #fff;
    border: 1px solid #d0d0d0;
    color: #333;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.search-tab.is-active,
.search-tab.is-intent {
    border-color: #2f4f2f;
}

.search-tab.is-active {
    background: #2f4f2f;
    color: #fff;
}

.search-tab.is-intent:not(.is-active) {
    background: #eef6ee;
}

.search-empty,
.search-loading,
.search-end {
    color: #666;
    padding: 16px 0;
    grid-column: 1 / -1;
}

#search-scroll-sentinel {
    height: 1px;
    grid-column: 1 / -1;
}

.gps-banner {
    background: #fff8e6;
    border: 1px solid #f0d48a;
    color: #6a5500;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.gps-banner-action {
    margin-left: 0.35rem;
    padding: 0;
    border: 0;
    background: none;
    color: #2f4f2f;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
