.acf-block-SearchBar {
  display: flex;
  justify-content: center;
  max-width: 900px !important;
}
.search-form {
  width: 100%;
}
.search-wrapper-mini {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 4px;
  transition: all 0.3s ease;
  padding: 5px;
  border: none;
  overflow: hidden;
}

.search-wrapper-message {
  color: #000;
}

.search-input-mini {
  border: none !important;
  background: transparent !important;
  padding: 15px;
  font-size: 1.1rem !important;
  color: #333 !important;
  font-family: inherit;
}

.search-input-mini::placeholder {
  color: #666;
}

.search-input-mini:focus {
  outline: none;
}

.search-button-mini {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--wp--preset--color--secondary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  gap: 13px;
  font-size: 1.1rem;
  font-weight: 500;
  font-family: inherit;
}

.search-button-mini:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.search-button-mini::after {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Styles pour l'autocomplétion Google Places */
.pac-container {
  border: none;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
  font-family: inherit;
  padding: 8px 0;
}

.pac-container:after {
  display: none !important; /* Cache le logo Google */
}

.pac-item {
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  border: none;
  color: #333;
}

.pac-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.pac-icon {
  display: none;
}

.pac-item-query {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.pac-item span:not(.pac-item-query) {
  font-size: 13px;
  color: #666;
}

.pac-matched {
  color: var(--wp--preset--color--primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .search-wrapper-mini {
    padding: 10px;
  }

  .search-input-mini {
    padding: 9px;
    font-size: 1rem !important;
  }

  .search-wrapper-mini .search-input-ghost {
    padding: 19px !important;
    font-size: 1rem !important;
    line-height: initial;
  }

  .search-button-mini {
    padding: 0.8rem;
    width: 48px;
    min-width: 48px;
    font-size: 1rem;
  }

  .search-button-mini span {
    display: none;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.search-input-mini.valid-address {
  background-color: rgba(0, 255, 0, 0.05);
}

.search-wrapper-mini .search-input-ghost {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 500;
  font-family: inherit;
  color: #999;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
  line-height: initial;
}

/* Styles pour la barre de recherche non mini version AI promt*/
.search-wrapper {
  min-height: 180px;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 35px 13px 13px 13px;
}

.search-wrapper-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-wrapper-bottom-row-input {
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 117, 4, 0.05);
  border-radius: 50px;
  padding: 0;
  overflow: hidden;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  padding: 10px 20px;
  color: #000;
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
}

.search-input:focus {
  outline: none;
  background-color: transparent;
}

.search-input::placeholder {
  color: #000;
  font-size: 0.8rem;
}

.search-input-ghost {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  color: #999;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
  line-height: initial;
}

.search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  height: 40px;
  border-radius: 50px;
  background-color: var(--wp--preset--color--secondary);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in;
  flex-shrink: 0;
  padding: 0 15px;
}

.search-button span {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
}

.search-button::after {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.search-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .search-wrapper {
    min-height: 200px;
  }
  .search-input {
  }
  .search-input-ghost {
    font-size: 0.8rem;
    padding: 10px 20px;
  }
  .search-button {
    width: 40px;
    height: 40px;
    border-radius: 50px;
    padding: 0 10px;
  }

  .search-button span {
    display: none;
  }

  .search-button::after {
    width: 14px;
    height: 14px;
  }
}
