/* Hotel Showcase - Custom Styles */

:root {
  --gold: #c8a45c;
  --charcoal: #2c2c2c;
  --hero-text-color: #ffffff;
  --gallery-image-fit: contain;
  --slideshow-image-fit: cover;
}

html { scroll-behavior: smooth; font-size: 21px; }

/* Gold accent color */
.text-gold { color: var(--gold); }
.bg-gold { background-color: var(--gold); }
.border-gold { border-color: var(--gold); }

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

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--gold);
  color: white;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}
.btn-primary:hover {
  background-color: #0A4D8C;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 164, 92, 0.3);
}

.btn-secondary {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}
.btn-secondary:hover {
  background-color: var(--gold);
  color: white;
  transform: translateY(-1px);
}

.hero-btn {
  font-size: 17px;
  font-weight: 600;
  padding: 14px 28px;
}

@media (max-width: 768px) {
  .hero-btn {
    font-size: 15px;
    padding: 12px 22px;
  }
}

/* Navbar link */
.nav-link {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width 0.3s;
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }

/* Form inputs */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  font-size: 0.9rem;
  color: var(--charcoal);
  background-color: #faf9f7;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  box-sizing: border-box;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.1);
}
.form-input::placeholder { color: #9ca3af; }
textarea.form-input { resize: vertical; }
@media (max-width: 640px) {
  .form-input { font-size: 16px; padding: 0.7rem 0.85rem; }
}

/* Gallery Masonry Grid */
.gallery-fixed-height {
  display: flex;
  overflow-x: auto;
  gap: 0.75rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.gallery-fixed-height::-webkit-scrollbar { height: 6px; }
.gallery-fixed-height::-webkit-scrollbar-thumb { background: #d4af37; border-radius: 3px; }

.gallery-pic {
  flex: 0 0 auto;
  height: 300px;
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #faf9f7;
}

.gallery-pic img, .gallery-pic video {
  height: 100%;
  width: auto;
  object-fit: var(--gallery-image-fit);
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  .gallery-pic {
    height: 300px;
  }
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-caption {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.6);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  z-index: 10;
  padding: 0.5rem;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s;
  padding: 1rem;
  z-index: 10;
}
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

/* Hero background images */
#heroSlideshow, #heroSlideshow > div {
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  #home {
    overflow: visible !important;
  }
}

/* Hero title */
#heroHotelName {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: #FFFFFF;
}

/* Hero subtitle */
#heroSubtitle {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 35px;
    color: #EAE5D9;
}

@media (max-width: 768px) {
    #heroHotelName {
        font-size: 36px;
        margin-bottom: 15px;
    }
    #heroSubtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }
}

/* Hero tagline font */
#heroTagline {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (min-width: 769px) {
  #heroTagline { font-size: 1.35rem; }
}

/* Hero text colors */
#home .text-white, #home .text-white\/80, #home .text-white\/60 {
  color: var(--hero-text-color) !important;
}

/* Responsive */
@media (max-width: 640px) {
  section { scroll-margin-top: 4rem; }
  .gallery-masonry {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
  }
  .gallery-manager-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .lightbox {
    padding: 0.5rem;
  }
  .lightbox-img { max-width: 100vw; max-height: 65vh; }
  .lightbox-prev { left: 0.25rem; font-size: 1.5rem; }
  .lightbox-next { right: 0.25rem; font-size: 1.5rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; font-size: 1.4rem; }
  #home .relative.z-20 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    padding-top: 5rem;
    padding-bottom: 8rem;
  }
  #home .relative.z-20 > div:last-child {
    margin-top: auto;
  }
}

@media (min-width: 641px) {
  section { scroll-margin-top: 5rem; }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 768px) {
  .gallery-masonry {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

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

.gallery-item {
  animation: fadeIn 0.5s ease-out both;
}

.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-item:nth-child(4) { animation-delay: 0.2s; }
.gallery-item:nth-child(5) { animation-delay: 0.25s; }
.gallery-item:nth-child(6) { animation-delay: 0.3s; }
