/* Custom Styles */
:root {
  --panorama-blue: #1e3a5f;
  --panorama-teal: #2c5f5f;
  --panorama-light: #f8fafc;
  --panorama-gold: #d4af37;
}

* {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  width: 100%;
}

/* Logo styles */
.logo {
  height: 96px; /* Increased from previous size */
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .logo {
    height: 72px; /* Slightly smaller on mobile but still visible */
  }
}

/* Hero Section Animations */
.hero-bg {
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background: linear-gradient(45deg, rgba(30, 58, 95, 0.7), rgba(44, 95, 95, 0.7));
  }
  50% {
    background: linear-gradient(45deg, rgba(44, 95, 95, 0.7), rgba(30, 58, 95, 0.7));
  }
}

.hero-image {
  animation: kenBurns 20s ease-in-out infinite;
}

@keyframes kenBurns {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.hero-title {
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-subtitle {
  animation: fadeInUp 1s ease-out 1s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation Animations */
#navbar {
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--panorama-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* Language button position adjustments */
.lang-toggle {
  top: 5rem; /* Moved down to prevent overlap with header */
  z-index: 1000;
}

@media (max-width: 768px) {
  .lang-toggle {
    top: 4rem;
    right: 1rem;
  }
}

/* Fixed position elements */
.fixed {
    position: fixed;
    max-width: 100%;
}

/* Navigation and button adjustments */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-x: hidden;
}

/* Book Now button adjustments */
.book-now-btn {
    position: relative;
    z-index: 40;
    display: inline-block;
    max-width: 100%;
    margin: 0.5rem;
}

/* Ensure buttons stay within viewport on mobile */
@media (max-width: 640px) {
    .fixed {
        right: 1rem;
    }
    
    #langToggle {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Gallery Hover Effects */
.gallery-item img {
  transition: all 0.3s ease;
  filter: brightness(0.9);
}

.gallery-item:hover img {
  filter: brightness(1.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Button Animations */
.book-now-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.book-now-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.book-now-btn:hover::before {
  left: 100%;
}

/* Scroll Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax Effects */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .parallax {
    background-attachment: scroll;
  }
}

/* Loading Animation */
.loading {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--panorama-light);
}

::-webkit-scrollbar-thumb {
  background: var(--panorama-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--panorama-teal);
}

/* Location Section Animations */
.location-category {
  transition: all 0.3s ease;
}

.location-category:hover {
  transform: translateY(-2px);
}

.location-content {
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.location-content.expanded {
  max-height: 500px;
  padding-top: 1rem;
}

.location-category .fas.fa-chevron-down {
  transition: transform 0.3s ease;
}

.location-category .fas.fa-chevron-down.rotated {
  transform: rotate(180deg);
}

/* Enhanced hover effects for location items */
.location-content .hover\:bg-blue-100:hover,
.location-content .hover\:bg-green-100:hover,
.location-content .hover\:bg-yellow-100:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Pulsing animation for map marker */
@keyframes mapPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.map-marker {
  animation: mapPulse 2s infinite;
}

/* Staggered animation for location cards */
.location-category:nth-child(1) {
  animation-delay: 0.1s;
}

.location-category:nth-child(2) {
  animation-delay: 0.2s;
}

.location-category:nth-child(3) {
  animation-delay: 0.3s;
}

/* Enhanced gradient backgrounds */
.bg-gradient-to-r {
  background-size: 200% 200%;
  animation: gradientMove 3s ease infinite;
}

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

/* Floating animation for quick info cards */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Enhanced shadow effects */
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

/* Hero Slideshow Styles */
.hero-slideshow {
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slide-dot.active {
  background-color: white;
}

/* Slideshow Navigation Dots */
.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-dot.active,
.slide-dot:hover {
  background-color: var(--panorama-gold);
  border-color: var(--panorama-gold);
  transform: scale(1.2);
}

/* Enhanced Gallery Lightbox */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--panorama-gold);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: var(--panorama-gold);
  color: white;
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

/* Mobile responsiveness for slideshow */
@media (max-width: 768px) {
  .slide-dot {
    width: 10px;
    height: 10px;
  }

  .lightbox-nav {
    font-size: 1.5rem;
    padding: 8px 12px;
  }

  .lightbox-prev {
    left: -50px;
  }

  .lightbox-next {
    right: -50px;
  }
}

/* Mobile Menu Styles */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger .line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

#mobileMenu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 999;
}

#mobileMenu.hidden {
    display: none;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    nav{
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
    }

    #mobileMenu {
        display: block;
    }

    #mobileMenu .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    #mobileMenu.hidden {
        display: none;
    }

    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Fix container overflow */
    .container {
        width: 100%;
        padding: 0 15px;
        overflow-x: hidden;
    }

    /* Make images responsive */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Adjust spacing for mobile */
    .section {
        padding: 40px 20px;
    }

    /* Fix table overflow */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Additional responsive adjustments */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    p {
        font-size: 16px;
    }
}
