/* =========================================================
   SITE — pieces the static design didn't cover, needed by the live site
   (logged-in user menu, skeleton loaders, WhatsApp button, flash messages,
   newsletter status, extra reveal direction). Tokens from base.css only.
   ========================================================= */

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: 600;
}

/* ---------- Navbar: logged-in user ---------- */
.main-nav__user { gap: 8px; padding: 0 12px 0 5px; max-width: 220px; }
.main-nav__avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.main-nav__user-name { overflow: hidden; text-overflow: ellipsis; }
.main-nav__user .main-nav__chevron { display: block; }
.main-nav__user[aria-expanded="true"] .main-nav__chevron { transform: rotate(180deg); }
.main-nav__dropdown {
  --bs-dropdown-link-active-bg: var(--color-primary);
  min-width: 200px;
  margin-top: 10px !important;
  padding: 8px;
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: 0 12px 32px rgba(8, 26, 40, .18);
}
.main-nav__dropdown .dropdown-item { padding: 8px 12px; border-radius: 8px; color: var(--color-navy); font-size: 14px; }
.main-nav__dropdown .dropdown-item:hover,
.main-nav__dropdown .dropdown-item:focus { background: var(--color-light); color: var(--color-primary); }

@media (max-width: 1199.98px) {
  .main-nav__account { width: 100%; }
  .main-nav__user { width: 100%; max-width: none; justify-content: flex-start; }
  .main-nav__user .main-nav__chevron { margin-left: auto; }
  .main-nav__dropdown { width: 100%; margin-top: 6px !important; }
}

/* Mega menu: category without tours yet */
.mega__empty { margin: 0 0 4px 10px; color: #5F5F5F; font-size: 14px; }

/* ---------- Hero Must-See: price line ---------- */
.hero-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.hero-card__price { margin: auto 0 22px; font-size: 13px; line-height: 16px; color: rgba(255, 255, 255, .85); }
.hero-card__price strong { color: var(--color-gold); font-weight: 600; }
.hero-card__media { display: block; }
.hero-card__media img { transition: transform .6s ease; }
.hero-card__media:hover img { transform: scale(1.08); }

/* ---------- Skeleton loaders (grey placeholders while AJAX sections load) ---------- */
.skeleton-track { display: flex; gap: var(--pc-gap); margin: 0; padding: 0; list-style: none; }
.tour-card--skeleton { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); pointer-events: none; }
.tour-card--skeleton:hover { transform: none; }
.skeleton-block {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, #ECEEF1 25%, #F6F7F9 37%, #ECEEF1 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}
.skeleton-block--media { aspect-ratio: 293 / 343; border-radius: var(--radius-media); margin-bottom: 26px; }
.skeleton-block--line { height: 12px; margin: 0 6px 10px; }
.skeleton-block--short { width: 45%; }
.skeleton-block--mid { width: 70%; }
.skeleton-block--footer { display: flex; justify-content: space-between; align-items: center; margin: 18px 6px 9px; background: none; animation: none; }
.skeleton-block--price { width: 34%; height: 18px; }
.skeleton-block--button { width: 96px; height: 38px; border-radius: var(--radius-pill); }
@keyframes skeleton-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Show only as many skeleton cards as the carousel shows real ones */
@media (max-width: 1319.98px) { .skeleton-track__item:nth-child(n+4) { display: none; } }
@media (max-width: 767.98px)  { .skeleton-track__item:nth-child(n+3) { display: none; } .skeleton-block--button { width: 100%; } .skeleton-block--footer { flex-direction: column; align-items: stretch; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .skeleton-block { animation: none; } }

/* ---------- Floating WhatsApp button (home, bottom-left as before; Tawk chat sits bottom-right) ---------- */
.whatsapp-float {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1020;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 8px 24px rgba(8, 26, 40, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 28px rgba(8, 26, 40, .3); }
@media (max-width: 767.98px) {
  .whatsapp-float { left: 16px; bottom: calc(var(--mobile-bar-h, 64px) + 16px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; }
}

/* ---------- Flash messages (session success / fail) ---------- */
.site-flash {
  position: fixed;
  top: 110px;
  left: 50%;
  z-index: 1040;
  width: min(560px, calc(100% - 32px));
  transform: translateX(-50%);
}
.site-flash__item { margin-bottom: 8px; border: 0; border-radius: var(--radius-card); box-shadow: 0 12px 32px rgba(8, 26, 40, .18); }
.site-flash__item p:last-child { margin-bottom: 0; }

/* ---------- Newsletter status ---------- */
.newsletter__status { margin: 12px 0 0; font-size: 14px; font-weight: 500; }
.newsletter__status.is-success { color: var(--color-white); }
.newsletter__status.is-error { color: var(--color-gold-light); }
.newsletter__submit:disabled { opacity: .7; cursor: progress; }

/* ---------- FAQs: "View all" link ---------- */
.faqs__more { display: flex; justify-content: center; margin: 32px 0 0; }

/* ---------- Scroll reveal: from below ---------- */
.js-reveal [data-reveal="up"] { transform: translateY(40px); }

/* ---------- Top Destinations: Best Selling promo alone (no top tours yet) → full row ---------- */
.top-destinations__featured > .best-selling:only-child { grid-column: 1 / -1; min-height: 360px; }

/* ---------- Tour card: wishlist heart (Home::like_tours) ---------- */
.tour-card { position: relative; }
.tour-card__wish {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--color-navy);
  box-shadow: 0 4px 12px rgba(8, 26, 40, .15);
  transition: transform .2s ease, color .2s ease;
}
.tour-card__wish svg { fill: none; }
.tour-card__wish:hover,
.tour-card__wish:focus-visible { transform: scale(1.08); color: #E0245E; }
.tour-card__wish.is-liked { color: #E0245E; }
.tour-card__wish.is-liked svg { fill: currentColor; }
.tour-card__wish:disabled { cursor: progress; }
@media (max-width: 991.98px) { .tour-card__wish { top: 12px; right: 12px; width: 30px; height: 30px; } .tour-card__wish svg { width: 15px; height: 15px; } }

/* ---------- Forms: server error message (contact, auth) ---------- */
.form-status--error { background: #FDECEE; color: #B42318; }

/* ---------- About: guide without a photo → initials ---------- */
.guide-card__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 293 / 343;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-navy) 100%);
  color: var(--color-white);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: 2px;
}

/* ---------- Blog post: author photo, editor HTML ---------- */
img.blog-author__avatar { object-fit: cover; }
.prose__section > :last-child { margin-bottom: 0; }
.prose__section img { max-width: 100%; height: auto; border-radius: var(--radius-media); }
.prose__section table { display: block; max-width: 100%; overflow-x: auto; }

/* ---------- Auth pages ---------- */
.whatsapp-float--auth { z-index: 5; }
@media (max-width: 767.98px) { .whatsapp-float--auth { bottom: 16px; } }
.auth__logo img { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.auth-flash { margin: 0; }
