@charset "utf-8";

.listing-page {
    min-width: 0;
}

.listing-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.listing-page-title img {
    flex: 0 0 auto;
    object-fit: contain;
}

.listing-category-nav {
    margin: 24px 0 14px;
    border-top: 1px solid #eadcc8;
    border-bottom: 1px solid #eadcc8;
}

.listing-category-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 4px 0;
    list-style: none;
}

.listing-category-nav li {
    min-width: 0;
}

.listing-category-nav a {
    display: block;
    padding: 9px 13px;
    color: #895400;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}

.listing-category-nav li + li {
    border-left: 1px solid #eadcc8;
}

.listing-category-nav a[aria-current="page"] {
    color: #895400;
    font-weight: 700;
    box-shadow: inset 0 -2px #a86600;
}

.listing-category-nav a:hover,
.listing-category-nav a:focus-visible {
    color: #a86600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.listing-policy-link {
    margin: 8px 0 26px;
    color: #444;
    font-size: 14px;
    line-height: 1.8;
}

.listing-policy-link a {
    color: #a86600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.listing-page .listing-section-heading {
    margin: 30px 0 6px;
    padding: 0 0 10px;
    border: 0;
    border-bottom: 2px solid #eadcc8;
    border-radius: 0;
    background: #fff;
    color: #895400;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
    scroll-margin-top: 20px;
}

.listing-list {
    margin: 0 0 36px;
}

.listing-item {
    display: grid;
    grid-template-columns: minmax(200px, 236px) minmax(0, 1fr);
    align-items: start;
    gap: 26px;
    padding: 24px 0;
    border-bottom: 1px solid #eadcc8;
}

.listing-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: 1px solid #eadcc8;
    border-radius: 10px;
    background: #fffaf2;
    box-shadow: 0 1px 4px rgba(77, 55, 32, 0.08);
}

.listing-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.listing-thumb--empty {
    min-height: 120px;
}

.listing-body {
    min-width: 0;
}

.listing-page .listing-title {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: #fff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.listing-page .listing-title a:link,
.listing-page .listing-title a:visited {
    color: #895400;
    text-decoration: none;
}

.listing-page .listing-title a:hover,
.listing-page .listing-title a:focus-visible {
    color: #a86600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.listing-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
}

.listing-update {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid #eadcc8;
    border-radius: 4px;
    background: #fffaf2;
    color: #895400;
    font-size: 12px;
    line-height: 1.45;
}

.listing-update time {
    font-weight: 700;
}

.listing-categories {
    min-width: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.listing-categories a {
    color: #895400;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.listing-description {
    margin: 12px 0 10px;
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.listing-more {
    display: inline-block;
    padding: 4px 0;
    color: #a86600;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.listing-more:hover,
.listing-more:focus-visible {
    color: #895400;
}

@media (hover: hover) {
    .listing-thumb img {
        transition: transform 160ms ease, filter 160ms ease;
    }

    .listing-thumb:hover img {
        transform: scale(1.025);
        filter: brightness(1.03);
    }
}

@media (max-width: 849px) {
    .listing-item {
        grid-template-columns: minmax(112px, 36%) minmax(0, 1fr);
        gap: 14px;
        padding: 20px 0;
    }

    .listing-page .listing-title {
        font-size: 18px;
        line-height: 1.5;
    }

    .listing-page .listing-section-heading {
        font-size: 20px;
    }

    .listing-body {
        display: contents;
    }

    .listing-title {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        margin: 0;
    }

    .listing-meta,
    .listing-description,
    .listing-more {
        grid-column: 1 / -1;
    }

    .listing-meta {
        align-items: flex-start;
    }

    .listing-description {
        margin: 0;
        font-size: 14px;
        line-height: 1.8;
    }

    .listing-more {
        justify-self: start;
        padding: 5px 0;
    }
}

@media (max-width: 600px) {
    .listing-category-nav ul {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .listing-category-nav li + li {
        border-left: 0;
    }

    .listing-category-nav a {
        padding: 9px 6px;
        text-align: center;
        white-space: normal;
    }

    .listing-category-nav li:nth-child(3n + 2) {
        border-left: 1px solid #eadcc8;
        border-right: 1px solid #eadcc8;
    }

    .listing-page-title {
        gap: 8px;
        line-height: 1.45;
    }

    .listing-page-title img {
        width: 32px;
        height: 32px;
    }

    .listing-update {
        max-width: 100%;
        font-size: 11px;
    }

    .listing-categories {
        font-size: 12px;
    }
}
