/*   CONTENTS        
 --global, layout, Components, utilities
 ROOT Global
 LAYOUT
    2.1 HEADER
    2.2 MAIN
    2.3 FOOTER    
COMPONENTS
  LOGO
  NAVBAR & MENU
  DROPDOWN
UTILITIES
  SMOOTH UNDERLINE
  GOOGLE MAP EMBED
*/

/* ROOT */
:root {
  --height-header-mobile: 56px;
  --height-header-desktop: 88px;
  --height-footer: 862px;
  --main-padding-top-desktop: 3.5rem;
  /* 56px */
  --main-padding-top-mobile: 2.5rem;
  /*40 */
}

/*--site-margin-mobile: 1rem;/* 16px *
  --site-margin-tablet: 1.5rem;/* 24px *
  --site-margin-desktop: 8rem;/* 48px */


.site-padding-t {
  padding-top: var(--main-padding-top-mobile);

  @media screen and (min-width: 767.98px) {}

  @media screen and (min-width: 991.98px) {
    padding-top: var(--main-padding-top-desktop);
  }
}

/* 
.site-margin-x px-site-padding {
padding-left: var(--site-margin-mobile);
padding-right: var(--site-margin-mobile);
  @media screen and (min-width: 767.98px) {
    padding-left: var(--site-margin-tablet);
    padding-right: var(--site-margin-tablet);
  }
  @media screen and (min-width: 991.98px) {
    padding-left: var(--site-margin-desktop);
    padding-right: var(--site-margin-desktop);
  }
} */

html {
  scroll-behavior: smooth;
}

/* LAYOUT */
/* 2.1 HEADER */
header {
  position: fixed;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  width: 100vw;
  background-color: var(--color-primary-container);
  
  border-bottom: 1px solid var(--color-brand-surface);
}

.btn-mobi {
  padding: 12px 8px !important;
  min-height: 44px !important;
  display: inline;

  @media screen and (min-width: 991.98px) {
    display: none !important;
  }
}

.header__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 4px 16px;
  height: var(--height-header-mobile);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
}

@media screen and (min-width: 991.98px) {
  .header__container {
    padding: 8px 48px;
    height: var(--height-header-desktop);
  }
}


/* 2.2 MAIN */
main {
  margin-top: var(--height-header-mobile);
  background-color: var(--color-surface);
  /* margin-bottom: var(--height-footer);*/
  z-index: 10 !important;
  position: relative;
  overflow: hidden;
  background-color: var(--color-surface);


  @media screen and (min-width: 991.98px) {
    margin-top: var(--height-header-desktop);
  }
}

.placeholder {
  z-index: 1;
  /* height: var(--height-footer) */
}

/* 2.3 FOOTER */
footer {
  /* position: fixed;
  z-index: -10;
  bottom: 0;
  width: 100vw; 
  height: var(--height-footer);*/
  background-color: var(--color-surface);
  position: fixed;
  bottom: 0;
  z-index: 00;
  width: 100vw;

  /* padding-top: 100px; */
  @media screen and (min-width: 575.98px) {
    padding-top: 0px;
  }
}

/*STYLES*/
.overlay-gradient {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.11) 50%, rgba(0, 0, 0, 0.45) 100%);
}



/* COMPONENTS */
/*LOGO*/
.logo svg {
  display: flex;
  width: 120px;
  max-height: 51px;
  justify-content: center;
  align-items: center;
  fill: var(--color-on-primary-container);
  color: var(--color-on-primary-container);
  background-color: var(--color-primary-container);

  @media screen and (min-width: 991.98px) {
    width: 158px;
  }

  @media screen and (min-width: 1199.98px) {
    width: 258px;
  }
}

/* NAVBAR & MENU */
.navbar {
  width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  position: fixed;
  left: -100%;
  top: var(--height-header-mobile);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100vw;
  height: 100vh;
  gap: 64px;
  padding-top: 80px;
  padding-left: 24px;
  background-color: var(--color-primary-container);
  transition: 150ms ease-out;
  text-align: center;
}

@media screen and (min-width: 991.98px) {
  .nav-menu {
    height: auto;
    gap: 32px !important;
  }
}

.nav-menu.active {
  left: 0;
}

.nav-item {
  margin: 0;
  padding: 0.5rem 1rem;
  background-color: var(--color-primary-container);
  border-radius: 8px;
  min-height: 33px;

  &:hover {
    background-color: var(--color-hover-light);
    transition: 150ms ease-in;
  }
}

.nav-link {
  color: var(--color-brand-ext-black);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 100%;
  transition: 150ms ease-out;
  font-family: var(--font-body);
}

.nav-link:hover {
  color: var(--color-brand-ext-black);
  transition: 150ms ease-in;
}

/* Hamburger */
.hamburger {
  display: block;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--color-brand-ext-black);
  transition: all 150ms ease;
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 991.98px) {
  .hamburger {
    display: none;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    background-color: transparent;
    width: auto;
    gap: 64px;
    left: 0;
    top: auto;
    padding: 0;
    text-align: left;
    transition: none;
    justify-content: space-between;
    align-items: center;
  }
}

/* DROPDOWN */

.dropbtn {
  margin: 0;
  padding: 0.5rem 1rem;
  background-color: var(--color-primary-container);
  color: var(--color-brand-ext-black);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 100%;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  min-height: 33px;
  transition: 150ms ease-out;
  font-family: var(--font-body);

  &:hover,
  &:focus {
    background-color: var(--color-hover-light);
    transition: 150ms ease-in;
  }
}

.dropdown {
  position: relative;
  display: inline-block;
  flex-direction: row;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--color-primary-container);
  min-width: 190px;
  overflow: auto;
  border-radius: 8px;
  padding: 8px;
  /* z-index: 1001; */
  /* raised so dropdown appears above header content */
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;

}

.dropdown a:hover {
  background-color: var(--color-hover-light);
  transition: 150ms ease-in;
}

.show {
  display: block;
}

/* Show dropdown on hover (desktop only) */
@media (hover: hover) and (min-width: 991.98px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }

  .dropdown-content {
    box-shadow: 0 4px 8px 3px rgba(0, 0, 0, 0.15), 0 1px 3px 0 rgba(0, 0, 0, 0.30);
  }
}

@media screen and (min-width: 1199.98px) {
  .dropdown-content {
    box-shadow: 0 4px 8px 3px rgba(0, 0, 0, 0.15), 0 1px 3px 0 rgba(0, 0, 0, 0.30) !important;
  }
}

@media screen and (min-width: 991.98px) {
  .dropdown-content {
    box-shadow: 0 4px 8px 3px rgba(0, 0, 0, 0.15), 0 1px 3px 0 rgba(0, 0, 0, 0.30) !important;
  }
}

/* Mobile: make toggle dropdown part of the flow but match desktop width & styling */
@media screen and (max-width: 991.98px) {
  .dropdown {
    display: block;
    width: 100%;
  }

  /* keep desktop dropbtn styling but full width on mobile */
  .dropbtn {
    width: 100%;
    text-align: left;
    padding: 16px;
    /* same as desktop */
    background-color: var(--color-primary-container);
    color: var(--color-brand-ext-black);
    font-size: var(--text-md);
    border: none;
    cursor: pointer;
    border-radius: 8px;
  }

  .dropbtn:hover,
  .dropbtn:focus {
    background-color: var(--color-hover-light);
    transition: 150ms ease-in;
  }

  /* participate in layout (push links) but look like desktop dropdown */
  .dropdown-content {
    position: static;
    /* stay in document flow */
    display: none;
    /* toggled open by JS (.show) */
    width: 100%;
    /* full width of nav column */
    min-width: 160px;
    /* keep desktop min width behavior */
    /* same as desktop */
    overflow: auto;
    border-radius: 8px;
    margin-top: 8px;
  }

  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    /* same spacing as desktop */
    text-decoration: none;
    display: block;
    background: transparent;
    margin: 0;
  }

  .dropdown a:hover {
    background-color: orange;
  }

  /* Keep existing .show behavior */
  .dropdown-content.show,
  .show {
    display: block;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

/*UTILITIES*/
/*Smooth Underline*/
.smooth-underline {
  /* 1. Make the link the positioning context for the pseudo-element */
  position: relative;
  /* 2. Remove default text decoration */
  text-decoration: none;
  /* 3. Ensure the text color is black */
  color: var(--color-on-surface);
  /* 4. Ensure there is a little padding below the text for the underline */
  padding-bottom: 0.25rem;
  font-weight: 600;
}

.smooth-underline::after {
  /* 5. Create the underline pseudo-element */
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  /* Position just below the text */

  /* 6. Initial state: height is 2px, width is 0, color is black */
  height: 0.125rem;
  /* 2px */
  width: 0;
  background-color: var(--color-on-surface);

  /* 7. Set the transition for the width property (150ms ease-in) */
  transition: width var(--duration-fast) ease-out;

  /* Ensure it is visible, though width is 0 initially */
  display: block;
}

.smooth-underline:hover::after {
  /* 8. Final state on hover: width is 100% */
  width: 100%;
}

/*DELETE*/
/* added styling
.p-text {
  font-size: var(--text-base);
  max-width: 600px;
  margin: 0 auto;
} */
/* 
.hero-buttons .button {
  flex: 1;
  /* both buttons grow equally *
  max-width: 200px;
  /* optional *
  height: 42px;
}

.button:hover {
  /* transform: translateY(-2px); *
}

.button__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
}

.button--filled {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: transparent;
}

.button--outline {
  background: transparent;
  color: var(--btn-border);
  border-color: var(--btn-border);
}

.button--secondary {
  --btn-bg: var(--color-secondary);
  --btn-text: var(--color-on-secondary);
  --btn-border: var(--color-secondary);
}

.button--inverse-surface {
  --btn-bg: var(--color-brand-white-80);
  --btn-text: var(--color-brand-ext-black);
  --btn-border: var(--color-brand-white-80);
}

.hero-buttons .button {
  width: 90%;
  max-width: 100%;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  /* padding: 0 0 1.5rem 1rem; */
}

@media (min-width: 768px) {
  .hero-buttons .button {
    width: auto;
    max-width: 220px;
  }

  .hero-bg img {
    display: block;
  }

  @media (min-width: 1024px) {
    .about-text {
      padding-left: 3rem;
    }

    .about-text p {
      max-width: 32rem;
    }
  } */


/*DELETE*/
  /* .hero-buttons {
        flex-direction: row;
    } */
}
/* 
.title {
  margin-top: 80px;
  /* color: #f570b5; *
  /* font-size: 3.5em; *
  margin-bottom: 0.2em;
  /* letter-spacing: 5px; *
  /* font-weight: 900; *
  /* text-align: center; *
}

.h2-text {
  font-size: var(--text-3xl);
  font-weight: 800;
  max-width: auto;
  margin: 0 auto;
} */
 /*DELETE*/

.y-space {
  margin: 3rem 0;
}

.description {
  padding-left: 8px;
  color: #f570b5e5;
  font-size: 1em;
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto;
}

.read-more-button {
  background-color: #000000b2;
  color: #ffffff;
  border: none;
  padding: 8px 55px;
  font-size: 1em;
  cursor: pointer;
  width: 90%;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  margin-top: 20px;
  z-index: 100000;
  position: relative;
}

.read-more-button:hover {
  background-color: #333333;
}

/* @media(min-width:768px) {

  .read-more-button,
  .button {
    width: auto;
  }
} */

@keyframes gradientMove {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 100%;
  }

  100% {
    background-position: 0% 0%;
  }
}

/*DELETE*/
/* 
@media (min-width: 1024px) {
  .h1-text {
    font-size: var(--text-6xl);
    max-width: none;
  }

  .h2-text {
    font-size: var(--text-5xl);
  }

  .h3-text {
    font-size: var(--text-3xl);
  }

  .h5-text {
    font-size: var(--text-xl);
  }

  .p-text {
    font-size: var(--text-lg);
  }



  .h2-text {
    font-size: var(--text-5xl);
  }

  .h3-text {
    font-size: var(--text-4xl);
  }

  .h5-text {
    font-size: var(--text-2xl);
  }

  .p-text {
    font-size: var(--text-lg);
  }

}

.style-title {
  font-family: var(--font-title);
  letter-spacing: 0.1em;
  font-weight: 400;
} */
 /*DELETE*/

/* activity */
.activity-card {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 133.33%;
  border-radius: 0.5rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
}

/* Remove fixed height/width from individual activity classes */
.activity-oyster {
  background-image: url('../img/first-room.png');
}

.activity-beaches {
  background-image: url('../img/second-room.png');
}

.activity-hiking {
  background-image: url('../img/third-room.png');
}

.activity-forest {
  background-image: url('../img/fourth.room.png');
}

.activity-lagoon {
  background-image: url('../img/fifth-room.png');
}

.activity-heads {
  background-image: url('../img/sixth-room.png');
}



/* Label under card - enhanced */
.activity-label {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  padding: 0.4rem 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brand-ext-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  width: 100%;
  text-align: center;
  background-color: rgba(229, 75, 59, 0.8);
  /* Semi-transparent background matching section */
  border-radius: 0.25rem;
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

/* Overlay gradient - enhanced */
.activity-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0) 100%);
  transition: opacity 0.3s ease;
}

.discover-grid {
  /* display: grid;
      grid-template-columns: 1fr;
      gap: 2rem; */
}

.discover-knysna {
  /* padding: 4rem 0;  */
  /* overflow: hidden; */
}

.discover-title {
  font-size: var(--text-3xl);
  color: var(--color-brand-ext-white);
  padding-left: 1rem;
  /* line-height: 1.1; */
  /* text-align: start; */
}

.discover-desc {
  font-size: var(--text-lg);
  color: var(--color-brand-blue-900);
  padding-right: 1rem;
  text-align: end;
}

@media (min-width: 768px) and (max-width: 1023px) {

  .discover-title {
    /* font-size: var(--text-2xl); */
    padding-left: 8rem;
  }

  .discover-desc {
    font-size: var(--text-lg);
    padding-right: 5rem;
  }

  .grid-activities {
    /* grid-template-columns: repeat(2, 1fr); */
    /* gap: 1.5rem; */
    padding: 0 1.5rem;
  }

  .activity-item {
    /* max-width: 440px; */
    /* width: 100%; */
  }

  .activity-card {
    padding-bottom: 125%;
    /* Slightly different aspect ratio for tablet */
  }

  .activity-label {
    font-size: var(--text-base);
    padding: 0.5rem 0;
  }
}



/* =========================================
       DESKTOP (min-width: 1024px)
       ========================================= */
@media (min-width: 1024px) {
  .discover-title {
    font-size: var(--text-6xl);
    padding-left: 12rem;
  }

  .discover-desc {
    /* font-size: var(--text-3xl); */
    padding-right: 12rem;
  }

  .grid-activities {
    /* grid-template-columns: repeat(3, 1fr); */
    /* place-items: center; */
    /* gap: 1.5rem; */
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
  }

  .activity-item {
    /* max-width: 480px; */
    /* width: 100%; */
    /* transition: transform 0.3s ease; */
  }


  .activity-card {
    padding-bottom: 133.33%;
    /* Back to 3:4 ratio */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
  }

  .activity-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  }

  .activity-label {
    font-size: var(--text-base);
    padding: 0.6rem 0;
    margin-top: 1rem;
  }
}

/*DELETE*/
/* =========================================
       LARGE DESKTOP (min-width: 1400px)
       ========================================= */
@media (min-width: 1400px) {
  .grid-activities {
    gap: 2rem;
    padding: 0 3rem;
  }

  .activity-item {
    /* max-width: 520px; */
  }

  .activity-label {
    font-size: var(--text-base);
    padding: 0.75rem 0;
  }
}

/* Add smooth transitions */
.activity-card,
.activity-label,
.activity-overlay {
  transition: all 0.3s ease;
}

/* Ensure images load smoothly */
.activity-card {
  background-color: #f0f0f0;
  /* Fallback color while image loads */
}

/* cta */

.cta-content {
  padding: 3rem 1.1rem;
}

@media (min-width: 768px) {
  .cta-content {
    padding: 4rem 2rem;
    /* gap: 4rem; */
  }

  .h4-text {
    /* font-size: var(--text-3xl);
        max-width: 90%; */
  }

  .cta-image {
    /* max-width: 90%; */
  }

  .cta-second-image {
    max-width: 90%;
  }

  .cta-third-image {}
}

@media (min-width: 1024px) {

  /* PRESERVE ALL YOUR EXISTING DESKTOP CSS */
  .cta-content {
    /* text-align: start; */
    padding: 5rem 3.5rem;
  }
}




/*GOOGLE MAP EMBED*/
.map-container {
  align-self: stretch;
  height: 470px;
  width: 328px;

  @media screen and (min-width: 575.98px) {
    height: 556px;
    width: 400px;
  }

  @media screen and (min-width: 991.98px) {
    height: 720px;
    width: 556px;
    width: 100%;
  }

}

/*LIGHTBOX*/
/* 5.3 Lightbox */


/*Lightbox*/
/* #lightbox {
  position: fixed;
  z-index: 2000;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
}

#lightbox.active {
  display: flex;
  justify-content: center;
  align-items: center;
} */

/* Custom styles for the lightbox transition and cursor */
.gallery-image {
  cursor: pointer;
  transition: box-shadow 150ms ease-in-out, border-radius 150ms ease-in-out;
}

.gallery-image:hover {
  transition: box-shadow 150ms ease-in-out, border-radius 150ms ease-in-out;
  /* box-shadow: 0 2px 1px 2px rgba(0, 0, 0, 0.15), 0 1px 2px 0 rgba(0, 0, 0, 0.30);


box-shadow: 0 16px 16px -8px rgba(12, 12, 13, 0.10), 0 4px 4px -4px rgba(12, 12, 13, 0.05); */

  box-shadow: 2px 4px 12px 6px rgba(0, 0, 0, 0.05), 0 4px 4px 0 rgba(0, 0, 0, 0.04);
  border-radius: 16px;
}

.lightbox-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.lightbox-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Lightbox container & image sizing (fallback if Tailwind utilities are not present) */
#lightbox-root {
  position: fixed;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  /* matches p-4 */
  background: rgba(0, 0, 0, 0.9);
  z-index: 50;
}

/* The immediate child container should constrain the image size */
#lightbox-root>div {
  /* max-width: 50svw; */
  max-height: 75svh;
  height: 75svh;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;

  @media screen and (min-width: 991.98px){
    align-items: flex-start;
  }
}

/* Ensure the lightbox image fits inside the container */
#lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}



/* ANIMATIONS */
/*PARALLAX*/
.parallax {
    /* The image is defined in CSS, not HTML */
    background-image: url('{{ aboutBanner1 }}');
    /* This creates the effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;    
    height: 85vh;

    @media and screen (min-width: 575.98px) {
      height: 75vh;
    }
    
    @media and screen (min-width: 991.98px) {
      height: 89vh;
    }
}



/* CIRCLE FADE IN ANIMATION */
.boxAnimate {
  position: relative;
  /* height: 400px;
  width: 400px; */
  /* Initial state: circle is closed (hidden) */
  clip-path: inset(50% round 50%);
  /* box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); */
}

.boxAnimate img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Initial zoom */
  transform: scale(1.1);
}

/* KEYFRAMES: 
           The animation logic is now fully contained here.
        */
@keyframes expandCircle {
  from {
    clip-path: inset(50% round 50%);
  }

  to {
    clip-path: inset(0% round 0%);
  }
}

@keyframes zoomImage {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1);
  }
}

/* When this class is added, the 'animation' property 
           automatically triggers the Keyframes defined above.
        */
.boxAnimate.circle-FadeIn {
  animation: expandCircle 1s ease-in-out forwards;
}

.boxAnimate.circle-FadeIn img {
  animation: zoomImage 1s ease-in-out forwards;
}