.classified-section,
.classified-page {
    width: min(1240px, calc(100% - 32px));
    margin: 22px auto;
    color: #191919;
}

.classified-section {
    padding: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
}

.classified-section__heading,
.classified-page__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 15px;
}

.classified-section__heading h2,
.classified-page__heading h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.classified-section__heading a,
.classified-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid #a84122;
    border-radius: 5px;
    color: #a84122;
    background: #fff;
    font-weight: 700;
    text-decoration: none;
}

.classified-button--primary {
    color: #fff;
    background: #a84122;
}

.classified-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.classified-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}

.classified-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .09);
}

.classified-card__image,
.classified-card__placeholder {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #f1f3f1;
}

.classified-card__placeholder {
    display: grid;
    place-items: center;
    color: #a4ada7;
    font-size: 2rem;
}

.classified-card__body {
    padding: 12px;
}

.classified-card__title {
    display: -webkit-box;
    min-height: 2.7em;
    overflow: hidden;
    color: #191919;
    font-size: .96rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.classified-card__price {
    margin: 8px 0 5px;
    color: #a84122;
    font-size: 1.05rem;
    font-weight: 800;
}

.classified-card__location,
.classified-card__description,
.classified-card__meta {
    margin: 5px 0 0;
    color: #767676;
    font-size: .82rem;
    line-height: 1.45;
}

.classified-card__description {
    display: -webkit-box;
    min-height: 2.9em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.classified-page__heading {
    margin-bottom: 18px;
}

.classified-filters,
.classified-form,
.classified-panel {
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 9px;
    background: #fff;
}

.classified-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.classified-filters label,
.classified-form label {
    display: block;
    margin-bottom: 6px;
    color: #34423c;
    font-size: .88rem;
    font-weight: 700;
}

.classified-filters input,
.classified-filters select,
.classified-form input:not([type="checkbox"]):not([type="file"]),
.classified-form select,
.classified-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #d7ded9;
    border-radius: 5px;
    background: #fff;
}

.classified-form textarea {
    min-height: 120px;
    resize: vertical;
}

.classified-filters .classified-location-fields {
    display: contents;
}

.classified-filters [data-country-location][hidden] {
    display: none !important;
}

.classified-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.classified-form__full {
    grid-column: 1 / -1;
}

.classified-form__section-title {
    grid-column: 1 / -1;
    margin: 8px 0 -4px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ecefec;
    font-size: 1.1rem;
    font-weight: 800;
}

.classified-form__address {
    padding: 11px 13px;
    border-radius: 5px;
    color: #52615a;
    background: #f5f7f5;
    font-size: .88rem;
}

.classified-form__error {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 5px;
    color: #8d1c1c;
    background: #fff0f0;
}

.classified-form__help,
.classified-form__file-names {
    display: block;
    margin-top: 6px;
    color: #767676;
    font-size: .8rem;
}

.classified-checkbox {
    display: flex !important;
    align-items: center;
    gap: 9px;
}

.classified-checkbox input {
    width: 18px;
    height: 18px;
}

.classified-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.classified-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(270px, .8fr);
    gap: 20px;
    align-items: start;
}

.classified-gallery,
.classified-detail__content,
.classified-contact-card {
    padding: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 9px;
    background: #fff;
}

.classified-gallery__main {
    display: grid;
    min-height: 360px;
    place-items: center;
    overflow: hidden;
    border-radius: 7px;
    background: #f4f5f4;
}

.classified-gallery__main img {
    max-width: 100%;
    max-height: 580px;
    object-fit: contain;
}

.classified-gallery__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}

.classified-gallery__thumbs img {
    width: 72px;
    height: 64px;
    flex: 0 0 auto;
    cursor: pointer;
    object-fit: cover;
    border: 1px solid #d7ded9;
    border-radius: 4px;
}

.classified-detail__content {
    margin-top: 16px;
}

.classified-detail__title {
    margin: 0 0 9px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
}

.classified-detail__price {
    margin: 0 0 10px;
    color: #a84122;
    font-size: 1.65rem;
    font-weight: 850;
}

.classified-contact-card {
    position: sticky;
    top: 18px;
}

.classified-contact-card h2 {
    margin: 0 0 14px;
    font-size: 1.2rem;
}

.classified-contact-card__name {
    margin: 0 0 5px;
    font-size: 1.05rem;
    font-weight: 800;
}

.classified-contact-card__location {
    margin: 0 0 14px;
    color: #767676;
    font-size: .85rem;
}

.classified-contact-card__phone {
    display: block;
    margin: 8px 0 14px;
    color: #191919;
    font-size: 1.15rem;
    font-weight: 800;
}

.classified-contact-card .classified-button {
    width: 100%;
    margin-top: 8px;
}

.classified-seller-more {
    margin-top: 22px;
}

.classified-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.classified-page-link {
    display: grid;
    min-width: 36px;
    height: 36px;
    place-items: center;
    padding: 0 9px;
    border: 1px solid #d7ded9;
    border-radius: 4px;
    color: #34423c;
    text-decoration: none;
}

.classified-page-link.is-active {
    color: #fff;
    border-color: #a84122;
    background: #a84122;
}

.classified-empty {
    grid-column: 1 / -1;
    padding: 30px;
    color: #767676;
    text-align: center;
}

@media (max-width: 900px) {
    .classified-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .classified-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .classified-detail { grid-template-columns: minmax(0, 1fr); }
    .classified-contact-card { position: static; }
}

@media (max-width: 575px) {
    .classified-section,
    .classified-page { width: calc(100% - 24px); }
    .classified-section { padding: 12px; }
    .classified-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .classified-card__image,
    .classified-card__placeholder { height: 140px; }
    .classified-card__body { padding: 9px; }
    .classified-card__title { font-size: .86rem; }
    .classified-filters { grid-template-columns: minmax(0, 1fr); padding: 13px; }
    .classified-form__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .classified-form__full,
    .classified-form__section-title { grid-column: auto; }
    .classified-gallery,
    .classified-detail__content,
    .classified-contact-card,
    .classified-form { padding: 13px; }
    .classified-gallery__main { min-height: 260px; }
    .classified-section__heading h2,
    .classified-page__heading h1 { font-size: 1.25rem; }
}
