/* V1 : réglages propres à la copie Next.js (chargés après les styles d'origine). */

/* Le <body> d'origine est porté par .v1-body (le vrai body appartient au layout). */
.v1-body { min-height: 100vh; }
html:has(.v1-body) { background: #fff; }
html:has(.v1-body.overlay-active), html:has(.v1-body.ttf-wpf-modal-active) { overflow: hidden; }

/* Couleurs des composants communs (formulaires, fenêtres, bandeau cookies). */
.v1-body, body:has(.v1-body) {
  --c-surface: #fff;
  --c-surface-2: #f7f3ec;
  --c-field: #fff;
  --c-ink: #000;
  --c-ink-soft: #3c3c3c;
  --c-line: #e3e3e3;
  --c-line-strong: #000;
  --c-accent: #ffd31a;
  --c-accent-soft: rgb(255 211 26 / 0.5);
  --c-btn: #000;
  --c-btn-ink: #fff;
  --c-radius: 0;
  --f-form-title: 28px;
  --f-form-title-w: 400;
}

/* Bandeau cookies : apparence du bandeau actuel (CookieYes, thème sombre). */
body:has(.v1-body) [aria-labelledby="consent-title"] {
  z-index: 999999; background: #1d1d1d; color: #fff; border: 0; border-radius: 6px;
  width: min(390px, calc(100vw - 32px)); left: 40px; bottom: 40px;
  padding: 24px 24px 22px; font-family: var(--font-equitan), sans-serif; font-size: 12px; line-height: 1.6;
  box-shadow: 0 -1px 10px rgb(0 0 0 / 0.17);
}
body:has(.v1-body) [aria-labelledby="consent-title"] p:first-child { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
body:has(.v1-body) [aria-labelledby="consent-title"] p { color: #fff; }
body:has(.v1-body) [aria-labelledby="consent-title"] button {
  border: 2px solid #fff; color: #fff; background: transparent; border-radius: 2px;
  font-size: 12px; font-weight: 500; padding: 8px 10px; min-height: 40px;
}
body:has(.v1-body) [aria-labelledby="consent-title"] button:last-child { background: #1863dc !important; border-color: #1863dc !important; color: #fff; }
body:has(.v1-body) [aria-labelledby="consent-title"] button:hover { opacity: 0.85; background: transparent; color: #fff; }
@media (max-width: 576px) {
  body:has(.v1-body) [aria-labelledby="consent-title"] { left: 0; right: 0; bottom: 0; width: 100%; border-radius: 0; }
  body:has(.v1-body) [aria-labelledby="consent-title"] > div:last-child { flex-direction: column-reverse; }
  body:has(.v1-body) [aria-labelledby="consent-title"] button { width: 100%; }
}

/* Carte d'annonce : règle du listing agent (inline dans WordPress). */
.box-vendeur .uagb-container-inner-blocks-wrap { flex-direction: row !important; }

/* Champ d'adresse de l'estimation : suggestions (remplace Google Places). */
.v1-pac { position: absolute; z-index: 1000; background: #fff; border-top: 1px solid #d9d9d9; box-shadow: 0 2px 6px rgb(0 0 0 / 0.3); font-family: Arial, sans-serif; overflow: hidden; }
.v1-pac div { padding: 0 4px; line-height: 30px; font-size: 11px; color: #515151; border-top: 1px solid #e6e6e6; cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v1-pac div:first-child { border-top: 0; }
.v1-pac div:hover, .v1-pac div.is-active { background: #ebf2fe; }
.v1-pac b { font-size: 13px; color: #000; font-weight: 400; padding-right: 3px; }

/* Visionneuse des photos de la fiche (remplace lightGallery). */
.v1-lg { position: fixed; inset: 0; z-index: 100000; background: #000; display: flex; flex-direction: column; }
.v1-lg__stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; position: relative; }
.v1-lg__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.v1-lg__bar { position: absolute; top: 0; left: 0; right: 0; height: 47px; display: flex; justify-content: space-between; align-items: center; color: #999; font: 16px/1 Arial, sans-serif; padding: 0 0 0 20px; z-index: 2; }
.v1-lg button { background: transparent; border: 0; color: #999; cursor: pointer; }
.v1-lg__close { width: 50px; height: 47px; font-size: 28px; }
.v1-lg__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: rgb(0 0 0 / 0.45) !important; border-radius: 2px; font-size: 22px; color: #999; z-index: 2; }
.v1-lg__prev { left: 20px; } .v1-lg__next { right: 20px; }
.v1-lg__thumbs { display: flex; gap: 5px; padding: 5px; background: #0d0a0a; overflow-x: auto; justify-content: center; }
.v1-lg__thumbs img { width: 100px; height: 80px; object-fit: cover; opacity: 0.6; cursor: pointer; border: 2px solid transparent; flex: none; }
.v1-lg__thumbs img.is-active { opacity: 1; border-color: #a90707; }

/* Blog : articles suivants, révélés au défilement (chargement JetEngine). */
[data-v1-more][hidden] { display: none !important; }

/* Vue carte /acheter/ /louer/ : pastilles de prix, groupes, fiche au clic (runtime/listmap.ts) */
.v1-mapmarkers { position: absolute; left: 0; top: 0; }
.v1-mapmark { position: absolute; left: 0; top: 0; translate: -50% -100%; margin: 0; padding: 5px 9px; border: 0; border-radius: 0; background: #ffcd00; color: #000; font: 500 13px/1.1 inherit; font-family: inherit; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 6px rgb(0 0 0 / .18); transition: background .2s, color .2s; }
.v1-mapmark::after { content: ''; position: absolute; left: 50%; bottom: -5px; translate: -50% 0; border: 5px solid transparent; border-bottom: 0; border-top-color: inherit; border-top-color: #ffcd00; }
.v1-mapmark:hover, .v1-mapmark:focus-visible { background: #000; color: #fff; z-index: 2; outline: none; }
.v1-mapmark:hover::after, .v1-mapmark:focus-visible::after { border-top-color: #000; }
.v1-mapmark--cluster { translate: -50% -50%; width: 38px; height: 38px; padding: 0; border-radius: 50%; background: #000; color: #fff; font-size: 14px; box-shadow: 0 0 0 6px rgb(255 205 0 / .55); }
.v1-mapmark--cluster::after { display: none; }
.v1-mapmark--cluster:hover { background: #ffcd00; color: #000; }
.v1-mappop { position: absolute; left: 0; top: 0; z-index: 5; }
.v1-mappop__in { position: absolute; left: 0; bottom: 34px; translate: -50% 0; width: 280px; background: #fff; box-shadow: 0 6px 24px rgb(0 0 0 / .18); }
.v1-mappop__in a { display: block; color: #000; text-decoration: none; }
.v1-mappop__in img { display: block; width: 100%; height: 170px; object-fit: cover; }
.v1-mappop__t { display: block; padding: 12px 14px 4px; font-size: 14px; line-height: 1.35; }
.v1-mappop__p { display: block; padding: 0 14px 14px; font-size: 15px; font-weight: 500; }
.v1-mappop__x { position: absolute; top: 6px; right: 6px; z-index: 1; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; color: #000; font-size: 18px; line-height: 1; cursor: pointer; }
/* Mobile : le bouton « Carte » de l'original ouvrait une zone vide (colonne
   carte masquée sous 768 px). La carte s'affiche ici au-dessus de la liste. */
@media (max-width: 767px) {
  .shop-list-wrapper.v1-map-on { flex-direction: column; }
  .shop-list-wrapper.v1-map-on .annonces-map-wrapper { display: block !important; order: -1; position: sticky; top: 0; z-index: 3; width: 100%; height: 62svh; }
  .shop-list-wrapper.v1-map-on .annonces-map-wrapper .jet-map-listing-block,
  .shop-list-wrapper.v1-map-on .annonces-map-wrapper .annonces-view--map { height: 100%; }
  .shop-list-wrapper.v1-map-on .annonces-map-wrapper .jet-map-listing { height: 100% !important; min-height: 0 !important; }
  .v1-mappop__in { width: 240px; }
  .v1-mappop__in img { height: 140px; }
}
