/* ============================================================
   ZE Search Hero — Estilos
   ============================================================ */

.ze-search-hero {
  width: 100%;
  position: relative;
}

/* Texto hero (título + subtítulo) */
.ze-hero-text {
  margin-bottom: 24px;
}
.ze-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 10px;
  color: #fff;
}
.ze-hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  margin: 0;
  color: rgba(255,255,255,.8);
  line-height: 1.5;
}

/* ── Barra principal ──────────────────────────────────────────────────────── */
.ze-hero-bar {
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,.95);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
  overflow: visible;
  position: relative;
  z-index: 10;
  gap: 0;
  flex-wrap: nowrap;
}

/* ── Campo individual ─────────────────────────────────────────────────────── */
.ze-hero-field {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  cursor: pointer;
  padding: 14px 18px;
  border-left: 1px solid #e5e7eb;
  transition: background .15s;
  border-radius: 0;
}
.ze-hero-field:first-child {
  border-left: none;
  border-radius: 16px 0 0 16px;
}
.ze-hero-field:hover,
.ze-hero-field.is-open {
  background: rgba(74,127,87,.05);
}
.ze-hero-field.is-active .ze-hero-field-value {
  color: #1a1a1a;
  font-weight: 600;
}

.ze-hero-field-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ze-hero-field-value {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ze-hero-field-value.is-placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* ── Dropdown genérico ───────────────────────────────────────────────────── */
.ze-hero-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  max-width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.06);
  border: 1px solid #e5e7eb;
  z-index: 9999;
  display: none;
  overflow: hidden;
  animation: zeHeroFadeIn .15s ease;
}
.ze-hero-field.is-open .ze-hero-dropdown {
  display: block;
}
@keyframes zeHeroFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Buscador dentro del dropdown */
.ze-hero-dropdown-search {
  padding: 10px 12px 6px;
  border-bottom: 1px solid #f3f4f6;
}
.ze-hero-dropdown-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: #f9fafb;
  outline: none;
  box-sizing: border-box;
}
.ze-hero-dropdown-input:focus {
  border-color: #4a7f57;
  background: #fff;
}

/* Lista del dropdown */
.ze-hero-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 260px;
  overflow-y: auto;
}
.ze-hero-dropdown-item {
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background .1s, color .1s;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
}
.ze-hero-dropdown-item:hover {
  background: #f3f4f6;
}
.ze-hero-dropdown-item.is-selected {
  background: rgba(74,127,87,.08);
  color: #4a7f57;
  font-weight: 600;
}
.ze-hero-dropdown-item.is-selected::after {
  content: '✓';
  margin-left: auto;
  font-size: 12px;
  color: #4a7f57;
}
.ze-hero-dropdown-loading {
  padding: 12px 16px;
  font-size: 13px;
  color: #9ca3af;
  font-style: italic;
}
.ze-hero-dropdown-empty {
  padding: 12px 16px;
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
}

/* ── Dropdown de rango (duración / precio) ───────────────────────────────── */
.ze-hero-dropdown--range {
  min-width: 260px;
  max-width: 300px;
  padding: 16px;
}
.ze-hero-range-wrap {
  width: 100%;
}
.ze-hero-range-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}
.ze-hero-range-sep {
  color: #9ca3af;
  font-weight: 400;
}

/* Slider doble */
.ze-hero-range-slider {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}
.ze-hero-range-slider input[type="range"] {
  position: absolute;
  width: 100%;
  height: 4px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  z-index: 2;
}
.ze-hero-range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4a7f57;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  cursor: pointer;
  pointer-events: all;
  transition: transform .1s;
}
.ze-hero-range-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.ze-hero-range-slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4a7f57;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  cursor: pointer;
  pointer-events: all;
}
.ze-range-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
}
.ze-range-fill {
  position: absolute;
  height: 100%;
  background: #4a7f57;
  border-radius: 2px;
}

/* ── Botón de búsqueda ───────────────────────────────────────────────────── */
.ze-hero-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  margin: 8px;
  background: #4a7f57;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .1s, box-shadow .15s;
  min-height: 48px;
}
.ze-hero-btn:hover {
  background: #3d6b49;
  box-shadow: 0 4px 12px rgba(74,127,87,.35);
  transform: translateY(-1px);
}
.ze-hero-btn:active {
  transform: translateY(0);
}
.ze-hero-btn svg {
  flex-shrink: 0;
}

/* ── Tags de selección activa en el campo ────────────────────────────────── */
.ze-hero-field-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow: hidden;
}
.ze-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(74,127,87,.12);
  color: #4a7f57;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ze-hero-tag-more {
  color: #6b7280;
  font-size: 11px;
  white-space: nowrap;
  align-self: center;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ze-hero-bar {
    flex-wrap: wrap;
    border-radius: 12px;
    gap: 0;
  }
  .ze-hero-field {
    flex: 1 1 calc(50% - 1px);
    border-top: 1px solid #e5e7eb;
    border-left: none;
    border-radius: 0;
  }
  .ze-hero-field:nth-child(odd)  { border-left: none; }
  .ze-hero-field:nth-child(even) { border-left: 1px solid #e5e7eb; }
  .ze-hero-field:first-child     { border-top: none; border-radius: 12px 0 0 0; }
  .ze-hero-field:nth-child(2)    { border-top: none; border-radius: 0 12px 0 0; }
  .ze-hero-btn {
    width: calc(100% - 16px);
    justify-content: center;
    margin: 8px;
  }
  .ze-hero-dropdown {
    left: 0;
    right: 0;
    max-width: none;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .ze-hero-field {
    flex: 1 1 100%;
    border-left: none !important;
    border-right: none;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 !important;
  }
  .ze-hero-field:first-child { border-top: none; }
  .ze-hero-bar { border-radius: 12px; }
}
