/* Language Switcher Styles */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* High specificity hover styles */
.header .header__nav .language-switcher a:hover,
.header .header-mob__nav .language-switcher a:hover,
.header__wrap .language-switcher a:hover {
  background-color: rgba(255, 255, 255, 0.25) !important;
  transform: scale(1.05) !important;
  transition: all 0.3s ease !important;
  border-radius: 6px !important;
  opacity: 1 !important;
}

/* Dark theme pages with high specificity */
.header__wrap[class*='page-']:not(.page-home) .language-switcher a:hover {
  background-color: rgba(44, 41, 38, 0.2) !important;
  transform: scale(1.05) !important;
  transition: all 0.3s ease !important;
  border-radius: 6px !important;
  opacity: 1 !important;
}

/* Fixed header with high specificity */
.header._fixed .header__nav .language-switcher a:hover,
.header._fixed .header-mob__nav .language-switcher a:hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.05) !important;
  transition: all 0.3s ease !important;
  border-radius: 6px !important;
  opacity: 1 !important;
}

.language-switcher ul {
  display: flex;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 8px;
}

.language-switcher li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.language-switcher li::before {
  display: none !important;
  content: none !important;
}

.language-switcher a {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 4px;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  color: inherit;
  background: none;
  cursor: pointer;
}

.language-switcher a:hover,
.header__nav .language-switcher a:hover,
.header-mob__nav .language-switcher a:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  text-decoration: none !important;
  transform: scale(1.1);
  opacity: 1 !important;
}

.language-switcher img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.language-switcher span {
  font-size: 16px;
  display: block;
  line-height: 1;
}
  
/* Language switcher styling - всі показані мови доступні для перемикання */
.language-switcher a {
  opacity: 0.8;
}

.language-switcher a:hover {
  opacity: 1 !important;
}

/* Mobile language switcher in header */
.header-mob__controls {
  display: none;
}

.header-mob__lang-switcher .language-switcher {
  gap: 4px;
}

.header-mob__lang-switcher .language-switcher a {
  padding: 4px 6px;
}

.header-mob__lang-switcher .language-switcher img {
  width: 20px;
  height: 14px;
}

/* Mobile language switcher in nav menu (hidden now) */
.header-mob__nav .language-switcher {
  margin-top: 20px;
  justify-content: center;
}

.header-mob__nav .language-switcher a {
  color: #fff;
  padding: 8px 12px;
}

.header-mob__nav .language-switcher a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Dark theme pages adjustment - але НЕ для головних сторінок */
.header__wrap[class*='page-']:not(.page-home) .language-switcher a {
  color: #2c2926;
}

.header__wrap[class*='page-']:not(.page-home) .language-switcher a:hover {
  background-color: rgba(44, 41, 38, 0.15) !important;
  transform: scale(1.1) !important;
  opacity: 1 !important;
}

/* Головна сторінка (українська та англійська) - білі елементи */
.header__wrap.page-home .language-switcher a {
  color: #fff !important;
}

.header__wrap.page-home .language-switcher a:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.05) !important;
  opacity: 1 !important;
}

/* Fixed header adjustment */
.header._fixed .language-switcher a {
  color: #fff;
}

.header._fixed .language-switcher a:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.1) !important;
  opacity: 1 !important;
}

/* Dropdown styles */
.language-switcher select {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: inherit;
  padding: 6px 8px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  min-width: 60px;
}

.language-switcher select:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.language-switcher select option {
  background: #2c2926;
  color: #fff;
  padding: 5px;
}

/* Dark theme pages dropdown adjustment */
.header__wrap[class*='page-']:not(.page-home) .language-switcher select {
  border-color: rgba(44, 41, 38, 0.3);
  color: #2c2926;
}

.header__wrap[class*='page-']:not(.page-home) .language-switcher select:hover {
  background-color: rgba(44, 41, 38, 0.1);
  border-color: rgba(44, 41, 38, 0.5);
}

.header__wrap[class*='page-']:not(.page-home) .language-switcher select option {
  background: #fff;
  color: #2c2926;
}

/* Fixed header dropdown adjustment */
.header._fixed .language-switcher select {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.header._fixed .language-switcher select:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 980px) {
  /* Show mobile controls container */
  .header-mob__controls {
    display: flex !important;
    align-items: center;
    gap: 12px;
  }
  
  /* Hide desktop language switcher */
  .header__nav .language-switcher {
    display: none !important;
  }
  
  /* Mobile language switcher styles */
  .header-mob__lang-switcher .language-switcher {
    gap: 6px;
  }
  
  .header-mob__lang-switcher .language-switcher img {
    width: 24px;
    height: 16px;
  }
  
  .header-mob__lang-switcher .language-switcher a {
    padding: 0px 0px 6px 8px;
  }
  
  /* Color adjustments for different page types */
  .header__wrap.page-home .header-mob__lang-switcher .language-switcher a {
    color: #fff !important;
  }
  
  .header__wrap[class*='page-']:not(.page-home) .header-mob__lang-switcher .language-switcher a {
    color: #2c2926 !important;
  }
  
  /* Fixed header mobile lang switcher */
  .header._fixed .header-mob__lang-switcher .language-switcher a {
    color: #fff !important;
  }
  
  .language-switcher select {
    font-size: 13px;
    padding: 5px 6px;
    min-width: 50px;
  }
}


@media  (max-width: 1490px) {
  .excursions-page .leg-page__item-title p{
    width: 65%;
  }
}
