/* FLOWBEDS THEME - Variables moved to index.php for dynamic control */

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

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

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

/* Navbar - FLOWBEDS */
.navbar {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: var(--gradient-dark) !important;
  padding: 15px 0;
  border-bottom: 3px solid var(--secondary-color);
}
.navbar-brand {
  font-weight: 700;
  color: #FFFFFF !important;
  font-size: 1.5rem;
  padding: 0 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.navbar-brand img {
  max-height: 80px;
  height: 80px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.nav-link {
  color: #FFFFFF !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0 15px !important;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--secondary-color) !important;
}
.social-nav a {
  color: #FFFFFF !important;
  margin-left: 10px;
  transition: color 0.3s;
}
.social-nav a:hover {
  color: var(--secondary-color) !important;
}
/* Force white on Font Awesome icons */
.social-nav a i,
.nav-link i {
  color: #FFFFFF !important;
}
.social-nav a:hover i,
.nav-link:hover i {
  color: var(--secondary-color) !important;
}

/* Carousel settings - FLOWBEDS */
.carousel-item {
  height: 80vh;
  min-height: 500px;
  background-color: #111; /* Fundo neutro para não interferir nas cores da imagem */
}
.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  opacity: 0.85; /* Opacidade mais alta para cores naturais, mantendo leitura do texto */
}
.carousel-caption {
  bottom: 35%;
}
.carousel-caption h2 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}
.carousel-caption p {
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Booking Form - FLOWBEDS */
.booking-search-container {
  background-color: #fff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(15, 28, 46, 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;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-search {
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  color: #fff;
}

/* Fix for Select Box */
.form-control,
.custom-select {
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  height: calc(1.5em + 0.75rem + 4px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-color);
  background-color: #fff;
  background-clip: padding-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  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;
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
  outline: none;
}

/* 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;
  color: var(--primary-color);
}
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 0 auto;
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Features Icons - FLOWBEDS */
.feature-box {
  text-align: center;
  padding: 25px;
  transition: transform 0.3s;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.feature-icon {
  font-size: 2.5rem;
  color: var(--icon-color);
  margin-bottom: 15px;
}
.feature-title {
  font-weight: 600;
  color: var(--primary-color);
}

/* Cards - FLOWBEDS */
.card {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 12px;
  overflow: hidden;
}
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px 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;
  color: var(--primary-color);
}
.room-price {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.3rem;
  margin-top: 15px;
  display: block;
}
.btn-outline-primary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  border-width: 2px;
  border-radius: 8px;
  font-weight: 600;
}
.btn-outline-primary:hover {
  background: var(--gradient-primary);
  border-color: var(--secondary-color);
  color: #fff;
}

/* Testimonials - FLOWBEDS */
.testimonials-section {
  padding: 80px 0;
  background-color: var(--testimonials-bg);
}

.testimonials-section .section-title h2 {
  color: var(--testimonials-title) !important;
}

.testimonials-section .section-title::after {
  background: var(--gradient-primary);
}

#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.2);
  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: #1A202C;
  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 - FLOWBEDS */
footer {
  background: var(--gradient-dark);
  color: #A0AEC0;
  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: #A0AEC0;
  transition: color 0.3s;
}
footer a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid rgba(50, 205, 153, 0.2);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}
.footer-bottom a {
  color: var(--secondary-color);
}

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

/* Botão de voltar ao topo - FLOWBEDS */
#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 4px 15px rgba(15, 28, 46, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
}
#backToTop.show {
  opacity: 0.92;
  pointer-events: auto;
  transform: translateY(-12px);
}
#backToTop:hover {
  background: var(--gradient-primary);
  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;
  }
}
