/* Language Select Component */
.language-select {
  position: relative;
  display: inline-flex;
}

.language-trigger {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none !important;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  min-width: auto;
}

.language-trigger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.current-language-flag {
  margin: 0 !important;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 20px;
}

.flag-icon {
  min-height: 15px;
  width: 20px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.language-chevron {
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  color: #fff;
  font-size: 12px !important;
  flex-shrink: 0;

  .fa-chevron-down {
    font-size: 12px !important;
    color: #fff;
    font-weight: 400 !important;
  }
}

#hiking {

  .fa-chevron-down {
    color: #333;
  }
}

.whiteNav {
  .language-chevron {
    .fa-chevron-down {
      color: #333;
    }
  }
}

.language-chevron.rotated {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: fit-content;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid #e1e5e9;
  overflow: hidden;
  z-index: 1000;
  margin-top: 4px;
}

.language-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.language-option {
  border-bottom: 1px solid #f0f0f0;
  flex: none;
}

.language-option:last-child {
  border-bottom: none;
}

.language-option.active {
  background-color: #f8f9fa;
}

.language-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease;
  flex: 1;
}

.language-link:hover {
  background-color: #f5f5f5;
  text-decoration: none;
  color: #333;
}

.language-option.active .language-link {
  color: #007bff;
  font-weight: 500;
}

.language-link span {
  font-size: 14px;
  flex: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .language-dropdown {
    right: auto;
    left: 0;
    min-width: 140px;
  }

  .language-link {
    padding: 10px 14px;
  }

  .language-link span {
    font-size: 13px;
  }
}
