/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme for Annuaire
 Author:       Digital Rhapsody
 Author URI:   https://webosity.fr
 Template:     generatepress
 Version:      0.1
*/

/* GENERAL */
body .grid-container {
  max-width: 100%;
}
.d-none {
  display: none !important;
}
.taxonomy-localite .form-table .term-description-wrap {
  display: none;
}
.revendiquer-fiche-btn {
  background-color: var(--accent);
  color: white;
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 4px;
}

.revendiquer-fiche-btn:hover {
  background-color: var(--global-color-00ae8f);
  color: white;
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 4px;
}
/* ACCUEIL */
.box-search-pro-home:after,
.overlay-custom-shadow:after {
  content: " ";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.top-departements-home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 5px;    /* espacement entre les lignes */
  column-gap: 20px; /* espacement entre les colonnes */
}

/* Centre verticalement le contenu de chaque cellule */
.top-departements-home-grid .departement-item {
  display: flex;
  align-items: center;   /* vertical */
}

/* MODIFIER MA FICHE PRO */
.suggestions-box {
  display: none;
  border: 1px solid #ccc;
  background-color: white;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}
.suggestions-box div {
  padding: 8px;
  cursor: pointer;
}
.suggestions-box div:hover {
  background-color: #f0f0f0;
}
.suggestions-box div.selected {
  background-color: #e0e0e0;
}
.suggestion-item {
  text-align: left;
}
/* FICHE PRO FRONT */
/* Horaires */
.horaires-wrapper {
  border-radius: 5px;
  overflow: hidden;
  font-family: sans-serif;
  font-size: 13px;
}
.horaire-jour {
  padding: 10px 15px;
  display: flex;
  align-items: center;
}
.horaire-jour.horaire-gris {
  background-color: #dadada;
}
.horaire-ligne {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.jour-nom {
  min-width: 70px;
  font-weight: bold;
}
.horaire-valeur {
  color: #333;
}
/* Moyens paiements */
.paiement {
  background-color: var(--accent);
  color: white;
  font-weight: 600;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100px;
  height: 100px;
  /* border-radius: 50%; */
  padding: 20px;
  /* border: solid 3px #000; */
  row-gap: 5px;
}
.reseaux-pro a {
  text-decoration: none;
  /* height: 34px; */
}
/* Gallerie images */
.galerie-front {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.image-thumb {
  width: 150px;
  height: auto;
  cursor: pointer;
  border: 2px solid #ddd;
  border-radius: 5px;
  transition: transform 0.2s ease;
}
.image-thumb:hover {
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
}
.modal-content {
  position: relative;
  max-width: 90%;
  margin: 5% auto;
}
.slide {
  display: none;
  text-align: center;
}
.slide img {
  max-height: 80vh;
  max-width: 100%;
}
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  color: white;
  font-size: 2rem;
  padding: 0 20px;
  transform: translateY(-50%);
  user-select: none;
  text-decoration: none;
}
.prev {
  left: 0;
}
.next {
  right: 0;
}
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 50px;
  cursor: pointer;
}

/* Clientèle */
.client-type {
  display: flex;
  align-items: center;
  font-weight: 600;
}
.client-type svg {
  width: 30px;
  height: 30px;
}
.client-type .icon {
  min-width: 45px;
}
/* .icon-particuliers svg{
  width: 45px;
  height: 45px;
} */

/* CARTE INTERACTIVE */
#map {
  height: 100%;
}
.infos-pro {
  display: none;
}

.acf-input-wrap {
  position: relative;
  overflow: auto !important;
}

/* FORMULAIRE FICHE PRO */
/* .acf-field-680b89cc24464,
.acf-field-680b89d824465,
.acf-field-680787b7ff125 {
  display: none;
} */
.selected-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.zone-tag {
  background-color: #0073aa;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 13px;
}
.zone-tag .remove-zone {
  margin-left: 6px;
  color: #ffaaaa;
}
/* FORMULAIRE RECHERCHE PRO */
/* #search_form {
 margin-bottom: 20px;
} */
#search_form .search-form-container {
  width: 100%;
  display: flex;
  /* justify-content: center; */
  margin-bottom: 20px;
}
#search_form .tax-search-form-container {
  flex-wrap: wrap;
  gap: 20px;
}
.search-form-input,
#search_form input[type="text"] {
  width: 100%;
  min-width: 600px;
}
#search_form button {
  display: flex;
  align-items: center;
}

#search_form input[type="text"],
#search_form button {
  height: 50px;
}
#search_form button svg {
  width: 24px;
  height: 24px;
}
.suggestions-front {
  position: absolute;
  width: 35rem;
  z-index: 100;
}
#rayon_km {
  height: 50px;
}
/* PAGE LISTING PROS */
.listing-pros-localite-wrapper {
  column-gap: 20px;
  display: grid;
  flex-direction: row;
  flex-wrap: wrap;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 20px;
}
.listing-pros-localite-wrapper .gb-loop-item {
  background-color: var(--base-3);
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
  position: relative;
  border: 1px solid #dddddd;
  border-radius: 10px;
  padding: 10px 20px 20px 20px;
}

.main-infos-pro-listing-wrapper {
  align-items: center;
  column-gap: 10px;
  display: flex;
  padding-bottom: 15px;
  padding-top: 15px;
  row-gap: 10px;
}

.adresse-pro-listing {
  color: var(--contrast);
  font-size: 13px;
  font-weight: 600;
}

.icone-adresse-pro-listing {
  fill: currentColor;
  color: var(--accent);
  width: 20px;
  height: 20px;
  align-items: flex-start;
  display: inline-flex;
}

.adresse-pro-wrapper {
  align-items: center;
  color: var(--contrast);
  column-gap: 0.5em;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}

.logo-pro-listing {
  height: 110px;
  max-width: 100%;
  min-height: 110px;
  min-width: 110px;
  object-fit: cover;
  width: 110px;
}

.adresse-pro-icon {
  fill: currentColor;
  color: var(--accent);
  width: 20px;
  height: 20px;
  align-items: flex-start;
  display: inline-flex;
}

.title-adresse-pro-listing-wrapper {
  align-items: center;
  display: flex;
  height: 60px;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--global-color-d7d7d7);
}

.title-adresse-pro-listing {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0px;
}

.tel-affiche {
  display: none;
  font-size: 15px;
}
.tel-affiche span {
  font-size: 13px;
}
.shadow-custom-1 {
  box-shadow: 0px 2px 6px 1px rgba(0, 0, 0, 0.15);
}
.localite-siblings {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.localite-siblings a {
  background-color: white;
  padding: 5px;
  color: black;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  border: 1px solid #ccc;
}

.btns-pro-listing-wrapper {
  column-gap: 5px;
  display: flex;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid #d7d7d7;
}

.btns-pro-listing-wrapper .btn-pro-listing {
  align-items: center;
  background-color: var(--accent);
  color: var(--base-3);
  column-gap: 5px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  height: 37px;
  text-decoration: none;
  border-radius: 5px;
  padding: 5px 10px;
}
.btns-pro-listing-wrapper .btn-pro-listing a,
.btns-pro-listing-wrapper .btn-pro-listing p {
  color: var(--base-3);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

/* PRESTATIONS ENCART PRO */
.prestations-wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.prestations-hidden {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 150px;
}

.prestations-wrap:hover .prestations-hidden {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.prestation-term,
.prestation-more {
  display: block;
  background: #f1f1f1;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  border: 1px solid var(--accent);
  font-weight: bold;
}

@media screen and (min-width: 1024px) {
  .liste-pros-wrapper,
  .map-pros {
    display: block !important;
  }
}

/* BOUTON SUBMIT MA FICHE PRO */

.gb-element-48c153da .acf-form-submit {
  text-align: center;
}

/* ULTIMATE MEMBER */
#um-submit-btn {
  background-color: var(--accent) !important;
  color: white !important;
}

/* BREADCRUMB */
/* .custom-breadcrumb {
  font-size: 13px;
  margin-left: 20px;
}
.custom-breadcrumb a,
.custom-breadcrumb span {
  text-transform: lowercase; 
}

.custom-breadcrumb a::first-letter,
.custom-breadcrumb span::first-letter {
  text-transform: uppercase !important; 
} */

/* MOBILE et TABLET */
@media screen and (max-width: 1025px) {
  .search-form-input,
  #search_form input[type="text"] {
    width: 100%;
    min-width: auto;
    /* min-width: 600px; */
  }
  #search_form input[type="text"]::placeholder {
    font-size: 14px;
  }

  .galerie-front {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    overflow: auto;
  }

  .modal-content {
    position: relative;
    max-width: 85%;
    margin: 50% auto;
  }

  .prev,
  .next {
    padding: 0px 4px;
  }

  .map-pros {
    display: none;
  }

  #show_list.active,
  #show-map.active {
    color: white;
    background-color: var(--accent);
  }

  .suggestions-front {
    width: 100%;
  }
}

@media screen and (max-width: 750px) {
  .listing-pros-localite-wrapper {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
