/* Dashboard parts of the site card (front-cards.css): status pill, action buttons, saved heart button, links.
 * Loaded after front-cards.css. Everything stays inside #ads. */
#ads .fc-card { position: relative; }
#ads .fc-title-link { display: block; text-decoration: none; color: inherit; border: 0; padding: 0; background: none; box-shadow: none; backdrop-filter: none; border-radius: 0; font-weight: inherit; }
#ads .fc-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 200px; background: #f1f1f1; color: #b8b8b8; font-size: 48px; }

/* saved heart: the site's .fc-like is a span, here it is a button */
#ads button.fc-like { border: 0; cursor: pointer; font: inherit; line-height: 0; }
#ads button.fc-like:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* status of the member's own ad, top right of the picture */
#ads .fc-status {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px;
  color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
#ads .fc-status i { font-size: 15px; }

/* a tag that is a link (URL of the ad) */
#ads a.fc-mc-tag.fc-tag-link { text-decoration: none; color: inherit; background: transparent; box-shadow: none; backdrop-filter: none; font-family: Nunito, sans-serif; }
#ads a.fc-mc-tag.fc-tag-link:hover { border-color: var(--teal); color: var(--teal); }
#ads .fc-mc-tag i { font-size: 15px; line-height: 1; }

/* action buttons (edit / sold / view / delete) */
#ads .fc-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 8px 0 4px; }
#ads .fc-btn {
  width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: #333; font-size: 18px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .15s ease, opacity .15s ease;
}
#ads .fc-btn:hover { transform: translateY(-1px); opacity: .9; }
#ads .fc-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
#ads .fc-btn .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#ads .fc-btn.btn-sold { background: #111827; }
#ads .fc-btn.btn-view { background: #008374; }
#ads .fc-btn.btn-delete { background: #dc3545; }
#ads .fc-btn.btn-edit { background: #f6bb26; color: #333; }
#ads.ads-grid .fc-actions { justify-content: flex-start; margin: 6px 0 0; }
#ads.ads-grid .fc-btn { width: 34px; height: 34px; font-size: 16px; }

/* grid columns: as wide as the site's grid cards (the dashboard list is narrower than the site), equal heights;
   phones: two columns at the site's 0.68 zoom */
#ads.ads-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important; align-items: stretch !important; }
#ads.ads-grid .fc-card { height: 100%; }
#ads.ads-list .fc-card { width: 100%; }
@media (max-width: 560px) {
  #ads.ads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; zoom: .68; }
}
