:root {
  --primary-color: #003366; /* Dark Blue */
  --secondary-color: #c5a059; /* Gold/Sand */
  --text-color: #555;
  --light-bg: #f8f9fa;
}

body {
  padding-top: 76px; /* Adjust for fixed navbar */
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  color: var(--primary-color);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff !important;
  padding: 15px 0;
}
.navbar-brand {
  font-weight: 700;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}
.nav-link {
  color: #333 !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0 15px !important;
}
.nav-link:hover {
  color: var(--secondary-color) !important;
}
.social-nav a {
  color: var(--primary-color);
  margin-left: 10px;
  transition: color 0.3s;
}
.social-nav a:hover {
  color: var(--secondary-color);
}

/* Carousel settings */
.carousel-item {
  height: 80vh;
  min-height: 500px;
  background-color: #333;
}
.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  opacity: 0.6;
}
.carousel-caption {
  bottom: 35%;
}
.carousel-caption h2 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.carousel-caption p {
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Booking Form */
.booking-search-container {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-top: -80px; /* Overlap carousel */
  position: relative;
  z-index: 10;
  border-top: 5px solid var(--secondary-color);
}
.booking-search-container label {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}
.btn-search {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px;
}
.btn-search:hover {
  background-color: #b08d4b;
  border-color: #b08d4b;
}

/* Fix for Select Box "White Blur" */
.form-control,
.custom-select {
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  /* Remove default appearance to fix potential rendering issues */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Add custom arrow */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 8px 10px;
}

/* Specific fix for datepicker input group */
.input-group > .form-control {
  background-image: none; /* No arrow for date inputs */
}

/* Section padding */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}
.section-title h2 {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 0 auto;
}
.section-subtitle {
  text-align: center;
  color: #777;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Features Icons */
.feature-box {
  text-align: center;
  padding: 20px;
  transition: transform 0.3s;
}
.feature-box:hover {
  transform: translateY(-5px);
}
.feature-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}
.feature-title {
  font-weight: 600;
  color: var(--primary-color);
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  border-radius: 8px;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.card-img-top {
  height: 250px;
  object-fit: cover;
}
.card-body {
  padding: 25px;
}
.card-title {
  font-weight: 700;
  margin-bottom: 15px;
}
.room-price {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 15px;
  display: block;
}
.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Testimonials */
.testimonials-section {
  background-color: #e9ecef; /* Light gray/blue background */
  padding: 80px 0;
}

#testimonialCarousel .carousel-item {
  height: auto;
  min-height: auto;
  background-color: transparent;
}

#testimonialCarousel .carousel-item img {
  opacity: 1;
}

.testimonial-card {
  background: #fff;
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  margin: 20px auto;
  max-width: 1000px;
  border: none;
  position: relative;
}
.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--secondary-color);
}
.testimonial-text {
  font-style: italic;
  color: #555;
  font-size: 1.3rem;
  margin-bottom: 30px;
  line-height: 1.8;
}
.testimonial-author {
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 10px;
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.testimonial-source {
  font-size: 0.9rem;
  color: #888;
}
.testimonial-source {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

/* Testimonial Carousel Controls */
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
  width: 5%;
  opacity: 0.8;
}

#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
  background-image: none; /* Remove default SVG */
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background-color: transparent;
  color: var(--primary-color);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#testimonialCarousel .carousel-control-prev-icon::after {
  content: "\f104"; /* FontAwesome Angle Left */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

#testimonialCarousel .carousel-control-next-icon::after {
  content: "\f105"; /* FontAwesome Angle Right */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

#testimonialCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next:hover .carousel-control-next-icon {
  color: var(--secondary-color);
  transform: scale(1.2);
}

/* Gallery */
.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 30px;
  border-radius: 8px;
  transition: transform 0.3s;
  cursor: pointer;
}
.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Gallery Modal Specifics */
#galleryCarouselModal .carousel-item {
  height: auto;
  min-height: auto;
  background-color: #000; /* Dark background for modal */
  display: flex;
  align-items: center;
  justify-content: center;
}

#galleryCarouselModal .carousel-item img {
  height: auto;
  max-height: 85vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 1;
  margin: 0 auto;
}

/* Gallery Modal Carousel Controls */
#galleryCarouselModal .carousel-control-prev,
#galleryCarouselModal .carousel-control-next {
  width: 7%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
  z-index: 2;
}
#galleryCarouselModal .carousel-control-prev-icon,
#galleryCarouselModal .carousel-control-next-icon {
  background-image: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
#galleryCarouselModal .carousel-control-prev-icon::after {
  content: "\f104";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
#galleryCarouselModal .carousel-control-next-icon::after {
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
#galleryCarouselModal .carousel-control-prev:hover .carousel-control-prev-icon,
#galleryCarouselModal .carousel-control-next:hover .carousel-control-next-icon {
  background: var(--secondary-color);
  color: #fff;
  transform: scale(1.15);
}

/* Gallery Modal Custom Controls */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 2.2rem;
  color: #fff;
  background: rgba(34, 34, 34, 0.65);
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  opacity: 0.92;
}
.gallery-arrow:hover {
  background: var(--secondary-color);
  color: #fff;
  transform: translateY(-50%) scale(1.12);
  opacity: 1;
}
.gallery-arrow-left {
  left: 30px;
}
.gallery-arrow-right {
  right: 30px;
}

/* Gallery Modal Close Button */
#galleryModal .close {
  background: rgba(34, 34, 34, 0.65);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  font-size: 2rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  right: 18px !important;
  top: 18px !important;
}
#galleryModal .close:hover {
  background: var(--secondary-color);
  color: #fff;
  opacity: 1;
  transform: scale(1.12);
}

/* Map */
.map-container {
  height: 100%;
  min-height: 400px;
  background: #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background: #222;
  color: #aaa;
  padding: 60px 0 20px;
}
footer h4 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 1.2rem;
  text-transform: uppercase;
}
footer ul li {
  margin-bottom: 10px;
}
footer a {
  color: #aaa;
  transition: color 0.3s;
}
footer a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 32px;
  left: 28px;
  right: auto;
  z-index: 1050 !important;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
  text-decoration: none;
}

/* Botão de voltar ao topo */
#backToTop {
  position: fixed;
  right: 28px;
  left: auto;
  bottom: 32px;
  z-index: 1051;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
#backToTop.show {
  opacity: 0.92;
  pointer-events: auto;
  transform: translateY(-12px);
}
#backToTop:hover {
  background: var(--secondary-color);
  color: #fff;
  opacity: 1;
  transform: scale(1.12) translateY(-12px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel-caption h2 {
    font-size: 2rem;
  }
  .booking-search-container {
    margin-top: 0;
    border-radius: 0;
  }
  .section-title h2 {
    font-size: 1.8rem;
  }
}
