/* A classifieds listing (root/classified/show) on faxo.css's colors, light and dark. */
.fx-classified-page { background: var(--bg); padding-bottom: 96px; }
.fx-cl-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 15px; padding: 14px 0 10px; color: var(--secondary); }
.fx-cl-crumbs a { color: var(--accent); text-decoration: none; }
.fx-cl { color: var(--label); }
.fx-cl a { color: var(--accent); text-decoration: none; }

/* gallery: swipe on phones (scroll snap), thumbnails below */
.fx-cl-media { position: relative; }
.fx-cl-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px;
  background: var(--fill); aspect-ratio: 1 / 1; outline: none; }
.fx-cl-gallery::-webkit-scrollbar { display: none; }
.fx-cl-gallery:focus-visible { box-shadow: 0 0 0 3px var(--focus); }
.fx-cl-gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; display: block; }
.fx-cl-count { position: absolute; right: 10px; top: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }
.fx-cl-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.fx-cl-thumbs::-webkit-scrollbar { display: none; }
.fx-cl-thumb { flex: 0 0 auto; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  background: var(--fill); opacity: .55; transition: opacity .15s; outline-offset: 2px; }
.fx-cl-thumb.on { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.fx-cl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-cl-nophoto { aspect-ratio: 4 / 3; border-radius: 16px; background: var(--fill); color: var(--secondary); display: grid; place-items: center; }

.fx-cl-title { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; margin: 16px 0 4px; overflow-wrap: anywhere; }
.fx-cl-price { font-size: 24px; font-weight: 700; margin: 2px 0; }
.fx-cl-sub { color: var(--secondary); font-size: 15px; }
.fx-cl-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin: 16px 0 6px; }
.fx-cl .fx-cl-actions .fx-btn { color: var(--label); }
.fx-cl .fx-cl-actions .fx-btn.primary { color: #fff; }
.fx-cl-note { color: var(--secondary); font-size: 13px; margin: 4px 0 0; }

.fx-cl-facts { margin: 18px 0 0; background: var(--fill); border-radius: 12px; padding: 0 14px; }
.fx-cl-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 16px; }
.fx-cl-facts div + div { border-top: 0.5px solid var(--separator); }
.fx-cl-facts dt { color: var(--secondary); }
.fx-cl-facts dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }

.fx-cl-sec h2 { font-size: 22px; font-weight: 700; margin: 28px 0 10px; }
.fx-cl-about p { font-size: 17px; line-height: 1.55; margin: 0 0 12px; overflow-wrap: anywhere; }
.fx-cl-map { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--fill); }
.fx-cl-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.fx-cl-safety { margin: 24px 0 0; background: var(--fill); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; }
.fx-cl-safety span { color: var(--secondary); font-size: 15px; line-height: 1.45; }
.fx-cl-more { display: block; margin: 18px 0 0; font-size: 17px; font-weight: 600; }

/* wider: gallery, description, map and safety on the left; title/price/buttons/facts on the right,
   sticky for the whole page */
@media (min-width: 760px) {
  .fx-cl { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .fx-cl > * { grid-column: 1; }
  .fx-cl > .fx-cl-info { grid-column: 2; grid-row: 1 / span 6; }
  .fx-cl-gallery { aspect-ratio: 4 / 3; }
  .fx-cl-title { margin-top: 0; font-size: 30px; }
  .fx-cl-info { position: sticky; top: 72px; align-self: start; }
}
