/* ==========================================================
   Velona Travels — mobile layer
   Loaded last on every page. Desktop is untouched.
   ========================================================== */
:root { --vt-mobile-css: 1; }

/* ---------- Menu (hidden until opened, on every screen size) ---------- */
#vt-burger { display: none; }

#vt-overlay {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(13, 27, 42, .45);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
#vt-drawer {
  position: fixed; top: 0; right: 0; z-index: 999;
  width: min(84vw, 340px); height: 100vh; height: 100dvh;
  background: #fff;
  display: flex; flex-direction: column;
  padding: 18px 26px calc(26px + env(safe-area-inset-bottom));
  overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility .35s;
  box-shadow: -12px 0 40px rgba(0,0,0,.14);
}
.vt-menu-open #vt-overlay { opacity: 1; visibility: visible; }
.vt-menu-open #vt-drawer  { transform: none; visibility: visible; }
.vt-menu-open, .vt-menu-open body { overflow: hidden; }

.vt-d-head { display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid #ece6da; }
.vt-d-head img { height: 46px; width: auto; display: block; }
.vt-d-close { width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: #f4efe6; color: #1c1c1c; font-size: 26px; line-height: 1; cursor: pointer; }

.vt-d-links { list-style: none; margin: 6px 0 22px; padding: 0; }
.vt-d-links li { border-bottom: 1px solid #f0ebe2; }
.vt-d-links a { display: flex; align-items: center; justify-content: space-between;
  padding: 15px 2px; text-decoration: none; color: #1c1c1c;
  font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; font-weight: 600; }
.vt-d-links a::after { content: '›'; color: #c4a46a; font-size: 1.3rem; font-family: Inter, sans-serif; }
.vt-d-links a.is-active { color: #b8862c; }

.vt-d-cta { display: block; text-align: center; text-decoration: none;
  background: #1f3a2b; color: #fff; padding: 15px; border-radius: 6px;
  font-family: Inter, sans-serif; font-weight: 600; font-size: 14px;
  letter-spacing: 1.5px; text-transform: uppercase; }

.vt-d-contact { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.vt-d-contact a { color: #6b6b6b; text-decoration: none; font-family: Inter, sans-serif; font-size: 14px; }
.vt-d-contact .vt-d-wa { display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25d366; color: #fff; padding: 12px; border-radius: 6px; font-weight: 600; }

/* ---------- Tablet & phone: switch to hamburger ---------- */
@media (max-width: 900px) {
  .topbar { display: none !important; }
  nav .nav-links { display: none !important; }

  #vt-burger { display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 44px; height: 44px; margin-left: auto; flex-shrink: 0;
    border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
  #vt-burger span { display: block; width: 24px; height: 2px; border-radius: 2px;
    background: #1c1c1c; transition: transform .3s, opacity .3s; }
  .vt-menu-open #vt-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .vt-menu-open #vt-burger span:nth-child(2) { opacity: 0; }
  .vt-menu-open #vt-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Phone ---------- */
@media (max-width: 768px) {
  body { overflow-x: clip; }
  img { max-width: 100%; }

  /* Header */
  nav { padding: 0 16px !important; }
  nav .nav-inner { height: 64px !important; gap: 10px; }
  nav .logo-img { gap: 8px !important; min-width: 0; }
  nav .logo-img img { height: 40px !important; }
  nav .logo-name .ln1 { font-size: 1.05rem !important; white-space: nowrap; }
  nav .logo-name .ln2 { font-size: .5rem !important; letter-spacing: 1.6px !important; white-space: nowrap; }

  /* Home hero */
  .hero-center { padding: 0 22px; }
  .hero-center h1 { font-size: 2.7rem !important; line-height: 1.05; }
  .hero-center p { font-size: 1rem !important; }
  .hero-btns { flex-direction: column; align-items: stretch; width: 100%; max-width: 300px; margin: 0 auto; gap: 12px !important; }
  .hero-btns .btn { text-align: center; }
  .hero-dots { display: none !important; }

  /* Home sections: calmer spacing */
  .welcome, .moods, .featured, .dest-strip, .why, .testimonials { padding: 4.5rem 20px !important; }
  .trust-section { padding: 4rem 20px !important; }
  .newsletter { padding: 3rem 20px !important; }
  .section-title { font-size: 2rem !important; line-height: 1.2; }

  .trust-grid { grid-template-columns: 1fr 1fr !important; }
  .trust-card { padding: 1.75rem 1rem !important; border-bottom: 1px solid var(--sand-dark); }
  .trust-badges { gap: 8px !important; }
  .why-grid { grid-template-columns: 1fr !important; }
  .dest-photos { grid-template-columns: 1fr 1fr !important; }
  .dp-photo { height: 210px !important; }
  .price-usd { font-size: 1.15rem !important; }

  /* Tour detail pages */
  .tour-page { padding: 1.25rem 18px 7rem !important; }
  .tour-left { min-width: 0; }
  .tour-title { font-size: 1.65rem !important; line-height: 1.25; }
  .tour-gallery { grid-template-columns: 1fr 1fr !important; grid-template-rows: 210px 110px 110px !important;
    height: auto !important; border-radius: 10px !important; }
  .tour-gallery .tg-main { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .tour-tabs { top: 64px !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .ttab { white-space: nowrap; padding: 10px 14px !important; flex-shrink: 0; }
  .similar-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }

  /* Tour bottom bar: one clean row */
  .sticky-bar { flex-wrap: nowrap !important; gap: 10px !important;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) !important; }
  .sticky-bar .sb-label { display: none !important; }
  .sticky-bar .sb-pill:nth-of-type(3) { display: none !important; }
  .sticky-bar .sb-pill select { max-width: 92px; font-size: 13px !important; }
  .sticky-bar .sb-pill { padding: 10px 12px !important; font-size: 13px !important; flex-shrink: 0; gap: 6px !important; }
  .sticky-bar .sb-avail { flex: 1; min-width: 0; margin-left: 0 !important; text-align: center; padding: 12px 8px !important;
    font-size: 0 !important; white-space: nowrap; }
  .sticky-bar .sb-avail::after { content: "Get Quote"; font-size: 15px; font-weight: 700; }
  body:has(.sticky-bar) .wa-float { bottom: 84px !important; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr !important; gap: 2.25rem !important; }
}

/* ---------- Small phones ---------- */
@media (max-width: 380px) {
  .nl-form { flex-direction: column; gap: 10px; }
  .sticky-bar { gap: 8px !important; padding-left: 10px !important; padding-right: 10px !important; }
  .sticky-bar .sb-pill { padding: 9px 9px !important; font-size: 12px !important; }
  .sticky-bar .sb-pill select { font-size: 12px !important; max-width: 80px; }
  .nl-form input { border-right: 1px solid rgba(255,255,255,.1) !important; }
  nav .logo-name .ln2 { display: none !important; }
  .hero-center h1 { font-size: 2.3rem !important; }
  .trust-grid { grid-template-columns: 1fr !important; }
}

/* ---------- Header style I: logo + gold divider + tagline ---------- */
nav .logo-img img { height: 66px !important; }
nav .nav-inner { height: 86px !important; }
nav .logo-name .ln1 { display: none !important; }
nav .logo-name { display: flex !important; border-left: 1px solid #c9a46a; padding-left: 16px; margin-left: 8px; }
nav .logo-name .ln2 { font-size: .72rem !important; letter-spacing: 3px !important; line-height: 1.7 !important;
  max-width: 150px; white-space: normal !important; }
.tour-tabs { top: 86px !important; }
@media (max-width: 768px) {
  nav .logo-img img { height: 74px !important; }
  nav .nav-inner { height: 94px !important; }
  nav .logo-name { display: none !important; }
  .tour-tabs { top: 94px !important; }
  .nl-form { flex-direction: column; gap: 10px; }
  .nl-form input { border-right: 1px solid rgba(255,255,255,.1) !important; }
}
@media (max-width: 360px) {
  nav .logo-img img { height: 64px !important; }
  nav .nav-inner { height: 84px !important; }
  .tour-tabs { top: 84px !important; }
}

/* ---------- WhatsApp floating button (all pages, all screens) ---------- */
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 900;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff !important;
  display: flex !important; align-items: center; justify-content: center; text-decoration: none;
  box-shadow: 0 4px 18px rgba(37,211,102,.45); transition: transform .2s; animation: vtWaPulse 2.6s ease infinite; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; display: block; }
@keyframes vtWaPulse { 0%,100% { box-shadow: 0 4px 18px rgba(37,211,102,.45); } 50% { box-shadow: 0 4px 30px rgba(37,211,102,.75); } }
body:has(.sticky-bar) .wa-float { bottom: calc(90px + env(safe-area-inset-bottom)); }

/* ---------- Phone polish round 2 ---------- */
@media (max-width: 768px) {
  /* stop double side-padding that squeezed the cards */
  .container { padding-left: 0 !important; padding-right: 0 !important; }

  /* Home: featured tour cards */
  .tc-foot { flex-wrap: wrap; align-items: center !important; gap: 12px; }
  .price-usd { white-space: nowrap; font-size: 1.2rem !important; }
  .tc-foot .price-from, .tc-foot .price-pp { display: none; }

  /* Home: "Travel with total confidence" */
  .trust-grid { grid-template-columns: 1fr !important; }
  .trust-card { border-right: 0 !important; padding: 1.75rem 1.25rem !important; }
  .trust-badges { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
  .tbadge { padding: .7rem .6rem !important; font-size: 12px !important; justify-content: center; text-align: center; gap: 6px !important; }

  /* Experiences page: one card per row */
  .exp-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }

  /* Contact form interest chips */
  .chip { gap: 8px !important; }
  .chip input { width: 16px !important; height: 16px !important; padding: 0 !important; margin: 0 !important; flex-shrink: 0; }

  /* Footer */
  footer .logo-name { display: none !important; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; padding-bottom: 6px; }
}

/* ---------- Clickable home mood cards ---------- */
a.mood { display: block; color: inherit; text-decoration: none; }

/* ---------- Tour photo viewer ---------- */
#vt-pv { position: fixed; inset: 0; z-index: 1001; background: rgba(8, 14, 22, .94);
  display: none; align-items: center; justify-content: center; padding: 56px 12px; }
#vt-pv.open { display: flex; }
.vt-pv-open, .vt-pv-open body { overflow: hidden; }
#vt-pv img { max-width: min(1100px, 100%); max-height: 100%; object-fit: contain; border-radius: 6px; display: block; }
.vt-pv-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.vt-pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.vt-pv-prev { left: 12px; } .vt-pv-next { right: 12px; }
#vt-pv.single .vt-pv-nav { display: none; }
.vt-pv-count { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.75); font: 600 13px/1 Inter, sans-serif; letter-spacing: 1px; pointer-events: none; }
@media (max-width: 768px) {
  .vt-pv-nav { top: auto; bottom: calc(4px + env(safe-area-inset-bottom)); transform: none; z-index: 2; }
  .vt-pv-count { bottom: calc(20px + env(safe-area-inset-bottom)); }
  .vt-pv-prev { left: 18px; } .vt-pv-next { right: 18px; }
}
a.dp { display: block; color: inherit; text-decoration: none; }
