.home-listings-page {
    background: #f7f8fb;
    min-height: 70vh;
    padding-bottom: 40px;
}

.home-search-strip {
    padding: calc(var(--header-height) + 10px) 0 12px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.home-search-bar {
    display: grid;
    grid-template-columns: minmax(130px, 0.85fr) minmax(130px, 0.85fr) minmax(150px, 0.9fr) minmax(210px, 1.2fr) auto auto;
    gap: 12px;
    align-items: center;
}

.home-search-bar > .home-search-field:not(.home-search-field-live) {
    display: none;
}

.home-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #f97316;
    background: #fff;
    position: relative;
}

.home-search-field input,
.home-search-field select {
    width: 100%;
    border: 0;
    outline: 0;
    color: #111827;
    font-size: 0.95rem;
    background: transparent;
    min-width: 0;
}

.home-search-field select {
    appearance: none;
    cursor: pointer;
}

.home-search-field select:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.home-search-field-live select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}

.home-choice-trigger {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #111827;
    font: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0;
}

.home-choice-trigger:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.home-choice-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
    display: none;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.home-choice-field.is-open {
    z-index: 60;
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.home-choice-field.is-open .home-choice-menu {
    display: block;
}

.home-choice-option {
    width: 100%;
    border: 0;
    background: transparent;
    color: #111827;
    text-align: left;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 0.92rem;
    cursor: pointer;
}

.home-choice-option:hover,
.home-choice-option[aria-selected="true"] {
    background: #fff7ed;
    color: #ea580c;
}

.home-search-button,
.home-post-button {
    height: 52px;
    border: 0;
    border-radius: 8px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.home-search-button {
    background: #111827;
    color: #fff;
}

.home-search-button:hover {
    background: #0b1220;
}

.home-post-button {
    background: #f97316;
    color: #fff;
}

.home-post-button:hover {
    background: #ea580c;
}

.home-announcement {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-bottom: 1px solid #ddd6fe;
}

.home-announcement-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    flex-wrap: wrap;
}

.home-announcement-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd6fe;
    flex-shrink: 0;
}

.home-announcement-copy {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-announcement-copy strong {
    color: #5b21b6;
    font-size: 0.95rem;
}

.home-announcement-copy span {
    color: #6d28d9;
    font-size: 0.88rem;
    line-height: 1.45;
}

.home-announcement-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 8px;
    background: #7c3aed;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}

.home-announcement-btn:hover {
    background: #6d28d9;
}

.home-section-kicker-green {
    background: #10b981;
}

.home-category-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-category-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.home-category-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.home-category-block-head h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #111827;
}

.home-listings-wrap {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 24px;
}

.home-listing-section {
    background: transparent;
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 12px;
}

.home-section-kicker {
    display: inline-flex;
    background: #f97316;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.home-listing-section-red .home-section-kicker {
    background: #ef4444;
}

.home-listing-section-slate .home-section-kicker {
    background: #475569;
}

.home-section-header h2 {
    color: #111827;
    font-size: 1.25rem;
    line-height: 1.2;
    margin: 0;
}

.home-section-header p {
    color: #6b7280;
    font-size: 0.88rem;
    margin: 4px 0 0;
}

.home-section-link {
    color: #f97316;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}

.home-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 16px;
}

.home-listing-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.home-listing-link {
    color: inherit;
    display: block;
    text-decoration: none;
}

.home-listing-image {
    position: relative;
    aspect-ratio: 1.24 / 1;
    background: #eef2f7;
    overflow: hidden;
}

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

.home-listing-ribbon {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #f97316;
    color: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0;
}

.home-listing-category {
    position: absolute;
    right: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-listing-body {
    padding: 12px;
}

.home-listing-body h3 {
    color: #111827;
    font-size: 0.92rem;
    line-height: 1.25;
    height: 2.5em;
    margin: 0 0 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-listing-meta {
    color: #f97316;
    font-size: 0.8rem;
    font-weight: 700;
    min-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-listing-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
    color: #64748b;
    font-size: 0.76rem;
}

.home-listing-foot span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-empty-state {
    text-align: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 48px 20px;
}

.home-empty-state h1 {
    color: #111827;
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.home-empty-state p {
    color: #6b7280;
    margin-bottom: 18px;
}

@media (max-width: 820px) {
    .home-search-bar {
        grid-template-columns: 1fr;
    }

    .home-section-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .home-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-listing-body {
        padding: 8px;
    }

    .home-listing-body h3 {
        font-size: 0.8rem;
    }
}
