/* Uses CSS vars with sensible fallbacks for pages missing definitions */

/* Ensure anchor buttons don’t underline (safe global) */
a.btn { text-decoration: none; }

/* Kili route pages: Included / Not Included cards */
.card.inc-exc-card{
  background: linear-gradient(160deg, rgba(196,0,106,.08), rgba(255,184,0,.06)) !important;
}

/* Intro bullet icon background: use bubblegum pink brand */
.bullet i {
  background: linear-gradient(135deg, #FF69B4, #FF69B4) !important;
  color: #fff !important; /* ensure good contrast on pink */
}

/* ---------------------------------------
   Footer polish: contact cards + branding
   --------------------------------------- */
/* Brand logo size in footer */
footer .ft-brand .logo {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  overflow: hidden;
}
footer .ft-brand h4 {
  margin: 0 !important;
  font-family: Poppins, sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(1rem, 2.2vw, 1.25rem) !important;
  letter-spacing: .2px;
  color: #fff;
}

/* Footer contact cards */
footer .card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)) !important;
  border: 1px solid var(--line, rgba(255,255,255,.1)) !important;
  border-radius: 14px !important;
  padding: 1rem !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transition: transform .25s ease, background .25s ease;
}
footer .card:hover { transform: translateY(-3px); background: rgba(255,255,255,.07); }
footer .card h3 {
  margin: .15rem 0 .15rem !important;
  font: 800 1rem/1.2 Poppins, sans-serif !important;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #f2f2f2;
}
footer .card h3 i {
  font-size: 1rem;
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF69B4, #FF69B4);
  color: #fff;
}
footer .card p { 
  margin: 0 !important; 
  color: #cfcfcf !important; 
  white-space: nowrap;            /* keep content on one line */
  overflow: hidden;               /* avoid overflow spilling */
  text-overflow: ellipsis;        /* show … if it can't fit */
  word-break: keep-all;           /* don't break words/emails */
}

@media (max-width: 900px){
  footer .card { padding: .9rem !important; min-height: unset; }
  footer .ft-brand .logo { width: 40px !important; height: 40px !important; }
  footer .card h3 { justify-content: center !important; text-align: center !important; }
}

/* Allow footer grid to adapt column widths before wrapping text */
footer .grid.cols-3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1rem;
}
@media (max-width: 800px){
  footer .grid.cols-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  footer .grid.cols-3{ grid-template-columns: 1fr; }
}

/* ------------------------------
   No Hyphenation / No Word Splits
   ------------------------------ */
/* Prevent browsers from auto-hyphenating words or breaking inside words.
   This applies site-wide (all pages, all components). */
*,
*::before,
*::after{
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
  hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* ------------------------------
   Chips Must Stay One Line
   ------------------------------ */
/* Chips/badges/pills/duration labels should never wrap onto multiple lines.
   (Containers may wrap between chips; the chip itself stays single-line.) */
.chip,
.badge,
.img-badge,
.pill,
.dur,
.plan-chip,
.info{
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
}

/* ------------------------------
   Form CTA button height
   ------------------------------ */
/* Applies only to the contact-form action row used on index.html + contact.html */
.plan-actions .btn{
  min-height: 56px !important;
  padding: .95rem 1.35rem !important;
}
@media (max-width: 900px){
  .plan-actions .btn{ min-height: 49px !important; }
}

/* ------------------------------
  Itinerary CTA card (match itinerary4 CTA)
  ------------------------------ */
/* Used by itinerary pages + itineraries.html to keep CTA consistent on all screen sizes. */
.cta-section{
  padding: 0 !important;
  margin: 40px 0;
}

@media (max-width: 768px){
  .cta-section{ margin: 28px 0; }
}

@media (max-width: 480px){
  .cta-section{ margin: 22px 0; }
}

.cta-section .cta-card{
  border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: 24px;
  background:
    radial-gradient(900px 400px at 90% -10%, rgba(196,0,106,.35), transparent 60%),
    radial-gradient(900px 400px at 10% 110%, rgba(255,184,0,.25), transparent 60%),
    linear-gradient(135deg, #16131a, #100f15);
  box-shadow: var(--shadow, 0 12px 40px rgba(0,0,0,.35));
  padding: clamp(1.6rem, 4.4vw, 2.4rem);
  text-align: center;
  width: 100%;
  max-width: min(920px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.cta-section .cta-card::before{display:none}
.cta-section .cta-card > *{position:relative}
.cta-section .cta-title{font:800 clamp(1.35rem,3.6vw,2rem)/1.15 Poppins;margin:.3rem 0 .7rem}
.cta-section .cta-copy{color:#dcdcdc;margin:0 auto 1.35rem;max-width:60ch}
.cta-section .cta-actions{display:flex;gap:.9rem;justify-content:center;flex-wrap:wrap}
.cta-section .cta-actions .btn{width:fit-content;max-width:100%}

/* Make CTA buttons consistent (even if btn-gold is used) */
.cta-section .cta-actions .btn-primary,
.cta-section .cta-actions .btn-gold{
  background: linear-gradient(135deg, var(--magenta, #FF69B4), var(--magenta-700, #FF69B4));
  color: #fff;
  border-color: #ffffff15;
}

@media (min-width: 560px){
  .cta-section .cta-actions .btn{width:auto}
}

@media (max-width: 900px){
  /* Mobile/tablet: make CTA card wider + taller without affecting other sections */
  .cta-section > .container{
    width: min(1200px, 98vw) !important;
    padding-inline: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .cta-section .cta-card{
    padding: 3.72rem clamp(1.35rem, 6vw, 1.8rem) !important;
  }
}

@media (max-width: 640px){
  .cta-section .cta-actions{flex-direction:column;align-items:center;width:100%}
  .cta-section .cta-actions{gap:.85rem}

  /* Override responsive.css global .btn shrink rules on small screens */
  .cta-section .cta-actions .btn{
    width: clamp(252px, 72vw, 320px) !important;
    max-width: 100% !important;
    min-height: 55px !important;
    padding: 1.08rem 1.3rem !important;
    justify-content: center;
    white-space: nowrap;
    font-size: 12px !important;
    line-height: 1 !important;
  }
  .cta-section .cta-actions .btn i{line-height: 1 !important;}
}

/* ------------------------------
   Overlay Badges: Top-left
   ------------------------------ */
/* Only labels that sit on top of images (not inline badges in page copy). */
.card-img > [class*="badge"]:not(.icon-badge):not(.device-badge):not(.status-badge),
.itin-img > [class*="badge"]:not(.icon-badge):not(.device-badge):not(.status-badge),
.day-media > [class*="badge"]:not(.icon-badge):not(.device-badge):not(.status-badge){
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;
}

/* Ensure icons inside chips don't shrink and force wrapping */
.chip i,
.badge i,
.pill i,
.dur i,
.plan-chip i,
.info i,
.chip svg,
.badge svg,
.pill svg,
.dur svg,
.plan-chip svg,
.info svg{
  flex: 0 0 auto !important;
}

/* ------------------------------
   Global navbar enhancements
   ------------------------------ */
/* Active link highlight (works on light/dark headers) */
nav a[aria-current="page"],
nav a.active{
  color: #FF69B4 !important;
  font-weight: bolder;
  position: relative;
}
@media (min-width: 901px){
  nav a[aria-current="page"]::after,
  nav a.active::after{
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold, #ffb800), #FF69B4);
    border-radius: 999px;
  }
}

/* Dropdown (Itineraries) */
nav li{ position: relative; }
nav li.has-submenu > .submenu{
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: --glass;
  border: 1px solid var(--line, #efeff3);
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(0,0,0,.16);
  min-width: 240px;
  padding: 8px;
  z-index: 200;
}
nav li.has-submenu > .submenu li{ list-style: none; margin: 0; }
nav li.has-submenu > .submenu a{
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #FF69B4 !important;
  white-space: nowrap;
}
nav li.has-submenu > .submenu a:hover{ background: #FAFAFC; }

/* ------------------------------
   Itinerary Price Guide (mobile)
   ------------------------------ */
/* Only affects itinerary1–itinerary4 (they're the only pages using section#price). */
@media (max-width: 640px){
  /* itinerary1–3: .price cards */
  #price .price > p.muted{
    font-size: .88rem !important;
    line-height: 1.25 !important;
    margin: .25rem 0 0 !important;
  }

  /* itinerary4: .card blocks in the price section */
  #price .card > p.muted{
    font-size: .88rem !important;
    line-height: 1.25 !important;
    margin: .35rem 0 0 !important;
  }
}

/* Show submenu on hover (desktop) */
@media (min-width: 901px){
  nav li.has-submenu:hover > .submenu{ display: block; }
}

/* Mobile submenu toggle button (hidden on desktop) */
.submenu-toggle{ display: none; }
@media (max-width: 900px){
  nav li.has-submenu{ display: flex; align-items: center; gap: 6px; }
  .submenu-toggle{
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    min-width: 32px; min-height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 105, 180, 0.15); 
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: rgba(255, 105, 180, 0.2);
  }
  .submenu-toggle::before{ 
    content: "▾"; 
    font-size: 14px; 
    line-height: 1; 
    transition: transform 0.3s ease;
    pointer-events: none;
  }
  .submenu-toggle:hover,
  .submenu-toggle:focus{
    background: rgba(255, 105, 180, 0.25);
    border-color: rgba(255, 105, 180, 0.4);
  }
  nav li.has-submenu.open .submenu-toggle::before{
    transform: rotate(180deg);
  }
  nav li.has-submenu > .submenu{
    position: static;
    display: none;
    border: 0; box-shadow: none;
    padding: 6px 0 0 10px;
  }
  nav li.has-submenu.open > .submenu{ display: block; }
}

/* ------------------------------
   Form polish (mobile + accents)
   ------------------------------ */

/* Match native checkbox/radio ticks to Safari Chic pink */
input[type="checkbox"],
input[type="radio"]{
  accent-color: var(--magenta, #FF69B4);
}

/* Slightly larger tap target for checkboxes */
input[type="checkbox"],
input[type="radio"]{
  width: 18px;
  height: 18px;
}

/* Index "Plan Your Trip" form: keep submit button fit-to-text */
#plan-form button{
  width: fit-content;
  justify-self: start;
}

/* Index "Plan Your Trip" form: keep action buttons same width */
#plan-form .plan-actions,
#form form .plan-actions{
  display: inline-grid;
  grid-template-columns: max-content;
  gap: .55rem;
  margin-top: .4rem;
}

#plan-form .plan-actions button,
#plan-form .plan-actions a,
#form form .plan-actions button,
#form form .plan-actions a{
  width: 100%;
}

/* Ensure the submit "Chat With The Team" button text matches requested size */
#plan-form .plan-actions button,
#form form .plan-actions button{
  font-size: 13.33333px !important;
}

/* Scale down ONLY the WhatsApp button so it matches the submit button */
#plan-form .plan-actions a.whatsapp-btn,
#form form .plan-actions a.whatsapp-btn{
  font-family: inherit;
  font-size: 13.33333px !important;
  line-height: 1.1;
  padding: .82rem 1.3rem;
}

/* WhatsApp icon glyph is optically larger; normalize it */
#plan-form .plan-actions a.whatsapp-btn i,
#form form .plan-actions a.whatsapp-btn i{
  width: 1.05em;
  height: 1.05em;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  flex: 0 0 auto;
  font-size: .95em;
}

#plan-form .plan-actions > .btn,
#form form .plan-actions > .btn{
  justify-content: center;
}

/* Mobile: stack form grids + avoid iOS zoom-on-focus */
@media (max-width: 560px){
  /* Contact page form uses inline grid-template-columns; override safely */
  #form form .grid{ grid-template-columns: 1fr !important; }
  #form form input,
  #form form select,
  #form form textarea{ font-size: 16px; }
  #form form button{ width: 100%; justify-content: center; }

  /* Index "Plan Your Trip" form */
  #plan-form .grid.cols-2,
  #plan-form .grid.cols-3{ grid-template-columns: 1fr !important; }
  #plan-form input,
  #plan-form select,
  #plan-form textarea{ font-size: 16px; }
  #plan-form button{ width: fit-content; justify-self: start; }

  /* Make contact actions comfortable on narrow screens */
  #plan-form .plan-actions,
  #form form .plan-actions{ display: grid; grid-template-columns: 1fr; width: 100%; }
  #plan-form .plan-actions button,
  #plan-form .plan-actions a,
  #form form .plan-actions button,
  #form form .plan-actions a{ width: 100%; justify-content: center; }
}
