/* Home page styles (shared by home.html and home_ro.html) */
/* Portfolio sorting button styling - matching chalets.html */
.portfolio-sorting li a {
  padding: 8px 16px;
  margin: 0 5px;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: inherit;
  font-weight: bold;
  text-decoration: none;
  color: black;
}

.portfolio-sorting li a.active,
.portfolio-sorting li a:hover {
  background-color: #333;
  color: white;
}

/* Remove lines between navbar buttons on mobile - covers all mobile breakpoints */
@media (max-width: 991px) {
  .navbar-custom.navbar-center .navbar-nav > li,
  .navbar.navbar-center .navbar-nav > li,
  .navbar-custom .navbar-nav > li,
  .navbar .navbar-nav > li,
  nav.navbar .navbar-nav > li {
    border-bottom: none !important;
    border-top: none !important;
  }
  
  .navbar-custom .navbar-logo,
  .navbar .navbar-logo,
  nav .navbar-logo {
    border-bottom: none !important;
    border-top: none !important;
  }
  
  /* Also remove borders from dropdown dividers */
  .navbar-nav .dropdown-menu .divider,
  .navbar-nav .divider {
    border-top: none !important;
    border-bottom: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
  }
}

/* Mobile portfolio item styling */
@media (max-width: 768px) {
  
  /* Center the play button on mobile for "Experience Nature's Embrace" */
  .intro-body .video-trigger {
    display: block !important;
    margin: 20px auto !important;
    text-align: center;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    position: relative !important;
    width: auto;
  }
  
  .intro-body .video-trigger i {
    display: block;
    margin: 0 auto;
  }
  
  /* Center the entire portfolio section on mobile */
  #portfolio .container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Center the title on mobile */
  #portfolio .container.text-center {
    text-align: center !important;
  }
  
  #portfolio .container.text-center h2 {
    text-align: center !important;
    margin: 0 auto 10px auto;
    width: 100%;
  }
  
  /* Center the sorting buttons on mobile and reduce spacing */
  #portfolio .container.text-center .text-right {
    text-align: center !important;
    margin-top: 10px !important;
    width: 100%;
  }
  
  #portfolio .container.text-center .list-inline {
    display: block;
    margin: 0 auto;
    text-align: center;
    width: 100%;
  }
  
  #portfolio .container.text-center .list-inline li {
    display: block;
    margin: 5px auto;
    text-align: center;
    width: fit-content;
  }
  
  #portfolio .container.text-center .list-inline li a {
    margin: 0 auto;
    display: inline-block;
  }
  
  /* Center the images container */
  #portfolio .container:last-child {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .portfolio-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  
  /* Override Bootstrap grid on mobile to center items */
  .portfolio-items [class*="col-"] {
    width: 100% !important;
    max-width: 400px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: 0 0 auto;
    float: none !important;
    text-align: center;
  }
  
  .portfolio-items .no-pad {
    width: 100% !important;
    max-width: 400px;
    margin: 0 auto 20px auto;
    float: none !important;
    padding: 0 !important;
    text-align: center;
  }
  
  .portfolio-item {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 2s ease-out, transform 2s ease-out;
    border-radius: 15px;
    overflow: hidden;
    display: block;
  }
  
  .portfolio-item a {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
  }
  
  .portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 15px;
  }
  
  /* Animation for chalet items on mobile */
  .portfolio-item.animate {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fix alignment for "De ce Nivalis este special" section */
#services .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

#services .row > div[class*="col-"] {
  display: flex;
  flex-direction: column;
  float: none;
}

#services .row > div[class*="col-"] > h4 {
  flex: 0 0 auto;
}

#services .row > div[class*="col-"] > p {
  flex: 1 1 auto;
  margin-bottom: 0;
}

/* Hero video slide */
.hero-video-fill {
  display: block;
  overflow: hidden;
}
.hero-video-fill .hero-intro-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
