@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #FAF9F6;
  color: #4E342E;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* Typography Utilities */
.font-serif {
  font-family: 'Playfair Display', serif !important;
}

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

/* Custom Component Styles */
.glass-header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(78, 52, 46, 0.1);
}

.btn-primary {
  background-color: #4E342E;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #8D6E63;
  color: #ffffff;
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-outline {
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: #ffffff;
  color: #4E342E;
}

.btn-outline-dark {
  border: 2px solid #4E342E;
  color: #4E342E;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  cursor: pointer;
}

.btn-outline-dark:hover {
  background-color: #4E342E;
  color: #ffffff;
}

.btn-outline:active, .btn-outline-dark:active {
  transform: scale(0.95);
}

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

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-left {
  animation: fadeLeft 0.8s ease forwards;
}

.animate-fade-right {
  animation: fadeRight 0.8s ease forwards;
}

/* Utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

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

::-webkit-scrollbar-track {
  background: #FAF9F6;
}

::-webkit-scrollbar-thumb {
  background: #C19A6B;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4E342E;
}

/* Booking Modal Overlay Transition */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  /* Overlay is fixed + flex: centering is handled entirely by flexbox */
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal card – NO translate() here; flexbox on the overlay centers it */
.modal-content {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Responsive constraints */
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  /* Card itself must NOT scroll — overflow:hidden keeps rounded corners clean */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Inner scrollable wrapper — scroll happens here, not on the card edge */
.modal-inner {
  overflow-y: auto;
  flex: 1;
}

.modal-overlay.active .modal-content {
  opacity: 1;
  transform: scale(1);
}

/* Responsive: tighter padding on very small screens */
@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    max-height: 88vh;
  }
}

/* ─── Room Image Gallery ─────────────────────────────────── */
.gallery-carousel {
  position: relative;
  overflow: hidden;
  background: #111;
}

.gallery-slide {
  transition: opacity 0.45s ease;
}

.gallery-arrow {
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  backdrop-filter: blur(4px);
}

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

.gallery-dot {
  transition: transform 0.2s, background 0.2s;
}

.gallery-thumb {
  transition: border-color 0.2s, opacity 0.2s;
}

.gallery-thumb:hover {
  opacity: 1 !important;
}

/* ─── Lightbox ───────────────────────────────────────────── */
#lightbox {
  animation: lbFadeIn 0.2s ease;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#lightbox-img {
  animation: lbZoomIn 0.25s ease;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}

@keyframes lbZoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Admin gallery hover overlay */
.img-preview .overlay {
  opacity: 0;
  transition: opacity 0.2s;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
}
.img-preview:hover .overlay { opacity: 1; }
