/* Wakanow Guide - Styles dynamiques par marque */
:root {
  --guide-primary: #06A5E3;
  --guide-secondary: #F18326;
  --guide-font: Lato, sans-serif;
}

body { font-family: var(--guide-font); }

/* Grille destinations */
.grid-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1rem 0;
}

.country-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  background: #f0f7fc;
  color: var(--guide-primary);
  border: 1px solid var(--guide-primary);
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.country-btn:hover {
  background: var(--guide-primary);
  color: #fff;
  text-decoration: none;
}

/* CTA principal */
.cta-button {
  background: var(--guide-primary) !important;
  border-color: var(--guide-primary) !important;
  color: #fff !important;
}

.cta-button:hover {
  background: var(--guide-secondary) !important;
  border-color: var(--guide-secondary) !important;
  color: #fff !important;
}

/* See all destinations */
.see-all-wrapper {
  margin-top: 1.5rem;
  text-align: center;
}

.see-all-text {
  display: inline-flex;
  align-items: center;
  color: var(--guide-primary);
  font-weight: 600;
  text-decoration: none;
}

.see-all-text:hover {
  color: var(--guide-secondary);
  text-decoration: underline;
}

/* Contenu AI */
#ai-flight-content h2,
#ai-flight-content h3 { margin-top: 1rem; margin-bottom: 0.5rem; }

#ai-flight-content p { margin-bottom: 1rem; }

/* Container centré */
.container.centered { text-align: center; }

/* ===== Page Hotels - Grille pays avec photos ===== */
.hotels-main-card {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.12), 0 10px 20px -5px rgba(0,0,0,0.15), 0 20px 40px -10px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0.5rem;
  overflow: hidden;
}
.hotels-main-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0,0,0,0.2), 0 20px 40px -8px rgba(0,0,0,0.25), 0 30px 60px -12px rgba(0,0,0,0.3);
}
.hotels-main-thumb {
  height: 140px;
  overflow: hidden;
  position: relative;
}
.hotels-main-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hotels-main-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

/* ===== FAQ Accordion (Bootstrap-style) ===== */
.faq-block {
  margin: 2rem 0;
}

.faq-block h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #212529;
}

.faq-item {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.faq-item:first-of-type { margin-top: 0; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #f8f9fa;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: #212529;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #e9ecef;
}

.faq-item.open .faq-question {
  background: var(--guide-primary);
  color: #fff;
}

.faq-question .fa,
.faq-question i {
  margin-left: 0.5rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-question .fa,
.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 1rem 1.25rem;
  background: #fff;
  border-top: 1px solid #dee2e6;
  display: none;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #495057;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ===== Language Phrases Table (Bootstrap-style) ===== */
.language-phrases-block {
  margin: 2rem 0;
}

.language-phrases-block h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #212529;
}

.language-phrases-block .table {
  border-radius: 0.375rem;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.language-phrases-block .table thead th {
  background: #f8f9fa;
  font-weight: 600;
  padding: 0.875rem 1rem;
  border-bottom: 2px solid #dee2e6;
}

.language-phrases-block .table tbody td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
}

.language-phrases-block .table tbody tr:hover {
  background: #f8f9fa;
}

.language-phrases-block .table td a[href*="translate.google"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.25rem;
  background: var(--guide-primary);
  color: #fff !important;
  text-decoration: none;
  transition: background 0.2s;
}

.language-phrases-block .table td a[href*="translate.google"]:hover {
  background: var(--guide-secondary);
  color: #fff !important;
}

/* ===== Top Routes & Top Airlines (flights-airport page) ===== */
#ai-flight-content .top-routes,
#ai-flight-content .top-airlines {
  margin: 2rem 0;
}

#ai-flight-content .top-routes h2,
#ai-flight-content .top-airlines h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #212529;
}

#ai-flight-content .top-routes p,
#ai-flight-content .top-airlines p {
  margin-bottom: 0.75rem;
  color: #495057;
}

/* Routes: liens en boutons (contenu en cache souvent sans classes Bootstrap) */
#ai-flight-content .top-routes > p:nth-child(n+3) {
  display: inline-block !important;
  margin: 0 0.5rem 0.5rem 0 !important;
}

#ai-flight-content .top-routes a,
#ai-flight-content .top-routes p a {
  display: inline-block !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--guide-primary) !important;
  background: #fff !important;
  border: 1px solid var(--guide-primary) !important;
  border-radius: 0.375rem !important;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

#ai-flight-content .top-routes a:hover {
  background: var(--guide-primary) !important;
  color: #fff !important;
  border-color: var(--guide-primary) !important;
}

/* Airlines: boutons Bootstrap avec couleurs marque */
#ai-flight-content .top-airlines .btn,
#ai-flight-content .top-airlines .btn-outline-primary,
#ai-flight-content .top-airlines a.btn {
  color: var(--guide-primary) !important;
  border-color: var(--guide-primary) !important;
  background: #fff !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem !important;
  border-width: 1px !important;
  transition: background 0.2s, color 0.2s !important;
}

#ai-flight-content .top-airlines .btn:hover,
#ai-flight-content .top-airlines .btn-outline-primary:hover,
#ai-flight-content .top-airlines a.btn:hover {
  background: var(--guide-primary) !important;
  color: #fff !important;
  border-color: var(--guide-primary) !important;
}

#ai-flight-content .top-airlines .d-flex,
#ai-flight-content .top-routes .d-flex {
  gap: 0.5rem !important;
}
