/* Shortcode [gite_recherche] — reprise du prototype de barre de recherche.
   Police heritee du theme ; tout est scope sous .gite-search. */

.gite-search {
  --gs-brand: #313a1c;
  --gs-brand-hover: #232a13;
  --gs-brand-tint: #eef0e6;
  --gs-ink: #1c2321;
  --gs-muted: #6b7672;
  --gs-line: #dfe3e0;
  --gs-danger: #b3261e;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  color: var(--gs-ink);
}
.gite-search *, .gite-search *::before, .gite-search *::after { box-sizing: border-box; }

.gite-search .gs-bar {
  display: grid;
  /* Colonne Personnes : largeur minimale pour que le libelle et le compteur tiennent cote a cote. */
  grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr) auto;
  align-items: stretch;
  margin: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(20, 40, 35, .12), 0 2px 6px rgba(20, 40, 35, .06);
  overflow: hidden;
}
.gite-search .gs-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 28px;
  border-right: 1px solid var(--gs-line);
  cursor: pointer;
  transition: background .15s;
  min-width: 0;
}
.gite-search .gs-field:hover, .gite-search .gs-field:focus-within { background: #f7f8f7; }
.gite-search .gs-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
}
.gite-search .gs-value { display: flex; align-items: center; gap: 10px; }
.gite-search .gs-value input[type="text"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--gs-ink);
  padding: 0;
  cursor: pointer;
  text-overflow: ellipsis;
  box-shadow: none;
}
.gite-search .gs-value input::placeholder { color: #9aa5a0; font-weight: 400; }
.gite-search .gs-icon { flex-shrink: 0; color: var(--gs-muted); }

.gite-search .gs-guests { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gite-search .gs-stepper { flex-shrink: 0; }
.gite-search .gs-guests-value { font-size: 16px; font-weight: 500; white-space: nowrap; }
.gite-search .gs-guests-value.is-empty { color: #9aa5a0; font-weight: 400; }
.gite-search .gs-stepper { display: flex; gap: 8px; }
.gite-search .gs-stepper button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--gs-line);
  background: #fff;
  color: var(--gs-ink);
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.gite-search .gs-stepper button:hover:not(:disabled) { border-color: var(--gs-brand); background: var(--gs-brand-tint); }
.gite-search .gs-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.gite-search .gs-stepper button:focus-visible { outline: 2px solid var(--gs-brand); outline-offset: 2px; }

.gite-search .gs-cta {
  border: 0;
  border-radius: 0;
  background: var(--gs-brand);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0 32px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, opacity .15s;
}
.gite-search .gs-cta:hover:not(:disabled) { background: var(--gs-brand-hover); }
.gite-search .gs-cta:disabled { opacity: .4; cursor: not-allowed; }
.gite-search .gs-cta:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

.gite-search .gs-status { min-height: 22px; margin: 12px 24px 0; padding: 0; font-size: 14px; color: var(--gs-muted); }
.gite-search .gs-status.is-error { color: var(--gs-danger); font-weight: 500; }

@media (max-width: 760px) {
  .gite-search .gs-bar { grid-template-columns: 1fr; }
  .gite-search .gs-field { border-right: 0; border-bottom: 1px solid var(--gs-line); padding: 16px 20px; }
  .gite-search .gs-cta { padding: 18px; }
}
