/* Garnet — passengers / guests selector (flights + hotels) */
.gp-field {
  position: relative;
  min-width: 0;
}

.gp-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 46px;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border: 1.5px solid var(--line, #e5e5e0);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.gp-trigger:hover,
.gp-trigger.is-open {
  border-color: var(--garnet-red, #a91e22);
  box-shadow: 0 0 0 3px rgba(169, 30, 34, 0.08);
}

.gp-trigger__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.gp-trigger__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #6b6b66);
}

.gp-trigger__value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink, #1a1a18);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gp-trigger__rooms {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted, #6b6b66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gp-trigger__chev {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  opacity: 0.5;
  pointer-events: none;
}

.gp-trigger.is-open .gp-trigger__chev {
  transform: translateY(-50%) rotate(180deg);
}

.gp-panel {
  position: absolute;
  z-index: 120;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--line, #e5e5e0);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 0.85rem 1rem 0.75rem;
  min-width: 280px;
}

.gp-panel__title {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--ink, #1a1a18);
}

.gp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.gp-row:last-of-type {
  border-bottom: 0;
}

.gp-row__info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink, #1a1a18);
}

.gp-row__info small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted, #6b6b66);
  margin-top: 0.1rem;
}

.gp-stepper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.gp-stepper button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line, #e5e5e0);
  border-radius: 8px;
  background: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink, #1a1a18);
  display: grid;
  place-items: center;
  padding: 0;
}

.gp-stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gp-stepper button:not(:disabled):hover {
  border-color: var(--garnet-red, #a91e22);
  color: var(--garnet-red, #a91e22);
}

.gp-stepper__val {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.gp-ages {
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.gp-ages__label,
.gp-ages__hint {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted, #6b6b66);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.gp-ages__label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gp-age-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.gp-age-row select {
  flex: 1;
  max-width: 8rem;
  height: 36px;
  border: 1px solid var(--line, #e5e5e0);
  border-radius: 8px;
  padding: 0 0.5rem;
  font: inherit;
  font-size: 0.82rem;
}

.gp-note {
  margin: 0.65rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.72rem;
  color: var(--muted, #6b6b66);
  line-height: 1.4;
}

/* Flight search form field alignment */
.sflow-field .gp-field,
.fx-search__field .gp-field {
  width: 100%;
}

.sflow-field .gp-trigger,
.fx-search__field .gp-trigger {
  min-height: 48px;
}

@media (max-width: 1023px) {
  .search-card .gp-trigger {
    min-height: 46px;
    border-color: transparent;
    background: transparent;
    padding-left: 0;
    padding-right: 1.5rem;
  }
}

.gp-done {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--garnet-red, #a91e22);
  border-radius: 999px;
  background: #fff;
  color: var(--garnet-red, #a91e22);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.gp-done:hover {
  background: rgba(169, 30, 34, 0.06);
}

.search-card .gp-field {
  width: 100%;
}

.search-card .gp-panel {
  min-width: 300px;
}

.gp-room-blocks {
  margin-top: 0.5rem;
  max-height: 320px;
  overflow-y: auto;
}

.gp-room-block {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.55rem;
  background: rgba(0, 0, 0, 0.02);
}

.gp-room-block__title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink, #1a1a18);
}

.gp-row--compact {
  padding: 0.35rem 0;
}
