
.ropa-layout { max-width: 1500px; --page-width: 1500px; display: grid; grid-template-columns: minmax(340px, 390px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.ropa-filters { position: sticky; top: 1.25rem; display: grid; gap: 1.15rem; padding: 1.25rem; background: #fff; border: 1.5px solid #b99e91; border-radius: 12px; box-shadow: 0 8px 24px rgb(46 25 20 / 8%); }
.ropa-filter-heading { padding-bottom: 1rem; border-bottom: 1px solid #d0bdb4; }
.ropa-filter-kicker { display: inline-block; margin-bottom: .35rem; color: #977321; font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.ropa-filter-heading h2 { margin: 0 0 .35rem; color: var(--primary-color); font-family: var(--body-font); font-size: 1.12rem; font-weight: 750; }
.ropa-filter-heading p { margin: 0; color: var(--muted-text); font-size: .83rem; line-height: 1.45; }
.ropa-filter-group { display: grid; gap: .55rem; }
.ropa-filters label { color: #382b2b; font-size: .85rem; font-weight: 700; }
.ropa-filters label span { color: var(--muted-text); font-weight: 500; }
.ropa-filters input, .ropa-filters select { min-width: 0; width: 100%; min-height: 44px; padding: .6rem .5rem; border: 1px solid #b9aaa2; border-radius: 7px; background-color: #fff; color: var(--text-color); font: inherit; font-size: .82rem; transition: border-color .15s ease, box-shadow .15s ease; }
.ropa-filters input::placeholder { color: #938985; }
.ropa-filters input:focus, .ropa-filters select:focus { border-color: #a77c23; outline: 0; box-shadow: 0 0 0 3px rgb(212 175 55 / 20%); }
.ropa-budget-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ropa-filter-actions { display: grid; gap: .55rem; }
.ropa-reset { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .55rem .75rem; border: 1px solid #b99e91; border-radius: 7px; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.ropa-reset { background: #faf7f2; color: var(--primary-color); }
.ropa-reset span { font-size: 1.15rem; line-height: 1; }
.ropa-reset:hover { border-color: var(--primary-color); background: #f4ece5; }
.ropa-results { min-width: 0; }
#ropa-result-count { color: var(--muted-text); margin-bottom: .75rem; }
#ropa-container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 1rem; align-items: stretch; }
.ropa-card { height: 100%; background: var(--secondary-color); border: 1.5px solid #b99e91; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 14px rgb(41 20 18 / 5%); }
.ropa-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--background-light); }
.ropa-card-body { padding: .8rem; display: flex; flex: 1 1 auto; flex-direction: column; align-items: stretch; }
.ropa-card h2 { font-size: 1.02rem; }
.ropa-card-body p { font-size: .92rem; line-height: 1.5; }
.ropa-location { color: var(--muted-text); font-weight: 600; }
.ropa-price { font-size: .92rem; }
.ropa-card-body > .btn { align-self: stretch; margin-top: auto; padding: .58rem .6rem; font-size: .82rem; text-align: center; }
.ropa-card[hidden], #ropa-empty[hidden] { display: none; }
#ropa-empty { grid-column: 1 / -1; padding: 1.5rem; color: var(--muted-text); background: var(--background-light); border-radius: 6px; }
.ropa-pagination { display: flex; justify-content: center; align-items: center; gap: .65rem; margin-top: 3.5rem; padding-bottom: .75rem; }
.ropa-pagination:empty { display: none; }
.ropa-pagination button { width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; border: 1px solid #a65b69; border-radius: 7px; background: #fff; color: #781528; font: inherit; font-size: 1.15rem; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px #4b0e1818; }
.ropa-pagination button:hover:not(:disabled) { border-color: var(--primary-color); background: var(--primary-color); color: #fff; }
.ropa-pagination button:disabled { border-color: #cdbfc2; background: #f6f1f2; color: #76666b; opacity: 1; cursor: not-allowed; }
.ropa-page-jump { display: flex; align-items: center; gap: .45rem; color: #38282d; font-size: .92rem; font-weight: 650; }
.ropa-pagination input { width: 48px; height: 36px; padding: .15rem; border: 1px solid #a65b69; border-radius: 7px; background: #fff; color: #781528; font: inherit; font-size: .9rem; font-weight: 750; text-align: center; }
.ropa-pagination input:focus { outline: 2px solid var(--focus-color); outline-offset: 1px; }
.ropa-page-total { color: #514148; font-size: .9rem; font-weight: 700; }

@media (max-width: 1100px) {
    .ropa-layout { grid-template-columns: minmax(290px, 330px) minmax(0, 1fr); gap: 1rem; }
    #ropa-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .ropa-layout { grid-template-columns: minmax(0, 1fr); }
    .ropa-filters { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
    .ropa-filter-heading { grid-column: 1 / -1; }
    .ropa-budget-group, .ropa-filter-actions { grid-column: 1 / -1; }
    #ropa-container { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
}
.ropa-section { padding-bottom: 1.5rem; }
