/* fond clair */
#countryNews.pont-real-estate-page,
#countryNews.pont-real-estate-page .pont-immo-shell {
  background: #fffaf7 !important;
  color: #172033 !important;
}

/* zones immobilières */
#countryNews.pont-real-estate-page .pont-immo-shell .pont-immo-filters,
#countryNews.pont-real-estate-page .pont-immo-shell #pontImmoFilters,
#countryNews.pont-real-estate-page .pont-immo-shell .pont-immo-toolbar,
#countryNews.pont-real-estate-page .pont-immo-shell .pont-immo-panel,
#countryNews.pont-real-estate-page .pont-immo-shell .pont-immo-header-block {
  background: #fffdfc !important;
  border: 1px solid rgba(177, 18, 38, 0.14) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

/* textes */
#countryNews.pont-real-estate-page .pont-immo-shell h1,
#countryNews.pont-real-estate-page .pont-immo-shell h2,
#countryNews.pont-real-estate-page .pont-immo-shell h3,
#countryNews.pont-real-estate-page .pont-immo-shell p,
#countryNews.pont-real-estate-page .pont-immo-shell label,
#countryNews.pont-real-estate-page .pont-immo-shell small,
#countryNews.pont-real-estate-page .pont-immo-shell span {
  color: #172033 !important;
}

/* boutons gris -> boutons propres */
#countryNews.pont-real-estate-page .pont-immo-shell button,
#countryNews.pont-real-estate-page .pont-immo-shell input[type="button"],
#countryNews.pont-real-estate-page .pont-immo-shell input[type="submit"],
#countryNews.pont-real-estate-page .pont-immo-shell a[class*="btn"] {
  background: #ffffff !important;
  color: #b11226 !important;
  border: 1px solid rgba(177, 18, 38, 0.22) !important;
  border-radius: 14px !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px rgba(177, 18, 38, 0.08) !important;
  cursor: pointer !important;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

/* hover */
#countryNews.pont-real-estate-page .pont-immo-shell button:hover,
#countryNews.pont-real-estate-page .pont-immo-shell input[type="button"]:hover,
#countryNews.pont-real-estate-page .pont-immo-shell input[type="submit"]:hover,
#countryNews.pont-real-estate-page .pont-immo-shell a[class*="btn"]:hover {
  background: #fff3f4 !important;
  color: #8f1020 !important;
  border-color: rgba(177, 18, 38, 0.36) !important;
  box-shadow: 0 8px 18px rgba(177, 18, 38, 0.12) !important;
  transform: translateY(-1px) !important;
}

/* boutons Acheter / Louer / Investir */
#countryNews.pont-real-estate-page .pont-immo-shell .pont-immo-mode-switch,
#countryNews.pont-real-estate-page .pont-immo-shell .pont-immo-tabs {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

#countryNews.pont-real-estate-page .pont-immo-shell .pont-immo-mode-switch button,
#countryNews.pont-real-estate-page .pont-immo-shell .pont-immo-tabs button {
  min-width: 108px !important;
  justify-content: center !important;
}

/* bouton Publier une annonce */
#countryNews.pont-real-estate-page .pont-immo-shell .pont-immo-publish-btn,
#countryNews.pont-real-estate-page .pont-immo-shell button[data-action="publish"],
#countryNews.pont-real-estate-page .pont-immo-shell .pont-immo-create-btn {
  padding: 0 18px !important;
  border-radius: 14px !important;
}

/* bouton Plus de critères */
#countryNews.pont-real-estate-page .pont-immo-shell .pont-immo-more-btn,
#countryNews.pont-real-estate-page .pont-immo-shell button[data-action="more-filters"] {
  width: 100% !important;
  justify-content: center !important;
}

/* on ne touche pas aux 2 boutons rouges */
#countryNews.pont-real-estate-page .pont-immo-shell #pontCreateSurveyBtn,
#countryNews.pont-real-estate-page .pont-immo-shell .pont-survey-open-btn,
#countryNews.pont-real-estate-page .pont-immo-shell #openCreateArticle,
#countryNews.pont-real-estate-page .pont-immo-shell .pont-create-article-btn {
  background: inherit !important;
  color: inherit !important;
  border: inherit !important;
  box-shadow: inherit !important;
  transform: none !important;
}

/* PONT_IMMO_ADVANCED_ONE_LINE_START */

/* Fermé */
#countryNews.pont-real-estate-page
#pontImmoAdvancedFields[hidden] {
  display: none !important;
}

/* Ouvert : tous les critères sur une ligne */
#countryNews.pont-real-estate-page
#pontImmoAdvancedFields:not([hidden]) {
  grid-column: 1 / -1 !important;
  width: 100% !important;

  display: grid !important;
  grid-template-columns:
    repeat(3, minmax(120px, 1fr))
    repeat(5, max-content) !important;

  align-items: end !important;
  gap: 10px !important;

  padding: 14px 0 2px !important;
  margin: 0 !important;

  overflow-x: auto !important;
  overflow-y: hidden !important;
}

/* Prix, surface et chambres */
#countryNews.pont-real-estate-page
#pontImmoAdvancedFields:not([hidden]) > label {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;

  min-width: 120px !important;
  margin: 0 !important;
}

#countryNews.pont-real-estate-page
#pontImmoAdvancedFields:not([hidden]) > label input {
  width: 100% !important;
  min-width: 120px !important;
}

/* Les cinq cases deviennent directement des colonnes de la ligne */
#countryNews.pont-real-estate-page
#pontImmoAdvancedFields:not([hidden])
.pont-immo-checks {
  display: contents !important;
}

#countryNews.pont-real-estate-page
#pontImmoAdvancedFields:not([hidden])
.pont-immo-checks label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;

  min-height: 42px !important;
  padding: 0 11px !important;
  margin: 0 !important;

  white-space: nowrap !important;

  background: #ffffff !important;
  border: 1px solid rgba(177, 18, 38, 0.18) !important;
  border-radius: 999px !important;

  color: #172033 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

/* Empêche les cases de devenir grandes à cause du style des champs */
#countryNews.pont-real-estate-page
#pontImmoAdvancedFields:not([hidden])
.pont-immo-checks input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 16px !important;
}

/* PONT_IMMO_ADVANCED_ONE_LINE_END */

/* PONT_IMMO_COMPACT_START */

/* Conteneur général plus compact */
#countryNews.pont-real-estate-page .pont-immo-shell {
  padding: 12px 16px 18px !important;
}

/* En-tête immobilier */
#countryNews.pont-real-estate-page .pont-immo-athome-hero {
  padding: 14px !important;
  margin: 0 !important;
  border-radius: 18px !important;
}

#countryNews.pont-real-estate-page .pont-immo-athome-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 10px !important;
}

#countryNews.pont-real-estate-page
.pont-immo-athome-heading > div {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 4px 14px !important;
}

#countryNews.pont-real-estate-page
.pont-immo-athome-heading .pont-immo-eyebrow {
  width: 100% !important;
  margin: 0 !important;
  font-size: 13px !important;
}

#countryNews.pont-real-estate-page
.pont-immo-athome-heading h2 {
  margin: 0 !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
}

#countryNews.pont-real-estate-page
.pont-immo-athome-heading p {
  margin: 0 !important;
  font-size: 14px !important;
}

/* Acheter / Louer / Investir */
#countryNews.pont-real-estate-page .pont-immo-mode-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin: 0 0 9px !important;
}

#countryNews.pont-real-estate-page .pont-immo-mode-tab,
#countryNews.pont-real-estate-page .pont-immo-publish-main {
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
}

/* Tous les filtres principaux sur une seule ligne */
#countryNews.pont-real-estate-page #pontImmoFilters {
  display: grid !important;
  grid-template-columns:
    minmax(170px, 1.45fr)
    minmax(135px, 1fr)
    minmax(135px, .95fr)
    minmax(150px, 1fr)
    auto
    auto !important;

  align-items: end !important;
  gap: 8px !important;

  padding: 10px !important;
  margin: 0 !important;
  border-radius: 16px !important;
}

#countryNews.pont-real-estate-page
#pontImmoFilters > label {
  min-width: 0 !important;
  margin: 0 !important;
  gap: 4px !important;
}

#countryNews.pont-real-estate-page
#pontImmoFilters > label > span {
  font-size: 12px !important;
  line-height: 1 !important;
}

#countryNews.pont-real-estate-page
#pontImmoFilters input,
#countryNews.pont-real-estate-page
#pontImmoFilters select {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 11px !important;
  border-radius: 11px !important;
}

#countryNews.pont-real-estate-page
#pontImmoFilters .pont-immo-search-submit,
#countryNews.pont-real-estate-page
#pontImmoAdvancedBtn {
  width: auto !important;
  min-width: 125px !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  grid-column: auto !important;
  border-radius: 12px !important;
}

/* Critères avancés : une seule ligne compacte */
#countryNews.pont-real-estate-page
#pontImmoAdvancedFields:not([hidden]) {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns:
    repeat(3, minmax(110px, 1fr))
    repeat(5, max-content) !important;
  align-items: end !important;
  gap: 7px !important;
  padding: 8px 0 0 !important;
  margin: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

#countryNews.pont-real-estate-page
#pontImmoAdvancedFields > label {
  min-width: 110px !important;
  gap: 4px !important;
}

#countryNews.pont-real-estate-page
#pontImmoAdvancedFields input[type="number"] {
  min-height: 36px !important;
  height: 36px !important;
}

#countryNews.pont-real-estate-page
#pontImmoAdvancedFields .pont-immo-checks {
  display: contents !important;
}

#countryNews.pont-real-estate-page
#pontImmoAdvancedFields .pont-immo-checks label {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 9px !important;
  font-size: 12px !important;
}

/* Bloc Biens à vendre sur une seule ligne */
#countryNews.pont-real-estate-page .pont-immo-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;

  padding: 11px 14px !important;
  margin: 10px 0 14px !important;
  border-radius: 16px !important;
}

#countryNews.pont-real-estate-page .pont-immo-toolbar h2 {
  margin: 0 0 2px !important;
  font-size: 23px !important;
  line-height: 1.1 !important;
}

#countryNews.pont-real-estate-page .pont-immo-toolbar p {
  margin: 0 !important;
  font-size: 14px !important;
}

#countryNews.pont-real-estate-page
.pont-immo-toolbar-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 7px !important;
}

#countryNews.pont-real-estate-page
.pont-immo-toolbar-actions button {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 13px !important;
  white-space: nowrap !important;
}

/* Téléphone et petite fenêtre */
@media (max-width: 980px) {
  #countryNews.pont-real-estate-page
  #pontImmoFilters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #countryNews.pont-real-estate-page
  .pont-immo-toolbar {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  #countryNews.pont-real-estate-page
  .pont-immo-toolbar-actions {
    flex-wrap: wrap !important;
  }
}

/* PONT_IMMO_COMPACT_END */
