/* =============================================
   MAIN CSS — FaresXplorer
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand-blue: #2357e8;
  --brand-blue-dark: #1a44c8;
  --brand-orange: #f97316;
  --text-dark: #0f172a;
  --text-mid: #334155;
  --text-soft: #64748b;
  --bg-page: #f8faff;
  --bg-white: #ffffff;
  --border: #e0e6f0;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 24px rgba(30, 50, 120, 0.08);
  --shadow-hover: 0 10px 40px rgba(30, 50, 120, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- HERO SECTION ---- */
.hero-section {
  background: linear-gradient(160deg, #eef2ff 0%, #f8faff 50%, #fff7ed 100%);
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(35, 87, 232, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero-title span {
  background: linear-gradient(135deg, #2357e8, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 36px;
  font-weight: 500;
}

/* ---- SEARCH BOX ---- */
.search-box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(35, 87, 232, 0.12), 0 2px 8px rgba(0,0,0,0.04);
  padding: 28px 28px 24px;
  margin-bottom: 0;
}

.search-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.search-tab {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: none;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.18s;
}

.search-tab.active,
.search-tab:hover {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

.search-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 1fr 0.9fr auto;
  gap: 10px;
  align-items: end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-field label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-blue);
  width: 16px;
  height: 16px;
}

.search-input-wrap input,
.search-input-wrap select {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px 0 36px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  background: #f8faff;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
  appearance: none;
}

.search-input-wrap input:focus,
.search-input-wrap select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(35, 87, 232, 0.12);
  background: #fff;
}

.search-btn {
  height: 48px;
  padding: 0 28px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(35, 87, 232, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(35, 87, 232, 0.4);
}

.search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.multi-city-link {
  font-size: 0.84rem;
  color: var(--brand-blue);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.multi-city-link:hover {
  text-decoration: underline;
}

.show-hotels-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
}

.show-hotels-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--brand-blue);
  cursor: pointer;
}

/* ---- TRUST BADGES ---- */
.trust-strip {
  padding: 40px 24px;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 48px;
}

.trust-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.trust-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* ---- HERO BANNER ---- */
.hero-banner {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.banner-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 380px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}

.banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://www.faresxplorer.com/images/bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,50,0.85) 0%, rgba(10,20,50,0.2) 60%, transparent 100%);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 36px 40px;
  color: #fff;
}

.banner-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.banner-content p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  max-width: 360px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: #fff;
  color: var(--text-dark);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  cursor: pointer;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ---- DEALS SECTION ---- */
.deals-section {
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 0 24px;
}

.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.section-header .sponsored-tag {
  font-size: 0.75rem;
  color: var(--text-soft);
  font-weight: 500;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sponsored-tag::before {
  content: '📣';
  font-size: 0.7rem;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.deal-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s, box-shadow 0.22s;
  cursor: pointer;
  border: 1px solid var(--border);
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.deal-img {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.deal-img-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.deal-card:hover .deal-img-bg {
  transform: scale(1.05);
}

/* Colorful placeholder backgrounds for deal images */
.deal-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.6);
  position: relative;
  overflow: hidden;
}

.deal-img-placeholder span {
  position: relative;
  z-index: 1;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  text-align: center;
  line-height: 1.2;
}

.di-viva    { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); }
.di-nz      { background: linear-gradient(135deg, #134e5e, #71b280); }
.di-bermuda { background: linear-gradient(135deg, #0099f7, #f11712); }
.di-illinois{ background: linear-gradient(135deg, #f7971e, #ffd200); }
.di-missouri{ background: linear-gradient(135deg, #c94b4b, #4b134f); }
.di-monaco  { background: linear-gradient(135deg, #fc4a1a, #f7b733); }

.deal-save-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--brand-orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.03em;
}

.deal-body {
  padding: 18px 20px 20px;
}

.deal-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.deal-body p {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 14px;
  line-height: 1.5;
}

.claim-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: none;
  border: 1.5px solid var(--brand-blue);
  color: var(--brand-blue);
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
}

.claim-btn:hover {
  background: var(--brand-blue);
  color: #fff;
}

/* ---- FAQ SECTION ---- */
.faq-section {
  max-width: 1000px;
  margin: 72px auto 0;
  padding: 0 24px;
}

.faq-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-section-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.faq-section-header p {
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 500;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.faq-item.open {
  border-color: var(--brand-blue);
  box-shadow: 0 4px 20px rgba(35, 87, 232, 0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.45;
  transition: color 0.15s;
}

.faq-item.open .faq-question {
  color: var(--brand-blue);
}

.faq-q-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef2ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--brand-blue);
  font-weight: 700;
  margin-top: 1px;
}

.faq-chevron {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s, background 0.18s;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--brand-blue);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px;
}

.faq-answer p {
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1000px) {
  .search-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .search-btn { grid-column: 1 / -1; }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .search-row { grid-template-columns: 1fr 1fr; }
  .deals-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .banner-card { height: 300px; }
  .banner-content { padding: 24px 24px; }
}

@media (max-width: 500px) {
  .hero-section { padding: 40px 16px 0; }
  .search-row { grid-template-columns: 1fr; }
  .deals-grid { grid-template-columns: 1fr; }
  .trust-strip-inner { grid-template-columns: 1fr; }
  .search-box { padding: 20px 16px 16px; }
}
