/* WegoFly - Main Stylesheet */
:root {
  --primary: #0a2540;
  --primary-dark: #051525;
  --primary-light: #e8edf2;
  --accent: #0a2540;
  --accent-hover: #051525;
  --text: #0a2540;
  --text-muted: #4a5568;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --border: #d1dce6;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.875rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a { color: #fff; }
.top-bar a:hover { color: #c5d4e8; }

.top-bar .phone-link {
  font-weight: 600;
  font-size: 1rem;
}

/* Header */
.header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), #1a4a7a);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
}

.nav { display: flex; align-items: center; gap: 6px; }

.nav a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover, .nav a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.currency-select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  background: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(5, 21, 37, 0.96), rgba(10, 37, 64, 0.92)),
    url('https://images.unsplash.com/photo-1436491865332-7a61a369cc87?w=1600&q=80') center/cover;
  color: #fff;
  padding: 60px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Search Box */
.search-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.search-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.search-tab {
  flex: 1;
  padding: 16px;
  background: var(--bg-alt);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.search-tab.active {
  background: #fff;
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

.search-form { padding: 24px; }

.trip-type {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.trip-type label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-group { text-align: left; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: #fff;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.15);
}

.travelers-dropdown {
  position: relative;
}

.travelers-btn {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
}

.travelers-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  z-index: 100;
  margin-top: 4px;
}

.travelers-panel.open { display: block; }

.counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.counter-row:last-child { border-bottom: none; }

.counter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.counter-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.counter-btn:hover { background: var(--primary-light); border-color: var(--primary); }

.btn-search {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 8px;
}

.btn-search:hover { background: var(--primary-dark); }

.lead-fields {
  background: var(--primary-light);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border-left: 4px solid var(--primary);
}

.lead-fields-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Features */
.features {
  padding: 60px 0;
  background: var(--bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.feature-card:hover { transform: translateY(-4px); }

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Section */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 10px;
}

.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Destinations */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.dest-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform var(--transition);
}

.dest-card:hover { transform: scale(1.03); }

.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.75));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
}

.dest-overlay h3 { font-size: 1.3rem; margin-bottom: 8px; }

.dest-link {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dest-link:hover { color: #a8d4f5; }

/* Deals */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.deal-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.deal-card:hover { transform: translateY(-4px); }

.deal-card img { width: 100%; height: 160px; object-fit: cover; }

.deal-body { padding: 20px; }

.deal-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.deal-route { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }

.deal-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.deal-price .from { font-size: 0.8rem; color: var(--text-muted); }
.deal-price .amount { font-size: 1.5rem; font-weight: 700; color: var(--primary); }

/* Testimonials */
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.testimonial-card .stars { color: var(--primary); margin-bottom: 12px; font-size: 1rem; opacity: 0.7; }
.testimonial-card p { color: var(--text-muted); font-style: italic; margin-bottom: 16px; font-size: 0.95rem; }

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
}

.author-info strong { display: block; font-size: 0.95rem; }
.author-info span { font-size: 0.8rem; color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: #fff;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  transition: background var(--transition);
}

.faq-question:hover { background: var(--bg-alt); }
.faq-question .icon { font-size: 1.2rem; color: var(--primary); transition: transform var(--transition); }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer { max-height: 300px; }

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.newsletter h2 { font-size: 1.8rem; margin-bottom: 10px; }
.newsletter p { opacity: 0.9; margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.newsletter-form button {
  padding: 14px 28px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--primary-light); }

.newsletter-note { font-size: 0.8rem; opacity: 0.8; margin-top: 14px; }

/* Footer */
.footer {
  background: var(--primary-dark);
  color: #c5d4e8;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: #c5d4e8; font-size: 0.9rem; }
.footer a:hover { color: #fff; }

.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-contact a { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* Page Hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 50px 0;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.page-hero p { opacity: 0.9; font-size: 1.05rem; }

/* Content Page */
.content-page { padding: 50px 0 70px; }

.content-page .container {
  max-width: 900px;
}

.content-page h2 {
  font-size: 1.4rem;
  margin: 30px 0 12px;
  color: var(--primary-dark);
}

.content-page h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

.content-page p, .content-page li {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.content-page ul, .content-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--bg-alt);
  padding: 30px;
  border-radius: var(--radius);
}

.contact-info-card h3 { margin-bottom: 20px; color: var(--primary); }

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form .form-group { margin-bottom: 16px; }

.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-primary:hover { background: var(--primary-dark); }

/* Sitemap */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.sitemap-section h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.sitemap-section ul { list-style: none; }
.sitemap-section li { margin-bottom: 6px; }
.sitemap-section a { font-size: 0.9rem; }

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.blog-card:hover { transform: translateY(-4px); }

.blog-card img { width: 100%; height: 200px; object-fit: cover; }

.blog-card-body { padding: 24px; }
.blog-card-body .date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.blog-card-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.blog-card-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; }

.read-more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

/* Destination Page */
.dest-hero {
  height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.dest-hero-overlay {
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  width: 100%;
  padding: 40px 0;
  color: #fff;
}

.dest-hero h1 { font-size: 2.5rem; }

.dest-content { padding: 50px 0; }

.dest-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.highlight-item {
  background: var(--bg-alt);
  padding: 20px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.highlight-item .num { font-size: 1.5rem; font-weight: 700; color: var(--primary); }

/* Google Flights results panel */
.google-flights-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  margin-bottom: 40px;
}

.google-flights-panel-header h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.google-flights-panel-header p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.google-flights-route {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.route-arrow {
  color: var(--primary);
  font-weight: 700;
}

.google-flights-meta {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.google-flights-meta li {
  background: var(--bg-alt);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
}

.google-flights-meta span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.google-flights-actions .btn-primary {
  display: inline-block;
}

.google-flights-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner.hidden { display: none; }

.cookie-banner p { font-size: 0.9rem; max-width: 700px; }
.cookie-banner a { color: #fff; text-decoration: underline; }

.cookie-accept {
  padding: 10px 24px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-accept:hover { background: var(--primary-light); }

/* Phone CTA */
.phone-cta {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition);
}

.phone-cta:hover { transform: scale(1.05); color: #fff; }

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow);
  }

  .nav.open { display: flex; }

  .header .container { position: relative; flex-wrap: wrap; }

  .contact-grid { grid-template-columns: 1fr; }

  .newsletter-form { flex-direction: column; }

  .phone-cta { bottom: 70px; right: 10px; font-size: 0.8rem; padding: 10px 16px; }

  .hero { padding: 40px 0 60px; }

  .form-row { grid-template-columns: 1fr; }
}
