/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

/* --- Variables and Base Styles --- */
:root {
  --primary-color: #3f6e7c; /* Deep Teal - Main brand color */
  --light-bg: #f8f8f8; /* Very light grey for backgrounds */
  --dark-text: #333333; /* Dark charcoal for main text */
  --light-text: #666666; /* Softer grey for secondary text */
  --white: #ffffff; /* Pure white */
  --border-color: #e0e0e0; /* Light border color */
  --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.05); /* Subtle shadow */
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.08); /* Medium shadow */
  --transition-speed: 0.3s; /* Global transition speed */
  --border-radius-lg: 15px; /* Large border radius for major components */
  --border-radius-md: 8px; /* Medium border radius for buttons/forms */
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--dark-text);
  background-color: var(--light-bg);
  line-height: 1.7; /* Improved readability */
  overflow-x: hidden; /* Prevent horizontal scroll */
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1.2em; /* More space below headings */
}

h1 {
  font-size: 3.5rem; /* Larger hero heading */
}

h2 {
  font-size: 2.5rem; /* Section headings */
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--secondary-color);
}

p {
  margin-bottom: 1em; /* Consistent paragraph spacing */
}

/* --- Utilities --- */
.custom-bg {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.custom-bg:hover {
  background-color: #2e5560 !important; /* Slightly darker primary on hover */
  transform: translateY(-2px); /* Slight lift */
}

.btn-outline-dark {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transition: all var(--transition-speed) ease;
  border-radius: var(--border-radius-md); /* Consistent rounded buttons */
  padding: 10px 20px;
  font-weight: 600;
}

.btn-outline-dark:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px); /* Slight lift */
}

.btn {
  border-radius: var(--border-radius-md);
  padding: 10px 20px;
  font-weight: 600;
}

.btn-primary-filled { /* A new primary button style */
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
  transition: all var(--transition-speed) ease;
}

.btn-primary-filled:hover {
  background-color: #2e5560;
  border-color: #2e5560;
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.section-padding { /* Consistent padding for sections */
  padding: 80px 0;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

/* --- Section Spacing --- */
h2.mt-5 {
  margin-top: 60px !important;
  padding-top: 20px !important;
}

/* --- Header --- */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: 'Playfair Display', serif; /* Use display font for brand */
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--dark-text);
  padding: 0 15px; /* Adjust spacing */
  transition: color var(--transition-speed) ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

/* Highlight book now button in navbar */
.navbar .btn-book-now {
  background-color: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
  padding: 8px 20px;
  margin-left: 20px;
  transition: all var(--transition-speed) ease;
}

.navbar .btn-book-now:hover {
  background-color: #d18d00; /* Slightly darker gold */
  border-color: #d18d00;
  transform: translateY(-1px);
}


/* --- Hero Section (Carousel) --- */
.hero-section {
  position: relative;
  margin-bottom: 80px; /* Space before the next section */
}

.custom-carousel-img {
  width: 100%;
  min-height: 480px; /* More impactful height */
  max-height: 650px;
  object-fit: cover;
  border-radius: var(--border-radius-lg); /* Softly rounded corners for carousel */
}

.swiper-slide {
  position: relative;
  overflow: hidden; /* Ensure rounded corners clip image */
}

/* Subtle dark gradient overlay on carousel images for text readability */
.swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 50%); /* Stronger gradient */
  z-index: 1;
}

.carousel-caption { /* Styles for text overlay on carousel */
  z-index: 2;
  bottom: 20%;
  text-align: left;
  left: 10%;
  right: 10%;
}

.carousel-caption h5 {
  color: var(--white);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption p {
  color: var(--white);
  font-size: 1.2rem;
  max-width: 700px;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.carousel-caption .btn {
  margin-top: 20px;
}


/* --- Availability Form --- */
.availability-form {
  margin-top: -80px; /* Pull it up over the carousel */
  z-index: 5; /* Ensure it's above other elements */
  position: relative;
  background-color: var(--white);
  padding: 40px 50px; /* Generous padding */
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium); /* Prominent shadow */
  animation: fadeInDown 0.8s ease-out; /* Simple entry animation */
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.availability-form h5 {
  margin-bottom: 30px;
  font-size: 1.6rem;
  text-align: center;
  color: var(--primary-color);
}

.availability-form .form-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--light-text);
}

.form-control,
.form-select {
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 12px 15px;
  box-shadow: none !important;
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(63, 110, 124, 0.25); /* Custom focus ring */
}

/* --- Room Cards --- */
.card {
  border-radius: var(--border-radius-lg); /* More rounded cards */
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  background-color: var(--white);
}

.card:hover {
  transform: translateY(-8px); /* More pronounced lift on hover */
  box-shadow: var(--shadow-medium); /* Stronger shadow on hover */
}

.card-img-top {
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  height: 220px; /* Consistent image height for cards */
  object-fit: cover;
}

.card-body {
  padding: 25px;
}

.card-body h5 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.card-body h6 {
  color: var(--secondary-color); /* Price in accent color */
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.features,
.facilities-list, /* Renamed from .facilities to avoid conflict with .our-facilities section */
.guests {
  margin-bottom: 20px;
}

.features h6,
.facilities-list h6,
.guests h6 {
  font-size: 1rem;
  color: var(--dark-text);
  margin-bottom: 10px;
  font-weight: 600;
}

.badge {
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 5px;
  margin-right: 5px; /* Spacing between badges */
  margin-bottom: 5px;
  display: inline-flex; /* Align items correctly */
  align-items: center;
  background-color: var(--light-bg);
  color: var(--dark-text);
}

.badge i { /* Icon inside badge */
  margin-right: 5px;
  font-size: 0.9em;
}


.rating .badge {
  background-color: var(--light-bg) !important;
  padding: 10px 15px;
}

.rating .bi-star-fill {
  color: var(--secondary-color); /* Gold stars */
  margin-right: 3px;
}

/* --- About Us Section --- */
.about-us-section {
  background-color: var(--white);
  padding: 60px 0;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
}

.about-us-section img {
  border-radius: var(--border-radius-lg);
  max-width: 100%;
  height: auto;
  box-shadow: var(--shadow-medium);
}

.about-us-section h2 {
  margin-bottom: 20px;
}

.about-us-section p {
  color: var(--light-text);
}

/* --- Our Facilities Section --- */
.our-facilities-section { /* Renamed for clarity */
  padding: 60px 0;
}

.our-facilities-section .col-lg-2 {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  padding: 30px 20px;
  margin-bottom: 20px; /* Space between rows on smaller screens */
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 180px; /* Fixed height for consistent look */
}

.our-facilities-section .col-lg-2:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.our-facilities-section .col-lg-2 img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
}

.our-facilities-section .col-lg-2 h5 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--dark-text);
  font-weight: 600;
}

/* --- Testimonials --- */
.testimonials-section { /* Renamed for clarity */
  padding: 60px 0;
  background-color: var(--light-bg); /* Slight background contrast */
}

.swiper-testimonials {
  padding-bottom: 50px; /* Space for pagination */
}

.swiper-testimonials .swiper-slide {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto; /* Allow height to adjust based on content */
  min-height: 250px; /* Minimum height for consistency */
}

.swiper-testimonials .profile {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.swiper-testimonials .profile img {
  border: 3px solid var(--primary-color); /* Highlight profile image */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-right: 15px;
}

.swiper-testimonials .profile h6 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--dark-text);
  font-weight: 700;
}

.swiper-testimonials p {
  font-size: 0.95rem;
  color: var(--light-text);
  margin-bottom: 20px;
  font-style: italic; /* Emphasize quotes */
}

.swiper-testimonials .rating .bi-star-fill {
  color: var(--secondary-color);
}

.swiper-pagination-bullet {
  background-color: var(--primary-color) !important;
  opacity: 0.6 !important;
  transition: opacity var(--transition-speed) ease;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
}


/* --- Reach Us --- */
.reach-us-section { /* Renamed for clarity */
  padding: 60px 0;
}

.reach-us-section .col-lg-8,
.reach-us-section .col-lg-4 {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-light);
  margin-bottom: 30px; /* Spacing between columns on smaller screens */
}

.reach-us-section iframe {
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  width: 100%; /* Ensure map is responsive */
  height: 350px; /* Fixed height for map */
}

.reach-us-section h5 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.reach-us-section a {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--dark-text);
  font-weight: 500;
}

.reach-us-section a i {
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 1.1em;
}

.reach-us-section .badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--light-bg) !important;
  color: var(--dark-text) !important;
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: var(--border-radius-md);
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.reach-us-section .badge:hover {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
}

.reach-us-section .badge i {
  color: inherit; /* Inherit color from parent */
  margin-right: 8px;
}

/* --- Modals (Login/Register/Recovery) --- */
.modal-content {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  background-color: var(--white);
  padding: 20px;
}

.modal-header {
  border-bottom: none;
  padding-bottom: 0;
}

.modal-title {
  font-size: 1.6rem;
  color: var(--primary-color);
}

.modal-body {
  padding-top: 20px;
  padding-bottom: 20px;
}

.modal .btn {
  border-radius: var(--border-radius-md);
}

.modal .btn-dark { /* Changed to match primary theme */
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.modal .btn-dark:hover {
  background-color: #2e5560;
  border-color: #2e5560;
}

/* --- Footer --- */
.footer-section {
  background-color: #2a2a2a; /* Darker, sophisticated footer background */
  color: #f0f0f0;
  padding: 60px 0 30px 0;
  font-size: 0.95rem;
}

.footer-section h5 {
  color: var(--white);
  margin-bottom: 25px;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-section p {
  color: #ccc;
  margin-bottom: 15px;
}

.footer-section .h-font {
  color: var(--secondary-color); /* Highlight site title in footer */
}

.footer-section a {
  color: #b0b0b0;
  transition: color var(--transition-speed) ease;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.footer-section .col-lg-4:first-child p {
  padding-right: 20px; /* Space out description */
}

.footer-section .social-icons a {
  font-size: 1.5rem;
  margin-right: 15px;
}

/* Copyright section */
.copyright {
  background-color: #1a1a1a;
  color: #888;
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  margin-top: 30px;
  border-top: 1px solid #333;
}

/* --- Media Queries for Responsiveness --- */
@media screen and (max-width: 991px) {

  .navbar-toggler {
    padding: 8px 12px;
    font-size: 1.2rem;
  }

  .navbar-collapse {
    background-color: var(--white);
    margin-top: 10px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    padding: 15px;
  }

  .navbar-nav .nav-link {
    padding: 8px 0;
  }

  .carousel-caption h5 {
    font-size: 2.5rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .availability-form {
    margin-top: 25px;
    padding: 25px 20px;
  }

  .custom-carousel-img {
    min-height: 350px;
  }

  .our-facilities-section .col-lg-2 {
    margin-bottom: 15px; /* Adjust spacing */
    height: auto; /* Allow height to flex on smaller screens */
    min-height: 150px;
  }

  .reach-us-section .col-lg-8,
  .reach-us-section .col-lg-4 {
    margin-bottom: 25px;
  }

  .section-padding {
    padding: 50px 0;
  }
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2rem;
  }

  .custom-carousel-img {
    min-height: 280px;
  }

  .carousel-caption h5 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .availability-form {
    padding: 20px;
  }

  .availability-form h5 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .card {
    max-width: none; /* Allow full width on small screens */
  }

  .swiper-testimonials .swiper-slide {
    padding: 20px;
  }

  .reach-us-section iframe {
    height: 250px;
  }
}

@media screen and (max-width: 575px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .custom-carousel-img {
    min-height: 220px;
    border-radius: var(--border-radius-md);
  }

  .carousel-caption {
    bottom: 10%;
    left: 5%;
    right: 5%;
  }

  .carousel-caption h5 {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }

  .carousel-caption p {
    font-size: 0.85rem;
  }

  .availability-form {
    padding: 15px;
    margin-top: 15px;
  }

  .availability-form .row .col-lg-3,
  .availability-form .row .col-lg-2,
  .availability-form .row .col-lg-1 {
    margin-bottom: 15px;
  }

  .availability-form .row .col-lg-1 {
    margin-top: 0 !important;
    text-align: center;
  }

  .our-facilities-section .col-lg-2 {
    min-height: 120px;
    padding: 20px 10px;
  }

  .our-facilities-section .col-lg-2 img {
    width: 45px;
    height: 45px;
  }

  .our-facilities-section .col-lg-2 h5 {
    font-size: 1rem;
  }

  .swiper-testimonials .profile img {
    width: 45px !important;
    height: 45px !important;
  }

  .swiper-testimonials .profile h6 {
    font-size: 0.95rem;
  }

  .swiper-testimonials p {
    font-size: 0.85rem;
  }

  .reach-us-section h5 {
    font-size: 1.2rem;
  }

  .footer-section h5 {
    font-size: 1.2rem;
  }
}