/* ============================================================
   NAVBAR.CSS — The Flying Nomads
   ============================================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: background 0.3s ease, padding 0.3s ease, transform 0.3s ease;
  box-shadow: none !important;
  border-bottom: none !important;
}
.navbar.scrolled {
  background: var(--color-navbar-scrolled, #fafafa);
  padding: 16px 0;
  box-shadow: none !important;
  border-bottom: none !important;
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* ─── LOGO ───────────────────────────────────────────────── */
.logo-link { text-decoration: none; flex-shrink: 0; }
.logo-img { height: 40px; width: auto; filter: brightness(0) invert(1); transition: filter 0.3s; }
.navbar.scrolled .logo-img { filter: none !important; }
.logo-text {
  font-family: var(--font-ui);
  font-size: 15px; font-weight: 700;
  color: white; letter-spacing: 1px;
  line-height: 1.2; text-align: center;
  transition: color 0.3s;
}
.navbar.scrolled .logo-text,
.navbar.force-light .logo-text { color: var(--color-dark); }

/* ─── NAV MENU ───────────────────────────────────────────── */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-menu > li { position: relative; }
.nav-link {
  font-family: var(--font-ui);
  font-size: 15px; font-weight: 500;
  color: white; text-decoration: none;
  display: block;
  transition: color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.navbar.scrolled .nav-link,
.navbar.force-light .nav-link { color: var(--color-dark); }
.nav-link:hover { color: #D97B48 !important; }

/* ─── DESTINATIONS MEGA DROPDOWN ─────────────────────────
   Matches HOMEPAGE_FIXED_DOTS_INFINITE_8.html exactly:
   display:none → display:grid on hover
   min-width 600px, 4 cols, orange h4, dark links         */
.dropdown { position: relative; }
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 2px;
  padding: 28px 32px 24px;
  margin-top: 12px;
  z-index: 1010;
  /* CSS columns: fills top-to-bottom then starts new column.
     Exactly like reisjunk.nl — no empty columns at end because
     columns only appear if there is content to fill them.      */
  columns: 4 140px;
  column-gap: 28px;
  width: max-content;
  max-width: min(680px, calc(100vw - 80px));
}
.dropdown:hover .dropdown-content {
  display: block;
}
.continent-section {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 20px;
  display: inline-block;
  width: 100%;
}
/* Bridge gap between nav-link and dropdown so mouse can travel without closing */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px; /* covers the margin-top gap */
  display: none;
}
.dropdown:hover::after {
  display: block;
}
.continent-section h4 {
  font-family: var(--font-ui, 'Outfit', sans-serif);
  font-size: 13px;
  color: #D97B48;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  font-weight: 600;
}
.continent-section a {
  display: block;
  padding: 4px 0;
  color: #2d2d2d;
  text-decoration: none;
  font-size: 13.5px;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-weight: 400;
  transition: color 0.2s;
  line-height: 1.4;
}
.continent-section a:hover { color: #D97B48; }

/* ─── TOPICS DROPDOWN ───────────────────────────────────────
   Compact — auto-width, 2 cols max, fits tag count exactly   */
.fn-topics-dropdown {
  columns: 2 130px !important;
  column-gap: 20px !important;
  min-width: 0 !important;
  max-width: 300px !important;
  width: max-content !important;
}
.fn-topics-dropdown .continent-section {
  width: 100% !important;
  padding: 0 !important;
}
.fn-topics-dropdown .continent-section a {
  padding: 5px 0 !important;
  font-size: 13px !important;
}

/* ─── SIMPLE DROPDOWN (categories etc) ───────────────────── */
.categories-dropdown {
  min-width: 220px !important;
  grid-template-columns: 1fr !important;
  padding: 8px 0 !important;
}
.categories-dropdown .continent-section { padding: 0 8px; }
.categories-dropdown .continent-section h4 { display: none; }
.categories-dropdown a { padding: 10px 16px; border-radius: 4px; }
.categories-dropdown a:hover { background: #f8f8f8; }

/* ─── NAV ACTIONS ────────────────────────────────────────── */
.nav-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-search { background: none; border: none; cursor: pointer; padding: 8px; color: white; transition: color 0.2s; }
.navbar.scrolled .nav-search,
.navbar.force-light .nav-search { color: var(--color-dark); }
.nav-search:hover { color: #D97B48; }
.nav-search svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; display: block; }

/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: white; transition: all 0.3s; }
.navbar.scrolled .nav-hamburger span,
.navbar.force-light .nav-hamburger span { background: var(--color-dark); }

/* ─── PORTRAIT NAVBAR ─────────────────────────────────────── */
.navbar.force-light { background: white !important; }
.navbar.force-light .logo-img { filter: none !important; }

/* ─── SEARCH BAR ──────────────────────────────────────────── */
#search-bar {
  display: none; position: fixed;
  top: 0; left: 0; right: 0;
  background: white; z-index: 1001;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
#search-bar.open { display: block; }
.search-bar-inner {
  display: flex; align-items: center;
  max-width: 1280px; margin: 0 auto;
  padding: 0 40px; height: 80px; gap: 16px;
}
.search-bar-icon { width: 20px; height: 20px; stroke: #aaa; fill: none; stroke-width: 2; flex-shrink: 0; }
.search-form { flex: 1; position: relative; }
.cs-input-group { display: flex; }
.search-field {
  flex: 1; width: 100%; border: none; outline: none;
  font-family: var(--font-ui); font-size: 18px;
  color: var(--color-dark); background: transparent; padding: 0;
}
.search-field::placeholder { color: #bbb; }
.search-field::-webkit-search-decoration,
.search-field::-webkit-search-cancel-button { display: none; }
.search-form .search-submit { display: none; }
.search-bar-close { background: none; border: none; cursor: pointer; padding: 8px; color: #aaa; }
.search-bar-close:hover { color: var(--color-dark); }
.search-bar-close svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* SearchWP live results */
ul.searchwp-live-search-results {
  position: absolute !important; top: 100% !important;
  left: 0 !important; right: 0 !important;
  background: white !important; border: none !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1) !important;
  list-style: none !important; padding: 8px 0 !important;
  margin: 0 !important; z-index: 1002 !important;
  max-height: 70vh !important; overflow-y: auto !important;
}
ul.searchwp-live-search-results li { padding: 0 !important; border-bottom: 1px solid #f8f8f8 !important; margin: 0 !important; }
ul.searchwp-live-search-results li:last-child { border-bottom: none !important; }
ul.searchwp-live-search-results li a {
  display: flex !important; align-items: center !important;
  gap: 20px !important; padding: 14px 40px !important;
  text-decoration: none !important; color: var(--color-dark) !important;
  font-size: 15px !important; transition: background 0.15s !important;
}
ul.searchwp-live-search-results li a:hover { background: #fafafa !important; }
ul.searchwp-live-search-results li img { width: 60px !important; height: 60px !important; object-fit: cover !important; flex-shrink: 0 !important; }
ul.searchwp-live-search-results .searchwp-live-search-result-title { font-weight: 500 !important; font-size: 15px !important; flex: 1 !important; }
ul.searchwp-live-search-results .searchwp-live-search-result-type {
  font-family: var(--font-ui) !important; font-size: 10px !important;
  font-weight: 700 !important; letter-spacing: 1.5px !important;
  text-transform: uppercase !important; color: #ccc !important; flex-shrink: 0 !important;
}

/* ─── CAROUSEL DOTS ───────────────────────────────────────── */
.carousel-dots-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d1d1d1;
  border: none; cursor: pointer;
  transition: all 0.3s; padding: 0;
}
.carousel-dot.active { background: #D97B48; }
.carousel-dot:hover { background: #D97B48; opacity: 0.7; }
.dot-arrow {
  background: none; border: none;
  font-size: 20px; color: #666;
  cursor: pointer; padding: 4px 8px;
  transition: all 0.3s; line-height: 1; font-weight: bold;
}
.dot-arrow:hover { color: #D97B48; }

/* ─── SCROLL TO TOP ────────────────────────────────────────── */
#scrollToTop, .scroll-to-top {
  position: fixed !important; bottom: 30px !important; right: 30px !important;
  width: 50px !important; height: 50px !important;
  background: var(--color-primary) !important; border-radius: 50% !important;
  border: none !important; cursor: pointer !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  opacity: 0 !important; visibility: hidden !important;
  transition: all 0.3s ease !important; z-index: 9999 !important;
  box-shadow: 0 4px 12px rgba(217,123,72,0.35) !important;
}
#scrollToTop.visible, .scroll-to-top.visible { opacity: 1 !important; visibility: visible !important; }
#scrollToTop:hover, .scroll-to-top:hover { background: #c06a38 !important; transform: translateY(-3px) !important; }
#scrollToTop svg, .scroll-to-top svg { width: 22px !important; height: 22px !important; stroke: white !important; fill: none !important; stroke-width: 2.5 !important; }

/* ─── MOBILE MENU ─────────────────────────────────────────── */
.mobile-menu {
  display: none; background: white;
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
  /* NO border-top — that caused the white line */
}
.mobile-menu.open { max-height: 85vh; overflow-y: auto; }
.mobile-menu-inner { padding: 8px 24px 24px; }
.mobile-nav-list { list-style: none; }
.mobile-nav-list > .menu-item { border-bottom: 1px solid #f5f5f5; }
.mobile-nav-list > .menu-item:last-child { border-bottom: none; }
.mobile-nav-list > .menu-item > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; font-family: var(--font-ui);
  font-size: 15px; font-weight: 500;
  color: var(--color-dark); text-decoration: none;
}
.mobile-nav-list > .menu-item > a:hover { color: #D97B48; }
/* Mobile accordion sub-items */
.mobile-sub { display: none; padding: 4px 0 12px 12px; list-style: none; }
.mobile-sub.open { display: block; }
.mobile-sub-head {
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: #D97B48; padding: 8px 0 4px; display: block;
}
.mobile-sub li a {
  display: block; padding: 5px 0;
  font-family: var(--font-ui); font-size: 13px; font-weight: 400;
  color: #555; text-decoration: none;
}
.mobile-sub li a:hover { color: #D97B48; }
.mobile-chevron { font-size: 11px; color: #aaa; transition: transform 0.25s; display: inline-block; }
.mobile-chevron.open { transform: rotate(180deg); }

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--color-footer-bg); color: white; padding: 60px 0 30px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.footer-logo { height: 36px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; display: block; }
.footer-sitename { font-family: var(--font-ui); font-size: 20px; font-weight: 600; color: white; margin-bottom: 12px; }
.footer-about p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-social a:hover { color: white; }
.footer-social svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; display: block; }
.footer-column h4 { font-family: var(--font-ui); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 10px; }
.footer-column a { color: rgba(255,255,255,0.7); font-size: 14px; text-decoration: none; transition: color 0.2s; }
.footer-column a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 28px; font-size: 13px; color: rgba(255,255,255,0.3); text-align: center; }

/* ─── ENSURE DROPDOWN NEVER SHOWS ON MOBILE ─────────── */
@media (max-width: 1024px) {
  .dropdown-content { display: none !important; }
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: block; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
  .navbar { border-bottom: none !important; box-shadow: none !important; }
}
@media (max-width: 640px) {
  .footer-content { grid-template-columns: 1fr; }
  .nav-container { padding: 0 20px; }
  .search-bar-inner { padding: 0 20px; }
}
