/* =========================
  VARIABLES / ROOT 
========================= */
:root {
  --anim-fast: 300ms;
  --anim-medium: 800ms;
  --anim-slow: 1500ms;
  --anim-long: 2500ms;
  --anim-smooth: cubic-bezier(0.42, 0, 0.58, 1);
  --anim-ease: ease-in-out;
  --anim-snap: cubic-bezier(0.3, 0.7, 0.4, 1);
}

/* =========================
  GLOBAL STYLES
========================= */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f7f7;
}

/* =========================
   NAVBAR + LOGO
========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1020;
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  padding: 0;
}

.navbar.scrolled {
  background: transparent;
  box-shadow: none;
}

.navbar .container-fluid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.25rem 1rem;
}

/* --- LOGO BASE --- */
.navbar-brand {
  position: absolute;
  top: 17px;
  left: 1rem;
  padding: 0;
  margin: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  
  /* Shared motion settings */
  transform-origin: top left;
  transition: transform 0.4s ease;
  animation: logoScaleOnload 6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.navbar-brand.no-resize {
  transform: translateY(5px);
  animation: none;
}

/* --- Load Animation --- */
@keyframes logoScaleOnload {
  0%, 50% { transform: scale(2.0) translateY(8px); }
  100% { transform: scale(1.0) translateY(5px); }
}	

/* --- Scroll Wrapper --- */
.scroll-wrapper {
  transform-origin: top left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}	

.navbar.scrolled .scroll-wrapper {
  transform: scale(0.60) translateY(-10px);
}	

/* --- Hover Wrapper --- */
.hover-wrapper {
  position: relative;
  display: inline-block;
  transform-origin: top left;
  transition: transform 0.35s ease;
}

.hover-wrapper.active {
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hover-wrapper.active:hover {
  transform: scale(2.0) translateY(10px);
}

/* --- Hover + Scroll Combo --- */
.hov_scrl-wrapper {
  position: relative;
  display: inline-block;
  transition: transform 0.4s ease;
  transform-origin: top left;
  transform: translateY(-12px);
  /* background: url('/images/background.jpg') center center / 100%;
  border-radius: 50%;
  border: thin black solid; */
}

/* hover and scroll effect */
.navbar.scrolled .hover-wrapper.active .hov_scrl-wrapper:hover {
  transform: translateY(-9px);
}

/* Logo Elements */

/* --- Logo image --- */
.logo-main {
  height: 110px;
  width: auto;
  opacity: 1;
  background-color: rgba(200,200,200,0.90);
  background-color:white;
  border-radius: 50%;
  border: thin black solid;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.18));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.logo-tk-rv {
  position: absolute;
  left: 52%;
  top: 3.2%;
  height:49%;
  border-radius: 0% 88% 0% 0%;
}

.logo-sun {
  position: absolute;
  border-radius: 50%;
  height: 25px;
  width: 25px;
  background: radial-gradient(circle, #FFD93B 0%, #FFB200 100%);
  left: 30%;
  top: -7%;
}

/* --- Compass needle --- */
.needle-rotator {
  position: absolute;
  top: 62.5%;   
  left: 65.4%;
  transform: translate(-50%, -50%);	  
  pointer-events: none;
}

.logo-needle {
  position: relative; 
  display: block;
  height: 29px;
  width: auto;
  z-index: 2;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 0.3s ease;
}

/* NAV LINKS */
.navbar .nav-link {
  color: white !important;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
}

/* Clean underline hover */
.navbar-collapse .nav-link {
  color: #333 !important;
  text-decoration: none;
  transition: color 0.18s ease, text-decoration 0.18s ease;
}
.navbar-collapse .nav-link:hover {
  background: rgba(255,255,255,0.8);
  color: #000 !important;
  text-decoration: none;
  text-underline-offset: 4px;
}

/* HAMBURGER */
.navbar-toggler {
  position: relative;
  z-index: 1101;
  background: rgba(200,200,200,0.90);
  border: thin grey solid;
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 3px;
}
.navbar-toggler:hover { background-color: rgba(255,255,255,0.8); }
.navbar-toggler:focus { box-shadow: none; outline: none; }

/* =========================
   COLLAPSE / DROPDOWN
========================= */
.navbar-collapse {
  position: absolute;
  top: calc(100% + 1px);
  right: 15px;
  background: rgba(200,200,200,0.90);
  border-radius: 6px;
  width: auto;
  margin: 0;
  padding: 10px 15px;
  z-index: 1050;
  box-shadow: none;
  border: thin grey solid;
  transition: opacity 0.25s ease;
}

.navbar-collapse.show {
  opacity: 1;
  visibility: visible;	
  border-radius: 6px;
  padding: 10px 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Prevent Bootstrap's "collapsing" flicker */
.navbar-collapse.collapsing {
  height: auto !important;
  overflow: hidden !important;
  opacity: 0; /* keep invisible during state change */
}

/* Ensure links don't flash dark */
.navbar-collapse .nav-link {
  color: #333 !important;
}

.nav-link.active {
  background: rgba(255,255,255,0.5);
  color: #000 !important;
  font-weight: 600;
  cursor: default;
  pointer-events: none; /* optional: prevents clicking the current page */
  margin: 0px 2px;
}

.nav-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  font-weight: 300;
  font-size: 12px;
  padding-top: 10px;
  pointer-events: auto;
}

.nav-separator {
  width: 1px;
  background: rgba(0,0,0,0.25);
  height: 35px;
  align-self: center;
  margin: 0px 4px;
}

/* =========================
   HERO / BANNER
========================= */
.hero-section {
  position: relative;
  text-align: center;
  color: white;
  margin-top: 0;
}

.hero-section img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: 33% center;
  filter: brightness(70%);
  display: block;
  transition: height 0.3s ease;
}

.hero-text {
  position: absolute;
  top: 65%;
  left: 40%;
  transform: translate(-50%, -50%);
  color: rgba(200,200,200,0.90);
  white-space: nowrap;
}

.hero-text h1 {
  font-size: 2.4rem;
  font-weight: 600;
  margin: 0;
}

/* helper divs inside the hero section */
#hero-center {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  scroll-margin-top: -20px;
}

#hero-left {
  position: absolute;
  bottom: 4%;
  left: 10%; 
}

#hero-right {
  position: absolute;
  bottom: 4%;
  right: 10%;
}

/* =========================
   MAIN SECTION — Animated Gradient (delayed + seamless)
========================= */
main {
  position: relative;
  z-index: 1;
  margin-top: 0;                /* ensures it touches the hero */
  padding: 4px;      /* internal spacing only */
  background: linear-gradient(
    180deg,
    #fff3d9 0%,    /* gentle morning light */
    #f4f7f9 40%,   /* light misty blue-gray */
    #ffffff 100%   /* clean base */
  );
  background-size: 200% 200%;
  background-attachment: fixed;
  animation: morningGlow 60s ease-in-out infinite alternate;
  animation-delay: 2s;          /* starts after hero animation finishes */
  scroll-margin-top: 210px;
}

/* Keyframes for subtle gradient movement */
@keyframes morningGlow {
  0% {
  background-position: 0% 0%;
  }
  50% {
  background-position: 100% 100%;
  }
  100% {
  background-position: 0% 0%;
  }
}

/* =========================
   IMAGE + TEXT SECTIONS
========================= */
.image-text-contentz {
  max-width: 420px;
  margin: 0 auto;
}

.image-text-contentz h2 {
  font-weight: 600;
  font-size: 1.8rem;
}

.image-text-contentz p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

/*h2 { outline: 4px solid lime; }*/

.ratio {
  border-radius: 10px;
  overflow: hidden;
}

/* =========================
   FADE-IN ANIMATIONS
========================= */
/* Initial state for onload fade-in */
.fade-in-onload {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

/* Visible state */
.fade-in-onload.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   FADE-IN SCROLL ANIMATION
========================= */
.fade-in-section { /* Initial state: invisible + slight slide-up */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-section.visible { /* When visible: fade and slide to place */
  opacity: 1;
  transform: translateY(0);
}

/* Blog and Trip CSS */

.blog-trip-title {
  color: #7F00FF; 
}
  
.photo-wall-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));  
}

.photo-wall-grid-4 { 
  gap: 12px; 
}

.photo-wall-grid-3 {
  gap: 12px 50px;
  padding: 0 50px;
  justify-items: center;  
}

.photo-wall-grid-2 {
  gap: 12px 150px;
  padding: 0 150px;
  justify-items: center;  
}

.photo-wall-grid-1 {
  padding: 0 200px;
  justify-items: center;  
}

.photo-wall-nogrid {
  grid-template-columns: none !important;
  gap: 20px;
  padding-left: 5px;
  padding-right: 5px;
}

.photo-wall-grid figcaption {
  text-align: center;
}

.photo-square img { 
  width: 100%; 
  aspect-ratio: 1/1; 
  object-fit: cover; 
  border-radius: 6px; 
}

.content-image {
  
}

.content-image-full {
  height: 90% !important;
  width: 90% !important;
}

.nav-next {
  transform: translateX(20px);
}

.nav-prev {
  transform: translateX(-20px);
}

.max-two-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Optional: Add a max-height if line-clamp doesn't work in all contexts */
  max-height: 3em; /* Approximate height for two lines of text (adjust as needed) */
  text-overflow: ellipsis; /* Add ellipsis if desired */
}

.meta {
  white-space: nowrap;
}

.blog-trip-active { 
  border-left: 4px solid #0d6efd !important; 
}

/* =========================
   FOOTER
========================= */
footer {
  background: #222;
  color: #fff;
  padding: 28px 0;
  text-align: center;
}

.social-icons a {
  color: #fff;
  margin: 0 40px;
  font-size: 1.8rem;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
}

.social-icons a:hover {
  color: #ffc107;
  transform: scale(1.1);
}

.contact-link:hover {
  cursor: pointer;
}

.contact-link.disabled {
  pointer-events: none;
}

/* Read more link */
.read-more {
  display: inline-block;
  margin-top: 0.25rem;
  cursor: pointer;
  color: var(--bs-primary);
  font-size: 0.875rem;
  user-select: none;
}

/* ** Bootstrap Font Resize Work Arounds ** */

.h2-resize { font-size: 1.3rem; } /* mobile default */
.h4-resize { font-size: 0.8rem; }
.p-resize  { font-size: 0.9rem; margin-bottom: 0.4rem;} 
.p5-resize { font-size: 0.8rem; }
.comment-resize { font-size: 0.6rem; }

@media (min-width: 768px) {
  .h2-resize { font-size: 1.34rem; } /* tablet+ */
  .h4-resize { font-size: 1.0rem; }
  .p-resize  { font-size: 0.92rem; }
  .p5-resize { font-size: 0.95rem; }
  .comment-resize { font-size: 0.7rem; }

  .collapsible-text {
    overflow: hidden;
    transition: max-height 0.45s ease;
  }

  .collapsible-text.is-clamped::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3em;
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0),
      rgba(255,255,255,1)
    );
    pointer-events: none;
  }

}

@media (min-width: 992px) {
  .h2-resize { font-size: 1.5rem; } /* desktop+ */
  .h4-resize { font-size: 1.2rem; }
  .p-resize  { font-size: 1.15rem; }
  .p5-resize { font-size: 1.1rem; }
  .comment-resize { font-size: 0.8rem; }
}
@media (min-width: 1200px) {
  .h2-resize { font-size: 1.8rem; } /* xl screens */
  .h4-resize { font-size: 1.3rem; }
  .p-resize  { font-size: 1.4rem; }
  .p5-resize { font-size: 1.25rem; }
  .comment-resize { font-size: 0.9rem; }
}

@media (min-width: 1400px) {
  .h2-resize { font-size: 1.8rem: } /* xxl screens */
  .h4-resize { font-size: 1.3rem: }
  .p-resize { font-size: 1.5rem; }
  .p5-resize { font-size: 1.25rem; }
  .comment-resize { font-size: 1.0rem; }
}

/* =========================
   RESPONSIVE MEDIA QUERIES
========================== */

@media (max-width: 1400px) {
  .hero-section img { height: 300px; }
  .hero-text h1 { font-size: 2.1rem; }
  .logo-main { height: 95px !important; }
  .logo-needle { height: 25px; }
  .logo-sun { height: 25px; width: 25px;}
  .needle-rotator { top: 63.5%; left: 65.5%; }
  .navbar.scrolled .scroll-wrapper { transform: scale(0.65) translateY(-2px); }
  .navbar.scrolled .hover-wrapper.active .hov_scrl-wrapper:hover { transform: scale(1.5) translateY(-4px); }
  .photo-wall-grid-3 { gap: 12px 30px; padding: 0 30px }
  .photo-wall-grid-2 { gap: 12px 80px; padding: 0 80px }
  .photo-wall-grid-1 { padding: 0 100px }
}

@media (max-width: 992px) { 
  .hero-section img { height: 250px; }
  .hero-text h1 { font-size: 1.9rem; }
  .logo-main { height: 80px !important; }
  .logo-needle { height: 21px; }
  .logo-sun { height: 22px; width: 22px; }
  .needle-rotator { top: 62.5%; left: 65.6%; }
  .navbar.scrolled .scroll-wrapper { transform: scale(0.68) translateY(-3px); }
  .navbar.scrolled .hover-wrapper.active .hov_scrl-wrapper:hover { transform: scale(1.45) translateY(-5.5px); }
  .photo-wall-grid-4 { gap: 10px; }
  .photo-wall-grid-3 { gap: 12px 20px; padding: 0 20px }
  .photo-wall-grid-2 { gap: 12px 12px; padding: 0 }
  .photo-wall-grid-1 { padding: 0 50px }
  /* width hamburger menu shows up */
  .navbar-nav { text-align: right; }  
  .nav-separator {
    width: 100%;
    height: 1px;
    margin: 8px 0;
  }
  .youtubeplay-md { width:80px !important; }
  .youtubeplay-sm { width:55px !important; }
}

@media (max-width: 768px) { 
  .image-text-content { text-align: center; max-width: 500px; }
  .logo-main { height: 75px !important; }
  .logo-needle { height: 20px; }
  .logo-sun { height: 20px; width: 20px; }
  .needle-rotator { top: 62.5%; left: 65.5%; }	  
  .navbar.scrolled .scroll-wrapper { transform: scale(0.7) translateY(-4px); }
  .navbar.scrolled .hover-wrapper.active .hov_scrl-wrapper:hover { transform: scale(1.4) translateY(-7px); }
  .social-icons a { margin: 0 30px }
  .blog-trip-link { font-size: 0.80rem; }
  .meta { width: 100%; text-align: left !important; }
  .meta-item { display: inline-block; margin-right: .75rem; }
  .photo-wall-grid-3 { gap: 12px; padding: 0 }
  .photo-wall-grid-2 { gap: 12px 12px; padding: 0 }
  .photo-wall-grid-1 { padding: 0 20px }
  .photo-wall-grid figcaption { font-size: 0.8rem; }
  #mapHint { display: block }
  .nav-next, .nav-prev { padding: 0 }
  .youtubeplay-md { width:65px !important; }
  .youtubeplay-sm { width:45px !important; }

}

@media (max-width: 576px) {
  .navbar-collapse { right:0; left: auto; }
  .hero-section img { height: 200px; }
  .hero-text h1 { font-size: 1.6rem; }
  .logo-main { height: 70px !important; }
  .logo-needle { height: 18px; }
  .logo-sun { height: 18px; width: 18px; }
  .needle-rotator { top: 62.5%; left: 65.6%; }
  .navbar.scrolled .scroll-wrapper { transform: scale(0.74) translateY(-5px); }
  .navbar.scrolled .hover-wrapper.active .hov_scrl-wrapper:hover { transform: scale(1.35) translateY(-8.5px); }
  .social-icons a { margin: 0 20px }
  .photo-wall-grid-4 { gap: 8px;  }
  .photo-wall-grid figcaption { font-size: 0.68rem; }
  .blog-trip-link, 
  .list-group { font-size: 0.75rem; } 
  .nav-next, .nav-prev { transform: translateX(0%); }
  .youtubeplay-md { width:40px !important; }
  .youtubeplay-sm { width:35px !important; }  
  .collapsible-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Number of lines to show */
    line-clamp: 4; 
    -webkit-box-orient: vertical    
  }

  .hidesmallscreen { display: none; }
  
  .collapsible-text {
    position: relative;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    max-height: 6.2em;
    transition: max-height 0.45s ease;
  }

  /* Fade ONLY when clamped */
  .collapsible-text.is-clamped::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.5em;
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0),
      rgba(255,255,255,1)
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .collapsible-text.expanded {
    -webkit-line-clamp: unset;
    display: block;
    max-height: 1000px;
  }

  .collapsible-text.expanded::after {
    opacity: 0;
  }

}
