:root {
    --home-card-gap: 10px;
    --home-cards-per-view: 8;
}

.home-discovery-panels {
    background: #fff5ed;
    padding: 1.5rem 0 1rem;
    border-top: 1px solid #f8d9c9;
    border-bottom: 1px solid #f8d9c9;
}

.home-discovery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.home-discovery-card {
    background: #ffffff;
    border: 1px solid #f0e2d8;
    border-radius: 12px;
    padding: 1rem;
}

.home-discovery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.home-discovery-head h2 {
    font-size: 1.1rem;
    color: #1a202c;
}

.home-discovery-head a {
    font-size: 0.9rem;
    color: #d9480f;
    font-weight: 700;
    text-decoration: none;
}

.home-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #fff1e8;
    color: #b93806;
    border: 1px solid #ffd8c2;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.home-chip:hover {
    background: #ffe4d3;
}

.home-empty {
    color: #6b7280;
    font-size: 0.9rem;
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.home-section-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.home-view-more-btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
    line-height: 1;
    border-radius: 999px;
    min-height: 2rem;
}

.home-view-more-btn i {
    font-size: 0.78rem;
    margin-left: 0.35rem;
}

.ssr-carousel {
    position: relative;
}

.ssr-carousel-track {
    display: flex;
    gap: var(--home-card-gap);
    transition: transform 0.35s ease;
    will-change: transform;
}

.home-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #ecedf0;
    overflow: hidden;
    flex: 0 0 calc((100% - (var(--home-card-gap) * (var(--home-cards-per-view) - 1))) / var(--home-cards-per-view));
    min-width: calc((100% - (var(--home-card-gap) * (var(--home-cards-per-view) - 1))) / var(--home-cards-per-view));
}

.home-card-image {
    height: 105px;
    background: linear-gradient(135deg, #fd7e14 0%, #f03e3e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.8rem;
}

.home-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-card-content {
    padding: 0.65rem;
}

.home-card-content h4 {
    font-size: 0.9rem;
    line-height: 1.25;
    min-height: 2.2em;
    margin-bottom: 0.35rem;
    overflow: hidden;
}

.home-card-location {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.35rem;
    line-height: 1.25;
}

.home-card-desc {
    font-size: 0.74rem;
    color: #4b5563;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-empty-card {
    width: 100%;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1rem;
    color: #64748b;
}

.ssr-carousel .carousel-btn {
    width: 36px;
    height: 36px;
    top: 44%;
}

.ssr-carousel .carousel-btn.prev {
    left: -16px;
}

.ssr-carousel .carousel-btn.next {
    right: -16px;
}

@media (max-width: 1400px) {
    :root {
        --home-cards-per-view: 5;
    }
}

@media (max-width: 900px) {
    :root {
        --home-cards-per-view: 3;
    }

    .home-discovery-grid {
        grid-template-columns: 1fr;
    }

    .ssr-carousel .carousel-btn.prev {
        left: 4px;
    }

    .ssr-carousel .carousel-btn.next {
        right: 4px;
    }
}
