@charset "UTF-8";
/* Eyefind Annonces : catalogue (eyefind-annonces.php) et fiche
   (annonces/annonce.php). Chargé via annonces_css_tag(). La vue carte garde
   ses styles de style.css (.annonces-map-*). */
.an-body {
  --an-grad: linear-gradient(120deg, #0b57d0 0%, #1a73e8 55%, #1a8fd6 100%);
  --an-price: #188038;
  --an-radius: 18px;
}
:root[data-theme="dark"] .an-body,
.an-body {
  --an-price: #188038;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .an-body {
    --an-price: #81c995;
  }
}
:root[data-theme="dark"] .an-body {
  --an-price: #81c995;
}

/* width: 100% : sans ça, dans le body en colonne flexible, la page prenait
   la largeur de son contenu le plus large (rangée de catégories) et
   débordait de l'écran sur téléphone. */
.an-page {
  width: 100%;
  min-width: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px 60px;
  box-sizing: border-box;
}
.an-page *,
.an-page *::before,
.an-page *::after {
  box-sizing: border-box;
}

/* ---- Boutons ------------------------------------------------------------- */
.an-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text) !important;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}
.an-btn:hover {
  border-color: var(--border-hover);
  background: var(--btn-bg);
}
.an-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.an-btn-primary {
  border-color: transparent;
  background: var(--an-grad);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(26, 115, 232, 0.28);
}
.an-btn-primary:hover {
  border-color: transparent;
  background: var(--an-grad);
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.an-btn-light {
  border-color: transparent;
  background: #fff;
  color: #0b57d0 !important;
}
.an-btn-light:hover {
  background: #fff;
  filter: brightness(0.96);
}
.an-btn-block {
  width: 100%;
  padding: 13px 18px;
  font-size: 15px;
}

/* ---- En-tête du catalogue -------------------------------------------------- */
.an-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 34px 28px 30px;
  border-radius: 26px;
  background: var(--an-grad);
  color: #fff;
  text-align: center;
}
.an-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.22), transparent 38%),
    radial-gradient(circle at 88% 85%, rgba(120, 210, 255, 0.28), transparent 40%);
  pointer-events: none;
}
.an-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.an-hero-logo img {
  height: 46px;
  width: auto;
}
.an-hero h1 {
  margin: 12px 0 4px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.an-hero h1 span {
  opacity: 0.85;
  font-weight: 500;
}
.an-hero-sub {
  margin: 0 0 20px;
  font-size: 15px;
  opacity: 0.85;
}
.an-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(8, 30, 70, 0.35);
}
.an-search-icon {
  display: flex;
  padding-left: 12px;
  color: #5f6368;
}
.an-search-icon svg {
  width: 20px;
  height: 20px;
}
.an-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 6px;
  border: 0;
  outline: none;
  background: transparent;
  color: #202124;
  font: inherit;
  font-size: 15px;
}
.an-search select {
  max-width: 190px;
  padding: 10px 12px;
  border: 0;
  border-left: 1px solid #e3e5e8;
  border-radius: 0;
  background: transparent;
  color: #3c4043;
  font: inherit;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}
.an-search button {
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: #202124;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s;
}
.an-search button:hover {
  filter: brightness(1.3);
}

/* ---- Catégories -------------------------------------------------------------- */
/* Grille qui s'adapte à la largeur : toutes les catégories visibles, jamais
   coupées (plus de rangée qui déborde sur téléphone). */
.an-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 0 0 26px;
}
.an-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px 12px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  color: var(--text) !important;
  text-decoration: none !important;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.an-cat:hover {
  border-color: var(--c);
  transform: translateY(-2px);
}
.an-cat.is-active {
  border-color: var(--c);
  box-shadow: inset 0 0 0 1px var(--c);
  background: var(--bg);
  background: color-mix(in srgb, var(--c) 8%, var(--bg));
}
.an-cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  position: relative;
  border-radius: 12px;
  color: var(--c);
}
.an-cat-icon svg {
  width: 22px;
  height: 22px;
}
.an-cat-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.an-cat-text strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.an-cat-text span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- Barre d'outils ------------------------------------------------------------ */
.an-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 18px;
}
.an-toolbar-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  min-width: 0;
}
.an-toolbar-title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
.an-count {
  font-size: 14px;
  color: var(--text-muted);
}
.an-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--link-tint);
  color: var(--link) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}
.an-filter-chip span {
  font-size: 10px;
}
.an-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.an-seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}
.an-seg a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--text-muted) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.an-seg a svg {
  width: 15px;
  height: 15px;
}
.an-seg a:hover {
  color: var(--text) !important;
}
.an-seg a.is-active {
  background: var(--btn-bg);
  color: var(--text) !important;
}
.an-seg-count {
  padding: 0 6px;
  border-radius: 999px;
  background: var(--link-tint);
  color: var(--link);
  font-size: 11px;
}

/* ---- Cartes d'annonces ------------------------------------------------------------ */
.an-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.an-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--an-radius);
  overflow: hidden;
  background: var(--bg);
  color: var(--text) !important;
  text-decoration: none !important;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.an-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px var(--shadow-soft);
}
.an-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--btn-bg);
}
/* Fond flouté tiré de la photo : l'image entière reste visible. */
.an-card-media::before {
  content: "";
  position: absolute;
  inset: -20px;
  background-image: var(--img, none);
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.2);
  opacity: 0.55;
}
.an-card-media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s;
}
.an-card:hover .an-card-media img {
  transform: scale(1.04);
}
.an-card-fallback {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--btn-bg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, var(--btn-bg)), var(--btn-bg));
  color: var(--c);
}
.an-card-fallback svg {
  width: 46px;
  height: 46px;
  opacity: 0.85;
}
.an-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.72);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  box-shadow: inset 3px 0 0 var(--c);
}
.an-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  padding: 12px 14px 14px;
}
.an-card-price {
  color: var(--an-price);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.an-card-price.is-open {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}
.an-card-title {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.an-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.an-card-loc {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.an-card-loc svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.an-card-seller {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.an-avatar-xs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--link-tint);
  color: var(--link);
  font-size: 9.5px;
  font-weight: 700;
}

/* ---- États vides, notes, appel à publier ------------------------------------ */
.an-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 50px 20px;
  border: 1px dashed var(--border);
  border-radius: 22px;
  color: var(--text-muted);
  text-align: center;
}
.an-empty p {
  margin: 0;
  font-size: 15px;
}
.an-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--link-tint);
  color: var(--link);
}
.an-empty-icon svg {
  width: 28px;
  height: 28px;
}
.an-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.an-cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 40px 0 0;
  padding: 26px 30px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--an-grad);
  color: #fff;
}
.an-cta h2 {
  margin: 0 0 4px;
  font-size: 21px;
}
.an-cta p {
  margin: 0;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}

/* ---- Fiche d'annonce ------------------------------------------------------------ */
.an-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.an-crumbs a {
  color: var(--text-muted);
}
.an-crumbs a:hover {
  color: var(--text);
}
.an-crumbs > span:last-child {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.an-status-note {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 14px;
  font-weight: 500;
}
.an-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}
.an-detail-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.an-detail-side {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.an-card-box {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--an-radius);
  background: var(--bg);
}
.an-card-box h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
}
.an-card-box h2 span {
  color: var(--text-muted);
  font-weight: 500;
}

/* Galerie */
.an-gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  background: #111;
}
.an-gallery-stage::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: var(--img, none);
  background-size: cover;
  background-position: center;
  filter: blur(34px) saturate(1.2) brightness(0.8);
  opacity: 0.8;
}
.an-gallery-stage img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.an-gallery-fallback {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #1c1d21;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, #1c1d21), #1c1d21);
  color: var(--c);
}
.an-gallery-fallback svg {
  width: 84px;
  height: 84px;
  opacity: 0.8;
}
.an-gallery-nav {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #202124;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.15s;
}
.an-gallery-nav:hover {
  transform: scale(1.08);
}
.an-gallery-nav svg {
  width: 20px;
  height: 20px;
}
.an-gallery-prev {
  left: 14px;
}
.an-gallery-next {
  right: 14px;
}
.an-gallery-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.72);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}
.an-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.an-gallery-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: var(--btn-bg);
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.15s, border-color 0.15s;
}
.an-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.an-gallery-thumb:hover,
.an-gallery-thumb.is-active {
  opacity: 1;
}
.an-gallery-thumb.is-active {
  border-color: var(--link);
}

/* En-tête de la fiche */
.an-chip {
  display: inline-flex;
  padding: 4px 11px;
  position: relative;
  border-radius: 999px;
  color: var(--c) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}
.an-head h1 {
  margin: 10px 0 6px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.an-head-price {
  display: none;
  margin: 0 0 8px;
  color: var(--an-price);
  font-size: 26px;
  font-weight: 800;
}
.an-head-price.is-open,
.an-buy-price.is-open,
.an-sticky-price.is-open {
  color: var(--text);
}
.an-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}
.an-head-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.an-head-meta svg {
  width: 15px;
  height: 15px;
}
.an-desc {
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.an-map {
  border-radius: 14px;
  overflow: hidden;
}

/* Colonne d'action */
.an-buy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.an-buy-price {
  margin: 0 0 4px;
  color: var(--an-price);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.an-buy-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
.an-buy .fav-btn-block {
  width: 100%;
}
.an-side-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.an-seller-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.an-seller-row strong {
  display: block;
  font-size: 16px;
}
.an-seller-row span:not(.an-avatar) {
  font-size: 12.5px;
  color: var(--text-muted);
}
.an-avatar {
  --hue: 220;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: hsl(var(--hue), 55%, 42%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}
.an-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.an-seller-stat {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-muted);
}
.an-seller-stat strong {
  color: var(--text);
}
.an-safety {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--btn-bg);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}
.an-safety svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--link);
}
.an-safety p {
  margin: 0;
}
.an-report {
  align-self: center;
  font-size: 12.5px;
  color: var(--text-muted) !important;
}

/* Annonces similaires */
.an-similar {
  margin-top: 40px;
}
.an-similar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.an-similar-head h2 {
  margin: 0;
  font-size: 21px;
}
.an-similar-head a {
  font-size: 14px;
  font-weight: 600;
}

/* Barre collante téléphone (prix + contacter) */
.an-sticky-bar {
  display: none;
}

/* ---- Tablette / téléphone ------------------------------------------------------- */
@media (max-width: 900px) {
  .an-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .an-detail-side {
    position: static;
  }
  .an-head-price {
    display: block;
  }
  .an-buy-price {
    display: none;
  }
}
@media (max-width: 640px) {
  .an-page {
    padding: 10px 12px 40px;
  }
  .an-hero {
    padding: 24px 16px 18px;
    border-radius: 22px;
  }
  .an-hero-logo img {
    height: 36px;
  }
  .an-hero h1 {
    font-size: 24px;
  }
  .an-hero h1 span {
    display: block;
  }
  .an-hero-sub {
    margin-bottom: 14px;
    font-size: 13.5px;
  }
  .an-search {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 8px;
  }
  .an-search input {
    flex-basis: calc(100% - 44px);
  }
  .an-search select {
    flex: 1;
    max-width: none;
    border-left: 0;
    border-radius: 12px;
    background: #f1f3f4;
  }
  .an-search button {
    padding: 11px 18px;
  }
  .an-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px;
  }
  .an-cat {
    gap: 9px;
    padding: 8px 10px 8px 8px;
    border-radius: 14px;
  }
  .an-cat-text strong {
    font-size: 13px;
  }
  .an-cat-text span {
    font-size: 11.5px;
  }
  .an-cat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .an-toolbar-title h2 {
    font-size: 19px;
  }
  .an-toolbar-actions {
    width: 100%;
  }
  .an-publish {
    order: -1;
    width: 100%;
  }
  .an-seg {
    flex: 1 1 auto;
  }
  .an-seg a {
    flex: 1;
    justify-content: center;
    padding: 7px 8px;
  }
  .an-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .an-card {
    border-radius: 14px;
  }
  .an-card-body {
    padding: 9px 10px 11px;
  }
  .an-card-price {
    font-size: 16px;
  }
  .an-card-title {
    font-size: 13px;
  }
  .an-card-cat {
    top: 7px;
    left: 7px;
    padding: 3px 8px;
    font-size: 10.5px;
  }
  .an-card-seller {
    display: none;
  }
  .an-grid-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
  }
  .an-grid-scroll .an-card {
    flex: 0 0 62%;
    scroll-snap-align: start;
  }
  .an-cta {
    margin-top: 28px;
    padding: 20px;
    border-radius: 20px;
  }
  .an-cta .an-btn {
    width: 100%;
  }
  .an-gallery-stage {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }
  .an-gallery-nav {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }
  .an-card-box {
    padding: 16px;
  }
  .an-head h1 {
    font-size: 21px;
  }
  .an-desc {
    font-size: 14.5px;
  }
  /* Barre du bas : ni le contenu ni le pied de page ne passent dessous. */
  .an-has-sticky {
    padding-bottom: 72px;
  }
  .an-sticky-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px);
  }
  .an-sticky-price {
    color: var(--an-price);
    font-size: 19px;
    font-weight: 800;
  }
  .an-sticky-bar .an-btn {
    padding: 11px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .an-card,
  .an-card-media img,
  .an-cat,
  .an-btn {
    transition: none;
  }
}

/* Pastilles teintées à la couleur de la catégorie, sans color-mix(). */
.an-cat-icon::before,
.an-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--c);
  opacity: 0.16;
  z-index: -1;
}
.an-cat-icon,
.an-chip {
  isolation: isolate;
}
/* Couleurs de catégorie éclaircies en thème sombre (le vert "Immobilier"
   ou le bleu "Véhicules" étaient peu lisibles sur fond sombre). */
:root[data-theme="dark"] .an-cat-icon,
:root[data-theme="dark"] .an-card-fallback svg,
:root[data-theme="dark"] .an-gallery-fallback svg {
  filter: brightness(1.55) saturate(1.1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .an-cat-icon,
  :root:not([data-theme="light"]) .an-card-fallback svg,
  :root:not([data-theme="light"]) .an-gallery-fallback svg {
    filter: brightness(1.55) saturate(1.1);
  }
}
/* Badge de catégorie de la fiche : texte lisible, liseré à la couleur. */
.an-chip {
  color: var(--text) !important;
  box-shadow: inset 0 0 0 1px var(--c);
}
.an-chip::before {
  opacity: 0.22;
}
/* Petits téléphones : "Mes annonces" est déjà dans le menu du compte. */
@media (max-width: 420px) {
  .annonces-topbar .topbar-links a[href$="mes-annonces.php"] {
    display: none;
  }
}

/* ==========================================================================
   Mise en page commune (includes/annonces/layout.php) : en-tête façon
   petites annonces, catégories, colonnes de pub, bannière.
   ========================================================================== */
.an-top {
  position: sticky;
  top: 0;
  z-index: 30;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.an-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 20px 8px;
  box-sizing: border-box;
}
.an-top-logo {
  display: flex;
  flex-shrink: 0;
}
.an-top-logo img {
  height: 36px;
  width: auto;
}
.an-top-publish {
  flex-shrink: 0;
  padding: 11px 18px;
}
.an-top-publish svg {
  width: 18px;
  height: 18px;
}
.an-top-search {
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  min-width: 0;
  max-width: 460px;
  padding: 4px 4px 4px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  transition: border-color 0.15s, background 0.15s;
}
.an-top-search:focus-within {
  border-color: var(--link);
  background: var(--bg);
}
.an-top-search input {
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
}
.an-top-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--an-grad);
  color: #fff;
  cursor: pointer;
}
.an-top-search button svg {
  width: 17px;
  height: 17px;
}
.an-top-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.an-top-icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 64px;
  padding: 4px 6px;
  border-radius: 12px;
  color: var(--text) !important;
  font-size: 11.5px;
  text-decoration: none !important;
  transition: background 0.15s;
}
.an-top-icons a:hover,
.an-top-icons a.is-current {
  background: var(--btn-bg);
}
.an-top-icons svg {
  width: 22px;
  height: 22px;
}
.an-top-icon-wrap {
  position: relative;
  display: flex;
}
.an-top-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  min-width: 17px;
  padding: 1px 4px;
  border-radius: 999px;
  background: #ea4335;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}
.an-top-account {
  flex-shrink: 0;
  gap: 10px;
}
.an-top-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 4px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px 8px;
  box-sizing: border-box;
}
.an-top-cats a {
  position: relative;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text) !important;
  font-size: 14px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.an-top-cats a:hover {
  background: var(--btn-bg);
}
.an-top-cats a.is-current {
  background: var(--link-tint);
  color: var(--link) !important;
  font-weight: 600;
}
.an-top-cats-map {
  font-weight: 600;
}

/* Colonnes de pub (grands écrans) + colonne principale. */
.an-shell {
  display: block;
  flex: 1 0 auto;
  width: 100%;
}
.an-rail {
  display: none;
}
.an-shell-main {
  min-width: 0;
}
@media (min-width: 1560px) {
  .an-shell.has-rails {
    display: grid;
    grid-template-columns: 170px minmax(0, 1180px) 170px;
    justify-content: center;
    gap: 24px;
    padding: 0 16px;
  }
  .an-shell.has-rails .an-rail {
    display: block;
    padding-top: 18px;
  }
  .an-shell.has-rails .an-rail .an-ad {
    position: sticky;
    top: 132px;
  }
  .an-shell.has-rails .an-page {
    padding-left: 0;
    padding-right: 0;
  }
  .an-shell.has-rails .an-banner-slot {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Pubs : chaque emplacement est un cadre aux proportions fixes, l'image y est
   redimensionnée automatiquement (entière, jamais coupée ni déformée) et le
   vide éventuel est comblé par un fond flouté tiré de l'image (--img). Toutes
   les tailles d'image sont donc acceptées. */
.an-ad {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px;
  background: var(--btn-bg);
  text-decoration: none !important;
}
.an-ad::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: -1;
  background-image: var(--img, none);
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.2);
  opacity: 0.75;
}
.an-ad img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.an-ad-label {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.62);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.an-banner-slot {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
}
/* Proportions des cadres : 1200 × 250, 160 × 600, 300 × 250. */
.an-ad-banniere {
  aspect-ratio: 24 / 5;
}
.an-ad-cote {
  width: 170px;
  aspect-ratio: 4 / 15;
}
.an-ad-pave {
  aspect-ratio: 6 / 5;
}
.an-grid-ad {
  display: flex;
  min-width: 0;
}
/* Dans la liste : l'encart prend la hauteur de la rangée d'annonces. */
.an-grid-ad .an-ad-pave {
  width: 100%;
  aspect-ratio: auto;
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: var(--an-radius);
}
.an-detail-side .an-ad-pave {
  border: 1px solid var(--border);
}

/* ---- Accueil du catalogue ------------------------------------------------ */
.an-sell {
  position: relative;
  overflow: hidden;
  margin: 4px 0 30px;
  padding: 28px 24px 30px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.16), rgba(26, 143, 214, 0.08));
  text-align: center;
}
.an-sell h1 {
  position: relative;
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
}
.an-sell p {
  position: relative;
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14.5px;
}
.an-sell .an-btn {
  position: relative;
  padding: 12px 22px;
  font-size: 15px;
}
.an-sell .an-btn svg {
  width: 18px;
  height: 18px;
}
.an-sell-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--link);
  opacity: 0.14;
  pointer-events: none;
}
.an-sell-shape-a {
  left: -60px;
  bottom: -90px;
  width: 220px;
  height: 180px;
  border-radius: 45% 55% 40% 60%;
}
.an-sell-shape-b {
  top: -40px;
  right: 30px;
  width: 70px;
  height: 120px;
  border-radius: 0 0 40px 40px;
  opacity: 0.22;
}
.an-block {
  margin: 0 0 30px;
}
.an-block-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
}
.an-recent {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.an-recent:empty {
  display: none;
}
.an-recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text) !important;
  font-size: 14px;
  text-decoration: none !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.an-recent-chip:hover {
  border-color: var(--link);
}
.an-recent-chip svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}
.an-recent-chip.is-alert svg {
  color: var(--link);
}
.an-recent-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.an-recent-empty[hidden] {
  display: none;
}
.an-recent-empty strong {
  font-size: 16px;
}
.an-recent-empty span {
  font-size: 13px;
  color: var(--text-muted);
}
.an-trends {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.an-trend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: var(--text) !important;
  text-decoration: none !important;
}
.an-trend-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--btn-bg);
  background-image: var(--img, none);
  background-size: cover;
  background-position: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.an-trend:hover .an-trend-media {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px var(--shadow-soft);
}
.an-trend-media.is-icon {
  position: relative;
  color: var(--c);
  isolation: isolate;
}
.an-trend-media.is-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c);
  opacity: 0.14;
  z-index: -1;
}
.an-trend-media svg {
  width: 48px;
  height: 48px;
}
.an-trend-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 2px;
}
.an-trend-text strong {
  font-size: 15px;
  font-weight: 600;
}
.an-trend-text span {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---- Mes annonces ---------------------------------------------------------- */
.an-mine-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 8px 0 20px;
}
.an-mine-head h1 {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 700;
}
.an-mine-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.an-mine-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}
.an-mine-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.an-mine-stats strong {
  font-size: 24px;
  font-weight: 800;
}
.an-mine-stats span {
  font-size: 12.5px;
  color: var(--text-muted);
}
.an-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--border);
}
.an-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  color: var(--text-muted) !important;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}
.an-tabs a span {
  padding: 0 7px;
  border-radius: 999px;
  background: var(--btn-bg);
  font-size: 12px;
}
.an-tabs a.is-active {
  border-bottom-color: var(--link);
  color: var(--link) !important;
}
.an-mine-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.an-mine-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
}
.an-mine-item.is-removed,
.an-mine-item.is-sold {
  opacity: 0.78;
}
.an-mine-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--btn-bg);
}
.an-mine-thumb::before {
  content: "";
  position: absolute;
  inset: -12px;
  background-image: var(--img, none);
  background-size: cover;
  filter: blur(14px);
  opacity: 0.5;
}
.an-mine-thumb img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.an-mine-thumb span {
  color: var(--c);
}
.an-mine-thumb svg {
  width: 34px;
  height: 34px;
}
.an-mine-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.an-mine-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.an-status {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.an-status-published {
  background: var(--success-bg);
  color: var(--success);
}
.an-status-sold {
  background: var(--btn-bg);
  color: var(--text-muted);
}
.an-status-removed {
  background: var(--danger-bg);
  color: var(--danger);
}
.an-mine-cat {
  font-size: 12px;
  color: var(--text-muted);
}
.an-mine-title {
  color: var(--text) !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}
.an-mine-title:hover {
  color: var(--link) !important;
}
.an-mine-price {
  color: var(--an-price);
  font-size: 17px;
  font-weight: 800;
}
.an-mine-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}
.an-mine-fav {
  color: #ea4335;
  font-weight: 600;
}
.an-mine-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- Déposer / Modifier ---------------------------------------------------- */
.an-form-page {
  max-width: 760px;
}
.an-form-page h1 {
  margin: 10px 0 18px;
  font-size: 28px;
  font-weight: 700;
}
.an-form-page .account-form {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
}

/* ---- En-tête et blocs : tablette / téléphone ------------------------------- */
@media (max-width: 1100px) {
  .an-top-icons a {
    min-width: 0;
    padding: 8px;
  }
  .an-top-icons a > span:last-child {
    display: none;
  }
}
@media (max-width: 760px) {
  .an-top-row {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px 8px;
  }
  .an-top-logo img {
    height: 30px;
  }
  .an-top-publish {
    order: 2;
    padding: 9px 12px;
  }
  .an-top-publish span {
    display: none;
  }
  .an-top-icons {
    order: 3;
    gap: 0;
  }
  .an-top-account {
    order: 4;
  }
  .an-top-search {
    order: 5;
    flex: 1 1 100%;
    max-width: none;
  }
  .an-top-cats {
    justify-content: flex-start;
    padding: 0 8px 8px;
  }
  .an-top-cats a {
    padding: 5px 10px;
    font-size: 13px;
  }
  .an-banner-slot {
    margin-top: 12px;
    padding: 0 12px;
  }
  /* Téléphone : bannière un peu plus haute pour rester lisible. */
  .an-ad-banniere {
    aspect-ratio: 3 / 1;
  }
  .an-sell {
    padding: 22px 16px 24px;
    border-radius: 18px;
  }
  .an-sell h1 {
    font-size: 21px;
  }
  .an-sell .an-btn {
    width: 100%;
  }
  .an-block-title {
    font-size: 18px;
  }
  .an-trends {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .an-trend-text strong {
    font-size: 14px;
  }
  .an-mine-head h1,
  .an-form-page h1 {
    font-size: 23px;
  }
  .an-mine-head .an-btn {
    width: 100%;
  }
  .an-mine-stats {
    gap: 8px;
  }
  .an-mine-stats > div {
    padding: 10px 12px;
  }
  .an-mine-stats strong {
    font-size: 19px;
  }
  .an-mine-stats span {
    font-size: 11.5px;
  }
  .an-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .an-mine-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }
  .an-mine-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .an-mine-actions .an-btn {
    flex: 1;
  }
  .an-form-page .account-form {
    padding: 16px;
  }
}
@media (max-width: 420px) {
  .an-top-icons a {
    padding: 6px;
  }
  .an-top-icons svg {
    width: 20px;
    height: 20px;
  }
}

/* Encart de pub de la fiche : format "pavé", jamais géant sur téléphone. */
.an-detail-side .an-ad-pave {
  width: 100%;
  max-width: 336px;
  margin: 0 auto;
}

/* Téléphone, visiteur non connecté : les raccourcis mènent tous à la
   connexion, le bouton "Se connecter" suffit (il reste sur la 1re ligne). */
@media (max-width: 760px) {
  .an-top-icons.is-guest {
    display: none;
  }
  .an-top-icons.is-guest + .an-top-account {
    margin-left: auto;
  }
}

/* Bouton "Retour à l'accueil d'Eyefind" (en-tête des Annonces). */
.an-top-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 12px 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.an-top-home:hover {
  border-color: var(--link);
  background: var(--link-tint);
}
.an-top-home svg {
  width: 17px;
  height: 17px;
  color: var(--link);
}
@media (max-width: 1100px) {
  .an-top-home {
    padding: 8px;
  }
  .an-top-home span {
    display: none;
  }
}
@media (max-width: 760px) {
  .an-top-home {
    order: 0;
    padding: 7px;
  }
}

/* Petit téléphone connecté : "Mes alertes" et "Mes annonces" sont déjà dans
   le menu du compte ; on les masque pour que tout tienne sur une ligne. */
@media (max-width: 480px) {
  .an-top-icons .an-top-ic-secondary {
    display: none;
  }
}

/* Colonnes latérales : le cadre suit la hauteur réelle de l'image (plus de
   vide flouté en haut et en bas quand la pub n'est pas au format 160 × 600). */
.an-ad-cote {
  aspect-ratio: auto;
  max-height: calc(100vh - 150px);
}
.an-ad-cote img {
  height: auto;
  max-height: calc(100vh - 150px);
}
.an-ad-cote::before {
  display: none;
}

/* ==========================================================================
   Filtres, caractéristiques et remontées (2026-10-15) :
   includes/annonces/details.php et includes/annonces/bumps.php.
   ========================================================================== */
.an-filters {
  margin: 0 0 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.an-filters > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.an-filters > summary::-webkit-details-marker {
  display: none;
}
.an-filters > summary svg {
  width: 18px;
  height: 18px;
}
.an-filters-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--link);
  color: #fff;
  font-size: 12px;
}
.an-filters-hint {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 400;
}
.an-filters-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 4px 16px 16px;
}
.an-filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.an-filter-field input,
.an-filter-field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  box-sizing: border-box;
}
.an-filter-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  color: var(--text);
}
.an-filter-check input {
  width: auto;
}
.an-filters-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 1 / -1;
}

.an-card-details {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.an-card-bumped {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(24, 128, 56, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.an-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 18px;
  margin: 0;
}
.an-specs > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--btn-bg);
}
.an-specs dt {
  color: var(--text-muted);
  font-size: 12.5px;
}
.an-specs dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.an-mine-stats {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.an-mine-bumps a {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
}
.an-btn-bump {
  border-color: rgba(24, 128, 56, 0.45);
  color: #188038 !important;
}
.an-btn.is-disabled {
  opacity: 0.6;
  cursor: default;
  font-weight: 500;
  font-size: 12.5px;
}
.an-mine-actions form {
  margin: 0;
}
.an-mine-actions form .an-btn {
  width: 100%;
}

.an-details-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 16px;
  margin: 0;
  padding: 14px 16px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.an-details-fields[hidden] {
  display: none;
}
.an-details-fields legend {
  padding: 0 6px;
  font-weight: 600;
}
.an-details-fields legend small {
  color: var(--text-muted);
  font-weight: 400;
}
.an-details-check {
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
}
.an-details-check input {
  width: auto !important;
}
