/* KOCOONYA 80.7.126A | Pink Spider uniquement | 14 novembre 2026
   Corrections de PRESENTATION : cartes en CHF et lanceur d'aide.
   Ni logique des prix, ni backend, ni scripts de contact ne sont modifies. */

/* 1. Montants CHF : prix et lien de la fiche sur des lignes distinctes.
   La devise est celle choisie par le visiteur, pas la devise d'origine de l'annonce.
   :has() est deja utilise sur le site pour les mises en page reactives. */
body:has(#display-currency option[value="CHF"]:checked) .listing-card .listing-card-footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-content: stretch !important;
  justify-items: start !important;
  align-items: start !important;
  gap: 5px !important;
  min-width: 0 !important;
}
body:has(#display-currency option[value="CHF"]:checked) .listing-card .listing-card-footer .listing-card-price-group {
  display: block !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
body:has(#display-currency option[value="CHF"]:checked) .listing-card .listing-card-footer .card-price {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 3px 6px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
  text-align: left !important;
}
body:has(#display-currency option[value="CHF"]:checked) .listing-card .listing-card-footer .card-price-suffix {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 2px 5px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
}
body:has(#display-currency option[value="CHF"]:checked) .listing-card .listing-card-footer .card-price-amount {
  max-width: 100% !important;
  font-size: clamp(19px, 2vw, 25px) !important;
  line-height: 1.15 !important;
  overflow-wrap: normal;
}
body:has(#display-currency option[value="CHF"]:checked) .listing-card .listing-card-footer .card-open-link {
  grid-column: 1 !important;
  grid-row: auto !important;
  justify-self: end !important;
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 2px 0 0 !important;
  padding: 2px 0 !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  text-align: right !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* 2. Aide : pastille premium fixee en bas a droite.
   Le bouton #help-toggle et le panneau #help-panel sont conserves : aucun faux chat IA. */
.help-widget .help-toggle {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 11px !important;
  width: auto !important;
  height: auto !important;
  min-height: 61px !important;
  max-width: min(298px, calc(100vw - 30px)) !important;
  padding: 8px 27px 8px 9px !important;
  border: 1px solid rgba(255,255,255,.23) !important;
  border-radius: 999px !important;
  background: linear-gradient(115deg, #68083f 0%, #8f0e57 63%, #a31364 100%) !important;
  color: #fff !important;
  box-shadow: 0 13px 32px rgba(68, 6, 47, .26), 0 2px 8px rgba(68, 6, 47, .09) !important;
  font-family: 'Figtree', system-ui, sans-serif !important;
  cursor: pointer !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}
.help-widget .help-toggle > span[aria-hidden="true"] {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #810c50 !important;
  font-size: 0 !important;
  line-height: 1 !important;
}
.help-widget .help-toggle > span[aria-hidden="true"]::after {
  content: '\2661';
  font-size: 32px !important;
  font-family: Arial, system-ui, sans-serif !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transform: translateY(1px);
}
.help-widget .help-toggle::after {
  content: "Besoin d'aide ?\A L'aide Kocoonya est ici";
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: #fff !important;
  white-space: pre-line !important;
  text-align: left !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: -.01em !important;
}
.help-widget .help-toggle::before {
  content: '\203A';
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-52%);
  color: #fff;
  font: 600 25px/1 Arial, sans-serif;
  opacity: .9;
}
.help-widget .help-toggle:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.06);
  box-shadow: 0 16px 35px rgba(68, 6, 47, .31) !important;
}
.help-widget .help-toggle:focus-visible {
  outline: 3px solid #f8c4de !important;
  outline-offset: 3px !important;
}
.help-widget .help-panel { order: -1 !important; max-width: calc(100vw - 24px); }
@media (max-width: 720px) {
  .help-widget .help-toggle {
    gap: 8px !important;
    min-height: 49px !important;
    padding: 6px 22px 6px 7px !important;
    box-shadow: 0 8px 22px rgba(68, 6, 47, .22) !important;
  }
  .help-widget .help-toggle > span[aria-hidden="true"] {
    flex-basis: 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }
  .help-widget .help-toggle > span[aria-hidden="true"]::after { font-size: 28px !important; }
  .help-widget .help-toggle::after {
    content: "Besoin d'aide ?";
    font-size: 12px !important;
    white-space: nowrap !important;
  }
  .help-widget .help-toggle::before { right: 10px; font-size: 19px; }
  body:has(#display-currency option[value="CHF"]:checked) .listing-card .listing-card-footer .card-price-amount {
    font-size: clamp(18px, 5vw, 24px) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .help-widget .help-toggle { transition: none !important; }
  .help-widget .help-toggle:hover { transform: none !important; }
}

/* Kocoonya 80.7.141 — recherche vide lisible, sans carte inutile.
   Ne modifie ni les filtres, ni la recherche internationale, ni la carte avec annonces. */
.results-section.k141-no-results .results-layout {
  display: block !important;
  grid-template-columns: minmax(0, 1fr) !important;
}
.results-section.k141-no-results .results-list {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  padding: 0 0 38px !important;
}
.results-section.k141-no-results .map-panel,
.results-section.k141-no-results .view-switcher,
.results-section.k141-no-results .sort-field { display: none !important; }
.results-section.k141-no-results .results-empty-state {
  box-sizing: border-box;
  width: 100%;
  max-width: 840px;
  margin: 10px auto 16px;
  min-height: 195px;
  padding: clamp(20px, 4vw, 34px);
  border-color: #ecd7e5;
  border-radius: 20px;
  background: #fff;
}
.results-section.k141-no-results .results-empty-state h3 {
  font-size: clamp(19px, 3.4vw, 23px);
}
.results-section.k141-no-results .results-empty-state p {
  max-width: 68ch;
  line-height: 1.6;
}
.results-section.k141-no-results .k141-coming-soon {
  background: linear-gradient(115deg, #fff, #fff6fa);
}
.results-section.k141-no-results .k141-empty-heart {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fce8f2;
  color: #860951;
  font: 700 28px/1 Arial, sans-serif;
}
.results-section.k141-no-results .results-empty-actions a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
/* Assistance 80.7.141 : pastille ronde accessible (48 px),
   au lieu de la large bannière qui recouvrait des avis et équipements. */
@media (max-width: 720px) {
  .help-widget,
  body.has-detail .help-widget {
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }
  .help-widget .help-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: none !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    padding: 3px !important;
    gap: 0 !important;
    border-radius: 50% !important;
  }
  .help-widget .help-toggle > span[aria-hidden="true"] {
    display: grid !important;
    place-items: center !important;
    flex: none !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 50% !important;
  }
  .help-widget .help-toggle > span[aria-hidden="true"]::after { font-size: 28px !important; }
  .help-widget .help-toggle::before,
  .help-widget .help-toggle::after { content: none !important; display: none !important; }
  .help-widget .help-panel {
    box-sizing: border-box;
    width: min(340px, calc(100vw - 24px)) !important;
    max-height: min(68dvh, 480px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.has-results .help-widget {
    bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }
  body.has-results.has-map-results .help-widget {
    bottom: calc(128px + env(safe-area-inset-bottom)) !important;
  }
  body.has-results:has(.results-section.k141-no-results) .help-widget {
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }
  .results-section.k141-no-results .results-empty-state { margin: 6px 0 18px; }
}


/* Kocoonya 80.7.142 — AIDE lisible sur mobile, sans ambiguite avec les favoris.
   Pure presentation ; le bouton, son identifiant et le panneau d'assistance restent identiques. */
@media (max-width: 720px) {
  .help-widget .help-toggle,
  .k133-page .k-editorial-help-widget .help-toggle {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: none !important;
    width: 66px !important;
    min-width: 66px !important;
    max-width: 66px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 7px !important;
    gap: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(115deg, #700945, #980d5d) !important;
    color: #fff !important;
    text-align: center !important;
  }
  .help-widget .help-toggle > span[aria-hidden="true"],
  .k133-page .k-editorial-help-widget .help-toggle > span[aria-hidden="true"] {
    box-sizing: border-box !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1 !important;
  }
  .help-widget .help-toggle > span[aria-hidden="true"]::after,
  .k133-page .k-editorial-help-widget .help-toggle > span[aria-hidden="true"]::after {
    content: "Aide" !important;
    display: block !important;
    color: #fff !important;
    font: 800 14px/1.2 Figtree, system-ui, sans-serif !important;
    letter-spacing: .01em !important;
    transform: none !important;
  }
  .help-widget .help-toggle::before,
  .help-widget .help-toggle::after,
  .k133-page .k-editorial-help-widget .help-toggle::before,
  .k133-page .k-editorial-help-widget .help-toggle::after {
    content: none !important;
    display: none !important;
  }
}


/* Kocoonya 80.7.143 — Aide mobile : pas de saut horizontal à l'ouverture.
   Le panneau 80.7.141 pouvait être 8 px plus large que la grille du widget
   à 320/360 px, ce qui décalait le bouton vers la droite. Contrainte de largeur
   seulement, sans modifier la logique JS ni les autres composants. */
@media (max-width: 720px) {
  .help-widget .help-panel {
    box-sizing: border-box !important;
    width: min(340px, calc(100vw - 36px)) !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}


/* Kocoonya 80.7.144 — favoris : bouton « Partager ma sélection » aligné
   avec le bord gauche du catalogue sur ordinateur uniquement.
   Sur petit ordinateur / tablette avec une seule carte centrée, ainsi que
   sur mobile, la disposition actuelle est conservée à l'identique. */
@media (min-width: 901px) {
  .favorites-section .favorites-heading .k80776-share-controls {
    align-items: flex-start;
  }
  .favorites-section .favorites-heading .k80776-share-status {
    text-align: left;
  }
}
