.sale-page {
  background: #0c0c0c;
  color: #f2f2f2;
}

.sale-page .inner-bar {
  background: #0b0b0b;
  border-bottom: 1px solid #2a2a2a;
}

.sale-page footer {
  background: #080808;
  border-top: 1px solid #222;
}

.sale-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100dvh - 118px);
  width: min(1440px, 100%);
  margin: 0 auto;
}

.sale-sidebar {
  background: #121212;
  border-right: 1px solid #262626;
  padding: 1.35rem 1.15rem 2rem;
}

.sale-kicker {
  margin: 0 0 0.55rem;
  color: #9a9a9a;
  font-size: 0.72rem;
  font-weight: 600;
}

.sale-kicker a { color: #cfcfcf; text-decoration: none; }
.sale-kicker a:hover { color: #ff5a1f; }

.sale-sidebar h1 {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  line-height: 1.25;
  font-weight: 800;
}

.sale-sidebar h1 span {
  color: #ff5a1f;
  display: inline;
}

.sale-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.sale-filter-head strong {
  color: #ff5a1f;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.sale-clear {
  background: none;
  border: 0;
  color: #cfcfcf;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.sale-clear:hover { color: #ff5a1f; }

.sale-filter-group {
  margin: 0 0 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #2a2a2a;
}

.sale-filter-group h2 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.sale-filter-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #c8c8c8;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.28rem 0;
  cursor: pointer;
}

.sale-filter-group input {
  accent-color: #ff5a1f;
}

.sale-apply {
  width: 100%;
  border: 0;
  background: #ff5a1f;
  color: #fff;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.sale-apply:hover { background: #e24a14; }

.sale-manage {
  display: inline-block;
  margin-top: 0.9rem;
  color: #9a9a9a;
  font-size: 0.75rem;
  font-weight: 700;
}

.sale-manage:hover { color: #ff5a1f; }

.sale-main {
  padding: 1.1rem 1.2rem 2.4rem;
  background: #0c0c0c;
}

.sale-search {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.9fr auto;
  gap: 0.55rem;
  background: #171717;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  padding: 0.7rem;
}

.sale-search label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.sale-search span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8d8d8d;
}

.sale-search input,
.sale-search select,
.sale-toolbar select {
  background: #101010;
  color: #fff;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.55rem 0.6rem;
  font: inherit;
  font-size: 0.85rem;
  width: 100%;
}

.sale-search-btn {
  align-self: end;
  background: #ff5a1f;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.62rem 1.1rem;
  cursor: pointer;
  height: 42px;
}

.sale-search-btn:hover { background: #e24a14; }

.sale-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0 0.9rem;
}

.sale-toolbar p {
  margin: 0;
  color: #bdbdbd;
  font-size: 0.86rem;
  font-weight: 600;
}

.sale-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sale-toolbar-right label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #bdbdbd;
  font-size: 0.8rem;
  font-weight: 700;
}

.sale-view-toggle {
  display: flex;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
}

.sale-view-toggle button {
  background: #151515;
  color: #888;
  border: 0;
  width: 36px;
  height: 32px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.sale-view-toggle button svg { width: 16px; height: 16px; }
.sale-view-toggle button.is-active {
  background: #ff5a1f;
  color: #fff;
}

.sale-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.sale-grid.is-list {
  grid-template-columns: 1fr;
}

.sale-card {
  background: #171717;
  border: 1px solid #262626;
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.sale-card:hover { border-color: #ff5a1f; }

.sale-grid.is-list .sale-card {
  flex-direction: row;
  min-height: 170px;
}

.sale-card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  background: #1a1a1a;
  overflow: hidden;
}

.sale-grid.is-list .sale-card-media {
  width: 280px;
  flex-shrink: 0;
  aspect-ratio: auto;
  min-height: 170px;
}

.sale-card-media img,
.sale-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sale-ph {
  display: grid;
  place-items: center;
  color: #555;
  background: linear-gradient(160deg, #1d1d1d, #101010);
}

.sale-ph svg { width: 42px; height: 42px; }

.sale-featured {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff5a1f;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
}

.sale-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
}

.sale-heart svg { width: 15px; height: 15px; }

.sale-card-body { padding: 0.75rem 0.8rem 0.9rem; }

.sale-card-body h3 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.sale-loc {
  margin: 0 0 0.45rem;
  color: #9a9a9a;
  font-size: 0.75rem;
  font-weight: 600;
}

.sale-price {
  margin: 0 0 0.55rem;
  color: #ff5a1f;
  font-size: 1.05rem;
  font-weight: 800;
}

.sale-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  color: #b5b5b5;
  font-size: 0.72rem;
  font-weight: 600;
}

.sale-empty {
  grid-column: 1 / -1;
  background: #171717;
  border: 1px dashed #3a3a3a;
  border-radius: 12px;
  padding: 2.2rem 1.4rem;
  text-align: center;
}

.sale-empty h3 { margin: 0 0 0.4rem; }
.sale-empty p { color: #9a9a9a; margin: 0 0 0.9rem; }
.sale-empty a {
  color: #ff5a1f;
  font-weight: 800;
}

.sale-pager {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.sale-pager button {
  background: #171717;
  color: #fff;
  border: 1px solid #333;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.sale-pager button:hover { border-color: #ff5a1f; color: #ff5a1f; }

.sale-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.sale-overlay[hidden] { display: none; }

.sale-overlay-card {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  background: #141414;
  border: 1px solid #2c2c2c;
  border-radius: 14px;
}

.sale-overlay-close {
  position: sticky;
  top: 8px;
  float: right;
  margin: 8px 8px 0 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #222;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
}

.sale-detail-photos {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.4rem;
  background: #000;
}

.sale-detail-photos img,
.sale-detail-photos .sale-ph {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.sale-detail-photos .sale-thumbs {
  display: grid;
  gap: 0.4rem;
}

.sale-detail-photos .sale-thumbs img,
.sale-detail-photos .sale-thumbs .sale-ph {
  height: 158px;
}

.sale-detail-copy { padding: 1.1rem 1.2rem 1.4rem; }
.sale-detail-copy h2 { margin: 0 0 0.3rem; font-size: 1.35rem; }
.sale-detail-copy .sale-price { font-size: 1.4rem; }
.sale-detail-actions { display: flex; gap: 0.55rem; flex-wrap: wrap; margin: 1rem 0; }
.sale-detail-actions a {
  text-decoration: none;
  color: #fff;
  background: #ff5a1f;
  font-weight: 800;
  padding: 0.7rem 1rem;
  border-radius: 8px;
}
.sale-detail-actions a.sale-call { background: #000; border: 2px solid #ff5a1f; }
.sale-detail-copy p { color: #c5c5c5; }

.sale-detail-page .sale-detail-wrap {
  width: min(1080px, calc(100% - 2rem));
  margin: 1.2rem auto 2.4rem;
}

@media (max-width: 1200px) {
  .sale-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .sale-shell { grid-template-columns: 1fr; }
  .sale-sidebar { border-right: 0; border-bottom: 1px solid #262626; }
  .sale-search { grid-template-columns: 1fr 1fr; }
  .sale-search-btn { grid-column: 1 / -1; }
  .sale-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sale-grid.is-list .sale-card { flex-direction: column; }
  .sale-grid.is-list .sale-card-media { width: 100%; min-height: 0; aspect-ratio: 16 / 11; }
  .sale-detail-photos { grid-template-columns: 1fr; }
  .sale-detail-photos img,
  .sale-detail-photos .sale-ph,
  .sale-detail-photos .sale-thumbs img,
  .sale-detail-photos .sale-thumbs .sale-ph { height: 220px; }
}

@media (max-width: 640px) {
  .sale-grid { grid-template-columns: 1fr; }
  .sale-search { grid-template-columns: 1fr; }
}
