body {
    background: #f5f6f8;
}

.listing-create-page {
    min-height: 100vh;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.listing-create-shell {
    width: min(100%, 920px);
    margin: 0 auto;
}

.listing-list-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.listing-create-header {
    margin: 1.5rem 0;
}

.listing-create-header h1,
.listing-section h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 0;
}

.listing-create-header p:last-child {
    max-width: 660px;
    margin: 0;
    color: #667085;
    font-size: 1.1rem;
}

.eyebrow {
    margin: 0 0 0.25rem;
    color: #ff9f05;
    font-weight: 800;
    text-transform: uppercase;
}

.listing-section {
    margin-top: 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid #dde1e8;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.listing-section h2 {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.listing-filter-form {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) minmax(10rem, 14rem) minmax(11rem, 15rem) auto;
    gap: 1rem;
    align-items: end;
}

.active-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.active-filter-list span,
.active-filter-list a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.listing-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.listing-table-header h2 {
    margin: 0;
}

.listing-create-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.listing-table {
    margin-bottom: 0;
}

.listing-table th {
    color: #667085;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.listing-title-link {
    color: #111827;
    font-weight: 800;
    text-decoration: none;
}

.listing-title-link:hover,
.listing-title-link:focus {
    color: #111827;
    text-decoration: underline;
}

.listing-row-description {
    max-width: 28rem;
    color: #667085;
    font-size: 0.9rem;
}

.empty-listing-state {
    padding: 2rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.75rem;
    background: #f9fafb;
    text-align: center;
}

.empty-listing-state h3 {
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.empty-listing-state p {
    color: #667085;
}

.section-note {
    margin-top: -0.5rem;
    color: #667085;
}

.card-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.card-row:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.card-row h3 {
    margin-bottom: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

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

.add-card-button {
    margin-top: 1rem;
}

.listing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.listing-price {
    align-self: flex-start;
    min-width: 8rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #111827;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
}

.detail-card-list {
    display: grid;
    gap: 0.75rem;
}

.listing-detail-image {
    display: block;
    width: 100%;
    max-height: 28rem;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    object-fit: cover;
}

.detail-card-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.65rem;
    background: #f9fafb;
}

@media (max-width: 991.98px) {
    .listing-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .listing-filter-form {
        grid-template-columns: 1fr;
    }

    .listing-table-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
