/* =========================================================
   GLOBAL BASE
========================================================= */

/* 0) Prevent horizontal scroll from any outliers */
html, body { overflow-x: hidden; }

/* 1) Typography stacks (order matters: specific beats generic) */
@import url('https://fonts.googleapis.com/css2?family=Exo:wght@600;700;800&family=Heebo:wght@400;500;600&family=Poppins:wght@400;500;600;700;800&display=swap');

:root{
  /* Fallback tokens if not defined elsewhere */
  --mnb-navy: #1a2531;
  --mnb-radius: 12px;
  --mnb-shadow: 0 8px 24px rgba(0,0,0,.18);
  --mnb-border-strong: 1px solid rgba(0,0,0,.06);
}

*,
*::before,
*::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  padding: 0;
  background: url('https://www.transparenttextures.com/patterns/arches.png') repeat, #f9f9f9;
  color: #1c2430;
  font-family: 'Heebo', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keep headings distinct */
h1, h2, h3{
  font-family: 'Exo', 'Poppins', 'Heebo', sans-serif;
  margin-top: 0;
  color: #0f1720;
}

/* Links */
a{ text-decoration: none; color: inherit; }

/* Media defaults to avoid overflow */
img, svg, video, canvas{
  max-width: 100%;
  height: auto;
  display: block;
}

/* Long words/URLs never trigger horizontal scroll */
p, li, h1, h2, h3, h4, h5, h6, a, small{
  overflow-wrap: anywhere;
}

/* Reduced motion: dampen transforms/transitions */
@media (prefers-reduced-motion: reduce){
  * { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}

/* =========================================================
   DECORATIVE WAVES (SAFE)
========================================================= */

.page-waves{
  position: fixed;
  inset: 0;                 /* top:0 right:0 bottom:0 left:0 */
  z-index: -1;
  pointer-events: none;
  /* Ensure descendants don't affect layout size */
  contain: layout paint;
}

.wave-top,
.wave-bottom{
  position: absolute;
  inset-inline: 0;          /* left/right = 0 */
  width: 100vw;             /* anchor to viewport width */
  overflow: hidden;         /* clip wide paths/filters */
}

.wave-top{ inset-block-start: 0; transform: translateY(-30px); }
.wave-bottom{ inset-block-end: 0; transform: translateY(30px); }

.wave-top svg,
.wave-bottom svg{
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar{
  background-color: rgba(255,255,255,0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: background-color .3s ease, box-shadow .3s ease;
  backdrop-filter: saturate(120%) blur(8px);
}

.navbar-brand img{ height: 68px; }

.nav-link{
  color: #333;
  font-weight: 500;
  margin: 0 10px;
}

.nav-link:hover{
  color: rgb(7 144 205);
  font-weight: 700;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show{
  color: rgb(8 137 200);
  font-weight: 700;
}
.text-success{ color: #088bc9 !important; }

/* =========================================================
   HERO
========================================================= */

.hero{
  position: relative;
  background: url('../images/travel-banner.jpg') center/cover no-repeat;
  color: #fff;
  padding: 140px 15px 160px;
  text-align: left;
  margin-top: 80px;
  overflow-x: clip; /* prevents shadow/transform overflow */
}

.hero::before{
  content: '';
  position: absolute;
  inset: 0;
  background: #0000003d;
  z-index: 0;
}

.hero .container{ position: relative; z-index: 1; }

.hero h1{
  font-size: clamp(2rem, 2.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero h1 .green{ color: #F44336; }
.hero h1 .blue{ color: #FF5722; }

.hero .btn-primary{
  background-color: #088bc9;
  border: none;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 8px;
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.hero .btn-primary:hover{ background-color: #088bc9; transform: translateY(-2px); }

.hero .btn-outline-light{
  border: 1px solid #fff;
  color: #fff;
  font-weight: 600;
  transition: color .3s ease, background-color .3s ease, transform .3s ease;
}
.hero .btn-outline-light:hover{
  background: #ffffffcc;
  color: #000;
  transform: translateY(-2px);
}

.hero-buttons{ margin-top: 25px; }

/* =========================================================
   FILTER SECTION
========================================================= */

.filter-section{
  margin-top: -60px;
  z-index: 2;
  position: relative;
}

.filter-form{
  background: #0e8bc626;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.filter-group{
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.filter-label{
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}
.filter-label i{ margin-right: 6px; color: #088bc9; }

.filter-select{
  border: none;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 15px;
  color: #000;
  background-color: transparent;
}
.filter-select:focus{ outline: none; box-shadow: none; }

.btn-search{
  background-color: #088bc9;
  color: white;
  font-weight: 700;
  border-radius: 50px;
  padding: 12px 30px;
  border: none;
  width: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-search:hover{ background-color: #088bc9; transform: translateY(-2px); }

/* =========================================================
   WHO WE ARE – CARDS + SHAPES (SAFE)
========================================================= */

#who-we-are .feature-card{
  background: #fff;
  border: 2px dashed #d0ead2;
  border-radius: 20px;
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
  position: relative;
  overflow: hidden;
}
#who-we-are .feature-card:hover{
  border-color: #088bc9;
  box-shadow: 0 15px 30px rgba(109,176,81,0.15);
  transform: translateY(-5px);
}

#who-we-are .icon-wrapper{
  width: 60px; height: 60px;
  margin: 0 auto;
  background: rgb(14 139 198 / 8%);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s ease;
}

#who-we-are .feature-card h6{ font-size: 1.1rem; }
#who-we-are .feature-card p{ font-size: 14px; }

/* Shapes – clamp inside viewport to avoid overflow */
#who-we-are .shape{
  position: absolute;
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
  max-width: 100vw;
}
#who-we-are .shape-1{
  top: 0; left: -40px;
  width: 180px; height: 180px;
  background: url('https://www.transparenttextures.com/patterns/purty-wood.png');
  background-size: cover;
  transform: rotate(45deg);
}
#who-we-are .shape-2{
  bottom: -30px; right: -40px;
  width: 160px; height: 160px;
  background: url('https://www.transparenttextures.com/patterns/cubes.png');
  background-size: cover;
  transform: rotate(-15deg);
}

/* =========================================================
   WHAT WE PROVIDE – SECTION
========================================================= */

#what-we-provide{
  position: relative;
  padding: 100px 0;
  background-color: #f2f4f5;
  background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
  background-repeat: repeat;
  background-size: 180px 180px;
  z-index: 1;
  overflow-x: clip;
}

.service-clean{ transition: color .3s ease, transform .3s ease; }
.service-clean:hover h5{ color: #088bc9; transform: translateY(-1px); }

.icon-square{
  width: 60px; height: 60px;
  background-color: #083e66;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* =========================================================
   PACKAGES / OVERLAY CARDS
========================================================= */

.package-overlay-card{
  height: 420px;
  background-color: #000;
  border-radius: 20px;
  overflow: hidden;
}
.package-overlay-card img{
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.package-overlay-card:hover img{ transform: scale(1.08); }

.overlay-gradient{
  background: linear-gradient(to top, rgb(0 0 0 / 42%), rgba(0,0,0,0.25));
}

.rating i{ font-size: 0.85rem; }

/* =========================================================
   FEATURE CARDS (GENERIC)
========================================================= */

.feature-card{
  transition: transform .3s ease, box-shadow .3s ease;
  border-radius: 16px;
  border: 1px solid #eee;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  background: #fff;
}
.feature-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.feature-icon{
  width: 60px; height: 60px;
  font-size: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.icon-green  { background-color: #e7f7ee; color: #28a745; }
.icon-yellow { background-color: #fff9db; color: #f2af00; }
.icon-orange { background-color: #ffece0; color: #ff7700; }

/* =========================================================
   TOUR GRID (RESPONSIVE CARDS)
========================================================= */

.tour-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-inline: 0;       /* guard against rounding pushing width */
}

.tour-card-grid{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  cursor: pointer;
  background: #000;
}
.tour-card-grid img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.tour-card-grid:hover img{ transform: scale(1.08); }

.tour-card-overlay{
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  padding: 1rem;
  transition: background .3s ease;
}
.tour-card-grid:hover .tour-card-overlay{
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.tour-card-overlay h5{
  font-size: 1.2rem;
  margin: 0;
}
.tour-card-overlay .tour-info{
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.25rem;
}
.tour-card-overlay .btn{
  font-size: 0.75rem; padding: 0.25rem 0.6rem;
}

/* =========================================================
   WHATSAPP CTA (MOBILE-SAFE)
========================================================= */

.mnb-whatsapp{
  position: fixed;
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  inset-inline-end: max(16px, env(safe-area-inset-right));
  inline-size: 58px;
  block-size: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  z-index: 999;
  transition: transform .22s ease, box-shadow .22s ease;
  text-decoration: none;
  contain: layout paint; /* isolates from document width */
}
.mnb-whatsapp:hover{
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(0,0,0,.3);
}

/* Label sits to the LEFT of the button, never off-screen */
.mnb-whatsapp-label{
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: calc(100% + 12px);
  transform: translateY(-50%);
  background: var(--mnb-navy, #1a2531);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: .45rem .75rem;
  border-radius: var(--mnb-radius, 12px);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  box-shadow: var(--mnb-shadow, 0 8px 24px rgba(0,0,0,.18));
  max-inline-size: calc(100vw - 32px - 58px - 12px); /* viewport - margins - btn - gap */
  overflow: hidden;
  text-overflow: ellipsis;
}
.mnb-whatsapp:hover .mnb-whatsapp-label{ opacity: 1; }

/* Touch screens: hide label by default to avoid accidental overflow */
@media (hover: none){
  .mnb-whatsapp-label{ display: none; }

  /* Option B — to show below the button instead, comment ↑ and use:
  .mnb-whatsapp-label{
    display: block;
    inset-inline-end: 50%;
    inset-block-start: calc(100% + 10px);
    transform: translateX(50%);
    opacity: 1;
  } */
}

/* RTL support: keep inside screen edges */
[dir="rtl"] .mnb-whatsapp{
  inset-inline-start: max(16px, env(safe-area-inset-left));
  inset-inline-end: auto;
}
[dir="rtl"] .mnb-whatsapp-label{
  inset-inline-start: calc(100% + 12px);
  inset-inline-end: auto;
}

/* =========================================================
   FOOTER
========================================================= */

.footer{
  background: #1a2532;
  background-repeat: repeat;
  background-size: auto;
  position: relative;
  overflow: hidden; /* clip decor */
  color: #fff;
}

.footer_text{ color: #088bc9 !important; }

.footer-link{
  color: #fff;
  opacity: 0.7;
  display: inline-block;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: opacity .3s ease, color .3s ease, transform .2s ease;
}
.footer-link:hover{
  opacity: 1;
  color: #088bc9;
  transform: translateY(-1px);
}

.social-icon{
  font-size: 18px;
  color: #fff;
  transition: color .3s ease, transform .2s ease;
}
.social-icon:hover{
  color: #088bc9;
  transform: scale(1.2);
}

.footer .form-control{
  background-color: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 14px;
}
.footer .form-control::placeholder{ color: rgba(255,255,255,0.6); }

.footer .btn-primary{
  background: linear-gradient(45deg, #088bc9, #065b8e);
  border: none;
  font-weight: 600;
}
.footer .btn-primary:hover{
  background: linear-gradient(45deg, #067cb0, #044d76);
}

/* =========================================================
   ABOUT – CHIPS / BADGES / MEDIA
========================================================= */

.about-section-label{
  background: linear-gradient(90deg, #088ac985, #2196F3);
  color: #fff;
  font-weight: 600;
  padding: 6px 16px;
  font-size: 14px;
  border-radius: 30px;
  display: inline-block;
}

.about-feature-card{
  background-color: #03a9f42b;
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.about-feature-card.alt{ background-color: #fff5e6; }
.about-feature-card i{
  font-size: 24px;
  color: #ff5722;
  margin-bottom: 10px;
}
.about-feature-card h6{
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 0;
}
.about-feature-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.about-image-wrapper{
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.about-experience-badge{
  background: #088dcb;
  color: white;
  padding: 15px 25px;
  border-radius: 20px 0 20px 0;
  position: absolute;
  top: 0; left: 1px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.about-experience-badge h3{
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}
.about-play-btn{
  width: 50px; height: 50px;
  background-color: #fff;
  border: 2px solid #088dcb;
  color: #088dcb;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: transform .3s ease, color .3s ease, background-color .3s ease;
}
.about-play-btn:hover{
  background-color: #088dcb;
  color: white;
  transform: scale(1.1);
}

/* =========================================================
   UTILITIES & MEDIA QUERIES
========================================================= */

@media (max-width: 767px){
  .filter-box{
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .filter-box i.fa-chevron-down{ align-self: flex-end; }

  /* Slight hero padding reduction for small screens */
  .hero{ padding: 110px 15px 130px; }
}

/* Optional subtle reveal animations (safe) */
@keyframes fadeInUp{
  from{ opacity: 0; transform: translateY(40px); }
  to  { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft{
  from{ opacity: 0; transform: translateX(-40px); }
  to  { opacity: 1; transform: translateX(0); }
}

/* Mobile nav header row fix */
@media (max-width: 991.98px) { /* adjust if your breakpoint differs */
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo left, menu icon right */
  }

  .navbar-brand {
    flex: 0 0 auto;
    margin-right: auto; /* keep it to the left */
  }

  .navbar-toggler {
    flex: 0 0 auto;
    margin-left: auto; /* push to the right */
  }
}

