/* ============================================================
   VOYAGEURS TOURS — SEARCH ENGINE CSS
   ============================================================ */

/* ── SEARCH WRAPPER ───────────────────────────────────────── */
.search-engine {
  background: var(--white);
  border-top: 3px solid var(--terra);
  max-width: 1080px;
  width: calc(100% - 80px);
  margin: 0 auto;
  box-shadow: 0 12px 56px rgba(26, 20, 16, 0.14);
  position: relative;
  z-index: 100;
}

/* ── TABS ─────────────────────────────────────────────────── */
.se-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--parchment);
  border-bottom: 1px solid var(--border);
}

.se-tabs::-webkit-scrollbar { display: none; }

.se-tab {
  flex: 1;
  min-width: 90px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 16px 12px 14px;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s, background .2s;
  color: var(--ink3);
  font-family: var(--sans);
}

.se-tab svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
  transition: stroke .2s;
}

.se-tab-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: 400;
}

.se-tab:hover {
  color: var(--terra);
  background: rgba(255, 255, 255, 0.6);
}

.se-tab.active {
  color: var(--terra);
  border-bottom-color: var(--terra);
  background: var(--white);
  font-weight: 500;
}

.se-tab.active svg { stroke: var(--terra); }

/* ── PANEL ────────────────────────────────────────────────── */
.se-panel {
  display: none;
}

.se-panel.active {
  display: flex;
  align-items: stretch;
}

/* ── FIELDS ───────────────────────────────────────────────── */
.se-field {
  flex: 1;
  padding: 18px 22px 16px;
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background .18s;
  min-width: 0;
}

.se-field:hover { background: var(--parchment); }

.se-field-label {
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 7px;
  font-weight: 500;
  display: block;
}

.se-field-value {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  line-height: 1.2;
}

.se-field-value.placeholder {
  color: #c8bfb5;
  font-style: italic;
  font-size: 17px;
}

.se-field-hint {
  font-size: 11px;
  color: var(--ink3);
  margin-top: 4px;
  display: block;
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── SEARCH BUTTON ────────────────────────────────────────── */
.se-submit {
  background: var(--terra);
  color: var(--white);
  border: none;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 140px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background .2s;
}

.se-submit:hover { background: var(--terra2); }

.se-submit svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ── FIELD DROPDOWN (date picker overlay) ─────────────────── */
.se-field-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  min-width: 280px;
  padding: 20px;
  box-shadow: 0 12px 36px var(--shadow-card);
  z-index: 200;
  display: none;
}

.se-field.open .se-field-dropdown { display: block; }

/* Quick select pills inside dropdown */
.se-quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.se-quick-opt {
  padding: 7px 14px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink2);
  cursor: pointer;
  border-radius: 100px;
  transition: all .2s;
}

.se-quick-opt:hover,
.se-quick-opt.selected {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .search-engine { width: calc(100% - 40px); }
}

@media (max-width: 768px) {
  .search-engine { width: calc(100% - 40px); }

  .se-panel.active {
    flex-wrap: wrap;
  }

  .se-field {
    flex-basis: 50%;
    min-width: 50%;
    border-bottom: 1px solid var(--border);
  }

  .se-submit {
    width: 100%;
    padding: 20px;
    min-width: auto;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .se-tab-label { display: none; }
  .se-tab { padding: 14px 8px; min-width: 52px; }
  .se-tab svg { width: 22px; height: 22px; }
  .se-field { flex-basis: 100%; }
}
