/* ============================================================
   Index / Homepage
   ============================================================ */

/* ── Hero Search Section ── */
.hero-search {
  padding: 52px 0 48px;
  background: linear-gradient(155deg, #eff6ff 0%, #f8fafc 55%, #f0fdf4 100%);
  border-bottom: 1.5px solid var(--border);
  position: relative; overflow: hidden;
}
.hero-search::before {
  content: ''; position: absolute; top: -100px; left: -100px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,136,229,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-search::after {
  content: ''; position: absolute; bottom: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,166,62,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge-wrap { text-align: center; margin-bottom: 20px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 20px;
  background: rgba(30,136,229,0.08); border: 1px solid rgba(30,136,229,0.2);
  border-radius: 50px; font-size: 13px; font-weight: 700; color: var(--primary);
}

.hero-headline { text-align: center; margin-bottom: 36px; }
.hero-title {
  font-size: 44px; font-weight: 800; color: var(--text);
  line-height: 1.22; margin-bottom: 14px;
}
.hero-accent { color: var(--primary); }
.hero-subtitle { font-size: 16px; color: var(--text-muted); max-width: 520px; margin: 0 auto; line-height: 1.8; }

/* Search Widget */
.search-widget {
  background: #fff; border-radius: 24px;
  box-shadow: 0 12px 56px rgba(30,136,229,0.13), 0 2px 16px rgba(0,0,0,0.05);
  border: 1.5px solid #dbeafe;
  max-width: 1040px; margin: 0 auto 32px; overflow: hidden;
}

.search-type-bar {
  display: flex; align-items: center;
  background: #f5f9ff; border-bottom: 1.5px solid #dbeafe;
  padding: 0 20px; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
}
.search-type-bar::-webkit-scrollbar { display: none; }
.search-type-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 22px; font-size: 14px; font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent; margin-bottom: -1.5px;
  background: none; border-top: none; border-left: none; border-right: none;
  cursor: pointer; transition: color .18s, background .18s;
  white-space: nowrap; border-radius: 8px 8px 0 0;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}
.search-type-btn .type-icon { font-size: 16px; }
.search-type-btn:hover { color: var(--primary); background: rgba(30,136,229,0.05); }
.search-type-btn.active { color: var(--primary); border-bottom-color: var(--primary); background: #fff; font-weight: 700; }

.search-fields-row { display: flex; align-items: center; padding: 8px 16px 8px 20px; gap: 0; }
.search-field-group { flex: 2; padding: 14px 20px; }
.search-field-group--sm { flex: 1.3; }
.search-field-label {
  display: block; font-size: 11px; font-weight: 700; color: #94a3b8;
  letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 8px;
}
.search-field-inner { display: flex; align-items: center; gap: 10px; }
.field-icon { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.search-field-inner input,
.search-field-inner select {
  flex: 1; font-size: 15px; font-weight: 600; color: var(--text); min-width: 0;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  border: none; outline: none; background: transparent; cursor: pointer;
}
.search-field-inner input::placeholder { font-weight: 400; color: #b0bec5; font-size: 14px; }
.search-field-inner select { appearance: none; -webkit-appearance: none; }
.search-field-sep { width: 1px; height: 52px; background: #dbeafe; flex-shrink: 0; }
.date-field-inner { cursor: pointer; }
#heroDate::-webkit-calendar-picker-indicator { display: none; }

.persons-inline { display: flex; align-items: center; gap: 10px; }
.person-count-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid #d1d5db; background: none; color: var(--text-muted);
  cursor: pointer; transition: all .15s;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.person-count-btn svg { width: 14px; height: 14px; }
.person-count-btn.add { border-color: var(--primary); color: var(--primary); }
.person-count-btn:hover { border-color: var(--primary); color: var(--primary); }
.person-count-val { font-size: 16px; font-weight: 700; color: var(--text); min-width: 22px; text-align: center; }

.search-cta-btn {
  flex-shrink: 0; margin-right: 12px;
  padding: 14px 34px;
  background: linear-gradient(170deg, #59a3e3 0%, #0979d2 100%);
  color: #fff; border-radius: 16px; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap; font-family: 'IBM Plex Sans Arabic', sans-serif;
  cursor: pointer; border: none;
}
.search-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(13,71,161,0.38); }
.search-cta-btn svg { width: 17px; height: 17px; }

.search-quick {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px 16px; border-top: 1px solid #f0f5ff; flex-wrap: wrap;
}
.search-quick-label { font-size: 12px; font-weight: 700; color: #94a3b8; flex-shrink: 0; }
.quick-tag {
  padding: 5px 14px; background: #f0f5ff; border: none; border-radius: 20px;
  font-size: 13px; font-weight: 600; color: var(--primary);
  cursor: pointer; transition: all .15s; font-family: 'IBM Plex Sans Arabic', sans-serif;
}
.quick-tag:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }

/* Trust stats */
.hero-trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.trust-stat { display: flex; align-items: center; gap: 12px; padding: 0 32px; }
.trust-icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(30,136,229,0.09); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--primary);
}
.trust-icon-wrap svg { width: 20px; height: 20px; }
.trust-icon-wrap--gold { background: rgba(245,158,11,0.1); color: #f59e0b; }
.trust-num { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.2; }
.trust-lbl { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.trust-divider { width: 1px; height: 40px; background: #e2e8f0; flex-shrink: 0; }

/* Filter bar (homepage) */
.filter-bar { background: #fff; border-bottom: 1.5px solid var(--border); }
.filter-bar-inner { display: flex; flex-direction: column; }
.filter-row {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; scrollbar-width: none; padding: 10px 0;
}
.filter-row:first-child { border-bottom: 1px solid #f1f5f9; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row-label {
  font-size: 11px; font-weight: 700; color: #94a3b8;
  white-space: nowrap; flex-shrink: 0; padding-left: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.filter-chip {
  display: inline-block; padding: 7px 18px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); border-radius: 8px; border: none;
  background: transparent; white-space: nowrap; cursor: pointer;
  text-decoration: none; transition: all .15s; flex-shrink: 0; font-family: 'IBM Plex Sans Arabic', sans-serif;
}
.filter-chip:hover { color: var(--primary); background: var(--primary-light); }
.filter-chip.active { color: var(--primary); background: var(--primary-light); font-weight: 700; }
.dest-chip {
  padding: 5px 14px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); border-radius: 20px; border: 1.5px solid #e2e8f0;
  background: transparent; white-space: nowrap; cursor: pointer;
  transition: all .15s; flex-shrink: 0; font-family: 'IBM Plex Sans Arabic', sans-serif;
}
.dest-chip:hover { border-color: var(--primary); color: var(--primary); }
.dest-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.featured-section { padding: 24px 0 40px; }

#backToTop {
  position: fixed; bottom: 28px; left: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 14px; }
  .search-fields-row { flex-wrap: wrap; gap: 0; padding: 12px 16px; }
  .search-field-group { width: 100%; flex: none; padding: 12px 4px; border-bottom: 1px solid #f0f5ff; }
  .search-field-group:last-of-type { border-bottom: none; }
  .search-field-sep { display: none; }
  .search-cta-btn { width: 100%; justify-content: center; margin-right: 0; padding: 15px; }
  .search-type-btn { padding: 12px 14px; font-size: 13px; }
  .trust-stat { padding: 8px 16px; }
  .trust-divider { display: none; }
  .search-quick { padding: 10px 16px 14px; }
  .hero-badge { font-size: 12px; padding: 5px 14px; }
}
