/* Your custom CSS styles here */

/* Font Family Variables */
:root {
  --font-libre-baskerville: 'Libre Baskerville', serif;
  --font-montserrat: 'Montserrat', sans-serif;
  --font-baskervville: 'Baskervville', serif;
  --font-open-sans: 'Open Sans', sans-serif;
}

/* Font Family Utility Classes */
.font-libre-baskerville {
  font-family: var(--font-libre-baskerville);
}

.font-montserrat {
  font-family: var(--font-montserrat);
}

.font-baskervville {
  font-family: var(--font-baskervville);
}

.font-open-sans {
  font-family: var(--font-open-sans);
}

/* Font Weight Utility Classes */
.font-regular {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Set placeholder color to black for all input tags */
input::placeholder {
  color: #000000;
}

/* Set placeholder color to black for all textarea tags */
textarea::placeholder {
  color: #000000;
}

/* For better browser compatibility */
input::-webkit-input-placeholder {
  color: #000000;
}

input::-moz-placeholder {
  color: #000000;
  opacity: 1;
}

input:-ms-input-placeholder {
  color: #000000;
}

textarea::-webkit-input-placeholder {
  color: #000000;
}

textarea::-moz-placeholder {
  color: #000000;
  opacity: 1;
}

textarea:-ms-input-placeholder {
  color: #000000;
}

/* Mobile Menu Styles */
#mobile-menu {
  will-change: transform;
  overflow-y: auto;
  transform: translateY(-100%);
}

#mobile-menu ul li a {
  transition: color 0.3s ease;
}

#mobile-menu ul li a:hover {
  color: #BF4927;
}

#menu-toggle {
  transition: transform 0.3s ease;
}

#menu-toggle:active {
  transform: scale(0.95);
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 1279px) {
  #navbar {
    display: none !important;
  }
}

@media (min-width: 1280px) {

  #mobile-navbar,
  #mobile-menu {
    display: none !important;
  }
}

/* Navbar Logo Swap on Scroll */
#navbar .navbar-logo-default {
  opacity: 1;
  transition: opacity 0.3s ease;
  position: relative;
  display: block;
}

#navbar .navbar-logo-scrolled {
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

#navbar.bg-black .navbar-logo-default {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

#navbar.bg-black .navbar-logo-scrolled {
  opacity: 1;
  position: relative;
}

/* ============================================
   Banner Slider Styles
   ============================================ */
.desktop-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.mobile-slider {
  position: relative;
  width: 100%;
}

.desktop-slider-container {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.mobile-slider-container {
  display: flex;
  width: 100%;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.desktop-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

.mobile-slide {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

/* Additional Responsive Styles */
@media (max-width: 1279px) {

  /* Ensure images scale properly */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Better touch targets for mobile */
  button,
  a {
    min-height: 44px;
    min-width: 44px;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Better image handling */
img {
  display: block;
}



/* Ensure background color applies to blDv element */
.blDv {
  background-color: rgba(0, 0, 0, 0.8) !important;
}

@media (min-width: 1545px) {
  section:not(:first-of-type) {
    width: 80% !important;
    margin: 0 auto !important;
  }
}

/* ============================================
   GSAP ScrollTrigger & Lenis Performance
   ============================================ */

/* Smooth scrolling container */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Performance optimizations for animations */
section,
.animate-fade-up,
.animate-fade-in,
.animate-scale,
.animate-slide-left,
.animate-slide-right {
  will-change: transform, opacity;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .lenis {
    scroll-behavior: auto !important;
  }
}

/* GPU acceleration for smooth animations */
img,
section,
div[class*='animate'] {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Optimize scroll performance */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Image Hover Scale Effect (Except Section 1)
   ============================================ */

/* Image hover scale effect - exclude section 1 and images with no-hover-scale class */
section:not(:first-of-type) img:not(.no-hover-scale) {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  display: block;
}

section:not(:first-of-type) img:not(.no-hover-scale):hover {
  transform: scale(1.1);
}

/* Explicit gallery image hover effect */
.gallery-image {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  will-change: transform;
}

.gallery-image:hover {
  transform: scale(1.1) !important;
}

/* Make image containers overflow hidden - target divs that contain images (exclude section 1 and section 2) */
section:not(:first-of-type):not(#overview) div:has(> img) {
  overflow: hidden;
}

/* Fallback for browsers that don't support :has() - exclude section 1 and section 2 */
/* section:not(:first-of-type):not(#overview) div[class*='grid'] > div,
section:not(:first-of-type):not(#overview) div[class*='flex'] > div:has(img) {
  /* overflow: hidden; */
/* } */
/* Explicitly exclude Section 2 (#overview) from overflow hidden */
#overview div[class*='grid']>div,
#overview div[class*='flex']>div {
  overflow: visible;
}

/* ============================================
   Button Icon Hover Effect
   ============================================ */

/* Enquire Now Button - Use opacity to prevent layout shifts */
.popup-trigger span:has(.enquire-default-icon) {
  position: relative;
  display: inline-block;
}

.popup-trigger .enquire-default-icon {
  opacity: 1;
  transition: opacity 0.3s ease;
  position: relative;
  display: block;
}

.popup-trigger .enquire-hover-icon {
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

.popup-trigger:hover .enquire-default-icon {
  opacity: 0;
}

.popup-trigger:hover .enquire-hover-icon {
  opacity: 1;
}

/* All Buttons with top-arr2.svg - Default state - show top-arr2, hide top-black-arr2 */
/* Ensure parent span has fixed size */
.popup-trigger span:has(.default-icon),
button span:has(.default-icon) {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
}

@media (min-width: 768px) {

  .popup-trigger span:has(.default-icon),
  button span:has(.default-icon) {
    width: 20px;
    height: 20px;
  }
}

.popup-trigger .default-icon,
button .default-icon {
  opacity: 1;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.popup-trigger .hover-icon,
button .hover-icon {
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* All Buttons with top-arr2.svg - Hover state - hide top-arr2, show top-black-arr2 */
.popup-trigger:hover .default-icon,
button:hover .default-icon {
  opacity: 0;
}

.popup-trigger:hover .hover-icon,
button:hover .hover-icon {
  opacity: 1;
}

/* ============================================
   Get a Call Back Button Hover Effect
   ============================================ */

/* Default state - show top-arrow icon, hide top-white-arr icon */
.callback-icon-container span {
  position: relative;
  display: inline-block;
}

.callback-icon-container .callback-default-icon {
  opacity: 1;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 1;
  display: block !important;
}

.callback-icon-container .callback-hover-icon {
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block !important;
}

/* Hover state on button - change button bg to white, inner div bg to black, swap icons */
button:hover .callback-icon-container {
  background-color: #000000 !important;
}

button:hover .callback-default-icon {
  opacity: 0;
}

button:hover .callback-hover-icon {
  opacity: 1;
}

/* Specific hover for Get a Call Back buttons - use water fill effect like other buttons */
/* The water fill effect is already applied via the general button styles */
/* Just ensure text color changes on hover */
button:has(.callback-icon-container):hover {
  color: #000000 !important;
}

/* ============================================
   Button Fill Effect (Water Fill with Waves)
   ============================================ */

button {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease 0.1s, border-color 0.3s ease;
  isolation: isolate;
  border: 1px solid transparent;
}

/* Border color on hover */
button:hover {
  border-color: #000000;
}

/* Water fill container with wave pattern */
button::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background:
    /* Water base color with slight gradient */
    linear-gradient(to top,
      #ffffff 0%,
      #fafafa 40%,
      #ffffff 80%,
      #f5f5f5 100%),
    /* Wave pattern overlay */
    url("data:image/svg+xml,%3Csvg width='100' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,10 Q25,5 50,10 T100,10 L100,20 L0,20 Z' fill='rgba(255,255,255,0.3)'/%3E%3Cpath d='M0,12 Q25,7 50,12 T100,12 L100,20 L0,20 Z' fill='rgba(255,255,255,0.2)'/%3E%3C/svg%3E");
  background-size: 100% 100%, 200px 30px;
  background-position: 0 0, 0 0;
  background-repeat: no-repeat, repeat-x;
  transition: height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
  animation: water-wave 3s ease-in-out infinite;
  animation-play-state: paused;
}

button:hover::before {
  height: 100%;
  animation-play-state: running;
}

/* Wave layer - Secondary wave effect */
button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 0;
  background-image:
    /* Ripple effect */
    radial-gradient(ellipse 60% 40% at 30% 100%,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(255, 255, 255, 0.2) 40%,
      transparent 70%),
    radial-gradient(ellipse 50% 35% at 70% 100%,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 80%),
    /* Wave lines */
    repeating-linear-gradient(0deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.15) 8px,
      rgba(255, 255, 255, 0.15) 10px);
  background-size: 50% 60%, 40% 50%, 100% 20px;
  background-position: 0 0, 100% 0, 0 0;
  opacity: 0;
  transition: height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease 0.2s;
  z-index: -1;
  animation: wave-movement 2.5s ease-in-out infinite;
  animation-play-state: paused;
}

button:hover::after {
  height: 100%;
  opacity: 1;
  animation-play-state: running;
}

/* Water wave animation - moves the wave pattern */
@keyframes water-wave {
  0% {
    background-position: 0 0, 0 0;
  }

  50% {
    background-position: 0 0, -100px 0;
  }

  100% {
    background-position: 0 0, -200px 0;
  }
}

/* Wave movement animation - creates flowing effect */
@keyframes wave-movement {
  0% {
    background-position: 0 0, 100% 0, 0 0;
    transform: translateX(0);
  }

  50% {
    background-position: -50px 0, calc(100% + 50px) 0, -25px 0;
    transform: translateX(-15px);
  }

  100% {
    background-position: -100px 0, calc(100% + 100px) 0, -50px 0;
    transform: translateX(0);
  }
}

/* For black buttons, change text color on hover */
button.bg-black:hover,
button[class*='bg-black']:hover {
  color: #000000 !important;
}

/* For buttons with white text, ensure text stays visible during fill */
button.text-white:hover,
button[class*='text-white']:hover {
  color: #000000 !important;
}

/* Ensure button content stays above fill effect */
button>*,
button>p,
button>img {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

/* Exclude menu toggle button from fill effects */
#menu-toggle {
  overflow: visible;
  border: none !important;
}

#menu-toggle::before,
#menu-toggle::after {
  display: none !important;
  content: none !important;
}

#menu-toggle:hover {
  border-color: transparent !important;
  background-image: none !important;
}

#menu-toggle:hover::before,
#menu-toggle:hover::after {
  display: none !important;
  height: 0 !important;
  opacity: 0 !important;
  animation: none !important;
}

/* Exclude popup close button from border and fill effects */
#popup-close {
  border: none !important;
  overflow: visible !important;
}

#popup-close img {
  transition: filter 0.3s ease;
}

#popup-close:hover {
  border: none !important;
  border-color: transparent !important;
  outline: none !important;
}

#popup-close:hover img {
  filter: brightness(0);
  transition: filter 0.3s ease;
}

#popup-close:focus {
  border: none !important;
  border-color: transparent !important;
  outline: none !important;
}

#popup-close::before,
#popup-close::after {
  display: none !important;
  content: none !important;
}

#popup-close:hover::before,
#popup-close:hover::after {
  display: none !important;
  height: 0 !important;
  opacity: 0 !important;
  animation: none !important;
}

/* ============================================
   Popup Modal Styles - Modern Real Estate Design
   ============================================ */

.popup-modal {
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease;
}

.popup-modal.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  transform: scale(0.95) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
  width: 60% !important;
  height: 65vh !important;
  max-width: none !important;
}

.popup-modal.show .popup-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Popup Image Container */
.popup-image-container {
  display: flex;
  align-items: stretch;
  position: relative;
  min-height: 400px;
}

.popup-image-container img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Popup Form Container */
.popup-form-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #FFFFFF;
}

/* Popup Form Inputs - Modern Styling */
.popup-input {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-input:hover {
  background-color: #F5F5F5;
  border-color: #D0D0D0;
}

.popup-input:focus {
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.popup-input::placeholder {
  color: #000000;
  transition: color 0.3s ease;
}

.popup-input:focus::placeholder {
  color: #000000;
}

/* Popup Submit Button */
.popup-submit-btn {
  position: relative;
  overflow: hidden;
}

.popup-submit-btn:active {
  transform: scale(0.98);
}

/* Popup Submit Button Icon Swap Effect */
.popup-submit-btn .popup-submit-default-icon {
  opacity: 1;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.popup-submit-btn .popup-submit-hover-icon {
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.popup-submit-btn:hover .popup-submit-default-icon {
  opacity: 0;
}

.popup-submit-btn:hover .popup-submit-hover-icon {
  opacity: 1;
}

/* Responsive Popup Styles */
@media (max-width: 640px) {
  .popup-content {
    width: 97% !important;
    height: 95vh !important;
    max-width: none !important;
    border-radius: 1rem;
    overflow: hidden !important;
  }

  .popup-content::webkit-scrollbar {
    display: none !important;
  }

  .popup-form-container {
    padding: 1.5rem;
    overflow-y: auto;
  }

  .popup-form-container>div:first-child {
    margin-bottom: 1.5rem;
  }

  .popup-form-container>div:first-child h2 {
    font-size: 24px;
  }

  #popup-form {
    gap: 1.25rem;
  }

  .popup-input {
    height: 52px;
    font-size: 14px;
  }

  .popup-submit-btn {
    width: 100%;
    min-width: auto;
    height: 52px;
  }

  #popup-close {
    width: 2.5rem;
    height: 2.5rem;
    top: 0.75rem;
    right: 0.75rem;
  }

  .popup-image-container {
    display: none;
  }
}

@media (min-width: 641px) and (max-width: 767px) {
  .popup-content {
    width: 60% !important;
    height: 65vh !important;
    max-width: none !important;
  }

  .popup-form-container {
    padding: 2rem;
  }

  .popup-form-container>div:first-child h2 {
    font-size: 28px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .popup-content {
    width: 90% !important;
    height: 65vh !important;
    max-width: none !important;
  }

  .popup-form-container {
    padding: 2.5rem;
  }

  .popup-image-container {
    min-height: 500px;
  }
}

@media (min-width: 1023px) {
  .popup-content {
    width: 90% !important;
    height: 75vh !important;
    max-width: none !important;
  }

  .popup-form-container {
    padding: 3rem;
  }

  .popup-image-container {
    min-height: 600px;
  }

  .popup-form-container>div:first-child h2 {
    font-size: 36px;
  }
}

@media (min-width: 1280px) {
  .popup-content {
    width: 70% !important;
    height: 75vh !important;
    max-width: none !important;
  }

  .popup-form-container {
    padding: 3.5rem;
  }
}

/* Smooth scrollbar for form container */
.popup-form-container::-webkit-scrollbar {
  width: 6px;
}

.popup-form-container::-webkit-scrollbar-track {
  background: #F5F5F5;
}

.popup-form-container::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 3px;
}

.popup-form-container::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}





/* ============================================
   Banner Slider Navigation & Pagination
   ============================================ */

/* Navigation Buttons */
.slider-nav-btn {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  transform-origin: center;
  z-index: 30;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure left and right buttons maintain their positions - Desktop */
#desktop-slider-prev {
  left: 1rem;
  right: auto;
  transform: translateY(-50%);
}

#desktop-slider-next {
  right: 1rem;
  left: auto;
  transform: translateY(-50%);
}

/* Ensure left and right buttons maintain their positions - Mobile */
#mobile-slider-prev {
  left: 0.75rem;
  right: auto;
  transform: translateY(-50%);
}

#mobile-slider-next {
  right: 0.75rem;
  left: auto;
  transform: translateY(-50%);
}

/* Hover and active states with proper transform combination */
#desktop-slider-prev:hover,
#desktop-slider-next:hover {
  transform: translateY(-50%) scale(1.05);
}

#mobile-slider-prev:hover,
#mobile-slider-next:hover {
  transform: translateY(-50%) scale(1.05);
}

#desktop-slider-prev:active,
#desktop-slider-next:active {
  transform: translateY(-50%) scale(0.95);
}

#mobile-slider-prev:active,
#mobile-slider-next:active {
  transform: translateY(-50%) scale(0.95);
}



/* Pagination Dots */
.slider-pagination-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.slider-pagination-dot.active {
  width: 24px;
  height: 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 1);
}

/* Pagination Container */
#desktop-slider-pagination,
#mobile-slider-pagination {
  z-index: 30;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
}

/* Desktop Pagination */
#desktop-slider-pagination .slider-pagination-dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.6);
}

#desktop-slider-pagination .slider-pagination-dot.active {
  width: 32px;
  height: 10px;
  background-color: rgba(255, 255, 255, 1);
}

/* Mobile Pagination */
#mobile-slider-pagination .slider-pagination-dot {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.7);
}

#mobile-slider-pagination .slider-pagination-dot.active {
  width: 24px;
  height: 8px;
  background-color: rgba(255, 255, 255, 1);
}

/* Responsive adjustments for pagination */
@media (max-width: 640px) {
  #mobile-slider-pagination {
    bottom: 0.75rem;
    gap: 0.375rem;
  }

  #mobile-slider-pagination .slider-pagination-dot {
    width: 7px;
    height: 7px;
  }

  #mobile-slider-pagination .slider-pagination-dot.active {
    width: 20px;
    height: 7px;
  }
}

@media (min-width: 641px) and (max-width: 767px) {
  #mobile-slider-pagination {
    bottom: 1rem;
    gap: 0.5rem;
  }

  #mobile-slider-pagination .slider-pagination-dot {
    width: 8px;
    height: 8px;
  }

  #mobile-slider-pagination .slider-pagination-dot.active {
    width: 24px;
    height: 8px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #desktop-slider-pagination {
    bottom: 1rem;
    gap: 0.5rem;
  }

  #desktop-slider-pagination .slider-pagination-dot {
    width: 9px;
    height: 9px;
  }

  #desktop-slider-pagination .slider-pagination-dot.active {
    width: 28px;
    height: 9px;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  #desktop-slider-pagination {
    bottom: 1.25rem;
    gap: 0.5rem;
  }
}

@media (min-width: 1280px) {
  #desktop-slider-pagination {
    bottom: 1.5rem;
    gap: 0.5rem;
  }
}

/* ============================================
   Gallery Lightbox Modal Styles
   ============================================ */

.gallery-lightbox {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease;
}

.gallery-lightbox.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-content {
  animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.gallery-lightbox.closing .gallery-lightbox-content {
  animation: fadeOutScale 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOutScale {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.85);
  }
}

/* Ensure gallery images are clickable */
.gallery-image.cursor-pointer {
  cursor: pointer;
}

/* Gallery Image Container */
.gallery-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 300px;
  min-height: 300px;
  max-width: 90vw;
  max-height: 90vh;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform, width, height;
  overflow: hidden;
}

/* Opening animation - from 0 to min dimensions */
.gallery-image-container.open-from-zero {
  animation: openFromZero 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  width: 0;
  height: 0;
}

@keyframes openFromZero {
  0% {
    width: 0;
    height: 0;
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    width: 300px;
    height: 300px;
    opacity: 1;
    transform: scale(1);
  }
}

/* Gallery Lightbox Image */
.gallery-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 280px;
  min-height: 280px;
  object-fit: contain;
  display: block;
}

/* Container slide animations */
.gallery-image-container.slide-in-left {
  animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-image-container.slide-in-right {
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-image-container.slide-out-left {
  animation: slideOutLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-image-container.slide-out-right {
  animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
  }
}

/* Gallery Navigation Buttons */
.gallery-nav-btn {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  transform-origin: center;
  z-index: 10000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.gallery-nav-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn:active {
  transform: translateY(-50%) scale(0.9);
}

.gallery-nav-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Ensure left and right buttons maintain positions */
#gallery-lightbox-prev {
  left: 1rem;
  right: auto;
  transform: translateY(-50%);
}

#gallery-lightbox-next {
  right: 1rem;
  left: auto;
  transform: translateY(-50%);
}

#gallery-lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

#gallery-lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

#gallery-lightbox-prev:active {
  transform: translateY(-50%) scale(0.95);
}

#gallery-lightbox-next:active {
  transform: translateY(-50%) scale(0.95);
}

/* Responsive adjustments for lightbox */
@media (max-width: 640px) {
  .gallery-lightbox {
    padding: 0.5rem;
  }

  #gallery-lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  #gallery-lightbox-close svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  #gallery-lightbox-prev {
    left: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  #gallery-lightbox-next {
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  #gallery-lightbox-prev svg,
  #gallery-lightbox-next svg {
    width: 1rem;
    height: 1rem;
  }

  .gallery-lightbox-img {
    max-width: 95vw;
    max-height: 95vh;
  }
}

@media (min-width: 641px) and (max-width: 767px) {
  .gallery-lightbox {
    padding: 1rem;
  }

  #gallery-lightbox-prev {
    left: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  #gallery-lightbox-next {
    right: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  #gallery-lightbox-prev svg,
  #gallery-lightbox-next svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-lightbox {
    padding: 1.5rem;
  }

  #gallery-lightbox-prev {
    left: 1rem;
  }

  #gallery-lightbox-next {
    right: 1rem;
  }

  .gallery-lightbox-img {
    max-width: 85vw;
    max-height: 85vh;
  }
}

@media (min-width: 1024px) {
  .gallery-lightbox-img {
    max-width: 80vw;
    max-height: 80vh;
  }
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}

/* Responsive adjustments for gallery container */
@media (max-width: 640px) {
  .gallery-image-container {
    min-width: 250px;
    min-height: 250px;
    max-width: 95vw;
    max-height: 95vh;
    padding: 0.75rem;
  }

  .gallery-image-container.open-from-zero {
    animation: openFromZeroMobile 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    width: 0;
    height: 0;
  }

  @keyframes openFromZeroMobile {
    0% {
      width: 0;
      height: 0;
      opacity: 0;
      transform: scale(0.8);
    }

    100% {
      width: 250px;
      height: 250px;
      opacity: 1;
      transform: scale(1);
    }
  }

  .gallery-lightbox-img {
    min-width: 230px;
    min-height: 230px;
  }

  .gallery-image-container.slide-in-left {
    animation: slideInLeftMobile 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .gallery-image-container.slide-in-right {
    animation: slideInRightMobile 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes slideInLeftMobile {
    from {
      opacity: 0;
      transform: translateX(-30px) scale(0.95);
    }

    to {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
  }

  @keyframes slideInRightMobile {
    from {
      opacity: 0;
      transform: translateX(30px) scale(0.95);
    }

    to {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
  }
}

@media (min-width: 641px) and (max-width: 767px) {
  .gallery-image-container {
    min-width: 350px;
    min-height: 350px;
    max-width: 90vw;
    max-height: 90vh;
  }

  .gallery-image-container.open-from-zero {
    animation: openFromZeroTablet 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    width: 0;
    height: 0;
  }

  @keyframes openFromZeroTablet {
    0% {
      width: 0;
      height: 0;
      opacity: 0;
      transform: scale(0.8);
    }

    100% {
      width: 350px;
      height: 350px;
      opacity: 1;
      transform: scale(1);
    }
  }

  .gallery-lightbox-img {
    min-width: 320px;
    min-height: 320px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-image-container {
    min-width: 400px;
    min-height: 400px;
    max-width: 85vw;
    max-height: 85vh;
  }

  .gallery-image-container.open-from-zero {
    animation: openFromZeroDesktop 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    width: 0;
    height: 0;
  }

  @keyframes openFromZeroDesktop {
    0% {
      width: 0;
      height: 0;
      opacity: 0;
      transform: scale(0.8);
    }

    100% {
      width: 400px;
      height: 400px;
      opacity: 1;
      transform: scale(1);
    }
  }

  .gallery-lightbox-img {
    min-width: 370px;
    min-height: 370px;
  }
}

@media (min-width: 1024px) {
  .gallery-image-container {
    min-width: 500px;
    min-height: 500px;
    max-width: 80vw;
    max-height: 80vh;
  }

  .gallery-image-container.open-from-zero {
    animation: openFromZeroLarge 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    width: 0;
    height: 0;
  }

  @keyframes openFromZeroLarge {
    0% {
      width: 0;
      height: 0;
      opacity: 0;
      transform: scale(0.8);
    }

    100% {
      width: 500px;
      height: 500px;
      opacity: 1;
      transform: scale(1);
    }
  }

  .gallery-lightbox-img {
    min-width: 470px;
    min-height: 470px;
  }
}

@media (min-width: 1280px) {
  .gallery-image-container {
    min-width: 600px;
    min-height: 600px;
  }

  .gallery-image-container.open-from-zero {
    animation: openFromZeroXL 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    width: 0;
    height: 0;
  }

  @keyframes openFromZeroXL {
    0% {
      width: 0;
      height: 0;
      opacity: 0;
      transform: scale(0.8);
    }

    100% {
      width: 600px;
      height: 600px;
      opacity: 1;
      transform: scale(1);
    }
  }

  .gallery-lightbox-img {
    min-width: 570px;
    min-height: 570px;
  }
}


@media (min-width: 2000px) {
  .bgContainer {
    width: 85% !important;
    margin: 0 auto !important;
  }

  #contact {
    justify-content: center !important;
    gap: 10rem !important;
  }

  #advantages {
    justify-content: center !important;
    gap: 10rem !important;
  }
}

/* Cross Icon SVG Responsive Styles */
@media (max-width: 376px) {
  img.crsSVG {
    width: 15px !important;
    height: 15px !important;
  }
}

@media (min-width: 378px) and (max-width: 1023px) {
  img.crsSVG {
    width: 24px !important;
    height: 24px !important;
  }
}

@media (min-width: 1024px) {
  img.crsSVG {
    width: auto !important;
    height: auto !important;
  }
}

/* ============================================
   Custom Notification Popup Styles
   ============================================ */

#custom-notification {
  animation: slideInRight 0.3s ease-out;
}

#custom-notification .notification-close {
  cursor: pointer;
  transition: transform 0.2s ease;
}

#custom-notification .notification-close:hover {
  transform: scale(1.1);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Form validation error styles */
input.border-red-500,
textarea.border-red-500 {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

/* Loading button styles */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

button:disabled:hover {
  transform: none;
}

/* ============================================
   Loading Popup Modal Styles
   ============================================ */

#loading-popup {
  animation: fadeIn 0.3s ease-out;
}

#loading-popup>div {
  animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure loading spinner is visible */
#loading-popup svg.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


@media (max-width: 374px) {
  #popup-close {
    top: 5px !important;
    right: -15px !important;
  }
}

@media (min-width: 1024px) and (max-width:1314px) {
  #amenitiesimg {
    left: -27rem !important;
  }
}


@media (min-width: 1024px) and (max-width: 1341px) {
  .amCards {
    width: 100% !important;
  }
}

@media (min-width: 1380px) {
  #lcDv {
    width: 100% !important;
  }

}

@media (min-width:1024px) and (max-width:1283px) {
  #vdpl {
    height: 523px !important;
  }
}

@media (max-width:524px) {
  .rsdv {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .rsdv p {
    font-size: 13px !important;
  }

  .mdv {
    width: 100% !important;
  }
}



@media (min-width: 1370px) {
  .ctn {
    width: 1300px !important;
  }
}

@media (min-width: 1600px) {
  .hdf {
    display: none !important;
  }
}