/* Fix language dropdown positioning ONLY on home pages - responsive fix */
.navbar-center .navbar-nav .dropdown:first-child .dropdown-menu {
  left: 0 !important;
  right: auto !important;
  min-width: 150px !important;
  max-width: 200px !important;
}

/* Responsive fix for different screen sizes - ONLY home pages */
@media (max-width: 1200px) {
  .navbar-center .navbar-nav .dropdown:first-child .dropdown-menu {
    left: 0 !important;
    right: auto !important;
  }
}

@media (max-width: 992px) {
  .navbar-center .navbar-nav .dropdown:first-child .dropdown-menu {
    left: 0 !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {
  .navbar-center .navbar-nav .dropdown:first-child .dropdown-menu {
    left: auto !important;
    right: 0 !important;
  }
}

/* Buscat Premium Resort Custom Styles */
/* Change blue text to dark green, keep original dark backgrounds */

/* Dark Forest Green Color Variables */
:root {
  --buscat-forest-green: #2d5016;
  --buscat-forest-green-light: #3a6b1e;
}

/* Make logo much bigger when at top of page (before scrolling) */
.navbar-brand .logobig .logo,
.navbar-brand .logobig .logodark {
  max-height: 300px !important;
  width: auto !important;
  transition: max-height 0.3s ease !important;
}

/* Keep current (smaller) size when scrolled down */
.top-nav-collapse .navbar-brand .logobig .logo,
.top-nav-collapse .navbar-brand .logobig .logodark {
  max-height: 40px !important;
  width: auto !important;
}

/* Ensure logo is visible and properly sized */
.navbar-brand .logobig {
  display: flex !important;
  align-items: center !important;
}

/* Make hero slider text smaller but not too small */
.intro-body h1 {
  font-size: 3.5em !important;
  text-align: center !important;
  line-height: 1.6 !important;
  margin-bottom: 30px !important;
  color: white !important;
  display: block !important;
  width: 100% !important;
}

/* Simplify all text elements to single cell */
.intro-body h1 .big,
.intro-body h1 .span,
.intro-body h1 sup,
.intro-body h1 .blue,
.intro-body h1 .indent {
  display: inline !important;
  color: white !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
  vertical-align: baseline !important;
  font-size: inherit !important;
}

/* Change blue text to dark green */
.blue {
  color: var(--buscat-forest-green) !important;
}

/* Any other blue text elements */
[style*="color: blue"],
[style*="color: #007bff"],
[style*="color: #0066cc"],
[style*="color: #0056b3"] {
  color: var(--buscat-forest-green) !important;
}

/* Blue text in specific sections */
.intro-body .blue {
  color: var(--buscat-forest-green) !important;
}

/* Ensure the blue class maintains forest green color */
.span.blue {
  color: var(--buscat-forest-green) !important;
}

/* Make Book Now button same size as other navigation items */
.navbar-nav .btn-outline {
  font-size: 14px !important;
  padding: 15px 20px !important;
  margin: 0 !important;
  line-height: 20px !important;
  height: auto !important;
  border-radius: 0 !important;
  text-transform: none !important;
  font-weight: normal !important;
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  text-decoration: none !important;
}

.navbar-nav .btn-outline:hover,
.navbar-nav .btn-outline:focus {
  background: transparent !important;
  color: #fff !important;
  border: none !important;
  text-decoration: none !important;
}

/* Remove button styling completely and make it look like other nav items */
.navbar-nav li a.btn-outline {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-weight: normal !important;
  text-transform: none !important;
  box-shadow: none !important;
}

.navbar-nav li a.btn-outline:hover,
.navbar-nav li a.btn-outline:focus {
  background: transparent !important;
  color: #fff !important;
  border: none !important;
  text-decoration: none !important;
}

/* Override parallax effect for wellness section */
#wellness.bg-img-custom {
  background-attachment: scroll !important;
}

/* Video Modal Styles */
.video-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.video-modal-content {
  position: relative;
  margin: 5% auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-content video {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.video-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Responsive video modal */
@media (max-width: 768px) {
  .video-modal-content {
    width: 95%;
    height: 70%;
    margin: 10% auto;
  }
  
  .video-close {
    top: -35px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
}

/* Fix portfolio chalet image sizing - ensure all images have consistent height */
.portfolio-item img {
  width: 100% !important;
  height: 300px !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Ensure portfolio items have consistent height */
.portfolio-item {
  height: 300px !important;
  overflow: hidden !important;
}

/* Responsive adjustments for portfolio images */
@media (max-width: 768px) {
  .portfolio-item img,
  .portfolio-item {
    height: 250px !important;
  }
}

@media (max-width: 480px) {
  .portfolio-item img,
  .portfolio-item {
    height: 200px !important;
  }
}
