/* ================= Base Rendering & Smooth Typography ================= */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  background-color: #f8f7f4;
  color: #181715;
}

.font-serif {
  font-family: 'Cinzel', serif !important;
}

.font-sans {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

img {
  max-width: 100%;
  height: auto;
}

img[src*="Logo"] {
  object-fit: contain !important;
}

/* ================= Page Entrance Animations ================= */
@keyframes pageFadeSlide {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-page-fade {
  animation: pageFadeSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform;
}

/* Staggered Element Fade-Ins on Scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Continuous Floating Emblem */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

.animate-float {
  animation: float 4.5s ease-in-out infinite;
  will-change: transform;
}

/* ================= Luxury Buttons & Dynamic Light Shimmers ================= */
.btn-luxury-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dfc38a 0%, #c19545 50%, #a77a33 100%);
  box-shadow: 0 4px 18px -2px rgba(193, 149, 69, 0.45), 0 2px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  touch-action: manipulation;
}

.btn-luxury-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.5) 50%, 
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: none;
}

.btn-luxury-primary:hover::after {
  left: 150%;
  transition: left 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-luxury-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -2px rgba(193, 149, 69, 0.6);
}

.btn-luxury-primary:active {
  transform: scale(0.96) translateY(0);
  box-shadow: 0 2px 8px rgba(193, 149, 69, 0.3);
}

/* Luxury Outline Secondary Button */
.btn-luxury-secondary {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(223, 195, 138, 0.6);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  touch-action: manipulation;
}

.btn-luxury-secondary:hover {
  background: rgba(223, 195, 138, 0.18);
  border-color: rgba(193, 149, 69, 0.9);
  transform: translateY(-1.5px);
}

.btn-luxury-secondary:active {
  transform: scale(0.96);
}

/* ================= Header Navigation Pill Transitions ================= */
.nav-btn {
  position: relative;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid transparent;
  display: inline-block;
}

.nav-btn-inactive {
  color: #6d6a65;
  background-color: transparent;
}

.nav-btn-inactive:hover {
  color: #875d27;
  background-color: rgba(245, 237, 217, 0.65);
  border-color: rgba(223, 195, 138, 0.65);
  transform: translateY(-1.5px);
  box-shadow: 0 3px 12px rgba(193, 149, 69, 0.15);
}

.nav-btn-active {
  color: #181715 !important;
  background: linear-gradient(135deg, #f5edd9 0%, #dfc38a 100%) !important;
  border-color: #d0aa62 !important;
  box-shadow: 0 2px 14px rgba(193, 149, 69, 0.35) !important;
}

/* Mobile Drawer Links */
.mobile-nav-btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: manipulation;
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
}

.mobile-nav-btn-active {
  background: linear-gradient(90deg, #fdfbf7 0%, #f5edd9 100%) !important;
  color: #875d27 !important;
  border-left: 4px solid #c19545 !important;
  font-weight: 800 !important;
}

/* ================= Luxury Card Glows & Image Zooms ================= */
.luxury-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(223, 195, 138, 0.65);
  border-radius: 1.5rem;
  box-shadow: 0 4px 18px -2px rgba(24, 23, 21, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow, border-color;
}

.luxury-card:hover {
  border-color: rgba(193, 149, 69, 0.85);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -4px rgba(193, 149, 69, 0.22);
}

/* Image Scale inside cards */
.luxury-card img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-card:hover img {
  transform: scale(1.05);
}

/* Pulsing Aura Glow */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(193, 149, 69, 0.35);
  }
  50% {
    box-shadow: 0 4px 28px rgba(193, 149, 69, 0.7);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 2.8s infinite ease-in-out;
}

/* Modal Backdrop Reveal */
@keyframes modalFade {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-modal {
  animation: modalFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Leaflet Container & Mobile Safezone */
.leaflet-container {
  font-family: inherit;
  border-radius: 0.875rem;
  z-index: 10;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 5.5rem;
  }
}
