/* Global Styles */
:root {
  --primary: #1a1a1a;
  --secondary: #f15931;
  --light: #f8f9fa;
  --dark: #680007;
  --gray: #6c757d;
  --bgcolor: #faf4f2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f5f5f5;
  color: var(--primary);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--secondary);
  color: white;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--dark);
  transform: translateY(-2px);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
}

.section-subtitle {
  color: var(--gray);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 15px 0;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  padding: 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-container {
  color: #eee8dd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.logo span {
  color: var(--secondary);
}

/* logo png edit: ushantha*/
.logo img {
  height: 25px;
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  color: white;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-menu a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.nav-menu a:hover:after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/images/hero-bg.jpg") no-repeat center center/cover;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

/* logo png edit: ushantha*/
.hero img {
  height: 250px;
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero img {
    padding-top: 20px;
    height: 125px;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero {
    height: 70vh;
  }
  .hero-content {
    padding: 0 15px;
  }
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: white;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-img {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-img:hover img {
  transform: scale(1.05);
}

.about-content {
  flex: 1;
}

.about-text {
  margin-bottom: 2rem;
  color: var(--gray);
  line-height: 1.8;
}

/* Rooms Section */
.rooms {
  padding: 100px 0;
  background-color: #f8f9fa;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.room-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.room-img {
  height: 250px;
  overflow: hidden;
}

.room-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.room-card:hover .room-img img {
  transform: scale(1.1);
}

.room-content {
  padding: 20px;
}

.room-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.room-price {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.room-features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.room-feature {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  line-height: 2;
  padding-left: 10px;
  color: var(--gray);
}

.room-feature i {
  margin-right: 5px;
  color: var(--secondary);
}

/* Amenities Section */
.amenities {
  padding: 100px 0;
  background-color: white;
  text-align: center;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 50px;
}

.amenity-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 10px;
  background-color: #f8f9fa;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.amenity-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 15px;
}

.amenity-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.amenity-desc {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
}

/* Fade-Up Animation */
.fade-up {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 0.8s ease forwards;
}

/* Staggered appearance */
.amenity-card:nth-child(1) {
  animation-delay: 0.1s;
}
.amenity-card:nth-child(2) {
  animation-delay: 0.2s;
}
.amenity-card:nth-child(3) {
  animation-delay: 0.3s;
}
.amenity-card:nth-child(4) {
  animation-delay: 0.4s;
}
.amenity-card:nth-child(5) {
  animation-delay: 0.5s;
}
.amenity-card:nth-child(6) {
  animation-delay: 0.6s;
}
.amenity-card:nth-child(7) {
  animation-delay: 0.7s;
}
.amenity-card:nth-child(8) {
  animation-delay: 0.8s;
}
.amenity-card:nth-child(9) {
  animation-delay: 0.9s;
}
.amenity-card:nth-child(10) {
  animation-delay: 1s;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .amenities-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .amenity-card {
    padding: 20px 15px;
  }
  .amenity-icon {
    font-size: 2rem;
  }
  .amenity-title {
    font-size: 1rem;
  }
  .amenity-desc {
    font-size: 0.9rem;
  }
}

/* ==============================================
   GALLERY SECTION STYLES
   ============================================== */
/* Gallery Section - Fixed Styles */
.gallery {
  padding: 100px 0;
  background-color: #f8f9fa;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  /* transform: translateY(0); */
  /* transition: transform 0.3s ease; */
  transition: box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item::after {
  content: attr(data-category);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding-bottom: 15px;
  color: white;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  text-align: center;
  font-family: var(--font-primary);
}

.gallery-item:hover::after {
  transform: translateY(0);
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
}

.lightbox-content img.loading {
  opacity: 0.5;
}

.lightbox-caption {
  color: white;
  margin-top: 15px;
  font-size: 1.2rem;
  font-family: var(--font-primary);
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.close-lightbox:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* Navigation Arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  z-index: 10;
}

.lightbox-nav button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav button:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .gallery-item {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .gallery {
    padding: 60px 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .gallery-item {
    height: 150px;
  }

  .gallery-item::after {
    font-size: 0.9rem;
    padding: 10px;
  }

  .lightbox-content img {
    max-height: 60vh;
  }

  .lightbox-caption {
    font-size: 1rem;
  }

  .close-lightbox {
    font-size: 2rem;
    top: 10px;
    right: 10px;
  }

  .lightbox-nav button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Enhanced Lightbox Responsiveness */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 95%;
  }

  .lightbox-content img {
    max-height: 65vh;
  }

  .lightbox-caption {
    font-size: 1rem;
    margin-top: 10px;
    padding: 0 10px;
  }

  .close-lightbox {
    top: 10px;
    right: 10px;
    font-size: 2rem;
  }

  .lightbox-nav button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .lightbox-content img {
    max-height: 50vh;
  }

  .lightbox-caption {
    font-size: 0.9rem;
  }

  .lightbox-nav {
    padding: 0 10px;
  }

  .lightbox-nav button {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .gallery-item {
    height: 120px;
  }

  .gallery-item::after {
    font-size: 0.8rem;
    padding: 8px;
  }
}

/* ==============================================
   GALLERY FILTER BUTTON STYLES - CORRECTED VERSION
   ============================================== */

/* Gallery Filter Buttons */
.filter-controls {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-controls .btn {
  margin: 0;
  padding: 8px 20px;
  background-color: var(--secondary);
  color: var(--light);
  border: 2px solid var(--secondary);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Active state styles */
.filter-controls .btn.active {
  background-color: var(--dark);
  color: white;
}

/* Hover state (different from active) */
.filter-controls .btn:not(.active):hover {
  background-color: var(--dark);
  color: white;
}

/* Make sure 'All' button is active by default */
.filter-controls .btn[data-filter="all"].active {
  background-color: var(--dark);
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .filter-controls {
    gap: 8px;
  }

  .filter-controls .btn {
    padding: 6px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .filter-controls {
    gap: 6px;
  }

  .filter-controls .btn {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
}
/* Fallback styles if MixItUp fails */
.mixitup-container-fallback {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background-color: white;
}

.testimonials-slider {
  margin-top: 50px;
  position: relative;
}

.testimonial-card {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  margin: 0 15px;
  position: relative;
}

.testimonial-text {
  font-style: italic;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.author-info p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background-color: #f8f9fa;
}

.contact-container {
  display: flex;
  gap: 50px;
  margin-top: 50px;
}

.contact-info {
  flex: 1;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-right: 20px;
  margin-top: 5px;
}

.contact-details h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.contact-details p {
  color: var(--gray);
  line-height: 1.8;
}

.contact-form {
  flex: 1;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 70px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-col h3:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 15px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--secondary);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-col {
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
  .footer-links {
    text-align: center;
  }
  .footer-bottom {
    font-size: 0.8rem;
  }
  .footer-col h3:after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-col p,
  .footer-links li {
    margin-bottom: 10px;
  }
  .footer {
    padding: 50px 0 20px;
  }
  .footer-bottom {
    padding-top: 15px;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-container,
  .contact-container {
    flex-direction: column;
  }

  .about-img,
  .about-content,
  .contact-info,
  .contact-form {
    width: 100%;
  }

  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 15px 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* Booking Section Styles */
.booking {
  padding: 100px 0;
  background-color: white;
}

#booking-form {
  max-width: 800px;
  margin: 0 auto;
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

/* Date input styling */
input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  background: url('data:image/svg+xml;utf8,<svg fill="%23212529" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM9 10H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm-8 4H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2z"/></svg>')
    no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 60px;
  right: 60px;
  width: 60px;
  height: 60px;
  background-color: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: var(--dark);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 25px;
    bottom: 20px;
    right: 20px;
  }
}
