:root {
  --primary: #1a1a1a;
  --secondary: #d4a574;
  --gold: #c9a961;
  --cream: #f8f6f3;
  --dark: #000000;
  --light: #ffffff;
  --gray: #666666;
  --border: #e5e5e5;
  --section-padding: 120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--primary);
  background-color: var(--light);
  font-size: 15px;
  letter-spacing: 0.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Luxury Minimal Navigation */
nav {
  background: rgba(255, 255, 255, 0.95) !important;
  padding: 10px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
  nav .container {
    padding: 0 20px;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: var(--light);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
    padding: 100px 30px 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(127,127,127,0.1);
    padding-bottom: 15px;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    font-size: 13px;
    display: block;
    width: 100%;
    color: var(--primary) !important;
  }

  .menu-toggle {
    display: block !important;
    z-index: 1001;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
  }
}

/* Dark Mode Image Handling */
body.dark-mode section img:not(.logo img),
body.dark-mode .amenity-card img {
  filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--gold)) !important;
  opacity: 1 !important;
}

body.dark-mode .accommodation-card img,
body.dark-mode .accommodation-card video,
body.dark-mode #gallery img {
  filter: none !important;
  opacity: 1 !important;
}

body.dark-mode .logo img {
  filter: none !important;
  opacity: 1 !important;
  background: transparent !important;
}

body.dark-mode .logo span {
  color: var(--gold) !important;
  text-shadow: 0 0 8px rgba(201, 169, 97, 0.5);
}

/* Classy Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  background-color: #000;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay to make text readable */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 20px;
  font-weight: 300;
  display: inline-block;
}

@keyframes swivel {
  0% { transform: rotateY(0deg); }
  25% { transform: rotateY(15deg); }
  50% { transform: rotateY(0deg); }
  75% { transform: rotateY(-15deg); }
  100% { transform: rotateY(0deg); }
}

.swivel-text {
  animation: swivel 5s ease-in-out infinite;
  perspective: 1000px;
  display: inline-block;
  transform-style: preserve-3d;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 0.9rem !important;
    letter-spacing: 2px !important;
  }
  .hero .container {
    padding: 0 15px;
  }
}

/* Elegant Section Headers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
  padding: 0 20px;
  width: 100%;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .footer-brand, .footer-contact, .footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social-links {
    justify-content: center;
    margin-top: 15px;
  }

  footer .footer-nav {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }

  .section-header h2 {
    font-size: 2rem;
    letter-spacing: 2px;
  }
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 1px;
  background: var(--gold);
}

/* Clean Room Cards */
.accommodation-card {
  background: white;
  border: none !important;
  box-shadow: none !important;
  text-align: left;
}

.accommodation-card h3 {
  font-size: 1.8rem;
  margin: 25px 0 10px;
  text-transform: none;
}

.accommodation-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary);
  color: var(--light);
}

.hero .btn {
  border-color: white;
  color: white;
}

.hero .btn:hover {
  background: white;
  color: black;
}

/* Social Icon Styling */
.social-links {
  display: flex;
  gap: 15px;
  list-style: none;
}

.social-icon-wrapper {
  display: inline-block;
  width: 24px !important;
  height: 24px !important;
  transition: transform 0.3s ease;
}

.social-icon-wrapper img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  object-fit: contain !important;
}

.social-icon-wrapper:hover {
  transform: translateY(-2px);
}

/* Footer Styling - Force Visibility */
footer {
  padding: 80px 0;
  background: #1a1a1a !important; /* Force dark background in both modes */
  color: #ffffff !important;
  text-align: center; /* Center all text in footer */
}

footer .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
  text-align: center;
}

footer .footer-brand h3,
footer .footer-brand p,
footer .footer-contact h4,
footer .footer-contact p,
footer .footer-social h4,
footer .footer-nav a,
footer .footer-copyright p {
  color: #ffffff !important;
}

footer .footer-contact h4,
footer .footer-social h4,
footer .footer-nav a:hover {
  color: var(--gold) !important;
}

footer .footer-social .social-links {
  justify-content: center; /* Center social icons */
  margin-top: 10px;
}

footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  padding-top: 40px;
  display: flex;
  flex-direction: column; /* Stack bottom elements for centering */
  align-items: center;
  gap: 20px;
}

footer .footer-nav {
  display: flex;
  gap: 30px;
  justify-content: center;
}

footer .footer-nav a {
  color: rgba(255,255,255,0.7) !important;
}

footer .footer-copyright {
  text-align: center;
}

footer .footer-copyright p {
  color: rgba(255,255,255,0.5) !important;
  margin-bottom: 5px;
}

/* Ensure Dark Mode doesn't override footer text visibility */
body.dark-mode footer,
body.dark-mode footer div,
body.dark-mode footer p,
body.dark-mode footer a,
body.dark-mode footer h3,
body.dark-mode footer h4 {
  color: #ffffff !important;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  width: 60px !important;
  height: 60px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float img {
  width: 35px !important;
  height: 35px !important;
  max-width: 35px !important;
  max-height: 35px !important;
}

/* Dark Mode Refresh */
body.dark-mode {
  --light: #121212 !important;
  --primary: #ffffff !important;
  --gray: #b0b0b0 !important;
  --border: #2a2a2a !important;
  --cream: #1e1e1e !important;
  background-color: #121212 !important;
  color: #ffffff !important;
}

body.dark-mode nav {
  background: rgba(18, 18, 18, 0.98) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

body.dark-mode section {
  background-color: #121212 !important;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

body.dark-mode .accommodation-card {
  background-color: #1a1a1a !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
  padding: 15px;
  border-radius: 12px;
}

body.dark-mode .accommodation-card h3,
body.dark-mode .accommodation-card p {
  color: #ffffff !important;
}

body.dark-mode .info-card,
body.dark-mode .booking-form-container,
body.dark-mode .registration-form {
  background-color: #1c1c1c !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

body.dark-mode .bank-details {
  background: #252525 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: #2a2a2a !important;
  border-color: #3d3d3d !important;
  color: #ffffff !important;
}

body.dark-mode .btn {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

body.dark-mode .btn:hover {
  background: var(--gold) !important;
  color: #000 !important;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4,
body.dark-mode p,
body.dark-mode li,
body.dark-mode strong,
body.dark-mode span,
body.dark-mode div,
body.dark-mode label,
body.dark-mode .nav-links a,
body.dark-mode .accommodation-card h3,
body.dark-mode .accommodation-card p,
body.dark-mode .accommodation-card div[style*="background: white"],
body.dark-mode .bank-details p,
body.dark-mode .bank-details strong,
body.dark-mode .bank-details div[style*="background: #fff"] p,
body.dark-mode .bank-details div[style*="background: #fff"] strong,
body.dark-mode section p,
body.dark-mode section h2,
body.dark-mode section h3,
body.dark-mode section span,
body.dark-mode div[style*="background: white"] h2,
body.dark-mode div[style*="background: white"] h3,
body.dark-mode div[style*="background: white"] p,
body.dark-mode .amenity-card h3,
body.dark-mode .amenity-card p {
  color: #ffffff !important;
}

body.dark-mode div[style*="background: white"] {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

body.dark-mode .bank-details div[style*="background: #fff"] {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.room-label {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: white;
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 2px;
  color: black;
  z-index: 2;
  transition: all 0.3s ease;
}

body.dark-mode .room-label {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(5px);
}

body.dark-mode .section-header h2::after {
  background: var(--gold) !important;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  left: 40px;
  width: 50px;
  height: 50px;
  background-color: var(--gold);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }
}
